GUI: Rename 'Check' to 'Analyze'
This commit is contained in:
parent
9558877458
commit
d09cdfd63f
|
@ -84,8 +84,8 @@ MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) :
|
|||
connect(mUI.mActionPrint, SIGNAL(triggered()), mUI.mResults, SLOT(print()));
|
||||
connect(mUI.mActionPrintPreview, SIGNAL(triggered()), mUI.mResults, SLOT(printPreview()));
|
||||
connect(mUI.mActionQuit, SIGNAL(triggered()), this, SLOT(close()));
|
||||
connect(mUI.mActionCheckFiles, SIGNAL(triggered()), this, SLOT(checkFiles()));
|
||||
connect(mUI.mActionCheckDirectory, SIGNAL(triggered()), this, SLOT(checkDirectory()));
|
||||
connect(mUI.mActionAnalyzeFiles, SIGNAL(triggered()), this, SLOT(checkFiles()));
|
||||
connect(mUI.mActionAnalyzeDirectory, SIGNAL(triggered()), this, SLOT(checkDirectory()));
|
||||
connect(mUI.mActionSettings, SIGNAL(triggered()), this, SLOT(programSettings()));
|
||||
connect(mUI.mActionClearResults, SIGNAL(triggered()), this, SLOT(clearResults()));
|
||||
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.mActionLibraryEditor, SIGNAL(triggered()), this, SLOT(showLibraryEditor()));
|
||||
|
||||
connect(mUI.mActionRecheckModified, SIGNAL(triggered()), this, SLOT(reCheckModified()));
|
||||
connect(mUI.mActionRecheckAll, SIGNAL(triggered()), this, SLOT(reCheckAll()));
|
||||
connect(mUI.mActionReanalyzeModified, SIGNAL(triggered()), this, SLOT(reCheckModified()));
|
||||
connect(mUI.mActionReanalyzeAll, SIGNAL(triggered()), this, SLOT(reCheckAll()));
|
||||
|
||||
connect(mUI.mActionStop, SIGNAL(triggered()), this, SLOT(stopChecking()));
|
||||
connect(mUI.mActionSave, SIGNAL(triggered()), this, SLOT(save()));
|
||||
|
@ -151,8 +151,8 @@ MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) :
|
|||
mUI.mActionPrintPreview->setEnabled(false);
|
||||
mUI.mActionClearResults->setEnabled(false);
|
||||
mUI.mActionSave->setEnabled(false);
|
||||
mUI.mActionRecheckModified->setEnabled(false);
|
||||
mUI.mActionRecheckAll->setEnabled(false);
|
||||
mUI.mActionReanalyzeModified->setEnabled(false);
|
||||
mUI.mActionReanalyzeAll->setEnabled(false);
|
||||
enableProjectOpenActions(true);
|
||||
enableProjectActions(false);
|
||||
|
||||
|
@ -187,7 +187,7 @@ MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) :
|
|||
act->setData(plat.mType);
|
||||
act->setCheckable(true);
|
||||
act->setActionGroup(mPlatformActions);
|
||||
mUI.mMenuCheck->insertAction(mUI.mActionPlatforms, act);
|
||||
mUI.mMenuAnalyze->insertAction(mUI.mActionPlatforms, act);
|
||||
connect(act, SIGNAL(triggered()), this, SLOT(selectPlatform()));
|
||||
}
|
||||
|
||||
|
@ -863,8 +863,8 @@ void MainWindow::checkDone()
|
|||
if (mProject) {
|
||||
enableProjectActions(true);
|
||||
} else if (mIsLogfileLoaded) {
|
||||
mUI.mActionRecheckModified->setEnabled(false);
|
||||
mUI.mActionRecheckAll->setEnabled(false);
|
||||
mUI.mActionReanalyzeModified->setEnabled(false);
|
||||
mUI.mActionReanalyzeAll->setEnabled(false);
|
||||
}
|
||||
enableProjectOpenActions(true);
|
||||
mPlatformActions->setEnabled(true);
|
||||
|
@ -1050,8 +1050,8 @@ void MainWindow::loadResults(const QString selectedFile)
|
|||
closeProjectFile();
|
||||
mIsLogfileLoaded = true;
|
||||
mUI.mResults->clear(true);
|
||||
mUI.mActionRecheckModified->setEnabled(false);
|
||||
mUI.mActionRecheckAll->setEnabled(false);
|
||||
mUI.mActionReanalyzeModified->setEnabled(false);
|
||||
mUI.mActionReanalyzeAll->setEnabled(false);
|
||||
mUI.mResults->readErrorsXml(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)
|
||||
{
|
||||
mUI.mActionStop->setEnabled(!enable);
|
||||
mUI.mActionCheckFiles->setEnabled(enable);
|
||||
mUI.mActionAnalyzeFiles->setEnabled(enable);
|
||||
|
||||
if (!enable || mThread->hasPreviousFiles()) {
|
||||
mUI.mActionRecheckModified->setEnabled(enable);
|
||||
mUI.mActionRecheckAll->setEnabled(enable);
|
||||
mUI.mActionReanalyzeModified->setEnabled(enable);
|
||||
mUI.mActionReanalyzeAll->setEnabled(enable);
|
||||
}
|
||||
|
||||
mUI.mActionCheckDirectory->setEnabled(enable);
|
||||
mUI.mActionAnalyzeDirectory->setEnabled(enable);
|
||||
}
|
||||
|
||||
void MainWindow::showStyle(bool checked)
|
||||
|
|
|
@ -127,9 +127,9 @@
|
|||
<addaction name="separator"/>
|
||||
<addaction name="mActionAbout"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="mMenuCheck">
|
||||
<widget class="QMenu" name="mMenuAnalyze">
|
||||
<property name="title">
|
||||
<string>&Check</string>
|
||||
<string>Analyze</string>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuCpp_standard">
|
||||
<property name="title">
|
||||
|
@ -146,10 +146,10 @@
|
|||
<addaction name="mActionC99"/>
|
||||
<addaction name="mActionC11"/>
|
||||
</widget>
|
||||
<addaction name="mActionCheckFiles"/>
|
||||
<addaction name="mActionCheckDirectory"/>
|
||||
<addaction name="mActionRecheckModified"/>
|
||||
<addaction name="mActionRecheckAll"/>
|
||||
<addaction name="mActionAnalyzeFiles"/>
|
||||
<addaction name="mActionAnalyzeDirectory"/>
|
||||
<addaction name="mActionReanalyzeModified"/>
|
||||
<addaction name="mActionReanalyzeAll"/>
|
||||
<addaction name="mActionStop"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="menuC_standard"/>
|
||||
|
@ -172,7 +172,7 @@
|
|||
<addaction name="mMenuFile"/>
|
||||
<addaction name="mMenuEdit"/>
|
||||
<addaction name="mMenuView"/>
|
||||
<addaction name="mMenuCheck"/>
|
||||
<addaction name="mMenuAnalyze"/>
|
||||
<addaction name="mMenuHelp"/>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="mToolBarMain">
|
||||
|
@ -185,12 +185,12 @@
|
|||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="mActionCheckDirectory"/>
|
||||
<addaction name="mActionAnalyzeDirectory"/>
|
||||
<addaction name="mActionOpenProjectFile"/>
|
||||
<addaction name="mActionShowScratchpad"/>
|
||||
<addaction name="mActionSave"/>
|
||||
<addaction name="mActionRecheckModified"/>
|
||||
<addaction name="mActionRecheckAll"/>
|
||||
<addaction name="mActionReanalyzeModified"/>
|
||||
<addaction name="mActionReanalyzeAll"/>
|
||||
<addaction name="mActionStop"/>
|
||||
<addaction name="mActionClearResults"/>
|
||||
<addaction name="mActionSettings"/>
|
||||
|
@ -243,21 +243,21 @@
|
|||
<string>&About...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionCheckFiles">
|
||||
<action name="mActionAnalyzeFiles">
|
||||
<property name="text">
|
||||
<string>&Files...</string>
|
||||
</property>
|
||||
<property name="iconText">
|
||||
<string>Check files</string>
|
||||
<string>Analyze files</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Check files</string>
|
||||
<string>Analyze files</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+F</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionCheckDirectory">
|
||||
<action name="mActionAnalyzeDirectory">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/cppcheck-gui.png</normaloff>:/cppcheck-gui.png</iconset>
|
||||
|
@ -266,34 +266,34 @@
|
|||
<string>&Directory...</string>
|
||||
</property>
|
||||
<property name="iconText">
|
||||
<string>Check directory</string>
|
||||
<string>Analyze directory</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Check directory</string>
|
||||
<string>Analyze directory</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+D</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionRecheckModified">
|
||||
<action name="mActionReanalyzeModified">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/view-refresh.png</normaloff>:/images/view-refresh.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Recheck modified files</string>
|
||||
<string>&Reanalyze modified files</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+R</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionRecheckAll">
|
||||
<action name="mActionReanalyzeAll">
|
||||
<property name="icon">
|
||||
<iconset resource="gui.qrc">
|
||||
<normaloff>:/images/view-recheck.png</normaloff>:/images/view-recheck.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Recheck all files</string>
|
||||
<string>&Reanalyze all files</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionStop">
|
||||
|
@ -305,10 +305,10 @@
|
|||
<string>&Stop</string>
|
||||
</property>
|
||||
<property name="iconText">
|
||||
<string>Stop checking</string>
|
||||
<string>Stop analysis</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Stop checking</string>
|
||||
<string>Stop analysis</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Esc</string>
|
||||
|
|
Loading…
Reference in New Issue