QSS Solver GUI  4.5.3
MmomeGui Class Reference

#include <mmomegui.hpp>

Inheritance diagram for MmomeGui:
Collaboration diagram for MmomeGui:

Public Member Functions

 MmomeGui ()
 
 ~MmomeGui ()
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 
void initialize ()
 

Private Types

enum  { MaxRecentFiles = 5 }
 

Private Slots

void cleanBuildDir (int)
 
void done (QString name, QString ext)
 
void on_actionClear_Log_triggered ()
 
void on_actionClear_Messages_triggered ()
 
void on_actionCompile_triggered ()
 
void on_actionDebug_triggered ()
 
void on_actionExit_triggered ()
 
void on_actionGraphics_triggered ()
 
void on_actionImport_triggered ()
 
void on_action_Load_triggered ()
 
void on_actionLog_triggered ()
 
void on_action_New_triggered ()
 
void on_actionRun_triggered ()
 
void on_actionRun_2_triggered ()
 
void on_action_Save_As_triggered ()
 
void on_actionSettings_triggered ()
 
void on_actionMicroModelica_Language_Scpefication_triggered ()
 
void on_actionQSS_Solver_Engine_Documentation_triggered ()
 
void on_actionMicroModelica_Compiler_Documentation_triggered ()
 
void on_actionSBML_Translator_Documentation_triggered ()
 
void on_actionAbout_triggered ()
 
void runDlgClose ()
 
void runDlgRejected ()
 
void comp_finished (int exitCode, QProcess::ExitStatus exitStatus)
 
void importFinished (int exitCode, QProcess::ExitStatus exitStatus)
 
void make_finished (int exitCode, QProcess::ExitStatus exitStatus)
 
void plot_finished (int exitCode, QProcess::ExitStatus exitStatus)
 
void run_finished (int exitCode, QProcess::ExitStatus exitStatus)
 
void settingsDlgClosed ()
 
void simulation_message ()
 
void openRecentFiles ()
 
void log_finished (int exitCode, QProcess::ExitStatus exitStatus)
 

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
 

Detailed Description

Definition at line 33 of file mmomegui.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MaxRecentFiles 

Definition at line 110 of file mmomegui.hpp.

Constructor & Destructor Documentation

◆ MmomeGui()

MmomeGui::MmomeGui ( )

Definition at line 56 of file mmomegui.cpp.

References initialize().

Here is the call graph for this function:

◆ ~MmomeGui()

MmomeGui::~MmomeGui ( )

Definition at line 62 of file mmomegui.cpp.

References Editor::drop().

Here is the call graph for this function:

Member Function Documentation

◆ addMenuBarItems()

void MmomeGui::addMenuBarItems ( )
private

Definition at line 159 of file mmomegui.cpp.

Referenced by initialize().

◆ addToolBarItems()

void MmomeGui::addToolBarItems ( )
private

Definition at line 138 of file mmomegui.cpp.

Referenced by initialize().

◆ addVariables()

void MmomeGui::addVariables ( )
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().

Here is the call graph for this function:

◆ cleanBuildDir

void MmomeGui::cleanBuildDir ( int  idx)
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().

Here is the call graph for this function:

◆ closeEvent()

void MmomeGui::closeEvent ( QCloseEvent *  event)
protected

Definition at line 179 of file mmomegui.cpp.

References ModelEditor::closeFiles(), Editor::drop(), and Editor::instance().

Here is the call graph for this function:

◆ comp_finished

void MmomeGui::comp_finished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
privateslot

◆ compile()

◆ createActions()

void MmomeGui::createActions ( )
private

Definition at line 818 of file mmomegui.cpp.

References exitAct, MaxRecentFiles, openRecentFiles(), recentFileActs, separatorAct, and updateRecentFileActions().

Referenced by initialize().

Here is the call graph for this function:

◆ deleteVariables()

void MmomeGui::deleteVariables ( QString  name)
private

Definition at line 799 of file mmomegui.cpp.

References _cboxd, and _model.

Referenced by done(), and run_finished().

◆ done

void MmomeGui::done ( QString  name,
QString  ext 
)
privateslot

Definition at line 165 of file mmomegui.cpp.

References deleteVariables(), Editor::drop(), and Editor::instance().

Referenced by editModel().

Here is the call graph for this function:

◆ editModel()

void MmomeGui::editModel ( QString  name)
private

◆ enableActions()

◆ importFinished

void MmomeGui::importFinished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
privateslot

Definition at line 624 of file mmomegui.cpp.

References _proc, _sbmlFile, addVariables(), and editModel().

Referenced by on_actionImport_triggered().

Here is the call graph for this function:

◆ initialize()

void MmomeGui::initialize ( )
protected

◆ loadFile()

void MmomeGui::loadFile ( QString  fileName)
private

Definition at line 864 of file mmomegui.cpp.

