Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Added the -noEventEmit simulation flag option.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22891 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Oct 23, 2014
1 parent f2ec8ee commit 4a89873
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion OMEdit/OMEditGUI/Simulation/SimulationDialog.cpp
Expand Up @@ -192,6 +192,8 @@ void SimulationDialog::setUpForm()
mpVariableFilterTextBox = new QLineEdit;
// Protected Variabels
mpProtectedVariablesCheckBox = new QCheckBox(tr("Protected Variables"));
mpStoreVariablesAtEventsCheckBox = new QCheckBox(tr("Store Variables at Events"));
mpStoreVariablesAtEventsCheckBox->setChecked(true);
// show generated files checkbox
mpShowGeneratedFilesCheckBox = new QCheckBox(tr("Show Generated Files"));
// set Output Tab Layout
Expand All @@ -206,7 +208,8 @@ void SimulationDialog::setUpForm()
pOutputTabLayout->addWidget(mpVariableFilterLabel, 3, 0);
pOutputTabLayout->addWidget(mpVariableFilterTextBox, 3, 1);
pOutputTabLayout->addWidget(mpProtectedVariablesCheckBox, 4, 0, 1, 2);
pOutputTabLayout->addWidget(mpShowGeneratedFilesCheckBox, 5, 0, 1, 2);
pOutputTabLayout->addWidget(mpStoreVariablesAtEventsCheckBox, 5, 0, 1, 2);
pOutputTabLayout->addWidget(mpShowGeneratedFilesCheckBox, 6, 0, 1, 2);
mpOutputTab->setLayout(pOutputTabLayout);
// add Output Tab to Simulation TabWidget
mpSimulationTabWidget->addTab(mpOutputTab, Helper::output);
Expand Down Expand Up @@ -995,6 +998,10 @@ void SimulationDialog::simulate()
if (mpProtectedVariablesCheckBox->isChecked()) {
mSimulationFlags.append("-emit_protected");
}
// store variables at events
if (!mpStoreVariablesAtEventsCheckBox->isChecked()) {
mSimulationFlags.append("-noEventEmit");
}
// setup Model Setup file flag
if (!mpModelSetupFileTextBox->text().isEmpty()) {
mSimulationFlags.append(QString("-f=").append(mpModelSetupFileTextBox->text()));
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/Simulation/SimulationDialog.h
Expand Up @@ -155,6 +155,7 @@ class SimulationDialog : public QDialog
Label *mpVariableFilterLabel;
QLineEdit *mpVariableFilterTextBox;
QCheckBox *mpProtectedVariablesCheckBox;
QCheckBox *mpStoreVariablesAtEventsCheckBox;
QCheckBox *mpShowGeneratedFilesCheckBox;
// Simulation Flags Tab
QWidget *mpSimulationFlagsTab;
Expand Down

0 comments on commit 4a89873

Please sign in to comment.