Go to the documentation of this file.00001 #ifndef TABLEEDITOR_H
00002 #define TABLEEDITOR_H
00003
00004 #include <QDialog>
00005 #include <QPushButton>
00006 #include <QDialogButtonBox>
00007 #include <QSqlTableModel>
00008
00009 #include "database.h"
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00036 class TableEditor : public QDialog
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 TableEditor(const QString &tableName, QWidget *parent = 0);
00042 ~TableEditor();
00043
00044 private slots:
00045 void submit();
00046 void addNewRecord();
00047
00048 private:
00049 QPushButton *submitButton;
00050 QPushButton *revertButton;
00051 QPushButton *quitButton;
00052 QPushButton *addNewRecordButton;
00053
00054 QDialogButtonBox *buttonBox;
00055 QSqlTableModel *model;
00056 };
00057
00058 #endif