QSS Solver GUI
4.5.3
|
#include <mmomegui.hpp>
Public Member Functions | |
MmomeGui () | |
~MmomeGui () | |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
void | initialize () |
Private Types | |
enum | { MaxRecentFiles = 5 } |
Private Member Functions | |
QString | strippedName (const QString &fullFileName) |
void | setCurrentFile (const QString fileName) |
void | loadFile (QString fileName) |
void | updateRecentFileActions () |
void | createActions () |
void | addMenuBarItems () |
void | addToolBarItems () |
void | addVariables () |
bool | compile (bool dbg) |
void | deleteVariables (QString name) |
void | editModel (QString name) |
void | enableActions (bool f) |
void | loadGraphics () |
bool | plotScript () |
void | run (QString name) |
void | selectVariables () |
Private Attributes | |
ComboBoxDelegate * | _cboxd |
QString | _iniFile |
TreeModel * | _model |
QProcess * | _proc |
QProcess * | _plot |
QProcess * | _log |
RunDlg * | _runDlg |
QString | _sbmlFile |
SettingsDlg * | _settingsDlg |
bool | _settings_only |
double | _timeInterval |
Utils * | _utils |
QTermWidget * | _python_console |
QTermWidget * | _console |
QAction * | recentFileActs [MaxRecentFiles] |
QString | _curFile |
QAction * | separatorAct |
QAction * | exitAct |
Definition at line 33 of file mmomegui.hpp.
|
private |
Enumerator | |
---|---|
MaxRecentFiles |
Definition at line 110 of file mmomegui.hpp.
MmomeGui::MmomeGui | ( | ) |
Definition at line 56 of file mmomegui.cpp.
References initialize().
MmomeGui::~MmomeGui | ( | ) |
Definition at line 62 of file mmomegui.cpp.
References Editor::drop().
|
private |
Definition at line 159 of file mmomegui.cpp.
Referenced by initialize().
|
private |
Definition at line 138 of file mmomegui.cpp.
Referenced by initialize().
|
private |
Definition at line 923 of file mmomegui.cpp.
References _cboxd, _model, _utils, ModelEditor::activeBaseFileName(), TreeModel::addFiles(), Utils::appDir(), Editor::instance(), MMOC_OUTPUT, and SLASH.
Referenced by importFinished(), loadFile(), run_finished(), and selectVariables().
|
privateslot |
Definition at line 541 of file mmomegui.cpp.
References _settings_only, _utils, ModelEditor::activeBaseFileName(), Utils::appDir(), ModelEditor::baseFileName(), Editor::instance(), MMOC_BUILD, setCurrentFile(), and SLASH.
Referenced by compile(), and editModel().
|
protected |
Definition at line 179 of file mmomegui.cpp.
References ModelEditor::closeFiles(), Editor::drop(), and Editor::instance().
|
privateslot |
Definition at line 669 of file mmomegui.cpp.
References _proc, _settings_only, _utils, ModelEditor::activeBaseFileName(), ModelEditor::activeFullFileName(), Utils::appCommand(), Utils::appDir(), CMD_BUILD, enableActions(), Editor::instance(), make_finished(), MMOC_BIN, MMOC_BUILD, and SLASH.
Referenced by compile().
|
private |
Definition at line 562 of file mmomegui.cpp.
References _proc, _settings_only, _utils, ModelEditor::activeBaseFileName(), ModelEditor::activeFullFileName(), Utils::appCommand(), Utils::appDir(), Utils::appFlag(), cleanBuildDir(), CMD_COMPILE, comp_finished(), FLG_DEBUG, FLG_FLAGS, Editor::instance(), MMOC_BIN, MMOC_BUILD, MMOC_ENGINE, MMOC_INCLUDE, MMOC_LIBRARIES, MMOC_LIBS, MMOC_MODELS, MMOC_OUTPUT, MMOC_PACKAGES, MMOC_SOURCE, and SLASH.
Referenced by on_actionDebug_triggered(), and runDlgClose().
|
private |
Definition at line 818 of file mmomegui.cpp.
References exitAct, MaxRecentFiles, openRecentFiles(), recentFileActs, separatorAct, and updateRecentFileActions().
Referenced by initialize().
|
private |
Definition at line 799 of file mmomegui.cpp.
References _cboxd, and _model.
Referenced by done(), and run_finished().
|
privateslot |
Definition at line 165 of file mmomegui.cpp.
References deleteVariables(), Editor::drop(), and Editor::instance().
Referenced by editModel().
|
private |
Definition at line 233 of file mmomegui.cpp.
References ModelEditor::clean(), cleanBuildDir(), done(), ModelEditor::done(), ModelEditor::editModel(), Editor::instance(), ModelEditor::save(), and ModelEditor::saveAll().
Referenced by importFinished(), loadFile(), log_finished(), and on_action_New_triggered().
|
private |
Definition at line 119 of file mmomegui.cpp.
Referenced by comp_finished(), initialize(), make_finished(), on_actionCompile_triggered(), on_actionDebug_triggered(), on_actionSettings_triggered(), run_finished(), runDlgClose(), and settingsDlgClosed().
|
privateslot |
Definition at line 624 of file mmomegui.cpp.
References _proc, _sbmlFile, addVariables(), and editModel().
Referenced by on_actionImport_triggered().
|
protected |
Definition at line 72 of file mmomegui.cpp.
References _cboxd, _console, _iniFile, _log, _model, _plot, _proc, _python_console, _runDlg, _settings_only, _utils, addMenuBarItems(), addToolBarItems(), createActions(), enableActions(), INIT_PYTHON, runDlgClose(), and runDlgRejected().
Referenced by MmomeGui().
|
private |
Definition at line 864 of file mmomegui.cpp.
References addVariables(), editModel(), and setCurrentFile().
Referenced by on_action_Load_triggered(), and openRecentFiles().
|
private |
|
privateslot |
Definition at line 1007 of file mmomegui.cpp.
References _log, _utils, ModelEditor::activeBaseFileName(), Utils::appDir(), editModel(), Editor::instance(), MMOC_OUTPUT, and SLASH.
Referenced by on_actionLog_triggered().
|
privateslot |
Definition at line 638 of file mmomegui.cpp.
References _proc, _settings_only, _utils, ModelEditor::activeBaseFileName(), Utils::appDir(), enableActions(), Editor::instance(), MMOC_BUILD, run(), and SLASH.
Referenced by comp_finished().
|
privateslot |
Definition at line 251 of file mmomegui.cpp.
References _utils, Utils::appDir(), loadFile(), and MMOC_MODELS.
|
privateslot |
Definition at line 231 of file mmomegui.cpp.
References editModel().
|
privateslot |
Definition at line 189 of file mmomegui.cpp.
References Editor::instance(), and ModelEditor::saveAs().
|
privateslot |
Definition at line 984 of file mmomegui.cpp.
References _utils, Utils::appFlag(), FLG_BRANCH, and FLG_VERSION.
|
privateslot |
Definition at line 784 of file mmomegui.cpp.
References _utils, Utils::appDir(), Editor::instance(), and MMOC_OUTPUT.
Referenced by run().
|
privateslot |
Definition at line 797 of file mmomegui.cpp.
|
privateslot |
Definition at line 734 of file mmomegui.cpp.
References _proc, enableActions(), and Editor::instance().
|
privateslot |
Definition at line 260 of file mmomegui.cpp.
References compile(), enableActions(), and Editor::instance().
|
privateslot |
Definition at line 982 of file mmomegui.cpp.
|
privateslot |
Definition at line 945 of file mmomegui.cpp.
References _plot, _utils, ModelEditor::activeBaseFileName(), Utils::appCommand(), Utils::appDir(), Utils::appFlag(), CMD_PLOT, FLG_PLOT, Editor::instance(), MMOC_OUTPUT, plot_finished(), plotScript(), and SLASH.
|
privateslot |
Definition at line 205 of file mmomegui.cpp.
References _proc, _sbmlFile, _utils, Utils::appCommand(), Utils::appDir(), CMD_SBML, importFinished(), MMOC_BIN, MMOC_LIBS, MMOC_MODELS, and SLASH.
|
privateslot |
Definition at line 766 of file mmomegui.cpp.
References _log, _utils, ModelEditor::activeBaseFileName(), Utils::appCommand(), Utils::appDir(), CMD_LOG, Editor::instance(), log_finished(), MMOC_BIN, MMOC_OUTPUT, and SLASH.
|
privateslot |
Definition at line 280 of file mmomegui.cpp.
|
privateslot |
Definition at line 268 of file mmomegui.cpp.
|
privateslot |
Definition at line 274 of file mmomegui.cpp.
|
privateslot |
Definition at line 433 of file mmomegui.cpp.
References _settings_only, and on_actionRun_triggered().
|
privateslot |
Definition at line 439 of file mmomegui.cpp.
References _runDlg, Editor::instance(), RunDlg::setAbsTolerance(), RunDlg::setBDFMaxStep(), RunDlg::setBDFPart(), RunDlg::setBDFPartitionDepth(), RunDlg::setDebugGraph(), RunDlg::setDerDelta(), RunDlg::setDescription(), RunDlg::setDT(), RunDlg::setDtSynch(), RunDlg::setGenerateArch(), RunDlg::setImbalance(), RunDlg::setJacobian(), RunDlg::setLPS(), RunDlg::setMetisSettings(), RunDlg::setMinStep(), RunDlg::setOutput(), RunDlg::setOutputType(), RunDlg::setParallel(), RunDlg::setPartitionMethod(), RunDlg::setPatohSettings(), RunDlg::setPeriod(), RunDlg::setReorderPartition(), RunDlg::setScheduler(), RunDlg::setScotchSettings(), RunDlg::setSemiStaticPartitioning(), RunDlg::setSolver(), RunDlg::setStartTime(), RunDlg::setStopTime(), RunDlg::setSymDiff(), RunDlg::setTolerance(), and RunDlg::setZcHyst().
Referenced by on_actionRun_2_triggered().
|
privateslot |
Definition at line 286 of file mmomegui.cpp.
|
privateslot |
Definition at line 197 of file mmomegui.cpp.
References _settingsDlg, enableActions(), and settingsDlgClosed().
|
privateslot |
Definition at line 837 of file mmomegui.cpp.
References loadFile().
Referenced by createActions().
|
privateslot |
Definition at line 972 of file mmomegui.cpp.
References _plot.
Referenced by on_actionGraphics_triggered().
|
private |
Definition at line 483 of file mmomegui.cpp.
References _model, _utils, ModelEditor::activeBaseFileName(), Utils::appDir(), Editor::instance(), MMOC_OUTPUT, and SLASH.
Referenced by on_actionGraphics_triggered().
|
private |
Definition at line 322 of file mmomegui.cpp.
References _proc, _timeInterval, _utils, Utils::appCommand(), Utils::appDir(), CMD_SIMULATE, Editor::instance(), MMOC_BIN, MMOC_BUILD, MMOC_ENGINE, MMOC_INCLUDE, MMOC_LIBRARIES, MMOC_LIBS, MMOC_MODELS, MMOC_OUTPUT, MMOC_PACKAGES, MMOC_SOURCE, on_actionClear_Log_triggered(), run_finished(), simulation_message(), SLASH, ModelEditor::startTime(), and ModelEditor::stopTime().
Referenced by make_finished().
|
privateslot |
Definition at line 292 of file mmomegui.cpp.
References _proc, _settings_only, _utils, ModelEditor::activeBaseFileName(), addVariables(), Utils::appDir(), deleteVariables(), enableActions(), Editor::instance(), MMOC_BUILD, and selectVariables().
Referenced by run().
|
privateslot |
Definition at line 382 of file mmomegui.cpp.
References _runDlg, _settings_only, _utils, RunDlg::absTolerance(), ModelEditor::activeBaseFileName(), Utils::appDir(), RunDlg::BDFMaxStep(), RunDlg::BDFPart(), RunDlg::BDFPartitionDepth(), compile(), RunDlg::debugGraph(), RunDlg::derDelta(), RunDlg::description(), RunDlg::DT(), RunDlg::dtSynch(), enableActions(), RunDlg::enableDebug(), RunDlg::generateArch(), RunDlg::imbalance(), Editor::instance(), RunDlg::jacobian(), RunDlg::LPS(), RunDlg::metisSettings(), RunDlg::minStep(), MMOC_BUILD, RunDlg::output(), RunDlg::outputType(), RunDlg::parallel(), RunDlg::partitionMethod(), RunDlg::patohSettings(), RunDlg::period(), RunDlg::reorderPartition(), ModelEditor::save(), RunDlg::scheduler(), RunDlg::scotchSettings(), RunDlg::semiStaticPartitioning(), ModelEditor::setAbsTolerance(), ModelEditor::setBDFMaxStep(), ModelEditor::setBDFPart(), ModelEditor::setBDFPartitionDepth(), ModelEditor::setDebugGraph(), ModelEditor::setDerDelta(), ModelEditor::setDescription(), ModelEditor::setDT(), ModelEditor::setDtSynch(), ModelEditor::setGenerateArch(), ModelEditor::setImbalance(), ModelEditor::setJacobian(), ModelEditor::setLPS(), ModelEditor::setMetisSettings(), ModelEditor::setMinStep(), ModelEditor::setOutput(), ModelEditor::setOutputType(), ModelEditor::setParallel(), ModelEditor::setPartitionMethod(), ModelEditor::setPatohSettings(), ModelEditor::setPeriod(), ModelEditor::setReorderPartition(), ModelEditor::setScheduler(), ModelEditor::setScotchSettings(), ModelEditor::setSemiStaticPartitioning(), ModelEditor::setSolver(), ModelEditor::setStartTime(), ModelEditor::setStopTime(), ModelEditor::setSymDiff(), ModelEditor::setTolerance(), ModelEditor::setZcHyst(), SLASH, RunDlg::solver(), RunDlg::startTime(), RunDlg::stopTime(), RunDlg::symDiff(), RunDlg::tolerance(), ModelEditor::writeAnnotations(), and RunDlg::zcHyst().
Referenced by initialize().
|
privateslot |
|
private |
Definition at line 885 of file mmomegui.cpp.
References _model, ModelEditor::activeBaseFileName(), addVariables(), and Editor::instance().
Referenced by run_finished().
|
private |
Definition at line 871 of file mmomegui.cpp.
References _curFile, MaxRecentFiles, and updateRecentFileActions().
Referenced by cleanBuildDir(), and loadFile().
|
privateslot |
Definition at line 320 of file mmomegui.cpp.
References enableActions().
Referenced by on_actionSettings_triggered().
|
privateslot |
Definition at line 370 of file mmomegui.cpp.
References _proc, and _timeInterval.
Referenced by run().
|
private |
Definition at line 1005 of file mmomegui.cpp.
Referenced by updateRecentFileActions().
|
private |
Definition at line 845 of file mmomegui.cpp.
References MaxRecentFiles, recentFileActs, separatorAct, and strippedName().
Referenced by createActions(), and setCurrentFile().
|
private |
Definition at line 96 of file mmomegui.hpp.
Referenced by addVariables(), deleteVariables(), and initialize().
|
private |
Definition at line 109 of file mmomegui.hpp.
Referenced by initialize().
|
private |
Definition at line 112 of file mmomegui.hpp.
Referenced by setCurrentFile().
|
private |
Definition at line 97 of file mmomegui.hpp.
Referenced by initialize().
|
private |
Definition at line 101 of file mmomegui.hpp.
Referenced by initialize(), log_finished(), and on_actionLog_triggered().
|
private |
Definition at line 98 of file mmomegui.hpp.
Referenced by addVariables(), deleteVariables(), initialize(), plotScript(), and selectVariables().
|
private |
Definition at line 100 of file mmomegui.hpp.
Referenced by initialize(), on_actionGraphics_triggered(), and plot_finished().
|
private |
Definition at line 99 of file mmomegui.hpp.
Referenced by comp_finished(), compile(), importFinished(), initialize(), make_finished(), on_actionCompile_triggered(), on_actionImport_triggered(), run(), run_finished(), and simulation_message().
|
private |
Definition at line 108 of file mmomegui.hpp.
Referenced by initialize().
|
private |
Definition at line 102 of file mmomegui.hpp.
Referenced by initialize(), on_actionRun_triggered(), and runDlgClose().
|
private |
Definition at line 103 of file mmomegui.hpp.
Referenced by importFinished(), and on_actionImport_triggered().
|
private |
Definition at line 105 of file mmomegui.hpp.
Referenced by cleanBuildDir(), comp_finished(), compile(), initialize(), make_finished(), on_actionRun_2_triggered(), run_finished(), runDlgClose(), and runDlgRejected().
|
private |
Definition at line 104 of file mmomegui.hpp.
Referenced by on_actionSettings_triggered().
|
private |
Definition at line 106 of file mmomegui.hpp.
Referenced by run(), and simulation_message().
|
private |
Definition at line 107 of file mmomegui.hpp.
Referenced by addVariables(), cleanBuildDir(), comp_finished(), compile(), initialize(), log_finished(), make_finished(), on_action_Load_triggered(), on_actionAbout_triggered(), on_actionClear_Log_triggered(), on_actionGraphics_triggered(), on_actionImport_triggered(), on_actionLog_triggered(), plotScript(), run(), run_finished(), and runDlgClose().
|
private |
Definition at line 114 of file mmomegui.hpp.
Referenced by createActions().
|
private |
Definition at line 111 of file mmomegui.hpp.
Referenced by createActions(), and updateRecentFileActions().
|
private |
Definition at line 113 of file mmomegui.hpp.
Referenced by createActions(), and updateRecentFileActions().