Help user understand how deal with modes.
--HG-- branch : develop
This commit is contained in:
parent
5116261b05
commit
73908d0e01
|
@ -78,7 +78,8 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
mouseCoordinate(nullptr), helpLabel(nullptr), isInitialized(false), dialogTable(nullptr), dialogTool(nullptr),
|
mouseCoordinate(nullptr), helpLabel(nullptr), isInitialized(false), dialogTable(nullptr), dialogTool(nullptr),
|
||||||
dialogHistory(nullptr), comboBoxDraws(nullptr), mode(Draw::Calculation), currentDrawIndex(0),
|
dialogHistory(nullptr), comboBoxDraws(nullptr), mode(Draw::Calculation), currentDrawIndex(0),
|
||||||
currentToolBoxIndex(0), drawMode(true), recentFileActs(),
|
currentToolBoxIndex(0), drawMode(true), recentFileActs(),
|
||||||
separatorAct(nullptr), autoSaveTimer(nullptr), guiEnabled(true), gradationHeights(nullptr),
|
separatorAct(nullptr),
|
||||||
|
leftGoToStage(nullptr), rightGoToStage(nullptr), autoSaveTimer(nullptr), guiEnabled(true), gradationHeights(nullptr),
|
||||||
gradationSizes(nullptr),
|
gradationSizes(nullptr),
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
|
||||||
toolOptions(nullptr), lock(nullptr)
|
toolOptions(nullptr), lock(nullptr)
|
||||||
|
@ -94,6 +95,7 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
CreateActions();
|
CreateActions();
|
||||||
CreateMenus();
|
CreateMenus();
|
||||||
ToolBarDraws();
|
ToolBarDraws();
|
||||||
|
ToolBarStages();
|
||||||
InitToolButtons();
|
InitToolButtons();
|
||||||
InitScenes();
|
InitScenes();
|
||||||
|
|
||||||
|
@ -973,6 +975,18 @@ void MainWindow::SetDefaultSize(int value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void MainWindow::ToolBarStages()
|
||||||
|
{
|
||||||
|
leftGoToStage = new QLabel(this);
|
||||||
|
leftGoToStage->setPixmap(QPixmap("://icon/24x24/fast_forward_left_to_right_arrow.png"));
|
||||||
|
ui->toolBarStages->insertWidget(ui->actionDetails, leftGoToStage);
|
||||||
|
|
||||||
|
rightGoToStage = new QLabel(this);
|
||||||
|
rightGoToStage->setPixmap(QPixmap("://icon/24x24/left_to_right_arrow.png"));
|
||||||
|
ui->toolBarStages->insertWidget(ui->actionLayout, rightGoToStage);
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* @brief ToolBarDraws enable draw toolbar.
|
* @brief ToolBarDraws enable draw toolbar.
|
||||||
|
@ -1294,6 +1308,10 @@ void MainWindow::ActionDraw(bool checked)
|
||||||
if (checked)
|
if (checked)
|
||||||
{
|
{
|
||||||
qCDebug(vMainWindow, "Show draw scene");
|
qCDebug(vMainWindow, "Show draw scene");
|
||||||
|
|
||||||
|
leftGoToStage->setPixmap(QPixmap("://icon/24x24/fast_forward_left_to_right_arrow.png"));
|
||||||
|
rightGoToStage->setPixmap(QPixmap("://icon/24x24/left_to_right_arrow.png"));
|
||||||
|
|
||||||
ui->actionDetails->setChecked(false);
|
ui->actionDetails->setChecked(false);
|
||||||
ui->actionLayout->setChecked(false);
|
ui->actionLayout->setChecked(false);
|
||||||
SaveCurrentScene();
|
SaveCurrentScene();
|
||||||
|
@ -1366,6 +1384,10 @@ void MainWindow::ActionDetails(bool checked)
|
||||||
}
|
}
|
||||||
|
|
||||||
qCDebug(vMainWindow, "Show details scene");
|
qCDebug(vMainWindow, "Show details scene");
|
||||||
|
|
||||||
|
leftGoToStage->setPixmap(QPixmap("://icon/24x24/right_to_left_arrow.png"));
|
||||||
|
rightGoToStage->setPixmap(QPixmap("://icon/24x24/left_to_right_arrow.png"));
|
||||||
|
|
||||||
ui->actionDraw->setChecked(false);
|
ui->actionDraw->setChecked(false);
|
||||||
ui->actionLayout->setChecked(false);
|
ui->actionLayout->setChecked(false);
|
||||||
SaveCurrentScene();
|
SaveCurrentScene();
|
||||||
|
@ -1444,6 +1466,10 @@ void MainWindow::ActionLayout(bool checked)
|
||||||
}
|
}
|
||||||
|
|
||||||
qCDebug(vMainWindow, "Show layout scene");
|
qCDebug(vMainWindow, "Show layout scene");
|
||||||
|
|
||||||
|
leftGoToStage->setPixmap(QPixmap("://icon/24x24/right_to_left_arrow.png"));
|
||||||
|
rightGoToStage->setPixmap(QPixmap("://icon/24x24/fast_forward_right_to_left_arrow.png"));
|
||||||
|
|
||||||
ui->actionDraw->setChecked(false);
|
ui->actionDraw->setChecked(false);
|
||||||
ui->actionDetails->setChecked(false);
|
ui->actionDetails->setChecked(false);
|
||||||
SaveCurrentScene();
|
SaveCurrentScene();
|
||||||
|
|
|
@ -206,6 +206,8 @@ private:
|
||||||
enum { MaxRecentFiles = 5 };
|
enum { MaxRecentFiles = 5 };
|
||||||
QAction *recentFileActs[MaxRecentFiles];
|
QAction *recentFileActs[MaxRecentFiles];
|
||||||
QAction *separatorAct;
|
QAction *separatorAct;
|
||||||
|
QLabel *leftGoToStage;
|
||||||
|
QLabel *rightGoToStage;
|
||||||
QTimer *autoSaveTimer;
|
QTimer *autoSaveTimer;
|
||||||
bool guiEnabled;
|
bool guiEnabled;
|
||||||
QComboBox *gradationHeights;
|
QComboBox *gradationHeights;
|
||||||
|
@ -216,6 +218,7 @@ private:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void ToolBarOption();
|
void ToolBarOption();
|
||||||
|
void ToolBarStages();
|
||||||
void ToolBarDraws();
|
void ToolBarDraws();
|
||||||
void ToolBarTools();
|
void ToolBarTools();
|
||||||
void InitToolButtons();
|
void InitToolButtons();
|
||||||
|
|
|
@ -46,5 +46,9 @@
|
||||||
<file>icon/16x16/toolsectiondetail.png</file>
|
<file>icon/16x16/toolsectiondetail.png</file>
|
||||||
<file>icon/16x16/toolsectionlayout.png</file>
|
<file>icon/16x16/toolsectionlayout.png</file>
|
||||||
<file>toolicon/32x32/true_darts.png</file>
|
<file>toolicon/32x32/true_darts.png</file>
|
||||||
|
<file>icon/24x24/fast_forward_left_to_right_arrow.png</file>
|
||||||
|
<file>icon/24x24/fast_forward_right_to_left_arrow.png</file>
|
||||||
|
<file>icon/24x24/left_to_right_arrow.png</file>
|
||||||
|
<file>icon/24x24/right_to_left_arrow.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 560 B |
Binary file not shown.
After Width: | Height: | Size: 583 B |
BIN
src/app/share/resources/icon/24x24/left_to_right_arrow.png
Normal file
BIN
src/app/share/resources/icon/24x24/left_to_right_arrow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 493 B |
BIN
src/app/share/resources/icon/24x24/right_to_left_arrow.png
Normal file
BIN
src/app/share/resources/icon/24x24/right_to_left_arrow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 531 B |
Loading…
Reference in New Issue
Block a user