OSSP CVS Repository

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

Check-in Number: 3986
Date: 2003-Feb-03 11:57:57 (local)
2003-Feb-03 10:57:57 (UTC)
User:ms
Branch:
Comment: Extra help for beginning users.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_assist.cpp      1.93 -> 1.94     1 inserted, 0 deleted
ossp-pkg/as/as-gui/as_gui.h      1.67 -> 1.68     1 inserted, 0 deleted
ossp-pkg/as/as-gui/as_slot.cpp      1.103 -> 1.104     10 inserted, 2 deleted

ossp-pkg/as/as-gui/as_assist.cpp 1.93 -> 1.94

--- as_assist.cpp        2003/02/03 10:46:13     1.93
+++ as_assist.cpp        2003/02/03 10:57:57     1.94
@@ -626,6 +626,7 @@
 
     // Table update signals
     connect(m_pMaintable, SIGNAL(currentChanged(int, int)), this, SLOT(updEdit(int, int)));
+    connect(m_pMaintable, SIGNAL(clicked(int, int, int, const QPoint&)), this, SLOT(onClick(int, int, int, const QPoint&)));
     connect(m_pMaintable, SIGNAL(doubleClicked(int, int, int, const QPoint&)), this, SLOT(inplaceEdit(int, int, int, const QPoint&)));
     connect(m_pTablehead, SIGNAL(sizeChange(int, int, int)), this, SLOT(updSizes(int, int, int)));
     connect(m_pMaintable, SIGNAL(textEdited(int, int)), this, SLOT(dataChanged(int, int)));


ossp-pkg/as/as-gui/as_gui.h 1.67 -> 1.68

--- as_gui.h     2003/01/30 22:02:41     1.67
+++ as_gui.h     2003/02/03 10:57:57     1.68
@@ -170,6 +170,7 @@
     void aboutOSSP(void);               // Learn more about the OSSP
     void aboutQt(void);                 // Learn more about Qt
     void selAll(void);                  // Edit menu select all
+    void onClick(int, int, int, const QPoint &); // Table was clicked
     void inplaceEdit(int, int, int, const QPoint &); // Enter in place edit mode
     void updEdit(int, int nCol = 0);    // Update edit controls
     void validateData(void);            // Validate current row of matrix data


ossp-pkg/as/as-gui/as_slot.cpp 1.103 -> 1.104

--- as_slot.cpp  2003/01/31 18:48:57     1.103
+++ as_slot.cpp  2003/02/03 10:57:57     1.104
@@ -796,6 +796,16 @@
 }
 
 //
+// Gets a hit on every table click
+//
+void Titraqform::onClick(int nRow, int nCol, int nButton, const QPoint &Mousepos)
+{
+    // Give the clueless user some hints when clicking an empty timesheet
+    if (m_pMaintable->numRows() <= 0)
+        m_pStatbar->message(trUtf8("Empty timesheet, add entries first please"), 2000);
+}
+
+//
 // Update the edit controls contents
 //
 void Titraqform::updEdit(int nRow, int nCol)
@@ -851,8 +861,6 @@
         else
             m_pEndtime->setTime(QTime::QTime(0, 0));
     }
-    else
-        m_pStatbar->message(trUtf8("Empty timesheet, add entries first please"), 4000);
 }
 
 //

CVSTrac 2.0.1