@@ -85,6 +85,7 @@ SCIRunMainWindow::SCIRunMainWindow()
8585{
8686 setupUi (this );
8787 builder_ = boost::make_shared<NetworkEditorBuilder>(this );
88+ dockManager_ = new DockManager (dockSpace_, this );
8889
8990 startup_ = true ;
9091
@@ -313,13 +314,11 @@ SCIRunMainWindow::SCIRunMainWindow()
313314 setupVersionButton ();
314315
315316 WidgetStyleMixin::tabStyle (optionsTabWidget_);
316-
317- qDebug () << " available height:" << size ().height ();
317+ setMaximumHeight (QApplication::desktop ()->screenGeometry ().height ());
318318}
319319
320320void SCIRunMainWindow::resizeEvent (QResizeEvent* event)
321321{
322- qDebug () << " available height:" << size ().height ();
323322 dockSpace_ = size ().height ();
324323 QMainWindow::resizeEvent (event);
325324}
@@ -542,7 +541,7 @@ void SCIRunMainWindow::setupNetworkEditor()
542541 highResolutionExpandFactor *= 1.5 ;
543542 }
544543 networkEditor_ = new NetworkEditor ({ getter, defaultNotePositionGetter_, dialogErrorControl_, preexecuteFunc,
545- tagColorFunc, tagNameFunc, highResolutionExpandFactor }, scrollAreaWidgetContents_);
544+ tagColorFunc, tagNameFunc, highResolutionExpandFactor, dockManager_ }, scrollAreaWidgetContents_);
546545 gridLayout_5->addWidget (networkEditor_, 0 , 0 , 1 , 1 );
547546
548547 builder_->connectAll (networkEditor_);
@@ -1936,7 +1935,6 @@ void SCIRunMainWindow::addModuleToWindowList(const QString& modId, bool hasUI)
19361935
19371936 connect (showAction, SIGNAL (triggered ()), networkEditor_, SLOT (subnetMenuActionTriggered ()));
19381937 connect (renameAction, SIGNAL (triggered ()), networkEditor_, SLOT (subnetMenuActionTriggered ()));
1939- // qDebug() << "add" << modId;
19401938 currentSubnetActions_.insert (modId, subnetMenu);
19411939 menuCurrentSubnets_->addMenu (subnetMenu);
19421940 }
@@ -1945,7 +1943,6 @@ void SCIRunMainWindow::addModuleToWindowList(const QString& modId, bool hasUI)
19451943void SCIRunMainWindow::removeModuleFromWindowList (const ModuleId& modId)
19461944{
19471945 auto name = QString::fromStdString (modId.id_ );
1948- // qDebug() << "remove" << name;
19491946 auto action = currentModuleActions_[name];
19501947 menuCurrent_->removeAction (action);
19511948 currentModuleActions_.remove (name);
@@ -1954,7 +1951,6 @@ void SCIRunMainWindow::removeModuleFromWindowList(const ModuleId& modId)
19541951
19551952 if (modId.id_ .find (" Subnet" ) != std::string::npos)
19561953 {
1957- // qDebug() << currentSubnetActions_;
19581954 auto subnet = currentSubnetActions_[name];
19591955 if (subnet)
19601956 menuCurrentSubnets_->removeAction (subnet->menuAction ());
0 commit comments