GUI: Rename 'Check' to 'Analyze'

This commit is contained in:
Daniel Marjamäki 2017-07-30 09:46:01 +02:00
parent 9558877458
commit d09cdfd63f
2 changed files with 37 additions and 37 deletions

View File

@ -84,8 +84,8 @@ MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) :
connect(mUI.mActionPrint, SIGNAL(triggered()), mUI.mResults, SLOT(print())); connect(mUI.mActionPrint, SIGNAL(triggered()), mUI.mResults, SLOT(print()));
connect(mUI.mActionPrintPreview, SIGNAL(triggered()), mUI.mResults, SLOT(printPreview())); connect(mUI.mActionPrintPreview, SIGNAL(triggered()), mUI.mResults, SLOT(printPreview()));
connect(mUI.mActionQuit, SIGNAL(triggered()), this, SLOT(close())); connect(mUI.mActionQuit, SIGNAL(triggered()), this, SLOT(close()));
connect(mUI.mActionCheckFiles, SIGNAL(triggered()), this, SLOT(checkFiles())); connect(mUI.mActionAnalyzeFiles, SIGNAL(triggered()), this, SLOT(checkFiles()));
connect(mUI.mActionCheckDirectory, SIGNAL(triggered()), this, SLOT(checkDirectory())); connect(mUI.mActionAnalyzeDirectory, SIGNAL(triggered()), this, SLOT(checkDirectory()));
connect(mUI.mActionSettings, SIGNAL(triggered()), this, SLOT(programSettings())); connect(mUI.mActionSettings, SIGNAL(triggered()), this, SLOT(programSettings()));
connect(mUI.mActionClearResults, SIGNAL(triggered()), this, SLOT(clearResults())); connect(mUI.mActionClearResults, SIGNAL(triggered()), this, SLOT(clearResults()));
connect(mUI.mActionOpenXML, SIGNAL(triggered()), this, SLOT(openResults())); connect(mUI.mActionOpenXML, SIGNAL(triggered()), this, SLOT(openResults()));
@ -105,8 +105,8 @@ MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) :
connect(mUI.mActionViewStats, SIGNAL(triggered()), this, SLOT(showStatistics())); connect(mUI.mActionViewStats, SIGNAL(triggered()), this, SLOT(showStatistics()));
connect(mUI.mActionLibraryEditor, SIGNAL(triggered()), this, SLOT(showLibraryEditor())); connect(mUI.mActionLibraryEditor, SIGNAL(triggered()), this, SLOT(showLibraryEditor()));
connect(mUI.mActionRecheckModified, SIGNAL(triggered()), this, SLOT(reCheckModified())); connect(mUI.mActionReanalyzeModified, SIGNAL(triggered()), this, SLOT(reCheckModified()));
connect(mUI.mActionRecheckAll, SIGNAL(triggered()), this, SLOT(reCheckAll())); connect(mUI.mActionReanalyzeAll, SIGNAL(triggered()), this, SLOT(reCheckAll()));
connect(mUI.mActionStop, SIGNAL(triggered()), this, SLOT(stopChecking())); connect(mUI.mActionStop, SIGNAL(triggered()), this, SLOT(stopChecking()));
connect(mUI.mActionSave, SIGNAL(triggered()), this, SLOT(save())); connect(mUI.mActionSave, SIGNAL(triggered()), this, SLOT(save()));
@ -151,8 +151,8 @@ MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) :
mUI.mActionPrintPreview->setEnabled(false); mUI.mActionPrintPreview->setEnabled(false);
mUI.mActionClearResults->setEnabled(false); mUI.mActionClearResults->setEnabled(false);
mUI.mActionSave->setEnabled(false); mUI.mActionSave->setEnabled(false);
mUI.mActionRecheckModified->setEnabled(false); mUI.mActionReanalyzeModified->setEnabled(false);
mUI.mActionRecheckAll->setEnabled(false); mUI.mActionReanalyzeAll->setEnabled(false);
enableProjectOpenActions(true); enableProjectOpenActions(true);
enableProjectActions(false); enableProjectActions(false);
@ -187,7 +187,7 @@ MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) :
act->setData(plat.mType); act->setData(plat.mType);
act->setCheckable(true); act->setCheckable(true);
act->setActionGroup(mPlatformActions); act->setActionGroup(mPlatformActions);
mUI.mMenuCheck->insertAction(mUI.mActionPlatforms, act); mUI.mMenuAnalyze->insertAction(mUI.mActionPlatforms, act);
connect(act, SIGNAL(triggered()), this, SLOT(selectPlatform())); connect(act, SIGNAL(triggered()), this, SLOT(selectPlatform()));
} }
@ -863,8 +863,8 @@ void MainWindow::checkDone()
if (mProject) { if (mProject) {
enableProjectActions(true); enableProjectActions(true);
} else if (mIsLogfileLoaded) { } else if (mIsLogfileLoaded) {
mUI.mActionRecheckModified->setEnabled(false); mUI.mActionReanalyzeModified->setEnabled(false);
mUI.mActionRecheckAll->setEnabled(false); mUI.mActionReanalyzeAll->setEnabled(false);
} }
enableProjectOpenActions(true); enableProjectOpenActions(true);
mPlatformActions->setEnabled(true); mPlatformActions->setEnabled(true);
@ -1050,8 +1050,8 @@ void MainWindow::loadResults(const QString selectedFile)
closeProjectFile(); closeProjectFile();
mIsLogfileLoaded = true; mIsLogfileLoaded = true;
mUI.mResults->clear(true); mUI.mResults->clear(true);
mUI.mActionRecheckModified->setEnabled(false); mUI.mActionReanalyzeModified->setEnabled(false);
mUI.mActionRecheckAll->setEnabled(false); mUI.mActionReanalyzeAll->setEnabled(false);
mUI.mResults->readErrorsXml(selectedFile); mUI.mResults->readErrorsXml(selectedFile);
setPath(SETTINGS_LAST_RESULT_PATH, selectedFile); setPath(SETTINGS_LAST_RESULT_PATH, selectedFile);
} }
@ -1066,14 +1066,14 @@ void MainWindow::loadResults(const QString selectedFile, const QString sourceDir
void MainWindow::enableCheckButtons(bool enable) void MainWindow::enableCheckButtons(bool enable)
{ {
mUI.mActionStop->setEnabled(!enable); mUI.mActionStop->setEnabled(!enable);
mUI.mActionCheckFiles->setEnabled(enable); mUI.mActionAnalyzeFiles->setEnabled(enable);
if (!enable || mThread->hasPreviousFiles()) { if (!enable || mThread->hasPreviousFiles()) {
mUI.mActionRecheckModified->setEnabled(enable); mUI.mActionReanalyzeModified->setEnabled(enable);
mUI.mActionRecheckAll->setEnabled(enable); mUI.mActionReanalyzeAll->setEnabled(enable);
} }
mUI.mActionCheckDirectory->setEnabled(enable); mUI.mActionAnalyzeDirectory->setEnabled(enable);
} }
void MainWindow::showStyle(bool checked) void MainWindow::showStyle(bool checked)

View File

@ -127,9 +127,9 @@
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="mActionAbout"/> <addaction name="mActionAbout"/>
</widget> </widget>
<widget class="QMenu" name="mMenuCheck"> <widget class="QMenu" name="mMenuAnalyze">
<property name="title"> <property name="title">
<string>&amp;Check</string> <string>Analyze</string>
</property> </property>
<widget class="QMenu" name="menuCpp_standard"> <widget class="QMenu" name="menuCpp_standard">
<property name="title"> <property name="title">
@ -146,10 +146,10 @@
<addaction name="mActionC99"/> <addaction name="mActionC99"/>
<addaction name="mActionC11"/> <addaction name="mActionC11"/>
</widget> </widget>
<addaction name="mActionCheckFiles"/> <addaction name="mActionAnalyzeFiles"/>
<addaction name="mActionCheckDirectory"/> <addaction name="mActionAnalyzeDirectory"/>
<addaction name="mActionRecheckModified"/> <addaction name="mActionReanalyzeModified"/>
<addaction name="mActionRecheckAll"/> <addaction name="mActionReanalyzeAll"/>
<addaction name="mActionStop"/> <addaction name="mActionStop"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="menuC_standard"/> <addaction name="menuC_standard"/>
@ -172,7 +172,7 @@
<addaction name="mMenuFile"/> <addaction name="mMenuFile"/>
<addaction name="mMenuEdit"/> <addaction name="mMenuEdit"/>
<addaction name="mMenuView"/> <addaction name="mMenuView"/>
<addaction name="mMenuCheck"/> <addaction name="mMenuAnalyze"/>
<addaction name="mMenuHelp"/> <addaction name="mMenuHelp"/>
</widget> </widget>
<widget class="QToolBar" name="mToolBarMain"> <widget class="QToolBar" name="mToolBarMain">
@ -185,12 +185,12 @@
<attribute name="toolBarBreak"> <attribute name="toolBarBreak">
<bool>false</bool> <bool>false</bool>
</attribute> </attribute>
<addaction name="mActionCheckDirectory"/> <addaction name="mActionAnalyzeDirectory"/>
<addaction name="mActionOpenProjectFile"/> <addaction name="mActionOpenProjectFile"/>
<addaction name="mActionShowScratchpad"/> <addaction name="mActionShowScratchpad"/>
<addaction name="mActionSave"/> <addaction name="mActionSave"/>
<addaction name="mActionRecheckModified"/> <addaction name="mActionReanalyzeModified"/>
<addaction name="mActionRecheckAll"/> <addaction name="mActionReanalyzeAll"/>
<addaction name="mActionStop"/> <addaction name="mActionStop"/>
<addaction name="mActionClearResults"/> <addaction name="mActionClearResults"/>
<addaction name="mActionSettings"/> <addaction name="mActionSettings"/>
@ -243,21 +243,21 @@
<string>&amp;About...</string> <string>&amp;About...</string>
</property> </property>
</action> </action>
<action name="mActionCheckFiles"> <action name="mActionAnalyzeFiles">
<property name="text"> <property name="text">
<string>&amp;Files...</string> <string>&amp;Files...</string>
</property> </property>
<property name="iconText"> <property name="iconText">
<string>Check files</string> <string>Analyze files</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Check files</string> <string>Analyze files</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+F</string> <string>Ctrl+F</string>
</property> </property>
</action> </action>
<action name="mActionCheckDirectory"> <action name="mActionAnalyzeDirectory">
<property name="icon"> <property name="icon">
<iconset resource="gui.qrc"> <iconset resource="gui.qrc">
<normaloff>:/cppcheck-gui.png</normaloff>:/cppcheck-gui.png</iconset> <normaloff>:/cppcheck-gui.png</normaloff>:/cppcheck-gui.png</iconset>
@ -266,34 +266,34 @@
<string>&amp;Directory...</string> <string>&amp;Directory...</string>
</property> </property>
<property name="iconText"> <property name="iconText">
<string>Check directory</string> <string>Analyze directory</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Check directory</string> <string>Analyze directory</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+D</string> <string>Ctrl+D</string>
</property> </property>
</action> </action>
<action name="mActionRecheckModified"> <action name="mActionReanalyzeModified">
<property name="icon"> <property name="icon">
<iconset resource="gui.qrc"> <iconset resource="gui.qrc">
<normaloff>:/images/view-refresh.png</normaloff>:/images/view-refresh.png</iconset> <normaloff>:/images/view-refresh.png</normaloff>:/images/view-refresh.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Recheck modified files</string> <string>&amp;Reanalyze modified files</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+R</string> <string>Ctrl+R</string>
</property> </property>
</action> </action>
<action name="mActionRecheckAll"> <action name="mActionReanalyzeAll">
<property name="icon"> <property name="icon">
<iconset resource="gui.qrc"> <iconset resource="gui.qrc">
<normaloff>:/images/view-recheck.png</normaloff>:/images/view-recheck.png</iconset> <normaloff>:/images/view-recheck.png</normaloff>:/images/view-recheck.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Recheck all files</string> <string>&amp;Reanalyze all files</string>
</property> </property>
</action> </action>
<action name="mActionStop"> <action name="mActionStop">
@ -305,10 +305,10 @@
<string>&amp;Stop</string> <string>&amp;Stop</string>
</property> </property>
<property name="iconText"> <property name="iconText">
<string>Stop checking</string> <string>Stop analysis</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Stop checking</string> <string>Stop analysis</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Esc</string> <string>Esc</string>