Skip to content

Commit

Permalink
Added the Component Parameters classes.
Browse files Browse the repository at this point in the history
Added the facility so that user can modify parameters.
Added the component rotate feature.
Added the connections compatibility check.
Added the save functionality

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6390 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Oct 16, 2010
1 parent 2088a7f commit 60bf026
Show file tree
Hide file tree
Showing 31 changed files with 2,027 additions and 765 deletions.
9 changes: 7 additions & 2 deletions OMEdit/OMEditGUI/ComponentsProperties.cpp
Expand Up @@ -38,7 +38,7 @@ ComponentsProperties::ComponentsProperties(QString value)
{
this->mClassName = "";
this->mName = "";
this->mDescription = "";
this->mComment = "";
this->mIsProtected = false;
this->mIsFinal = false;
this->mIsFlow = false;
Expand Down Expand Up @@ -79,7 +79,7 @@ void ComponentsProperties::parseString(QString value)
return;

if (list.size() > 2)
this->mDescription = list.at(2);
this->mComment = list.at(2);
else
return;

Expand Down Expand Up @@ -155,3 +155,8 @@ QString ComponentsProperties::getName()
{
return mName;
}

QString ComponentsProperties::getComment()
{
return mComment;
}
3 changes: 2 additions & 1 deletion OMEdit/OMEditGUI/ComponentsProperties.h
Expand Up @@ -44,10 +44,11 @@ class ComponentsProperties
void parseString(QString value);
QString getClassName();
QString getName();
QString getComment();
private:
QString mClassName;
QString mName;
QString mDescription;
QString mComment;
bool mIsProtected;
bool mIsFinal;
bool mIsFlow;
Expand Down

0 comments on commit 60bf026

Please sign in to comment.