Go to the documentation of this file.00001 #ifndef MAINPAGE_H
00002 #define MAINPAGE_H
00003
00004 #include <QMainWindow>
00005 #include <QtGui>
00006 #include "servereditor.h"
00007 #include "tableeditor.h"
00008 #include "sqldump.h"
00009 #include "tablebackup.h"
00010 #include "exporttable.h"
00011 #include "manageindexes.h"
00012 #include "createview.h"
00013 class QSignalMapper;
00014 namespace Ui {
00015 class MainPage;
00016 }
00017
00018 class MainPage : public QMainWindow
00019 {
00020 Q_OBJECT
00021
00022 public:
00023 explicit MainPage(QWidget *parent = 0);
00024 ~MainPage();
00025 QComboBox *m_CboCurrentDb;
00026 QLabel *connectionCounter;
00027 QLabel *currentTime;
00028 QToolBar *tableToolBar;
00029 QComboBox *m_cboThemes;
00030
00031 private:
00032 Ui::MainPage *ui;
00033 ServerEditor *activeServerEditor();
00034 tableEditor *activeTableEditor();
00035 SQLDump *activeSqlDump();
00036 TableBackup *tabBackup;
00037 QSignalMapper *windowMapper;
00038 QActionGroup *m_QueryEditorActions;
00039 bool hasMdiChild();
00040 bool hasTableEditor();
00041 bool hasSQLDump();
00042 Qt::WindowFlags flags;
00043 QActionGroup *windowStyle;
00044 QAction *mdi;
00045 QAction *tabbed;
00046 private slots:
00047 void connectToServer();
00048 void refreshMenus();
00049 void closeConnection();
00050 void cascade();
00051 void selectionChanged();
00052 void tileWindows();
00053 void showWindowMenu();
00054 void setUpToolBar();
00055 void setUpStatusBar();
00056 void setActiveSubWindow(QWidget *window);
00057 void newDatabase();
00058 void showDbList(QStringList dbList);
00059 void setCurrentDb(QString curDb);
00060 void showPopupMenu (QString tag);
00061 void openSqlFile();
00062 void saveSqlFile();
00063 void showAbout();
00064 void newTable();
00065 void editTable();
00066 void renameTable();
00067 void closeTableEditor();
00068 void setTheme(QString theme);
00069 void truncateTable();
00070 void dropTable();
00071 void aboutQt();
00072 void dumpDbAsSQL();
00073 void dumpTableAsSQL();
00074 void exportTable();
00075 void manageIndexes();
00076 void subCreateView();
00077 void alterView();
00078 void setWindowMode();
00079 void dropView();
00080 };
00081
00082 #endif // MAINPAGE_H