mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-22 21:48:24 -05:00
Use a Qt Designer form file for the main window
Use the Qt Designer to build the main window form.
This commit is contained in:
+131
-889
File diff suppressed because it is too large
Load Diff
+10
-111
@@ -1,134 +1,35 @@
|
||||
#ifndef MAINFORM_H
|
||||
#define MAINFORM_H
|
||||
|
||||
#include <QVariant>
|
||||
#include <QTableView>
|
||||
#include <QStandardItemModel>
|
||||
#include <QtGui/QTreeWidget>
|
||||
|
||||
#include <QtGui/QMainWindow>
|
||||
#include <QTableWidget>
|
||||
#include <QTextEdit>
|
||||
|
||||
#include <QtGui/QToolBar>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QComboBox>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QLineEdit>
|
||||
#include <QtGui/QMenu>
|
||||
#include <QtGui/QMenuBar>
|
||||
#include <QtGui/QPushButton>
|
||||
#include <QtGui/QSpacerItem>
|
||||
#include <QtGui/QTabWidget>
|
||||
#include <QtGui/QVBoxLayout>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
#include <QtCore/QPoint>
|
||||
#include <QDragEnterEvent>
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QIntValidator>
|
||||
#include "sqlitedb.h"
|
||||
|
||||
#define ORDERMODE_ASC 0
|
||||
#define ORDERMODE_DESC 1
|
||||
|
||||
class QDragEnterEvent;
|
||||
class SQLLogDock;
|
||||
class editForm;
|
||||
class findForm;
|
||||
class SQLiteSyntaxHighlighter;
|
||||
class QStandardItemModel;
|
||||
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
Ui::MainWindow* ui;
|
||||
SQLLogDock * logWin;
|
||||
|
||||
QAction *fileNewAction;
|
||||
QAction *fileOpenAction;
|
||||
QAction *fileExitAction;
|
||||
QAction *editCopyAction;
|
||||
QAction *editPasteAction;
|
||||
QAction *editFindAction;
|
||||
QAction *helpContentsAction;
|
||||
QAction *helpIndexAction;
|
||||
QAction *helpAboutAction;
|
||||
QAction *fileCloseAction;
|
||||
QAction *newRecordAction;
|
||||
QAction *fileCompactAction;
|
||||
QAction *helpWhatsThisAction;
|
||||
QAction *sqlLogAction;
|
||||
QAction *viewDBToolbarAction;
|
||||
QAction *fileImportCSVAction;
|
||||
QAction *fileExportCSVAction;
|
||||
QAction *fileSaveAction;
|
||||
QAction *fileRevertAction;
|
||||
//QAction *fileImportAction;
|
||||
//QAction *fileExportAction;
|
||||
QAction *editCreateTableAction;
|
||||
QAction *editDeleteTableAction;
|
||||
QAction *editModifyTableAction;
|
||||
QAction *editCreateIndexAction;
|
||||
QAction *editDeleteIndexAction;
|
||||
QAction *fileImportSQLAction;
|
||||
QAction *fileExportSQLAction;
|
||||
QAction *editPreferencesAction;
|
||||
QWidget *widget;
|
||||
QVBoxLayout *vboxLayout;
|
||||
QTabWidget *mainTab;
|
||||
QWidget *structure;
|
||||
QVBoxLayout *vboxLayout1;
|
||||
|
||||
QTreeWidget *dbTreeWidget;
|
||||
QStandardItemModel *queryResultListModel;
|
||||
QMenu *popupTableMenu;
|
||||
QMenu *popupFieldMenu;
|
||||
|
||||
QAction *editModifyTableActionPopup;
|
||||
QAction *editDeleteTableActionPopup;
|
||||
QAction *editAddFieldActionPopup;
|
||||
QAction *editModifyFieldActionPopup;
|
||||
QAction *editDeleteFieldActionPopup;
|
||||
|
||||
QWidget *browser;
|
||||
QVBoxLayout *vboxLayout2;
|
||||
QHBoxLayout *hboxLayout;
|
||||
QLabel *textLabel1;
|
||||
QComboBox *comboBrowseTable;
|
||||
QPushButton *buttonFind;
|
||||
QPushButton *buttonRefresh;
|
||||
QSpacerItem *spacer1;
|
||||
QPushButton *buttonNewRecord;
|
||||
QPushButton *buttonDeleteRecord;
|
||||
QTableWidget *dataTable;
|
||||
QHBoxLayout *hboxLayout1;
|
||||
QPushButton *buttonPrevious;
|
||||
QLabel *labelRecordset;
|
||||
QPushButton *buttonNext;
|
||||
QSpacerItem *spacer4;
|
||||
QPushButton *buttonGoto;
|
||||
QLineEdit *editGoto;
|
||||
QWidget *query;
|
||||
QVBoxLayout *vboxLayout3;
|
||||
QLabel *textLabel1_2;
|
||||
QTextEdit *sqlTextEdit;
|
||||
QHBoxLayout *hboxLayout2;
|
||||
QPushButton *executeQueryButton;
|
||||
QSpacerItem *spacer4_2;
|
||||
QLabel *textLabel2;
|
||||
QLineEdit *queryErrorLineEdit;
|
||||
QLabel *textLabel3;
|
||||
QTableView *queryResultTableView;
|
||||
QStandardItemModel *queryResultListModel;
|
||||
QToolBar *toolbarDB;
|
||||
QMenuBar *menubar;
|
||||
QMenu *fileMenu;
|
||||
QMenu *importMenu;
|
||||
QMenu *exportMenu;
|
||||
QMenu *EditMenu;
|
||||
QMenu *ViewMenu;
|
||||
QMenu *PopupMenu;
|
||||
QMenu *recentFilesMenu;
|
||||
|
||||
SQLiteSyntaxHighlighter* sqliteHighlighter;
|
||||
@@ -156,7 +57,6 @@ private:
|
||||
void init();
|
||||
void destroy();
|
||||
void setupUi();
|
||||
void retranslateUi();
|
||||
|
||||
void updateRecentFileActions();
|
||||
void setCurrentFile(const QString& fileName);
|
||||
@@ -227,7 +127,6 @@ protected:
|
||||
void dropEvent(QDropEvent *event);
|
||||
|
||||
protected slots:
|
||||
virtual void languageChange();
|
||||
virtual void deleteTablePopup();
|
||||
virtual void editTablePopup();
|
||||
virtual void mainTabSelected( int tabindex );
|
||||
|
||||
+1585
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -81,4 +81,5 @@ RESOURCES += icons/icons.qrc
|
||||
FORMS += \
|
||||
createtabledialog.ui \
|
||||
dialogabout.ui \
|
||||
preferencesform.ui
|
||||
preferencesform.ui \
|
||||
mainwindow.ui
|
||||
|
||||
Reference in New Issue
Block a user