Skip to content

Commit

Permalink
- A new OMEdit
Browse files Browse the repository at this point in the history
Fixes
- Changed the typo conncted to connected
- Changed the code so that protected connector only show on diagram layer and not on icon layer.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8284 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Mar 17, 2011
1 parent b8a7ed5 commit 858e268
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions OMEdit/OMEditGUI/Component.cpp
Expand Up @@ -881,6 +881,10 @@ void Component::getClassComponents(QString className, int type)
if (static_cast<QString>(componentsAnnotationsList.at(i)).toLower().contains("error"))
continue;

// if component is protected we don't show it in the icon layer.
if (componentProperties->getProtected())
continue;

if (StringHandler::removeFirstLastCurlBrackets(componentsAnnotationsList.at(i)).length() > 0)
{
if (mpOMCProxy->isWhat(StringHandler::CONNECTOR, componentProperties->getClassName()))
Expand Down
4 changes: 2 additions & 2 deletions OMEdit/OMEditGUI/ProjectTabWidget.cpp
Expand Up @@ -897,7 +897,7 @@ void GraphicsView::addConnector(Component *pComponent)
this->mConnectorsVector.append(mpConnector);
// add the connection annotation to OMC
mpConnector->updateConnectionAnnotationString();
pMainWindow->mpMessageWidget->printGUIInfoMessage("Conncted: (" + startIconName + "." + startIconCompName +
pMainWindow->mpMessageWidget->printGUIInfoMessage("Connected: (" + startIconName + "." + startIconCompName +
", " + endIconName + "." + endIconCompName + ")");
}
else
Expand Down Expand Up @@ -975,7 +975,7 @@ void GraphicsView::removeConnector(Connector* pConnector)
endComponentName + "." + endIconCompName,
mpParentProjectTab->mModelNameStructure))
{
// pMainWindow->mpMessageWidget->printGUIInfoMessage("Disconncted: (" + startComponentName + "." + startIconCompName +
// pMainWindow->mpMessageWidget->printGUIInfoMessage("Disconnected: (" + startComponentName + "." + startIconCompName +
// ", " + endComponentName + "." + endIconCompName + ")");
}
else
Expand Down

0 comments on commit 858e268

Please sign in to comment.