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.40' '-r1.41' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_assist.cpp,v' 2>/dev/null --- 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 &))); } 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.37' '-r1.38' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_gui.h,v' 2>/dev/null --- 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 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.31' '-r1.32' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_slot.cpp,v' 2>/dev/null --- 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)