refs #394, LED to display when mapper is ready

* function in context for models count
* adjusted status bar component
* in same step: menu to toggle "window on top"
This commit is contained in:
Klaus Basan
2015-03-21 02:42:46 +01:00
parent 3c077ef579
commit 66da4d7353
13 changed files with 83 additions and 16 deletions

View File

@@ -304,6 +304,7 @@
</property>
<addaction name="menu_WindowFont"/>
<addaction name="menu_WindowMinimize"/>
<addaction name="menu_WindowToggleOnTop"/>
</widget>
<addaction name="menu_File"/>
<addaction name="menuWindow"/>
@@ -419,6 +420,14 @@
<string>Ctrl+W, Ctrl+M</string>
</property>
</action>
<action name="menu_WindowToggleOnTop">
<property name="text">
<string>Toggle stay on top</string>
</property>
<property name="shortcut">
<string>Ctrl+W, Ctrl+T</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>

View File

@@ -158,6 +158,7 @@ void SwiftGuiStd::initGuiSignals()
connect(this->ui->menu_FileReloadStyleSheets, &QAction::triggered, this, &SwiftGuiStd::ps_onMenuClicked);
connect(this->ui->menu_WindowFont, &QAction::triggered, this, &SwiftGuiStd::ps_onMenuClicked);
connect(this->ui->menu_WindowMinimize, &QAction::triggered, this, &SwiftGuiStd::ps_onMenuClicked);
connect(this->ui->menu_WindowToggleOnTop, &QAction::triggered, this, &SwiftGuiStd::ps_onMenuClicked);
connect(this->ui->menu_DebugMetaTypes, &QAction::triggered, this, &SwiftGuiStd::ps_onMenuClicked);
// command line / text messages

View File

@@ -72,6 +72,10 @@ void SwiftGuiStd::ps_onMenuClicked()
{
this->showMinimized();
}
else if (sender == this->ui->menu_WindowToggleOnTop)
{
this->ps_toogleWindowStayOnTop();
}
else if (sender == this->ui->menu_FileClose)
{
CLogMessage(this).info("Closing");