References addVariables(), editModel(), and setCurrentFile().

Referenced by on_action_Load_triggered(), and openRecentFiles().

Here is the call graph for this function:

◆ loadGraphics()

void MmomeGui::loadGraphics ( )
private

◆ log_finished

void MmomeGui::log_finished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
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().

Here is the call graph for this function:

◆ make_finished

void MmomeGui::make_finished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
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().

Here is the call graph for this function:

◆ on_action_Load_triggered

void MmomeGui::on_action_Load_triggered ( )
privateslot

Definition at line 251 of file mmomegui.cpp.

References _utils, Utils::appDir(), loadFile(), and MMOC_MODELS.

Here is the call graph for this function:

◆ on_action_New_triggered

void MmomeGui::on_action_New_triggered ( )
privateslot

Definition at line 231 of file mmomegui.cpp.

References editModel().

Here is the call graph for this function:

◆ on_action_Save_As_triggered

void MmomeGui::on_action_Save_As_triggered ( )
privateslot

Definition at line 189 of file mmomegui.cpp.

References Editor::instance(), and ModelEditor::saveAs().

Here is the call graph for this function:

◆ on_actionAbout_triggered

void MmomeGui::on_actionAbout_triggered ( )
privateslot

Definition at line 984 of file mmomegui.cpp.

References _utils, Utils::appFlag(), FLG_BRANCH, and FLG_VERSION.

Here is the call graph for this function:

◆ on_actionClear_Log_triggered

void MmomeGui::on_actionClear_Log_triggered ( )
privateslot

Definition at line 784 of file mmomegui.cpp.

References _utils, Utils::appDir(), Editor::instance(), and MMOC_OUTPUT.

Referenced by run().

Here is the call graph for this function:

◆ on_actionClear_Messages_triggered

void MmomeGui::on_actionClear_Messages_triggered ( )
privateslot

Definition at line 797 of file mmomegui.cpp.

◆ on_actionCompile_triggered

void MmomeGui::on_actionCompile_triggered ( )
privateslot

Definition at line 734 of file mmomegui.cpp.

References _proc, enableActions(), and Editor::instance().

Here is the call graph for this function:

◆ on_actionDebug_triggered

void MmomeGui::on_actionDebug_triggered ( )
privateslot

Definition at line 260 of file mmomegui.cpp.

References compile(), enableActions(), and Editor::instance().

Here is the call graph for this function:

◆ on_actionExit_triggered

void MmomeGui::on_actionExit_triggered ( )
privateslot

Definition at line 982 of file mmomegui.cpp.

◆ on_actionGraphics_triggered

void MmomeGui::on_actionGraphics_triggered ( )
privateslot

◆ on_actionImport_triggered

void MmomeGui::on_actionImport_triggered ( )
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.

Here is the call graph for this function:

◆ on_actionLog_triggered

void MmomeGui::on_actionLog_triggered ( )
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.

Here is the call graph for this function:

◆ on_actionMicroModelica_Compiler_Documentation_triggered

void MmomeGui::on_actionMicroModelica_Compiler_Documentation_triggered ( )
privateslot

Definition at line 280 of file mmomegui.cpp.

◆ on_actionMicroModelica_Language_Scpefication_triggered

void MmomeGui::on_actionMicroModelica_Language_Scpefication_triggered ( )
privateslot

Definition at line 268 of file mmomegui.cpp.

◆ on_actionQSS_Solver_Engine_Documentation_triggered

void MmomeGui::on_actionQSS_Solver_Engine_Documentation_triggered ( )
privateslot

Definition at line 274 of file mmomegui.cpp.

◆ on_actionRun_2_triggered

void MmomeGui::on_actionRun_2_triggered ( )
privateslot

Definition at line 433 of file mmomegui.cpp.

References _settings_only, and on_actionRun_triggered().

Here is the call graph for this function:

◆ on_actionRun_triggered

◆ on_actionSBML_Translator_Documentation_triggered

void MmomeGui::on_actionSBML_Translator_Documentation_triggered ( )
privateslot

Definition at line 286 of file mmomegui.cpp.

◆ on_actionSettings_triggered

void MmomeGui::on_actionSettings_triggered ( )
privateslot

Definition at line 197 of file mmomegui.cpp.

References _settingsDlg, enableActions(), and settingsDlgClosed().

Here is the call graph for this function:

◆ openRecentFiles

void MmomeGui::openRecentFiles ( )
privateslot

Definition at line 837 of file mmomegui.cpp.

References loadFile().

Referenced by createActions().

Here is the call graph for this function:

◆ plot_finished

void MmomeGui::plot_finished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
privateslot

Definition at line 972 of file mmomegui.cpp.

References _plot.

Referenced by on_actionGraphics_triggered().

◆ plotScript()

bool MmomeGui::plotScript ( )
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().

