ossp-pkg/as/as-gui/as_gui.h 1.5 -> 1.6
--- as_gui.h 2002/11/13 16:36:58 1.5
+++ as_gui.h 2002/11/14 18:19:29 1.6
@@ -3,6 +3,7 @@
#include <qapplication.h>
#include <qmainwindow.h>
+#include <qaction.h>
#include <qtable.h>
#include <qmenubar.h>
#include <qtoolbar.h>
@@ -26,6 +27,11 @@
Titraqform(QWidget *pParent = 0, const char *kszName = 0, WFlags Flags = 0);
~Titraqform();
+ // Main application actions
+ QAction *m_pFilenewact, *m_pFileopenact;
+ QAction *m_pFilesaveact, *m_pFilesaveasact;
+ QAction *m_pFilecloseact, *m_pFilequitact;
+
// Table, cells, and entries in package layout
QTable *m_pMaintable;
QHeader *m_pTablehead;
@@ -47,8 +53,19 @@
void addEntry(void); // Add a task entry to the list
void delEntry(void); // Delete a task entry from the list
void writeEntry(void); // Write the task list to a filedescriptor
+ void newDoc(void); // Make and display a new document window
+ void choose(void); // Choose a file using a handy file dialog
+ void load(const QString &); // Load accounting data into main window
+ void save(void); // Serialize to the current file
+ void saveAs(void); // Serialize to a selected file
+ void about(void); // Learn more about this program itself
+ void aboutQt(void); // Learn more about this program and Qt
protected:
+ // Application main events
+ void closeEvent(QCloseEvent *); // Close current document in main window
+
+ // Application main window widgets
QFrame *m_pCenframe; // Central frame
QVBoxLayout *m_pTitraqformlayout; // Main form layout
QVBoxLayout *m_pMainlayout; // Package and control layouts
@@ -60,6 +77,9 @@
QMenuBar *m_pMenubar;
QToolBar *m_pToolbar;
QStatusBar *m_pStatbar;
+ QString *m_szFilename;
+
+ bool isDirty(void); // Check for changed state danger
};
#endif // TITRAQMWIN_H
|
|