Go to the documentation of this file.00001 #ifndef CREATEVIEW_H
00002 #define CREATEVIEW_H
00003
00004 #include <QDialog>
00005 #include <QtSql>
00006
00007 namespace Ui {
00008 class CreateView;
00009 }
00010
00011 class CreateView : public QDialog
00012 {
00013 Q_OBJECT
00014
00015 public:
00016 explicit CreateView(QWidget *parent = 0);
00017 ~CreateView();
00018 QSqlDatabase db;
00019 QString dbName;
00020 QString viewToAlter;
00021 void generateQuery();
00022 void setDbName();
00023 void startAlter();
00024 private:
00025 Ui::CreateView *ui;
00026 bool isNew;
00027
00028 private slots:
00029 void on_cmdExecute_clicked();
00030 void on_cmdCancel_clicked();
00031 void on_txtViewQuery_textChanged();
00032 void on_txtViewName_textEdited(QString );
00033 };
00034
00035 #endif // CREATEVIEW_H