OSSP CVS Repository

ossp - Check-in [3977]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3977
Date: 2003-Jan-31 00:17:06 (local)
2003-Jan-30 23:17:06 (UTC)
User:ms
Branch:
Comment: Fixed void clipboard bug, and improved main form and edit control behaviour when last row of an open document is removed.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/ChangeLog      1.22 -> 1.23     2 inserted, 0 deleted
ossp-pkg/as/as-gui/TODO      1.68 -> 1.69     1 inserted, 0 deleted
ossp-pkg/as/as-gui/as_slot.cpp      1.97 -> 1.98     21 inserted, 1 deleted

ossp-pkg/as/as-gui/ChangeLog 1.22 -> 1.23

--- 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
 


ossp-pkg/as/as-gui/TODO 1.68 -> 1.69

--- 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
 ------------


ossp-pkg/as/as-gui/as_slot.cpp 1.97 -> 1.98

--- 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

CVSTrac 2.0.1