Index: ossp-pkg/as/as-gui/ChangeLog RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/ChangeLog,v rcsdiff -q -kk '-r1.22' '-r1.23' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/ChangeLog,v' 2>/dev/null --- ChangeLog 2003/01/30 22:02:41 1.22 +++ ChangeLog 2003/01/30 23:17:06 1.23 @@ -8,6 +8,8 @@ Fixed missing double dirty data check on implicit saveAs ops Fixed close document operation with bad caption and status message Added exception handlers where none existed to close possible bugs + Improved condition of empty but open timesheets by disabling edit cntrls + Fixed void clipboard pointer bug 030129 Fixed the autoscroll before show bug, causing wrong data position Index: ossp-pkg/as/as-gui/TODO RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/TODO,v rcsdiff -q -kk '-r1.68' '-r1.69' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/TODO,v' 2>/dev/null --- TODO 2003/01/30 22:02:41 1.68 +++ TODO 2003/01/30 23:17:06 1.69 @@ -49,6 +49,7 @@ Pressing escape on task data cells does not exit edit mode On win32, all or some file reads and writes probably need IO_Translate? Method saveData(stream) must write to a new file, otherwise writes data pattern +Clicking on an open document with no rows spews debug text Nice to have ------------ Index: ossp-pkg/as/as-gui/as_slot.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v rcsdiff -q -kk '-r1.97' '-r1.98' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v' 2>/dev/null --- as_slot.cpp 2003/01/30 22:40:35 1.97 +++ as_slot.cpp 2003/01/30 23:17:06 1.98 @@ -95,8 +95,9 @@ { int nRows = 0; // Paste so many rows as are stored QString Selection; // Will receive the clipboard text - QClipboard *pClip; // Will reference the global clipboard + QClipboard *pClip = NULL; // Will reference the global clipboard + pClip = QApplication::clipboard(); // Prime the clips if (Selection = pClip->text(QClipboard::Clipboard)) { // Windows and Unix nRows = Selection.contains(QChar('\n')); // How many rows this->addEntry(nRows); // Reuse slot @@ -110,8 +111,11 @@ for (int nIter = 0; nIter < nRows; nIter++) this->validateData(m_pMaintable->currentRow() + nIter, 0); + m_pStatbar->message(QString::number(nRows) + trUtf8(" rows pasted"), 4000); updEdit(m_pMaintable->currentRow()); // Reflect in the update controls } + else // Well, I guess the user tried to paste an empty clipboard + m_pStatbar->message(trUtf8("The clipboard is empty"), 4000); } // @@ -244,6 +248,22 @@ m_pRefreshact->setEnabled(false); m_pCutact->setEnabled(false); m_pCopyact->setEnabled(false); + + // Dim all the edit controls also + m_pStatusedit->setPixmap(s_kpcStatvoid_xpm); + m_pLineedit->setEnabled(false); + m_pUseredit->setEnabled(false); + m_pGuidedit->setEnabled(false); + m_pCrcedit->setEnabled(false); + m_pRevedit->setEnabled(false); + m_pDateedit->setEnabled(false); + m_pStarttime->setEnabled(false); + m_pEndtime->setEnabled(false); + m_pAmount->setEnabled(false); + m_pTasks->setEnabled(false); + m_pRemark->setEnabled(false); + + // And optionally dim the RPC actions #ifdef HAVE_MICO m_pSynciiopact->setEnabled(false); #endif // HAVE_MICO