Skip to content

Commit

Permalink
#2391. Create a default initialization section to use.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Dec 9, 2015
1 parent 0d71e99 commit cb6f347
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions OMEdit/OMEditGUI/Component/ComponentProperties.cpp
Expand Up @@ -60,6 +60,7 @@ Parameter::Parameter(Component *pComponent, bool showStartAttribute, QString tab
mpFixedCheckBox = new FixedCheckBox;
connect(mpFixedCheckBox, SIGNAL(clicked()), SLOT(showFixedMenu()));
mOriginalFixedValue = "";
setFixedState("false", true);
// set the value type based on component type.
OMCProxy *pOMCProxy = mpComponent->getGraphicsView()->getModelWidget()->getModelWidgetContainer()->getMainWindow()->getOMCProxy();
if (mpComponent->getComponentInfo()->getClassName().compare("Boolean") == 0) {
Expand Down Expand Up @@ -484,8 +485,10 @@ void ComponentParameters::setUpDialog()
ParametersScrollArea *pParametersScrollArea = new ParametersScrollArea;
// first add the Component Group Box
pParametersScrollArea->getLayout()->addWidget(mpComponentGroupBox);
GroupBox *pGroupBox = new GroupBox("Parameters");
pParametersScrollArea->addGroupBox(pGroupBox);
GroupBox *pParametersGroupBox = new GroupBox("Parameters");
pParametersScrollArea->addGroupBox(pParametersGroupBox);
GroupBox *pInitializationGroupBox = new GroupBox("Initialization");
pParametersScrollArea->addGroupBox(pInitializationGroupBox);
mTabsMap.insert("General", mpParametersTabWidget->addTab(pParametersScrollArea, "General"));
// create parameters tabs and groupboxes
createTabsGroupBoxesAndParameters(mpComponent->getLibraryTreeItem());
Expand Down

0 comments on commit cb6f347

Please sign in to comment.