--- as_assist.cpp 2002/12/13 17:44:42 1.65
+++ as_assist.cpp 2002/12/13 20:50:18 1.66
@@ -68,6 +68,9 @@
#include "as_gfx/rowdel.xpm" // static const char *s_kpcRowdel_xpm[]
#include "as_gfx/osspicon.xpm" // static const char *s_kpcOsspicon_xpm[]
#include "as_gfx/whatsthis.xpm" // static const char *s_kpcWhatsthis_xpm[]
+#include "as_gfx/statok.xpm" // static const char *s_kpcStatokay_xpm[]
+#include "as_gfx/staterr.xpm" // static const char *s_kpcStaterror_xpm[]
+#include "as_gfx/statwrn.xpm" // static const char *s_kpcStatwarn_xpm[]
//
@@ -526,6 +529,7 @@
// Table update signals
connect(m_pMaintable, SIGNAL(currentChanged(int, int)), this, SLOT(updEdit(int, int)));
+ connect(m_pMaintable, SIGNAL(currentChanged(int, int)), this, SLOT(validateData(int, int)));
connect(m_pMaintable, SIGNAL(doubleClicked(int, int, int, const QPoint&)), this, SLOT(inplaceEdit(int, int, int, const QPoint&)));
connect(m_pTablehead, SIGNAL(sizeChange(int, int, int)), this, SLOT(updSizes(int, int, int)));
connect(m_pMaintable, SIGNAL(valueChanged(int, int)), this, SLOT(dataChanged(void)));
@@ -541,14 +545,10 @@
// m_pEditlayout->addWidget(&Pad); // Padd left side of control layout
// Make the status edit
- m_pStatusedit = new QLineEdit(m_pCenframe, "Status");
+ m_pStatusedit = new QLabel(m_pCenframe, "Status");
if (m_pStatusedit == NULL) // Sanity check
throw Genexcept("Main window status edit creation failed.");
- m_pStatusedit->setText(trUtf8("0"));
- m_pStatusedit->setFrameShape(QLineEdit::LineEditPanel);
- m_pStatusedit->setFrameShadow(QLineEdit::Sunken);
- m_pStatusedit->setFrame(true);
- m_pStatusedit->setReadOnly(true);
+ m_pStatusedit->setPixmap(QPixmap(s_kpcStatwarn_xpm));
QToolTip::add(m_pStatusedit, trUtf8("Status Item"));
m_pEditlayout->addWidget(m_pStatusedit); // Finally add the item status edit
@@ -783,7 +783,6 @@
this->updSizes(TITRAQ_IDXALLCTRLS, -1, -1);
// Signals sent between table cells and corresponding edit control widgets
- connect(m_pStatusedit, SIGNAL(textChanged(const QString &)), this, SLOT(updateStatus(const QString &)));
connect(m_pLineedit, SIGNAL(textChanged(const QString &)), this, SLOT(updateLine(const QString &)));
connect(m_pUseredit, SIGNAL(textChanged(const QString &)), this, SLOT(updateUser(const QString &)));
connect(m_pGuidedit, SIGNAL(textChanged(const QString &)), this, SLOT(updateGuid(const QString &)));
|