Here is the call graph for this function:

◆ run()

◆ run_finished

void MmomeGui::run_finished ( int  exitCode,
QProcess::ExitStatus  exitStatus 
)
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().

Here is the call graph for this function:

◆ runDlgClose

void MmomeGui::runDlgClose ( )
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().

◆ runDlgRejected

void MmomeGui::runDlgRejected ( )
privateslot

Definition at line 380 of file mmomegui.cpp.

References _settings_only.

Referenced by initialize().

◆ selectVariables()

void MmomeGui::selectVariables ( )
private

Definition at line 885 of file mmomegui.cpp.

References _model, ModelEditor::activeBaseFileName(), addVariables(), and Editor::instance().

Referenced by run_finished().

Here is the call graph for this function:

◆ setCurrentFile()

void MmomeGui::setCurrentFile ( const QString  fileName)
private

Definition at line 871 of file mmomegui.cpp.

References _curFile, MaxRecentFiles, and updateRecentFileActions().

Referenced by cleanBuildDir(), and loadFile().

Here is the call graph for this function:

◆ settingsDlgClosed

void MmomeGui::settingsDlgClosed ( )
privateslot

Definition at line 320 of file mmomegui.cpp.

References enableActions().

Referenced by on_actionSettings_triggered().

Here is the call graph for this function:

◆ simulation_message

void MmomeGui::simulation_message ( )
privateslot

Definition at line 370 of file mmomegui.cpp.

References _proc, and _timeInterval.

Referenced by run().

◆ strippedName()

QString MmomeGui::strippedName ( const QString &  fullFileName)
private

Definition at line 1005 of file mmomegui.cpp.

Referenced by updateRecentFileActions().

◆ updateRecentFileActions()

void MmomeGui::updateRecentFileActions ( )
private

Definition at line 845 of file mmomegui.cpp.

References MaxRecentFiles, recentFileActs, separatorAct, and strippedName().

Referenced by createActions(), and setCurrentFile().

Here is the call graph for this function:

Member Data Documentation

◆ _cboxd

ComboBoxDelegate* MmomeGui::_cboxd
private

Definition at line 96 of file mmomegui.hpp.

Referenced by addVariables(), deleteVariables(), and initialize().

◆ _console

QTermWidget* MmomeGui::_console
private

Definition at line 109 of file mmomegui.hpp.

Referenced by initialize().

◆ _curFile

QString MmomeGui::_curFile
private

Definition at line 112 of file mmomegui.hpp.

Referenced by setCurrentFile().

◆ _iniFile

QString MmomeGui::_iniFile
private

Definition at line 97 of file mmomegui.hpp.

Referenced by initialize().

◆ _log

QProcess* MmomeGui::_log
private

Definition at line 101 of file mmomegui.hpp.

Referenced by initialize(), log_finished(), and on_actionLog_triggered().

◆ _model

TreeModel* MmomeGui::_model
private

Definition at line 98 of file mmomegui.hpp.

Referenced by addVariables(), deleteVariables(), initialize(), plotScript(), and selectVariables().

◆ _plot

QProcess* MmomeGui::_plot
private

Definition at line 100 of file mmomegui.hpp.

Referenced by initialize(), on_actionGraphics_triggered(), and plot_finished().

◆ _proc

◆ _python_console

QTermWidget* MmomeGui::_python_console
private

Definition at line 108 of file mmomegui.hpp.

Referenced by initialize().

◆ _runDlg

RunDlg* MmomeGui::_runDlg
private

Definition at line 102 of file mmomegui.hpp.

Referenced by initialize(), on_actionRun_triggered(), and runDlgClose().

◆ _sbmlFile

QString MmomeGui::_sbmlFile
private

Definition at line 103 of file mmomegui.hpp.

Referenced by importFinished(), and on_actionImport_triggered().

◆ _settings_only

bool MmomeGui::_settings_only
private

◆ _settingsDlg

SettingsDlg* MmomeGui::_settingsDlg
private

Definition at line 104 of file mmomegui.hpp.

Referenced by on_actionSettings_triggered().

◆ _timeInterval

double MmomeGui::_timeInterval
private

Definition at line 106 of file mmomegui.hpp.

Referenced by run(), and simulation_message().

◆ _utils

◆ exitAct

QAction* MmomeGui::exitAct
private

Definition at line 114 of file mmomegui.hpp.

Referenced by createActions().

◆ recentFileActs

QAction* MmomeGui::recentFileActs[MaxRecentFiles]
private

Definition at line 111 of file mmomegui.hpp.

Referenced by createActions(), and updateRecentFileActions().

◆ separatorAct

QAction* MmomeGui::separatorAct
private

Definition at line 113 of file mmomegui.hpp.

Referenced by createActions(), and updateRecentFileActions().


The documentation for this class was generated from the following files: