Go to the documentation of this file.00001 #ifndef INDEXEDITOR_H
00002 #define INDEXEDITOR_H
00003
00004 #include <QDialog>
00005 #include <QtSql>
00006 namespace Ui {
00007 class IndexEditor;
00008 }
00009
00010 class IndexEditor : public QDialog
00011 {
00012 Q_OBJECT
00013
00014 public:
00015 explicit IndexEditor(QWidget *parent = 0);
00016 ~IndexEditor();
00017
00018 void newIndex();
00019 void editIndex();
00020 QSqlDatabase db;
00021 QString dbName;
00022 QString tableName;
00023 QString indexName;
00024 bool isNew;
00025 private:
00026 Ui::IndexEditor *ui;
00027 void loadColumns();
00028
00029 private slots:
00030 void on_cmdApplyChanges_clicked();
00031 };
00032
00033 #endif // INDEXEDITOR_H