OSSP CVS Repository

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

Check-in Number: 2911
Date: 2002-Nov-27 19:40:15 (local)
2002-Nov-27 18:40:15 (UTC)
User:ms
Branch:
Comment: Implement in place editing, with intuitive error safety features.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_assist.cpp      1.31 -> 1.32     1 inserted, 1 deleted
ossp-pkg/as/as-gui/as_gui.h      1.31 -> 1.32     1 inserted, 0 deleted
ossp-pkg/as/as-gui/as_slot.cpp      1.23 -> 1.24     10 inserted, 0 deleted
ossp-pkg/titraq/titassist.cpp      1.31 -> 1.32     1 inserted, 1 deleted
ossp-pkg/titraq/titraq.h      1.31 -> 1.32     1 inserted, 0 deleted
ossp-pkg/titraq/titslot.cpp      1.23 -> 1.24     10 inserted, 0 deleted

ossp-pkg/as/as-gui/as_assist.cpp 1.31 -> 1.32

--- as_assist.cpp        2002/11/27 17:13:13     1.31
+++ as_assist.cpp        2002/11/27 18:40:15     1.32
@@ -426,7 +426,7 @@
 
     // Table update signals
     connect(m_pMaintable, SIGNAL(currentChanged(int, int)), this, SLOT(updEdit(int, int)));
-//    connect(m_pMaintable, SIGNAL(doubleClicked(int, int, int, const QPoint&)), this, SLOT(updEdit(int, int)));
+    connect(m_pMaintable, SIGNAL(doubleClicked(int, int, int, const QPoint&)), this, SLOT(inplaceEdit(int, int, int, const QPoint&)));
 //    connect(m_pMaintable, SIGNAL(valueChanged(int, int)), this, SLOT(tableChanged(int, int)));
 }
 


ossp-pkg/as/as-gui/as_gui.h 1.31 -> 1.32

--- as_gui.h     2002/11/27 17:11:06     1.31
+++ as_gui.h     2002/11/27 18:40:15     1.32
@@ -90,6 +90,7 @@
     void aboutOSSP(void);               // Learn more about the OSSP
     void aboutQt(void);                 // Learn more about Qt
     void selAll(void);                  // Edit menu select all
+    void inplaceEdit(int, int, int, const QPoint &); // Enter in place edit mode
     void updEdit(int, int);             // Update edit controls
     void confirmEdit(void);             // Confirm recent edition
     void configPrefs(void);             // Edit menu configure preferences


ossp-pkg/as/as-gui/as_slot.cpp 1.23 -> 1.24

--- as_slot.cpp  2002/11/26 23:26:07     1.23
+++ as_slot.cpp  2002/11/27 18:40:15     1.24
@@ -184,6 +184,16 @@
 }
 
 //
+// Edit a table entry in place, without the usual edit controls
+//
+void Titraqform::inplaceEdit(int nRow, int nCol, int nButton, const QPoint &Mousepos)
+{
+    m_pMaintable->setReadOnly(false);
+    m_pMaintable->editCell(nRow, nCol);
+    m_pMaintable->setReadOnly(true);
+}
+
+//
 // Update the edit controls contents
 //
 void Titraqform::updEdit(int nRow, int nCol)




CVSTrac 2.0.1