Help user understand how deal with modes.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-06-29 20:06:26 +03:00
parent 5116261b05
commit 73908d0e01
7 changed files with 34 additions and 1 deletions

View file

@ -78,7 +78,8 @@ MainWindow::MainWindow(QWidget *parent)
mouseCoordinate(nullptr), helpLabel(nullptr), isInitialized(false), dialogTable(nullptr), dialogTool(nullptr),
dialogHistory(nullptr), comboBoxDraws(nullptr), mode(Draw::Calculation), currentDrawIndex(0),
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),
#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
toolOptions(nullptr), lock(nullptr)
@ -94,6 +95,7 @@ MainWindow::MainWindow(QWidget *parent)
CreateActions();
CreateMenus();
ToolBarDraws();
ToolBarStages();
InitToolButtons();
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.
@ -1294,6 +1308,10 @@ void MainWindow::ActionDraw(bool checked)
if (checked)
{
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->actionLayout->setChecked(false);
SaveCurrentScene();
@ -1366,6 +1384,10 @@ void MainWindow::ActionDetails(bool checked)
}
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->actionLayout->setChecked(false);
SaveCurrentScene();
@ -1444,6 +1466,10 @@ void MainWindow::ActionLayout(bool checked)
}
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->actionDetails->setChecked(false);
SaveCurrentScene();

View file

@ -206,6 +206,8 @@ private:
enum { MaxRecentFiles = 5 };
QAction *recentFileActs[MaxRecentFiles];
QAction *separatorAct;
QLabel *leftGoToStage;
QLabel *rightGoToStage;
QTimer *autoSaveTimer;
bool guiEnabled;
QComboBox *gradationHeights;
@ -216,6 +218,7 @@ private:
#endif
void ToolBarOption();
void ToolBarStages();
void ToolBarDraws();
void ToolBarTools();
void InitToolButtons();

View file

@ -46,5 +46,9 @@
<file>icon/16x16/toolsectiondetail.png</file>
<file>icon/16x16/toolsectionlayout.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>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B