Skip to content

Commit

Permalink
ticket:4478 Added time units in simulation setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Aug 16, 2017
1 parent 116a854 commit 830a970
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OMEdit/OMEditGUI/Simulation/SimulationDialog.cpp
Expand Up @@ -177,12 +177,15 @@ void SimulationDialog::setUpForm()
pSimulationIntervalGridLayout->setColumnStretch(1, 1);
pSimulationIntervalGridLayout->addWidget(mpStartTimeLabel, 0, 0);
pSimulationIntervalGridLayout->addWidget(mpStartTimeTextBox, 0, 1);
pSimulationIntervalGridLayout->addWidget(new Label(Helper::secs), 0, 2);
pSimulationIntervalGridLayout->addWidget(mpStopTimeLabel, 1, 0);
pSimulationIntervalGridLayout->addWidget(mpStopTimeTextBox, 1, 1);
pSimulationIntervalGridLayout->addWidget(new Label(Helper::secs), 1, 2);
pSimulationIntervalGridLayout->addWidget(mpNumberofIntervalsRadioButton, 2, 0);
pSimulationIntervalGridLayout->addWidget(mpNumberofIntervalsSpinBox, 2, 1);
pSimulationIntervalGridLayout->addWidget(mpNumberofIntervalsSpinBox, 2, 1, 1, 2);
pSimulationIntervalGridLayout->addWidget(mpIntervalRadioButton, 3, 0);
pSimulationIntervalGridLayout->addWidget(mpIntervalTextBox, 3, 1);
pSimulationIntervalGridLayout->addWidget(new Label(Helper::secs), 3, 2);
mpSimulationIntervalGroupBox->setLayout(pSimulationIntervalGridLayout);
// Integration
mpIntegrationGroupBox = new QGroupBox(tr("Integration"));
Expand Down
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/Util/Helper.cpp
Expand Up @@ -353,6 +353,7 @@ QString Helper::condition;
QString Helper::immediate;
QString Helper::synchronize;
QString Helper::priority;
QString Helper::secs;

void Helper::initHelperVariables()
{
Expand Down Expand Up @@ -599,6 +600,7 @@ void Helper::initHelperVariables()
Helper::immediate = tr("Immediate");
Helper::synchronize = tr("Synchronize");
Helper::priority = tr("Priority:");
Helper::secs = tr("secs");
}

QString GUIMessages::getMessage(int type)
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/Util/Helper.h
Expand Up @@ -355,6 +355,7 @@ class Helper : public QObject
static QString immediate;
static QString synchronize;
static QString priority;
static QString secs;
};

class GUIMessages : public QObject
Expand Down

0 comments on commit 830a970

Please sign in to comment.