GUI: Refactoring toolbar member names to be more consistent.
This commit is contained in:
parent
7ddb60dd5a
commit
77a34643e2
|
@ -56,7 +56,7 @@ ShowTypes;
|
|||
#define SETTINGS_APPLICATION_PATHS "Application paths"
|
||||
#define SETTINGS_RESULT_COLUMN_WIDTH "Result column %1 width"
|
||||
#define SETTINGS_LANGUAGE "Application language"
|
||||
#define SETTINGS_TOOLBARS_SHOW "Toolbars/ShowStandard"
|
||||
#define SETTINGS_TOOLBARS_MAIN_SHOW "Toolbars/ShowStandard"
|
||||
#define SETTINGS_TOOLBARS_VIEW_SHOW "Toolbars/ShowView"
|
||||
|
||||
/// @}
|
||||
|
|
726
gui/main.ui
726
gui/main.ui
|
@ -1,363 +1,363 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>MainWindow</class>
|
||||
<widget class="QMainWindow" name="MainWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>640</width>
|
||||
<height>480</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>640</width>
|
||||
<height>480</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Cppcheck</string>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>22</width>
|
||||
<height>22</height>
|
||||
</size>
|
||||
</property>
|
||||
<widget class="QWidget" name="mCentral">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="ResultsView" name="mResults" native="true"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="mMenuBar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>640</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="mMenuFile">
|
||||
<property name="title">
|
||||
<string>&File</string>
|
||||
</property>
|
||||
<addaction name="mActionSave"/>
|
||||
<addaction name="mActionQuit"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mMenuView">
|
||||
<property name="title">
|
||||
<string>&View</string>
|
||||
</property>
|
||||
<widget class="QMenu" name="mMenuToolbars">
|
||||
<property name="title">
|
||||
<string>&Toolbars</string>
|
||||
</property>
|
||||
<addaction name="mActionToolbar"/>
|
||||
<addaction name="mActionToolBarView"/>
|
||||
</widget>
|
||||
<addaction name="mMenuToolbars"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="mActionShowStyle"/>
|
||||
<addaction name="mActionShowErrors"/>
|
||||
<addaction name="mActionCheckAll"/>
|
||||
<addaction name="mActionUncheckAll"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="mActionCollapseAll"/>
|
||||
<addaction name="mActionExpandAll"/>
|
||||
<addaction name="separator"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mMenuLanguage">
|
||||
<property name="title">
|
||||
<string>&Language</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mMenuHelp">
|
||||
<property name="title">
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
<addaction name="mActionHelpContents"/>
|
||||
<addaction name="mActionLicense"/>
|
||||
<addaction name="mActionAuthors"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="mActionAbout"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mMenuCheck">
|
||||
<property name="title">
|
||||
<string>&Check</string>
|
||||
</property>
|
||||
<addaction name="mActionCheckFiles"/>
|
||||
<addaction name="mActionCheckDirectory"/>
|
||||
<addaction name="mActionRecheck"/>
|
||||
<addaction name="mActionStop"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mMenuEdit">
|
||||
<property name="title">
|
||||
<string>&Edit</string>
|
||||
</property>
|
||||
<addaction name="mActionClearResults"/>
|
||||
<addaction name="mActionSettings"/>
|
||||
</widget>
|
||||
<addaction name="mMenuFile"/>
|
||||
<addaction name="mMenuEdit"/>
|
||||
<addaction name="mMenuView"/>
|
||||
<addaction name="mMenuCheck"/>
|
||||
<addaction name="mMenuLanguage"/>
|
||||
<addaction name="mMenuHelp"/>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="mToolBarMain">
|
||||
<property name="windowTitle">
|
||||
<string>Standard</string>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="mActionCheckDirectory"/>
|
||||
<addaction name="mActionSave"/>
|
||||
<addaction name="mActionRecheck"/>
|
||||
<addaction name="mActionStop"/>
|
||||
<addaction name="mActionClearResults"/>
|
||||
<addaction name="mActionSettings"/>
|
||||
<addaction name="mActionAbout"/>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="mToolBarView">
|
||||
<property name="windowTitle">
|
||||
<string>Categories</string>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="mActionShowErrors"/>
|
||||
<addaction name="mActionShowStyle"/>
|
||||
</widget>
|
||||
<action name="mActionLicense">
|
||||
<property name="text">
|
||||
<string>&License...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionAuthors">
|
||||
<property name="text">
|
||||
<string>A&uthors...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionAbout">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/help-browser.png</normaloff>:/images/help-browser.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&About...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionCheckFiles">
|
||||
<property name="text">
|
||||
<string>&Files...</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+F</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionCheckDirectory">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/icon.png</normaloff>:/icon.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Directory...</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+D</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionRecheck">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/view-refresh.png</normaloff>:/images/view-refresh.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Recheck files</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+R</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionStop">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/process-stop.png</normaloff>:/images/process-stop.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Stop</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Esc</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionSave">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/media-floppy.png</normaloff>:/images/media-floppy.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Save results to file...</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+S</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionQuit">
|
||||
<property name="text">
|
||||
<string>&Quit</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionClearResults">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/edit-clear.png</normaloff>:/images/edit-clear.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Clear results</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionSettings">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/preferences-system.png</normaloff>:/images/preferences-system.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Preferences</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionShowStyle">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/showstylewarnings.png</normaloff>:/images/showstylewarnings.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show style errors</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionShowErrors">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/showerrors.png</normaloff>:/images/showerrors.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show common errors</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionCheckAll">
|
||||
<property name="text">
|
||||
<string>&Check all</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionUncheckAll">
|
||||
<property name="text">
|
||||
<string>&Uncheck all</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionCollapseAll">
|
||||
<property name="text">
|
||||
<string>Collapse &all</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionExpandAll">
|
||||
<property name="text">
|
||||
<string>&Expand all</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionToolbar">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Standard</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Standard items</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionHelpContents">
|
||||
<property name="text">
|
||||
<string>&Contents</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string>Open the help contents</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F1</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionToolbar">
|
||||
<property name="text">
|
||||
<string>Toolbar</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionToolBarView">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Categories</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Error categories</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>ResultsView</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>resultsview.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="gui.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>MainWindow</class>
|
||||
<widget class="QMainWindow" name="MainWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>640</width>
|
||||
<height>480</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>640</width>
|
||||
<height>480</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Cppcheck</string>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>22</width>
|
||||
<height>22</height>
|
||||
</size>
|
||||
</property>
|
||||
<widget class="QWidget" name="mCentral">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="ResultsView" name="mResults" native="true"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="mMenuBar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>640</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="mMenuFile">
|
||||
<property name="title">
|
||||
<string>&File</string>
|
||||
</property>
|
||||
<addaction name="mActionSave"/>
|
||||
<addaction name="mActionQuit"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mMenuView">
|
||||
<property name="title">
|
||||
<string>&View</string>
|
||||
</property>
|
||||
<widget class="QMenu" name="mMenuToolbars">
|
||||
<property name="title">
|
||||
<string>&Toolbars</string>
|
||||
</property>
|
||||
<addaction name="mActionToolBarMain"/>
|
||||
<addaction name="mActionToolBarView"/>
|
||||
</widget>
|
||||
<addaction name="mMenuToolbars"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="mActionShowStyle"/>
|
||||
<addaction name="mActionShowErrors"/>
|
||||
<addaction name="mActionCheckAll"/>
|
||||
<addaction name="mActionUncheckAll"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="mActionCollapseAll"/>
|
||||
<addaction name="mActionExpandAll"/>
|
||||
<addaction name="separator"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mMenuLanguage">
|
||||
<property name="title">
|
||||
<string>&Language</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mMenuHelp">
|
||||
<property name="title">
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
<addaction name="mActionHelpContents"/>
|
||||
<addaction name="mActionLicense"/>
|
||||
<addaction name="mActionAuthors"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="mActionAbout"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mMenuCheck">
|
||||
<property name="title">
|
||||
<string>&Check</string>
|
||||
</property>
|
||||
<addaction name="mActionCheckFiles"/>
|
||||
<addaction name="mActionCheckDirectory"/>
|
||||
<addaction name="mActionRecheck"/>
|
||||
<addaction name="mActionStop"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mMenuEdit">
|
||||
<property name="title">
|
||||
<string>&Edit</string>
|
||||
</property>
|
||||
<addaction name="mActionClearResults"/>
|
||||
<addaction name="mActionSettings"/>
|
||||
</widget>
|
||||
<addaction name="mMenuFile"/>
|
||||
<addaction name="mMenuEdit"/>
|
||||
<addaction name="mMenuView"/>
|
||||
<addaction name="mMenuCheck"/>
|
||||
<addaction name="mMenuLanguage"/>
|
||||
<addaction name="mMenuHelp"/>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="mToolBarMain">
|
||||
<property name="windowTitle">
|
||||
<string>Standard</string>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="mActionCheckDirectory"/>
|
||||
<addaction name="mActionSave"/>
|
||||
<addaction name="mActionRecheck"/>
|
||||
<addaction name="mActionStop"/>
|
||||
<addaction name="mActionClearResults"/>
|
||||
<addaction name="mActionSettings"/>
|
||||
<addaction name="mActionAbout"/>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="mToolBarView">
|
||||
<property name="windowTitle">
|
||||
<string>Categories</string>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="mActionShowErrors"/>
|
||||
<addaction name="mActionShowStyle"/>
|
||||
</widget>
|
||||
<action name="mActionLicense">
|
||||
<property name="text">
|
||||
<string>&License...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionAuthors">
|
||||
<property name="text">
|
||||
<string>A&uthors...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionAbout">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/help-browser.png</normaloff>:/images/help-browser.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&About...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionCheckFiles">
|
||||
<property name="text">
|
||||
<string>&Files...</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+F</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionCheckDirectory">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/icon.png</normaloff>:/icon.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Directory...</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+D</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionRecheck">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/view-refresh.png</normaloff>:/images/view-refresh.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Recheck files</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+R</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionStop">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/process-stop.png</normaloff>:/images/process-stop.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Stop</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Esc</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionSave">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/media-floppy.png</normaloff>:/images/media-floppy.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Save results to file...</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+S</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionQuit">
|
||||
<property name="text">
|
||||
<string>&Quit</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionClearResults">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/edit-clear.png</normaloff>:/images/edit-clear.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Clear results</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionSettings">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/preferences-system.png</normaloff>:/images/preferences-system.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Preferences</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionShowStyle">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/showstylewarnings.png</normaloff>:/images/showstylewarnings.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show style errors</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionShowErrors">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/showerrors.png</normaloff>:/images/showerrors.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show common errors</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionCheckAll">
|
||||
<property name="text">
|
||||
<string>&Check all</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionUncheckAll">
|
||||
<property name="text">
|
||||
<string>&Uncheck all</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionCollapseAll">
|
||||
<property name="text">
|
||||
<string>Collapse &all</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionExpandAll">
|
||||
<property name="text">
|
||||
<string>&Expand all</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionToolBarMain">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Standard</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Standard items</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionHelpContents">
|
||||
<property name="text">
|
||||
<string>&Contents</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string>Open the help contents</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F1</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionToolbar">
|
||||
<property name="text">
|
||||
<string>Toolbar</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionToolBarView">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Categories</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Error categories</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>ResultsView</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>resultsview.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="gui.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -71,7 +71,7 @@ MainWindow::MainWindow() :
|
|||
|
||||
connect(mUI.mActionAbout, SIGNAL(triggered()), this, SLOT(About()));
|
||||
connect(mUI.mActionLicense, SIGNAL(triggered()), this, SLOT(ShowLicense()));
|
||||
connect(mUI.mActionToolbar, SIGNAL(toggled(bool)), this, SLOT(ToggleToolbar()));
|
||||
connect(mUI.mActionToolBarMain, SIGNAL(toggled(bool)), this, SLOT(ToggleMainToolBar()));
|
||||
connect(mUI.mActionToolBarView, SIGNAL(toggled(bool)), this, SLOT(ToggleViewToolBar()));
|
||||
|
||||
connect(mUI.mActionAuthors, SIGNAL(triggered()), this, SLOT(ShowAuthors()));
|
||||
|
@ -162,8 +162,8 @@ void MainWindow::LoadSettings()
|
|||
mUI.mResults->ShowResults(SHOW_ERRORS, mUI.mActionShowErrors->isChecked());
|
||||
mUI.mResults->ShowResults(SHOW_STYLE, mUI.mActionShowStyle->isChecked());
|
||||
|
||||
mUI.mActionToolbar->setChecked(mSettings->value(SETTINGS_TOOLBARS_SHOW, true).toBool());
|
||||
mUI.mToolBarMain->setVisible(mSettings->value(SETTINGS_TOOLBARS_SHOW, true).toBool());
|
||||
mUI.mActionToolBarMain->setChecked(mSettings->value(SETTINGS_TOOLBARS_MAIN_SHOW, true).toBool());
|
||||
mUI.mToolBarMain->setVisible(mSettings->value(SETTINGS_TOOLBARS_MAIN_SHOW, true).toBool());
|
||||
mUI.mToolBarView->setVisible(mSettings->value(SETTINGS_TOOLBARS_VIEW_SHOW, true).toBool());
|
||||
|
||||
mApplications->LoadSettings(mSettings);
|
||||
|
@ -182,7 +182,7 @@ void MainWindow::SaveSettings()
|
|||
|
||||
mSettings->setValue(SETTINGS_SHOW_STYLE, mUI.mActionShowStyle->isChecked());
|
||||
mSettings->setValue(SETTINGS_SHOW_ERRORS, mUI.mActionShowErrors->isChecked());
|
||||
mSettings->setValue(SETTINGS_TOOLBARS_SHOW, mUI.mToolBarMain->isVisible());
|
||||
mSettings->setValue(SETTINGS_TOOLBARS_MAIN_SHOW, mUI.mToolBarMain->isVisible());
|
||||
mSettings->setValue(SETTINGS_TOOLBARS_VIEW_SHOW, mUI.mToolBarView->isVisible());
|
||||
|
||||
mApplications->SaveSettings(mSettings);
|
||||
|
@ -566,9 +566,9 @@ void MainWindow::ResultsAdded()
|
|||
{
|
||||
}
|
||||
|
||||
void MainWindow::ToggleToolbar()
|
||||
void MainWindow::ToggleMainToolBar()
|
||||
{
|
||||
mUI.mToolBarMain->setVisible(mUI.mActionToolbar->isChecked());
|
||||
mUI.mToolBarMain->setVisible(mUI.mActionToolBarMain->isChecked());
|
||||
}
|
||||
|
||||
void MainWindow::ToggleViewToolBar()
|
||||
|
@ -638,7 +638,7 @@ void MainWindow::MapLanguage(QAction *action)
|
|||
|
||||
void MainWindow::AboutToShowViewMenu()
|
||||
{
|
||||
mUI.mActionToolbar->setChecked(mUI.mToolBarMain->isVisible());
|
||||
mUI.mActionToolBarMain->setChecked(mUI.mToolBarMain->isVisible());
|
||||
mUI.mActionToolBarView->setChecked(mUI.mToolBarView->isVisible());
|
||||
}
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@ protected slots:
|
|||
/**
|
||||
* @brief Slot for showing/hiding standard toolbar
|
||||
*/
|
||||
void ToggleToolbar();
|
||||
void ToggleMainToolBar();
|
||||
|
||||
/**
|
||||
* @brief Slot for showing/hiding Categories toolbar
|
||||
|
|
Loading…
Reference in New Issue