Menu for main window.
--HG-- branch : develop
This commit is contained in:
parent
c49b12447b
commit
4c14dd8688
|
@ -104,6 +104,10 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||||
timer->setTimerType(Qt::VeryCoarseTimer);
|
timer->setTimerType(Qt::VeryCoarseTimer);
|
||||||
connect(timer, &QTimer::timeout, this, &MainWindow::AutoSavePattern);
|
connect(timer, &QTimer::timeout, this, &MainWindow::AutoSavePattern);
|
||||||
timer->start(300000);
|
timer->start(300000);
|
||||||
|
|
||||||
|
connect(ui->actionAbout_Qt, &QAction::triggered, this, &MainWindow::AboutQt);
|
||||||
|
connect(ui->actionAbout_Valentina, &QAction::triggered, this, &MainWindow::About);
|
||||||
|
connect(ui->actionExit, &QAction::triggered, this, &MainWindow::close);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::ActionNewDraw(){
|
void MainWindow::ActionNewDraw(){
|
||||||
|
@ -443,6 +447,14 @@ void MainWindow::ClosedDialogDetail(int result){
|
||||||
ArrowTool();
|
ArrowTool();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::About(){
|
||||||
|
QMessageBox::about(this, tr("About Valentina"), tr("Valentina v.0.1.0"));
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::AboutQt(){
|
||||||
|
QMessageBox::aboutQt(this, tr("About Qt"));
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::tableClosed(){
|
void MainWindow::tableClosed(){
|
||||||
show();
|
show();
|
||||||
MinimumScrollBar();
|
MinimumScrollBar();
|
||||||
|
|
|
@ -92,6 +92,8 @@ public slots:
|
||||||
void ClosedDialogSplinePath(int result);
|
void ClosedDialogSplinePath(int result);
|
||||||
void ClosedDialogPointOfContact(int result);
|
void ClosedDialogPointOfContact(int result);
|
||||||
void ClosedDialogDetail(int result);
|
void ClosedDialogDetail(int result);
|
||||||
|
void About();
|
||||||
|
void AboutQt();
|
||||||
/**
|
/**
|
||||||
* @brief tableClosed Слот, що виконується при отриманні сигналу закриття вікна укладання
|
* @brief tableClosed Слот, що виконується при отриманні сигналу закриття вікна укладання
|
||||||
*деталей моделі.
|
*деталей моделі.
|
||||||
|
|
|
@ -494,6 +494,37 @@
|
||||||
<height>25</height>
|
<height>25</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<widget class="QMenu" name="menuFile">
|
||||||
|
<property name="title">
|
||||||
|
<string>File</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="actionNew"/>
|
||||||
|
<addaction name="actionOpen"/>
|
||||||
|
<addaction name="actionSave"/>
|
||||||
|
<addaction name="actionSaveAs"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
|
<addaction name="actionExit"/>
|
||||||
|
</widget>
|
||||||
|
<widget class="QMenu" name="menuHelp">
|
||||||
|
<property name="title">
|
||||||
|
<string>Help</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="actionAbout_Qt"/>
|
||||||
|
<addaction name="actionAbout_Valentina"/>
|
||||||
|
</widget>
|
||||||
|
<widget class="QMenu" name="menuDrawing">
|
||||||
|
<property name="title">
|
||||||
|
<string>Drawing</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="actionNewDraw"/>
|
||||||
|
<addaction name="actionOptionDraw"/>
|
||||||
|
<addaction name="actionTable"/>
|
||||||
|
<addaction name="actionHistory"/>
|
||||||
|
<addaction name="actionLayout"/>
|
||||||
|
</widget>
|
||||||
|
<addaction name="menuFile"/>
|
||||||
|
<addaction name="menuDrawing"/>
|
||||||
|
<addaction name="menuHelp"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QToolBar" name="mainToolBar">
|
<widget class="QToolBar" name="mainToolBar">
|
||||||
<attribute name="toolBarArea">
|
<attribute name="toolBarArea">
|
||||||
|
@ -726,6 +757,21 @@
|
||||||
<string>Create layout</string>
|
<string>Create layout</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionAbout_Qt">
|
||||||
|
<property name="text">
|
||||||
|
<string>About Qt</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionAbout_Valentina">
|
||||||
|
<property name="text">
|
||||||
|
<string>About Valentina</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionExit">
|
||||||
|
<property name="text">
|
||||||
|
<string>Exit</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user