Skip to content

Commit

Permalink
- Don't translate Modelica keywords.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11702 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Apr 10, 2012
1 parent ca00143 commit 905201b
Show file tree
Hide file tree
Showing 10 changed files with 434 additions and 783 deletions.
24 changes: 0 additions & 24 deletions OMEdit/OMEditGUI/Helper.cpp
Expand Up @@ -97,10 +97,6 @@ QString Helper::parameters;
QString Helper::name;
QString Helper::comment;
QString Helper::type;
QString Helper::constant;
QString Helper::paramter;
QString Helper::Protected;
QString Helper::output;
QString Helper::information;
QString Helper::modelicaFiles;
QString Helper::rename;
Expand All @@ -114,14 +110,6 @@ QString Helper::paste;
QString Helper::loading;
QString Helper::question;
QString Helper::search;
QString Helper::model;
QString Helper::Class;
QString Helper::connector;
QString Helper::record;
QString Helper::block;
QString Helper::function;
QString Helper::package;
QString Helper::primitive;
QString Helper::simulate;
QString Helper::simulation;
QString Helper::interactiveSimulation;
Expand Down Expand Up @@ -188,10 +176,6 @@ void Helper::initHelperVariables()
Helper::name = tr("Name:");
Helper::comment = tr("Comment:");
Helper::type = tr("Type");
Helper::constant = tr("Constant");
Helper::paramter = tr("Paramter");
Helper::Protected = tr("Protected");
Helper::output = tr("Output");
Helper::information = tr("Information");
Helper::modelicaFiles = tr("Modelica Files");
Helper::rename = tr("rename");
Expand All @@ -205,14 +189,6 @@ void Helper::initHelperVariables()
Helper::loading = tr("Loading");
Helper::question = tr("Question");
Helper::search = tr("Search");
Helper::model = tr("Model");
Helper::Class = tr("Class");
Helper::connector = tr("Connector");
Helper::record = tr("Record");
Helper::block = tr("Block");
Helper::function = tr("Function");
Helper::package = tr("Package");
Helper::primitive = tr("Primitive");
Helper::simulate = tr("Simulate");
Helper::simulation = tr("Simulation");
Helper::interactiveSimulation = tr("Interactive Simulation");
Expand Down
8 changes: 0 additions & 8 deletions OMEdit/OMEditGUI/Helper.h
Expand Up @@ -105,12 +105,6 @@ class Helper : public QObject
static QString name;
static QString comment;
static QString type;
static QString constant;
static QString paramter;
static QString final;
static QString Protected;
static QString input;
static QString output;
static QString information;
static QString modelicaFiles;
static QString rename;
Expand All @@ -131,8 +125,6 @@ class Helper : public QObject
static QString block;
static QString function;
static QString functionTip;
static QString package;
static QString primitive;
static QString simulate;
static QString simulation;
static QString interactiveSimulation;
Expand Down
32 changes: 16 additions & 16 deletions OMEdit/OMEditGUI/IconProperties.cpp
Expand Up @@ -334,11 +334,11 @@ void IconAttributes::setUpDialog()
gridTypeLayout->addWidget(mpCommentTextBox, 1, 1);
mpTypeGroup->setLayout(gridTypeLayout);
// create Variablity Group Box
mpVariabilityGroup = new QGroupBox(tr("Variability"));
mpConstantRadio = new QRadioButton(Helper::constant);
mpParameterRadio = new QRadioButton(Helper::paramter);
mpDiscreteRadio = new QRadioButton(tr("Discrete"));
mpDefaultRadio = new QRadioButton(tr("Unspecified (Default)"));
mpVariabilityGroup = new QGroupBox("Variability");
mpConstantRadio = new QRadioButton("Constant");
mpParameterRadio = new QRadioButton("Parameter");
mpDiscreteRadio = new QRadioButton("Discrete");
mpDefaultRadio = new QRadioButton("Unspecified (Default)");
QVBoxLayout *verticalVariabilityLayout = new QVBoxLayout;
verticalVariabilityLayout->addWidget(mpConstantRadio);
verticalVariabilityLayout->addWidget(mpParameterRadio);
Expand All @@ -351,20 +351,20 @@ void IconAttributes::setUpDialog()
mpVariabilityButtonGroup->addButton(mpDefaultRadio);
mpVariabilityGroup->setLayout(verticalVariabilityLayout);
// create Variablity Group Box
mpPropertiesGroup = new QGroupBox(Helper::properties);
mpFinalCheckBox = new QCheckBox(tr("Final"));
mpProtectedCheckBox = new QCheckBox(Helper::Protected);
mpReplaceAbleCheckBox = new QCheckBox(tr("Replaceable"));
mpPropertiesGroup = new QGroupBox("Properties");
mpFinalCheckBox = new QCheckBox("Final");
mpProtectedCheckBox = new QCheckBox("Protected");
mpReplaceAbleCheckBox = new QCheckBox("Replaceable");
QVBoxLayout *verticalPropertiesLayout = new QVBoxLayout;
verticalPropertiesLayout->addWidget(mpFinalCheckBox);
verticalPropertiesLayout->addWidget(mpProtectedCheckBox);
verticalPropertiesLayout->addWidget(mpReplaceAbleCheckBox);
mpPropertiesGroup->setLayout(verticalPropertiesLayout);
// create Variablity Group Box
mpCausalityGroup = new QGroupBox(tr("Causality"));
mpInputRadio = new QRadioButton(tr("Input"));
mpOutputRadio = new QRadioButton(Helper::output);
mpNoneRadio = new QRadioButton(tr("None"));
mpCausalityGroup = new QGroupBox("Causality");
mpInputRadio = new QRadioButton("Input");
mpOutputRadio = new QRadioButton("Output");
mpNoneRadio = new QRadioButton("None");
QVBoxLayout *verticalCausalityLayout = new QVBoxLayout;
verticalCausalityLayout->addWidget(mpInputRadio);
verticalCausalityLayout->addWidget(mpOutputRadio);
Expand All @@ -375,9 +375,9 @@ void IconAttributes::setUpDialog()
mpCausalityButtonGroup->addButton(mpNoneRadio);
mpCausalityGroup->setLayout(verticalCausalityLayout);
// create Variablity Group Box
mpInnerOuterGroup = new QGroupBox(tr("Inner/Outer"));
mpInnerCheckBox = new QCheckBox(tr("Inner"));
mpOuterCheckBox = new QCheckBox(tr("Outer"));
mpInnerOuterGroup = new QGroupBox("Inner/Outer");
mpInnerCheckBox = new QCheckBox("Inner");
mpOuterCheckBox = new QCheckBox("Outer");
QVBoxLayout *verticalInnerOuterLayout = new QVBoxLayout;
verticalInnerOuterLayout->addWidget(mpInnerCheckBox);
verticalInnerOuterLayout->addWidget(mpOuterCheckBox);
Expand Down

0 comments on commit 905201b

Please sign in to comment.