diff --git a/statapp/images/sticker.gif b/statapp/images/sticker.gif new file mode 100644 index 0000000..f54a010 Binary files /dev/null and b/statapp/images/sticker.gif differ diff --git a/statapp/main_window.py b/statapp/main_window.py index 66fcea4..ec9ec0a 100644 --- a/statapp/main_window.py +++ b/statapp/main_window.py @@ -1,3 +1,4 @@ +from PySide6.QtCore import Slot from PySide6.QtWidgets import QMainWindow from statapp.ui.ui_main_window import Ui_MainWindow diff --git a/statapp/ui/about_window.ui b/statapp/ui/about_window.ui new file mode 100644 index 0000000..1f21966 --- /dev/null +++ b/statapp/ui/about_window.ui @@ -0,0 +1,120 @@ + + + AboutWindow + + + true + + + + 0 + 0 + 878 + 727 + + + + О програме + + + false + + + + + + + + + + 14 + false + false + false + false + PreferDefault + true + + + + Теоретический фундамент: Дмитрюк Т. Г. + + + Qt::AlignCenter + + + + + + + + 14 + false + false + false + false + PreferDefault + true + + + + Разработчики: Слипенко М., Лазуренко Е. + + + Qt::AlignCenter + + + + + + + + 14 + false + false + false + false + PreferDefault + true + + + + Донецкий Национальный Технический Университет + + + Qt::AlignCenter + + + + + + + + 14 + false + false + false + false + PreferDefault + true + + + + + + + ../images/sticker.gif + + + Qt::AlignCenter + + + + + + + + + + + diff --git a/statapp/ui/main_window.ui b/statapp/ui/main_window.ui index e035e15..f00abb1 100644 --- a/statapp/ui/main_window.ui +++ b/statapp/ui/main_window.ui @@ -15,9 +15,6 @@ - - - @@ -28,6 +25,9 @@ + + + @@ -36,41 +36,47 @@ 0 0 800 - 19 + 22 - + Файл - + Генерация показателей - + Анализ данных - + Моделирование - + Справка + - - - - - + + + + + + + + О программе + + diff --git a/statapp/ui/ui_main_window.py b/statapp/ui/ui_main_window.py index 84c898b..15b890f 100644 --- a/statapp/ui/ui_main_window.py +++ b/statapp/ui/ui_main_window.py @@ -25,45 +25,48 @@ class Ui_MainWindow(object): if not MainWindow.objectName(): MainWindow.setObjectName(u"MainWindow") MainWindow.resize(800, 600) + self.aboutmenuaction = QAction(MainWindow) + self.aboutmenuaction.setObjectName(u"aboutmenuaction") self.centralwidget = QWidget(MainWindow) self.centralwidget.setObjectName(u"centralwidget") self.gridLayout = QGridLayout(self.centralwidget) self.gridLayout.setObjectName(u"gridLayout") - self.tableView = QTableView(self.centralwidget) - self.tableView.setObjectName(u"tableView") - - self.gridLayout.addWidget(self.tableView, 1, 0, 1, 1) - self.label = QLabel(self.centralwidget) self.label.setObjectName(u"label") self.label.setAlignment(Qt.AlignCenter) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) + self.tableView = QTableView(self.centralwidget) + self.tableView.setObjectName(u"tableView") + + self.gridLayout.addWidget(self.tableView, 1, 0, 1, 1) + MainWindow.setCentralWidget(self.centralwidget) self.menubar = QMenuBar(MainWindow) self.menubar.setObjectName(u"menubar") - self.menubar.setGeometry(QRect(0, 0, 800, 19)) - self.menu = QMenu(self.menubar) - self.menu.setObjectName(u"menu") - self.menu_2 = QMenu(self.menubar) - self.menu_2.setObjectName(u"menu_2") - self.menu_3 = QMenu(self.menubar) - self.menu_3.setObjectName(u"menu_3") - self.menu_4 = QMenu(self.menubar) - self.menu_4.setObjectName(u"menu_4") - self.menu_5 = QMenu(self.menubar) - self.menu_5.setObjectName(u"menu_5") + self.menubar.setGeometry(QRect(0, 0, 800, 22)) + self.filemenu = QMenu(self.menubar) + self.filemenu.setObjectName(u"filemenu") + self.generatemenu = QMenu(self.menubar) + self.generatemenu.setObjectName(u"generatemenu") + self.analyzemenu = QMenu(self.menubar) + self.analyzemenu.setObjectName(u"analyzemenu") + self.modelmenu = QMenu(self.menubar) + self.modelmenu.setObjectName(u"modelmenu") + self.helpmenu = QMenu(self.menubar) + self.helpmenu.setObjectName(u"helpmenu") MainWindow.setMenuBar(self.menubar) self.statusbar = QStatusBar(MainWindow) self.statusbar.setObjectName(u"statusbar") MainWindow.setStatusBar(self.statusbar) - self.menubar.addAction(self.menu.menuAction()) - self.menubar.addAction(self.menu_2.menuAction()) - self.menubar.addAction(self.menu_3.menuAction()) - self.menubar.addAction(self.menu_4.menuAction()) - self.menubar.addAction(self.menu_5.menuAction()) + self.menubar.addAction(self.filemenu.menuAction()) + self.menubar.addAction(self.generatemenu.menuAction()) + self.menubar.addAction(self.analyzemenu.menuAction()) + self.menubar.addAction(self.modelmenu.menuAction()) + self.menubar.addAction(self.helpmenu.menuAction()) + self.helpmenu.addAction(self.aboutmenuaction) self.retranslateUi(MainWindow) @@ -72,11 +75,12 @@ class Ui_MainWindow(object): def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435", None)) + self.aboutmenuaction.setText(QCoreApplication.translate("MainWindow", u"\u041e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435", None)) self.label.setText(QCoreApplication.translate("MainWindow", u"\u0421\u0422\u0410\u0422\u0418\u0421\u0422\u0418\u0427\u0415\u0421\u041a\u0418\u0415 \u0414\u0410\u041d\u041d\u042b\u0415", None)) - self.menu.setTitle(QCoreApplication.translate("MainWindow", u"\u0424\u0430\u0439\u043b", None)) - self.menu_2.setTitle(QCoreApplication.translate("MainWindow", u"\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439", None)) - self.menu_3.setTitle(QCoreApplication.translate("MainWindow", u"\u0410\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445", None)) - self.menu_4.setTitle(QCoreApplication.translate("MainWindow", u"\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435", None)) - self.menu_5.setTitle(QCoreApplication.translate("MainWindow", u"\u0421\u043f\u0440\u0430\u0432\u043a\u0430", None)) + self.filemenu.setTitle(QCoreApplication.translate("MainWindow", u"\u0424\u0430\u0439\u043b", None)) + self.generatemenu.setTitle(QCoreApplication.translate("MainWindow", u"\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439", None)) + self.analyzemenu.setTitle(QCoreApplication.translate("MainWindow", u"\u0410\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445", None)) + self.modelmenu.setTitle(QCoreApplication.translate("MainWindow", u"\u041c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435", None)) + self.helpmenu.setTitle(QCoreApplication.translate("MainWindow", u"\u0421\u043f\u0440\u0430\u0432\u043a\u0430", None)) # retranslateUi