OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_assist.cpp versions 1.55 and 1.56
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_assist.cpp 1.55 -> 1.56

--- as_assist.cpp        2002/12/10 14:23:58     1.55
+++ as_assist.cpp        2002/12/11 16:00:47     1.56
@@ -347,29 +347,29 @@
     m_pViewpopup->insertSeparator();
     m_pViewpopup->insertItem(trUtf8("&Columns"), m_pColspopup);
     nMenuid = m_pColspopup->insertItem(trUtf8("&Status"), this, SLOT(showStatcol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
     nMenuid = m_pColspopup->insertItem(trUtf8("&Line"), this, SLOT(showLinecol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
     nMenuid = m_pColspopup->insertItem(trUtf8("&User"), this, SLOT(showUsercol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
     nMenuid = m_pColspopup->insertItem(trUtf8("&GUID"), this, SLOT(showGuidcol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
     nMenuid = m_pColspopup->insertItem(trUtf8("&CRC"), this, SLOT(showCrccol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
     nMenuid = m_pColspopup->insertItem(trUtf8("&Rev"), this, SLOT(showRevcol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
     nMenuid = m_pColspopup->insertItem(trUtf8("&Date"), this, SLOT(showDatecol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
     nMenuid = m_pColspopup->insertItem(trUtf8("&Start"), this, SLOT(showStartcol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
     nMenuid = m_pColspopup->insertItem(trUtf8("&Finish"), this, SLOT(showFinishcol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
     nMenuid = m_pColspopup->insertItem(trUtf8("&Amount"), this, SLOT(showAmountcol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
     nMenuid = m_pColspopup->insertItem(trUtf8("&Task"), this, SLOT(showTaskcol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
     nMenuid = m_pColspopup->insertItem(trUtf8("&Remark"), this, SLOT(showRemarkcol()));
-    m_pColspopup->setItemEnabled(nMenuid, false);
+    m_pColspopup->setItemChecked(nMenuid, true);
 
     // Pad spacing to force help menu to appear far right
     m_pMenubar->insertSeparator();
@@ -492,11 +492,13 @@
     // Table header row
     m_pTablehead = m_pMaintable->horizontalHeader();
     m_pMaintable->setHScrollBarMode(QScrollView::AlwaysOff);
+    m_pTablehead->setLabel(TITRAQ_IDXSTATUS, QObject::trUtf8("Stat"), 32);
+    m_pTablehead->setLabel(TITRAQ_IDXLINE, QObject::trUtf8("Line"), 32);
     m_pTablehead->setLabel(TITRAQ_IDXUSER, QObject::trUtf8("User"), 32);
     m_pTablehead->setLabel(TITRAQ_IDXGUID, QObject::trUtf8("GUID"), 36);
     m_pTablehead->setLabel(TITRAQ_IDXCRC, QObject::trUtf8("CRC"), 32);
     m_pTablehead->setLabel(TITRAQ_IDXREV, QObject::trUtf8("Rev"), 32);
-    m_pTablehead->setLabel(TITRAQ_IDXDATE, QObject::trUtf8("Date"), 90);
+    m_pTablehead->setLabel(TITRAQ_IDXDATE, QObject::trUtf8("Date"), 94);
     m_pTablehead->setLabel(TITRAQ_IDXSTART, QObject::trUtf8("Begin"), 80);
     m_pTablehead->setLabel(TITRAQ_IDXFINISH, QObject::trUtf8("End"), 80);
     m_pTablehead->setLabel(TITRAQ_IDXAMOUNT, QObject::trUtf8("Amount"), 98);
@@ -520,6 +522,42 @@
 //    QSpacerItem Pad(TITRAQ_SPACING / 2, 0, QSizePolicy::Fixed);
 //    m_pEditlayout->addWidget(&Pad); // Padd left side of control layout
 
+    // Make the status edit
+    m_pStatusedit = new QLineEdit(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);
+    QToolTip::add(m_pStatusedit, trUtf8("Status Item"));
+    m_pEditlayout->addWidget(m_pStatusedit);  // Finally add the item status edit
+
+    // Whatsthis info for the item status edit
+    const char *kszStatustext = "The <em>item status</em> shows a green "
+                                "symbol for valid entries, a yellow symbol "
+                                "to warn, and a red symbol for flawed entries.";
+    QWhatsThis::add(m_pStatusedit, kszStatustext);
+
+    // Make the line number edit
+    m_pLineedit = new QLineEdit(m_pCenframe, "Lineno");
+    if (m_pLineedit == NULL) // Sanity check
+        throw Genexcept("Main window line number edit creation failed.");
+    m_pLineedit->setText(trUtf8("0"));
+    m_pLineedit->setFrameShape(QLineEdit::LineEditPanel);
+    m_pLineedit->setFrameShadow(QLineEdit::Sunken);
+    m_pLineedit->setFrame(true);
+    m_pLineedit->setReadOnly(true);
+    QToolTip::add(m_pLineedit, trUtf8("Line Number"));
+    m_pEditlayout->addWidget(m_pLineedit);  // Finally add the line number edit
+
+    // Whatsthis info for the line number edit
+    const char *kszLinenotext = "The <em>line number</em> helps identify "
+                                "an entry when a warning or error message "
+                                "appears.";
+    QWhatsThis::add(m_pLineedit, kszLinenotext);
+
     // Make the user edit
     m_pUseredit = new QLineEdit(m_pCenframe, "User");
     if (m_pUseredit == NULL) // Sanity check

CVSTrac 2.0.1