OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_slot.cpp versions 1.97 and 1.98
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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