*** /dev/null Sat Nov 23 01:54:16 2024
--- - Sat Nov 23 01:54:25 2024
***************
*** 0 ****
--- 1,92 ----
+ #include "titraq.h"
+
+ #include <qvariant.h>
+ #include <qlineedit.h>
+ #include <qpushbutton.h>
+ #include <qtable.h>
+ #include <qmime.h>
+ #include <qdragobject.h>
+ #include <qlayout.h>
+ #include <qtooltip.h>
+ #include <qwhatsthis.h>
+ #include <qimage.h>
+ #include <qpixmap.h>
+
+ // Used in initialization of the application
+ void Titraqform::init()
+ {
+ pDeletebutton->setBackgroundColor(darkYellow);
+ pMaintable->setFocus();
+ }
+
+ //
+ // Construct a Titraqform which is a child of 'pParent', with the
+ // name 'kszName' and widget flags set to 'Flags'
+ //
+
+ Titraqform::Titraqform(QWidget *pParent, const char *kszName, bool bModal,
+ WFlags Flags) : QDialog(pParent, kszName, bModal, Flags)
+ {
+ if (!kszName)
+ setName("Titraqform");
+ resize(600, 480);
+ setCaption(trUtf8("OpenPKG Friend"));
+ pTitraqformlayout = new QVBoxLayout(this, 11, 6, "pTitraqformlayout");
+
+ // Contains the package layout and control layout
+ pMainlayout = new QVBoxLayout(0, 0, 6, "pMainlayout");
+
+ // Contains the table control and status line control
+ pPackagelayout = new QVBoxLayout(0, 0, 6, "pPackagelayout");
+
+ pMaintable = new QTable(this, "pMaintable");
+ pMaintable->setNumRows(10);
+ pMaintable->setNumCols(6);
+ pMaintable->setReadOnly(FALSE);
+ pPackagelayout->addWidget(pMaintable);
+
+ pStatusline = new QLineEdit(this, "pStatusline");
+ pStatusline->setFrameShape(QLineEdit::LineEditPanel);
+ pStatusline->setFrameShadow(QLineEdit::Sunken);
+ pStatusline->setFrame(TRUE);
+ pStatusline->setReadOnly(TRUE);
+ pPackagelayout->addWidget(pStatusline);
+ pMainlayout->addLayout(pPackagelayout);
+
+ // Contains all the push button controls
+ pControllayout = new QHBoxLayout(0, 0, 6, "pControllayout");
+
+ pInstallbutton = new QPushButton(this, "pInstallbutton");
+ pInstallbutton->setCursor(QCursor(13));
+ pInstallbutton->setText(trUtf8("&Install"));
+ pInstallbutton->setFlat(FALSE);
+ pControllayout->addWidget(pInstallbutton);
+
+ pDeletebutton = new QPushButton(this, "pDeletebutton");
+ pDeletebutton->setCursor(QCursor(13));
+ pDeletebutton->setText(trUtf8("&Delete"));
+ pControllayout->addWidget(pDeletebutton);
+
+ pVerifybutton = new QPushButton(this, "VerifyButton");
+ pVerifybutton->setCursor(QCursor(13));
+ pVerifybutton->setText(trUtf8("&Verify"));
+ pControllayout->addWidget(pVerifybutton);
+
+ pCommitbutton = new QPushButton(this, "pCommitbutton");
+ pCommitbutton->setPaletteBackgroundColor(QColor(186, 156, 144));
+ pCommitbutton->setCursor(QCursor(13));
+ pCommitbutton->setText(trUtf8("&Commit"));
+ pControllayout->addWidget(pCommitbutton);
+ pMainlayout->addLayout(pControllayout);
+ pTitraqformlayout->addLayout(pMainlayout);
+
+ init(); // signals and slots connections
+ }
+
+ //
+ // Destroy the object and free any allocated resources
+ //
+ Titraqform::~Titraqform()
+ {
+ // Qt deletes child widgets for us
+ }
|