Skip to content

Commit

Permalink
- New visualize2 API.
Browse files Browse the repository at this point in the history
- writes the file <modelname>.visualize with the information about the visualization objects.
- Later it needs to be extended to call the visualization tool and then pass the simulation result file and <modelname>.visualize to it.
- removed an extra print from getElementName.
- OMEdit: the modelbrowser window take less area now.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9940 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Sep 26, 2011
1 parent 77b3dfb commit 85127e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 0 additions & 6 deletions OMEdit/OMEditGUI/LibraryWidget.cpp
Expand Up @@ -1151,26 +1151,20 @@ SearchMSLWidget::SearchMSLWidget(MainWindow *pParent)
: QWidget(pParent)
{
mpParentMainWindow = pParent;

// get MSL recursive
mMSLItemsList = mpParentMainWindow->mpOMCProxy->getClassNamesRecursive(tr("Modelica"));

// create search controls
mpSearchTextBox = new MSLSearchBox(this);
connect(mpSearchTextBox, SIGNAL(returnPressed()), SLOT(searchMSL()));

mpSearchButton = new QPushButton(tr("Search"));
connect(mpSearchButton, SIGNAL(pressed()), SLOT(searchMSL()));

mpSearchedItemsTree = new LibraryTree(mpParentMainWindow->mpLibrary);
mpSearchedItemsTree->setFrameShape(QFrame::StyledPanel);
mpSearchedItemsTree->setHeaderLabel(tr("Searched Items"));

// add the search controls to layout
QHBoxLayout *horizontalLayout = new QHBoxLayout;
horizontalLayout->addWidget(mpSearchTextBox);
horizontalLayout->addWidget(mpSearchButton);

QVBoxLayout *verticalLayout = new QVBoxLayout;
verticalLayout->setContentsMargins(0, 0, 2, 0);
verticalLayout->addLayout(horizontalLayout);
Expand Down
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/mainwindow.cpp
Expand Up @@ -109,11 +109,13 @@ MainWindow::MainWindow(SplashScreen *splashScreen, QWidget *parent)
searchMSLdock->hide();
//Create a dock for the componentslibrary
libdock = new QDockWidget(tr(" Components"), this);
libdock->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
libdock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
libdock->setWidget(mpLibrary);
addDockWidget(Qt::LeftDockWidgetArea, libdock);
//create a dock for the model browser
modelBrowserdock = new QDockWidget(tr("Model Browser"), this);
modelBrowserdock->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
modelBrowserdock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
mpModelBrowser = new ModelBrowserWidget(this);
modelBrowserdock->setWidget(mpModelBrowser);
Expand Down

0 comments on commit 85127e4

Please sign in to comment.