OSSP CVS Repository

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

ossp-pkg/as/as-gui/as_assist.cpp 1.66 -> 1.67

--- as_assist.cpp        2002/12/13 20:50:18     1.66
+++ as_assist.cpp        2002/12/13 21:25:32     1.67
@@ -548,7 +548,6 @@
     m_pStatusedit = new QLabel(m_pCenframe, "Status");
     if (m_pStatusedit == NULL) // Sanity check
         throw Genexcept("Main window status edit creation failed.");
-    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
 
@@ -562,11 +561,11 @@
     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);
+    m_pLineedit->setEnabled(false);
     m_pLineedit->setAlignment(Qt::AlignRight);
     QToolTip::add(m_pLineedit, trUtf8("Line Number"));
     m_pEditlayout->addWidget(m_pLineedit);  // Finally add the line number edit
@@ -581,11 +580,11 @@
     m_pUseredit = new QLineEdit(m_pCenframe, "User");
     if (m_pUseredit == NULL) // Sanity check
         throw Genexcept("Main window user edit creation failed.");
-    m_pUseredit->setText(m_pPrefs->getString(TITRAQ_PREFUSER, TITRAQ_DEFUSER));
     m_pUseredit->setFrameShape(QLineEdit::LineEditPanel);
     m_pUseredit->setFrameShadow(QLineEdit::Sunken);
     m_pUseredit->setFrame(true);
     m_pUseredit->setReadOnly(false);
+    m_pUseredit->setEnabled(false);
     QToolTip::add(m_pUseredit, trUtf8("User Name"));
     m_pEditlayout->addWidget(m_pUseredit);  // Finally add the user edit
 
@@ -599,11 +598,11 @@
     m_pGuidedit = new QLineEdit(m_pCenframe, "Guid");
     if (m_pGuidedit == NULL) // Sanity check
         throw Genexcept("Main window GUID edit creation failed.");
-    m_pGuidedit->setText(trUtf8("."));
     m_pGuidedit->setFrameShape(QLineEdit::LineEditPanel);
     m_pGuidedit->setFrameShadow(QLineEdit::Sunken);
     m_pGuidedit->setFrame(true);
     m_pGuidedit->setReadOnly(true);
+    m_pGuidedit->setEnabled(false);
     QToolTip::add(m_pGuidedit, trUtf8("GUID"));
     m_pEditlayout->addWidget(m_pGuidedit);  // Finally add the GUID edit
 
@@ -617,11 +616,11 @@
     m_pCrcedit = new QLineEdit(m_pCenframe, "Crc");
     if (m_pCrcedit == NULL) // Sanity check
         throw Genexcept("Main window CRC edit creation failed.");
-    m_pCrcedit->setText(trUtf8("."));
     m_pCrcedit->setFrameShape(QLineEdit::LineEditPanel);
     m_pCrcedit->setFrameShadow(QLineEdit::Sunken);
     m_pCrcedit->setFrame(true);
     m_pCrcedit->setReadOnly(true);
+    m_pCrcedit->setEnabled(false);
     QToolTip::add(m_pCrcedit, trUtf8("CRC"));
     m_pEditlayout->addWidget(m_pCrcedit);  // Finally add the CRC edit
 
@@ -635,11 +634,11 @@
     m_pRevedit = new QLineEdit(m_pCenframe, "Revision");
     if (m_pRevedit == NULL) // Sanity check
         throw Genexcept("Main window revision edit creation failed.");
-    m_pRevedit->setText(trUtf8("."));
     m_pRevedit->setFrameShape(QLineEdit::LineEditPanel);
     m_pRevedit->setFrameShadow(QLineEdit::Sunken);
     m_pRevedit->setFrame(true);
     m_pRevedit->setReadOnly(true);
+    m_pRevedit->setEnabled(false);
     QToolTip::add(m_pRevedit, trUtf8("Revision"));
     m_pEditlayout->addWidget(m_pRevedit);  // Finally add the revision edit
 
@@ -659,6 +658,7 @@
     m_pDateedit->setOrder(QDateEdit::YMD);
     m_pDateedit->setAutoAdvance(true);
     m_pDateedit->setSeparator(trUtf8("."));
+    m_pDateedit->setEnabled(false);
 
     m_pEditlayout->addWidget(m_pDateedit);                          // Finally add the date editor
     QToolTip::add(m_pDateedit, trUtf8("Task Date"));
@@ -677,6 +677,7 @@
     // Configure attributes
     m_pStarttime->setDisplay(QTimeEdit::Hours | QTimeEdit::Minutes);
     m_pStarttime->setAutoAdvance(true);
+    m_pStarttime->setEnabled(false);
 
     m_pEditlayout->addWidget(m_pStarttime);                         // Finally add the start editor
     QToolTip::add(m_pStarttime, trUtf8("Task Starting Time"));
@@ -695,6 +696,7 @@
     // Configure attributes
     m_pEndtime->setDisplay(QTimeEdit::Hours | QTimeEdit::Minutes);
     m_pEndtime->setAutoAdvance(true);
+    m_pEndtime->setEnabled(false);
 
     m_pEditlayout->addWidget(m_pEndtime);                           // Finally add the end editor
     QToolTip::add(m_pEndtime, trUtf8("Task Ending Time"));
@@ -713,6 +715,7 @@
     // Configure attributes
     m_pAmount->setButtonSymbols(QSpinBox::PlusMinus);
     m_pAmount->setSuffix(trUtf8(" Minutes"));
+    m_pAmount->setEnabled(false);
 //    m_pAmount->setSpecialValueText(trUtf8("In progress"));
 
     m_pEditlayout->addWidget(m_pAmount);    // Finally add the amount editor
@@ -748,6 +751,7 @@
     m_pTasks->setCurrentText(NULL);
     m_pTasks->setAutoCompletion(true);
     m_pTasks->setDuplicatesEnabled(false);
+    m_pTasks->setEnabled(false);
 //    m_pTasks->setEditable(false);   // Only idiots define noneditable and autocompletion
 
     // Add an auto scroll bar if possible under current GUI style
@@ -765,11 +769,11 @@
     m_pRemark = new QLineEdit(m_pCenframe, "Remark");
     if (m_pRemark == NULL)  // Sanity check
         throw Genexcept("Main window remark line creation failed.");
-    m_pRemark->setText(trUtf8("Happy birthday to Ralf"));
     m_pRemark->setFrameShape(QLineEdit::LineEditPanel);
     m_pRemark->setFrameShadow(QLineEdit::Sunken);
     m_pRemark->setFrame(true);
     m_pRemark->setReadOnly(false);
+    m_pRemark->setEnabled(false);
     QToolTip::add(m_pRemark, trUtf8("Remark Line"));
     m_pEditlayout->addWidget(m_pRemark);    // Finally add the remark line
 

CVSTrac 2.0.1