ossp-pkg/as/as-gui/as_gui.h 1.2 -> 1.3
--- as_gui.h 2002/11/11 21:39:08 1.2
+++ as_gui.h 2002/11/12 19:16:00 1.3
@@ -1,12 +1,11 @@
#ifndef OPKGFORM_H
#define OPKGFORM_H
-#include <qdialog.h>
+#include <qmainwindow.h>
#include <qtable.h>
#include <qheader.h>
#include <qimage.h>
#include <qpixmap.h>
-#include <qstringlist.h>
#include <qpushbutton.h>
#include <qlineedit.h>
#include <qlayout.h>
@@ -17,13 +16,12 @@
const int knCols = 6;
// Main application form window
-class Titraqform : public QDialog
+class Titraqform : public QMainWindow
{
Q_OBJECT // Needed for MOC object model generation
public:
- Titraqform(QWidget *pParent = 0, const char *kszName = 0,
- bool bModal = false, WFlags Flags = 0);
+ Titraqform(QWidget *pParent = 0, const char *kszName = 0, WFlags Flags = 0);
~Titraqform();
// Table, cells, and entries in package layout
@@ -31,24 +29,30 @@
QHeader *pTablehead;
QImage *pIconimage;
QPixmap *pIconpixmap;
- QStringList *pComboentries;
+ QStringList *pTaskentries;
// Push buttons in control layout
QPushButton *pAddbutton;
QPushButton *pDeletebutton;
QPushButton *pWritebutton;
+ QPushButton *pQuitbutton;
// Line edit for status
QLineEdit *pStatus;
protected slots:
virtual void init(); // Override init to include custom controls
+ void addEntry();
+ void delEntry();
+ void writeEntry();
protected:
QVBoxLayout *pTitraqformlayout; // Main form layout
QVBoxLayout *pMainlayout; // Package and control layouts
QVBoxLayout *pPackagelayout; // Main table control
QHBoxLayout *pControllayout; // Lower control buttons
+
+private:
};
#endif // OPKGFORM_H
|
|