diff options
Diffstat (limited to 'client/ui_mainwindow.h')
-rw-r--r-- | client/ui_mainwindow.h | 59 |
1 files changed, 13 insertions, 46 deletions
diff --git a/client/ui_mainwindow.h b/client/ui_mainwindow.h index 8854685..46bb29a 100644 --- a/client/ui_mainwindow.h +++ b/client/ui_mainwindow.h @@ -12,14 +12,11 @@ #include <QtCore/QVariant> #include <QtWidgets/QAction> #include <QtWidgets/QApplication> -#include <QtWidgets/QHeaderView> +#include <QtWidgets/QLabel> #include <QtWidgets/QMainWindow> #include <QtWidgets/QMenu> #include <QtWidgets/QMenuBar> -#include <QtWidgets/QPushButton> #include <QtWidgets/QStatusBar> -#include <QtWidgets/QTableView> -#include <QtWidgets/QVBoxLayout> #include <QtWidgets/QWidget> QT_BEGIN_NAMESPACE @@ -27,22 +24,15 @@ QT_BEGIN_NAMESPACE class Ui_MainWindow { public: - QAction *actionAbout; QAction *actionRefresh; QAction *actionLOAD; QAction *actionQuerry; QAction *actionConnection; QAction *actionDisconnenct; - QAction *actionQuerry_2; - QAction *actionStatus; QWidget *centralwidget; - QPushButton *pushButton; - QWidget *verticalLayoutWidget; - QVBoxLayout *verticalLayout; - QTableView *tableView; + QLabel *label; QMenuBar *menubar; QMenu *menuAbouy; - QMenu *menuTEMP; QMenu *menuDatabase; QStatusBar *statusbar; @@ -51,8 +41,6 @@ public: if (MainWindow->objectName().isEmpty()) MainWindow->setObjectName(QString::fromUtf8("MainWindow")); MainWindow->resize(800, 600); - actionAbout = new QAction(MainWindow); - actionAbout->setObjectName(QString::fromUtf8("actionAbout")); actionRefresh = new QAction(MainWindow); actionRefresh->setObjectName(QString::fromUtf8("actionRefresh")); actionLOAD = new QAction(MainWindow); @@ -63,35 +51,17 @@ public: actionConnection->setObjectName(QString::fromUtf8("actionConnection")); actionDisconnenct = new QAction(MainWindow); actionDisconnenct->setObjectName(QString::fromUtf8("actionDisconnenct")); - actionQuerry_2 = new QAction(MainWindow); - actionQuerry_2->setObjectName(QString::fromUtf8("actionQuerry_2")); - actionStatus = new QAction(MainWindow); - actionStatus->setObjectName(QString::fromUtf8("actionStatus")); centralwidget = new QWidget(MainWindow); centralwidget->setObjectName(QString::fromUtf8("centralwidget")); - pushButton = new QPushButton(centralwidget); - pushButton->setObjectName(QString::fromUtf8("pushButton")); - pushButton->setEnabled(true); - pushButton->setGeometry(QRect(310, 0, 121, 41)); - verticalLayoutWidget = new QWidget(centralwidget); - verticalLayoutWidget->setObjectName(QString::fromUtf8("verticalLayoutWidget")); - verticalLayoutWidget->setGeometry(QRect(-10, 40, 801, 401)); - verticalLayout = new QVBoxLayout(verticalLayoutWidget); - verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); - verticalLayout->setContentsMargins(0, 0, 0, 0); - tableView = new QTableView(verticalLayoutWidget); - tableView->setObjectName(QString::fromUtf8("tableView")); - - verticalLayout->addWidget(tableView); - + label = new QLabel(centralwidget); + label->setObjectName(QString::fromUtf8("label")); + label->setGeometry(QRect(270, 190, 181, 51)); MainWindow->setCentralWidget(centralwidget); menubar = new QMenuBar(MainWindow); menubar->setObjectName(QString::fromUtf8("menubar")); - menubar->setGeometry(QRect(0, 0, 800, 21)); + menubar->setGeometry(QRect(0, 0, 800, 24)); menuAbouy = new QMenu(menubar); menuAbouy->setObjectName(QString::fromUtf8("menuAbouy")); - menuTEMP = new QMenu(menubar); - menuTEMP->setObjectName(QString::fromUtf8("menuTEMP")); menuDatabase = new QMenu(menubar); menuDatabase->setObjectName(QString::fromUtf8("menuDatabase")); MainWindow->setMenuBar(menubar); @@ -100,15 +70,10 @@ public: MainWindow->setStatusBar(statusbar); menubar->addAction(menuAbouy->menuAction()); - menubar->addAction(menuTEMP->menuAction()); menubar->addAction(menuDatabase->menuAction()); - menuAbouy->addAction(actionAbout); menuAbouy->addAction(actionRefresh); - menuTEMP->addAction(actionLOAD); - menuTEMP->addAction(actionQuerry); menuDatabase->addAction(actionConnection); menuDatabase->addAction(actionDisconnenct); - menuDatabase->addAction(actionStatus); retranslateUi(MainWindow); @@ -118,17 +83,19 @@ public: void retranslateUi(QMainWindow *MainWindow) { MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "MainWindow", nullptr)); - actionAbout->setText(QCoreApplication::translate("MainWindow", "About", nullptr)); actionRefresh->setText(QCoreApplication::translate("MainWindow", "Refresh", nullptr)); +#if QT_CONFIG(shortcut) + actionRefresh->setShortcut(QCoreApplication::translate("MainWindow", "Ctrl+R", nullptr)); +#endif // QT_CONFIG(shortcut) actionLOAD->setText(QCoreApplication::translate("MainWindow", "Load", nullptr)); actionQuerry->setText(QCoreApplication::translate("MainWindow", "Query", nullptr)); actionConnection->setText(QCoreApplication::translate("MainWindow", "Connect", nullptr)); +#if QT_CONFIG(shortcut) + actionConnection->setShortcut(QCoreApplication::translate("MainWindow", "Ctrl+O", nullptr)); +#endif // QT_CONFIG(shortcut) actionDisconnenct->setText(QCoreApplication::translate("MainWindow", "Disconnenct", nullptr)); - actionQuerry_2->setText(QCoreApplication::translate("MainWindow", "Querry", nullptr)); - actionStatus->setText(QCoreApplication::translate("MainWindow", "Status", nullptr)); - pushButton->setText(QCoreApplication::translate("MainWindow", "DoesSomething", nullptr)); + label->setText(QCoreApplication::translate("MainWindow", "Please load data first", nullptr)); menuAbouy->setTitle(QCoreApplication::translate("MainWindow", "Home", nullptr)); - menuTEMP->setTitle(QCoreApplication::translate("MainWindow", "TEMP", nullptr)); menuDatabase->setTitle(QCoreApplication::translate("MainWindow", "Database", nullptr)); } // retranslateUi |