Skip to content

Commit

Permalink
Remove all traces of the Analysis mode.
Browse files Browse the repository at this point in the history
Since we have never used it…
  • Loading branch information
agarny committed Aug 23, 2018
1 parent 224b0a3 commit 07bdf14
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
4 changes: 0 additions & 4 deletions src/plugins/miscellaneous/Core/i18n/Core_fr.ts
Expand Up @@ -19,10 +19,6 @@
<source>Simulation</source>
<translation></translation>
</message>
<message>
<source>Analysis</source>
<translation>Analyse</translation>
</message>
<message>
<source>Open Remote File</source>
<translation>Ouvrir Fichier À Distance</translation>
Expand Down
6 changes: 0 additions & 6 deletions src/plugins/miscellaneous/Core/src/centralwidget.cpp
Expand Up @@ -169,7 +169,6 @@ CentralWidget::CentralWidget(QWidget *pParent) :

mModes.insert(ViewInterface::EditingMode, new CentralWidgetMode(this));
mModes.insert(ViewInterface::SimulationMode, new CentralWidgetMode(this));
mModes.insert(ViewInterface::AnalysisMode, new CentralWidgetMode(this));
#ifdef ENABLE_SAMPLE_PLUGINS
mModes.insert(ViewInterface::SampleMode, new CentralWidgetMode(this));
#endif
Expand Down Expand Up @@ -624,8 +623,6 @@ void CentralWidget::retranslateUi()
tr("Editing"));
mModeTabs->setTabText(mModeModeTabIndexes.value(ViewInterface::SimulationMode, -1),
tr("Simulation"));
mModeTabs->setTabText(mModeModeTabIndexes.value(ViewInterface::AnalysisMode, -1),
tr("Analysis"));
#ifdef ENABLE_SAMPLE_PLUGINS
mModeTabs->setTabText(mModeModeTabIndexes.value(ViewInterface::SampleMode, -1),
tr("Sample"));
Expand Down Expand Up @@ -1807,7 +1804,6 @@ void CentralWidget::updateGui()

mModes.value(ViewInterface::EditingMode)->viewTabs()->hide();
mModes.value(ViewInterface::SimulationMode)->viewTabs()->hide();
mModes.value(ViewInterface::AnalysisMode)->viewTabs()->hide();
#ifdef ENABLE_SAMPLE_PLUGINS
mModes.value(ViewInterface::SampleMode)->viewTabs()->hide();
#endif
Expand All @@ -1819,8 +1815,6 @@ void CentralWidget::updateGui()
mModes.value(ViewInterface::EditingMode)->viewTabs()->show();
else if (fileModeTabIndex == mModeModeTabIndexes.value(ViewInterface::SimulationMode))
mModes.value(ViewInterface::SimulationMode)->viewTabs()->show();
else if (fileModeTabIndex == mModeModeTabIndexes.value(ViewInterface::AnalysisMode))
mModes.value(ViewInterface::AnalysisMode)->viewTabs()->show();
#ifdef ENABLE_SAMPLE_PLUGINS
else if (fileModeTabIndex == mModeModeTabIndexes.value(ViewInterface::SampleMode))
mModes.value(ViewInterface::SampleMode)->viewTabs()->show();
Expand Down
5 changes: 0 additions & 5 deletions src/plugins/viewinterface.cpp
Expand Up @@ -47,7 +47,6 @@ ViewInterface::~ViewInterface()
static const auto ViewModeUnknown = QStringLiteral("UnknownMode");
static const auto ViewModeEditing = QStringLiteral("EditingMode");
static const auto ViewModeSimulation = QStringLiteral("SimulationMode");
static const auto ViewModeAnalysis = QStringLiteral("AnalysisMode");
#ifdef ENABLE_SAMPLE_PLUGINS
static const auto ViewModeSample = QStringLiteral("SampleMode");
#endif
Expand All @@ -68,8 +67,6 @@ QString ViewInterface::modeAsString(Mode pMode)
return ViewModeEditing;
case SimulationMode:
return ViewModeSimulation;
case AnalysisMode:
return ViewModeAnalysis;
#ifdef ENABLE_SAMPLE_PLUGINS
case SampleMode:
return ViewModeSample;
Expand All @@ -95,8 +92,6 @@ ViewInterface::Mode ViewInterface::modeFromString(const QString &pMode)
return EditingMode;
else if (!pMode.compare(ViewModeSimulation))
return SimulationMode;
else if (!pMode.compare(ViewModeAnalysis))
return AnalysisMode;
#ifdef ENABLE_SAMPLE_PLUGINS
else if (!pMode.compare(ViewModeSample))
return SampleMode;
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/viewinterface.h
Expand Up @@ -50,8 +50,7 @@ class ViewInterface
TestMode,
#endif
EditingMode,
SimulationMode,
AnalysisMode
SimulationMode
};

virtual ~ViewInterface();
Expand Down

0 comments on commit 07bdf14

Please sign in to comment.