00001
00002
00003
00004
00005
00006
00007
00008 #ifndef CREATEVIEWDIALOG_H
00009 #define CREATEVIEWDIALOG_H
00010
00011 #include <qwidget.h>
00012
00013 #include "ui_createviewdialog.h"
00014
00015
00019 class CreateViewDialog : public QDialog
00020 {
00021 Q_OBJECT
00022
00023 public:
00024 CreateViewDialog(const QString & name, const QString & schema, QWidget * parent = 0);
00025 ~CreateViewDialog(){};
00026
00027 bool update;
00028 void setText(const QString & text) { ui.sqlEdit->setText(text); };
00029
00030 QString schema() { return m_schema; };
00031 QString name() { return m_name; };
00032
00033 private:
00034 Ui::CreateViewDialog ui;
00035
00036 QString m_schema;
00037 QString m_name;
00038
00039 private slots:
00040 void createButton_clicked();
00041 void nameEdit_textChanged(const QString& text);
00042 };
00043
00044 #endif