OSSP CVS Repository

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

Check-in Number: 2901
Date: 2002-Nov-26 22:18:48 (local)
2002-Nov-26 21:18:48 (UTC)
User:ms
Branch:
Comment: Doch, use a push button to confirm edition of a task tuple.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_assist.cpp      1.25 -> 1.26     16 inserted, 1 deleted
ossp-pkg/as/as-gui/as_gui.h      1.28 -> 1.29     3 inserted, 0 deleted
ossp-pkg/as/as-gui/as_slot.cpp      1.20 -> 1.21     9 inserted, 2 deleted
ossp-pkg/titraq/titassist.cpp      1.25 -> 1.26     16 inserted, 1 deleted
ossp-pkg/titraq/titraq.h      1.28 -> 1.29     3 inserted, 0 deleted
ossp-pkg/titraq/titslot.cpp      1.20 -> 1.21     9 inserted, 2 deleted

ossp-pkg/as/as-gui/as_assist.cpp 1.25 -> 1.26

--- as_assist.cpp        2002/11/26 20:38:19     1.25
+++ as_assist.cpp        2002/11/26 21:18:48     1.26
@@ -215,7 +215,7 @@
         throw Genexcept("Main window menu bar nonexistant.");
 
     // Make an easter egg ;-)
-    QToolTip::add(m_pMenubar, QRect(0, 0, 2, 2), "Easter egg");
+    QToolTip::add(m_pMenubar, QRect(0, 0, 2, 2), "Easter Egg");
 
     // Construct and populate the file menu with actions
     QPopupMenu *pFilepopup = new QPopupMenu(this);
@@ -554,6 +554,21 @@
                                        " have about the task.");
     QWhatsThis::add(m_pRemark, kszRemarktext);
 
+    // Tuple push button confirm
+    m_pConfirmbutton = new QPushButton(m_pCenframe, "Confirmbutton");
+    if (m_pConfirmbutton == NULL)   // Sanity check
+        throw Genexcept("Main window confirm button creation failed.");
+    m_pConfirmbutton->setCursor(QCursor(13));
+    m_pConfirmbutton->setText(trUtf8("&Confirm"));
+    QToolTip::add(m_pConfirmbutton, trUtf8("Confirm Editing"));
+    connect(m_pConfirmbutton, SIGNAL(clicked()), this, SLOT(confirmEdit()));
+    m_pTasklayout->addWidget(m_pConfirmbutton); // Finally add the confirm button
+
+    // Whatsthis info for the confirm button
+    const char *kszConfirmtext = trUtf8("Confirm any <em>row edition</em> by "
+                                        "finally clicking on this button.");
+    QWhatsThis::add(m_pConfirmbutton, kszConfirmtext);
+
 //    // Signals
 //    m_pDateedit->valueChanged(const QDate &date);
 //    m_pStarttime->valueChanged(const QTime &time);


ossp-pkg/as/as-gui/as_gui.h 1.28 -> 1.29

--- as_gui.h     2002/11/26 20:38:19     1.28
+++ as_gui.h     2002/11/26 21:18:48     1.29
@@ -12,6 +12,7 @@
 #include <qdatetimeedit.h>
 #include <qspinbox.h>
 #include <qlineedit.h>
+#include <qpushbutton.h>
 #include <qlayout.h>
 #include <qfile.h>
 
@@ -70,6 +71,7 @@
     AmountBox   *m_pAmount;
     QComboBox   *m_pTasks;
     QLineEdit   *m_pRemark;
+    QPushButton *m_pConfirmbutton;
 
 protected slots:
     void cutEntry(void);                // Cut a task entry from the list
@@ -87,6 +89,7 @@
     void aboutQt(void);                 // Learn more about Qt
     void selAll(void);                  // Edit menu select all
     void updEdit(int, int);             // Update edit controls
+    void confirmEdit(void);             // Confirm recent edition
     void configPrefs(void);             // Edit menu configure preferences
     void editingView(void);             // View menu editing
     void timingView(void);              // View menu timing


ossp-pkg/as/as-gui/as_slot.cpp 1.20 -> 1.21

--- as_slot.cpp  2002/11/26 20:38:19     1.20
+++ as_slot.cpp  2002/11/26 21:18:48     1.21
@@ -222,6 +222,13 @@
 }
 
 //
+// Confirm any recent editions on a single row
+//
+void Titraqform::confirmEdit(void)
+{
+}
+
+//
 // Edit menu configure preferences
 //
 void Titraqform::configPrefs(void)
@@ -235,8 +242,8 @@
 //
 void Titraqform::editingView(void)
 {
-    Prototype Unimp;
-    Unimp.doMbox();
+    // All other view types are disabled until implemention, so this
+    // body can remain empty, causing nothing to happen on selection.
 }
 
 //




CVSTrac 2.0.1