Index: ossp-pkg/as/as-gui/as_assist.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_assist.cpp,v rcsdiff -q -kk '-r1.25' '-r1.26' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_assist.cpp,v' 2>/dev/null --- 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 row edition by " + "finally clicking on this button."); + QWhatsThis::add(m_pConfirmbutton, kszConfirmtext); + // // Signals // m_pDateedit->valueChanged(const QDate &date); // m_pStarttime->valueChanged(const QTime &time); Index: ossp-pkg/as/as-gui/as_gui.h RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_gui.h,v rcsdiff -q -kk '-r1.28' '-r1.29' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_gui.h,v' 2>/dev/null --- 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 #include #include +#include #include #include @@ -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 Index: ossp-pkg/as/as-gui/as_slot.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v rcsdiff -q -kk '-r1.20' '-r1.21' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v' 2>/dev/null --- 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. } //