OSSP CVS Repository

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

Check-in Number: 3823
Date: 2002-Dec-03 20:07:55 (local)
2002-Dec-03 19:07:55 (UTC)
User:ms
Branch:
Comment: Implement rudimentary bottom widget edit connections to main table text cells.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_assist.cpp      1.40 -> 1.41     7 inserted, 6 deleted
ossp-pkg/as/as-gui/as_gui.h      1.37 -> 1.38     6 inserted, 0 deleted
ossp-pkg/as/as-gui/as_slot.cpp      1.31 -> 1.32     48 inserted, 0 deleted

ossp-pkg/as/as-gui/as_assist.cpp 1.40 -> 1.41

--- as_assist.cpp        2002/12/03 18:46:25     1.40
+++ as_assist.cpp        2002/12/03 19:07:55     1.41
@@ -626,10 +626,11 @@
     // Start edit controls off at right size
     this->updSizes(TITRAQ_IDXALLCTRLS, -1, -1);
 
-//    // Signals
-//    connect(m_pDateedit, SIGNAL(valueChanged(const QDate &date)), this, SLOT(updateDate()));
-//    connect(m_pStarttime, SIGNAL(valueChanged(const QTime &time)), this, SLOT(updateStart()));
-//    connect(m_pEndtime, SIGNAL(valueChanged(const QTime &time)), this, SLOT(updateFinish()));
-//    connect(m_pAmount, SIGNAL(valueChanged(int value), this, SLOT(updateAmount()));
-//    connect(m_pTasks, SIGNAL(textChanged(const QString &string), this, SLOT(updateTask()));
+    // Signals
+    connect(m_pDateedit, SIGNAL(valueChanged(const QDate &)), this, SLOT(updateDate(const QDate &)));
+    connect(m_pStarttime, SIGNAL(valueChanged(const QTime &)), this, SLOT(updateStart(const QTime &)));
+    connect(m_pEndtime, SIGNAL(valueChanged(const QTime &)), this, SLOT(updateFinish(const QTime &)));
+    connect(m_pAmount, SIGNAL(valueChanged(int)), this, SLOT(updateAmount(int)));
+    connect(m_pTasks, SIGNAL(textChanged(const QString &)), this, SLOT(updateTask(const QString &)));
+    connect(m_pRemark, SIGNAL(textChanged(const QString &)), this, SLOT(updateRemark(const QString &)));
 }


ossp-pkg/as/as-gui/as_gui.h 1.37 -> 1.38

--- as_gui.h     2002/12/03 17:05:11     1.37
+++ as_gui.h     2002/12/03 19:07:55     1.38
@@ -127,6 +127,12 @@
     void inplaceEdit(int, int, int, const QPoint &); // Enter in place edit mode
     void updEdit(int, int);             // Update edit controls
     void updSizes(int, int, int);       // Update edit sizes
+    void updateDate(const QDate &);     // Update date column
+    void updateStart(const QTime &);    // Update start column
+    void updateFinish(const QTime &);   // Update finish column
+    void updateAmount(int);             // Update amount column
+    void updateTask(const QString &);   // Update task column
+    void updateRemark(const QString &); // Update remark column
     void confirmEdit(void);             // Confirm whole row edition
     void configPrefs(void);             // Edit menu configure preferences
     void normalView(void);              // View menu normal


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

--- as_slot.cpp  2002/12/03 17:05:11     1.31
+++ as_slot.cpp  2002/12/03 19:07:55     1.32
@@ -314,6 +314,54 @@
 }
 
 //
+// Update the current date column item
+//
+void Titraqform::updateDate(const QDate &Dateup)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXDATE, Dateup.toString(Qt::ISODate));
+}
+
+//
+// Update the current start column item
+//
+void Titraqform::updateStart(const QTime &Startup)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXSTART, Startup.toString(Qt::ISODate));
+}
+
+//
+// Update the current finish column item
+//
+void Titraqform::updateFinish(const QTime &Finishup)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXFINISH, Finishup.toString(Qt::ISODate));
+}
+
+//
+// Update the current amount column item
+//
+void Titraqform::updateAmount(int nAmountup)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXAMOUNT, trUtf8("%1").arg(nAmountup));
+}
+
+//
+// Update the current task column item
+//
+void Titraqform::updateTask(const QString &Taskup)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXTASK, Taskup);
+}
+
+//
+// Update the current remark column item
+//
+void Titraqform::updateRemark(const QString &Remarkup)
+{
+    m_pMaintable->setText(m_pMaintable->currentRow(), TITRAQ_IDXREMARK, Remarkup);
+}
+
+//
 // Confirm any recent editions on a whole row
 //
 void Titraqform::confirmEdit(void)

CVSTrac 2.0.1