void MainWindow::on_actionModern_GUI_triggered() { setTabView(); int win = activeChildWindow(); if(win==WND_Level) on_actionLVLToolBox_triggered(true); if(win==WND_World) on_actionWLDToolBox_triggered(true); //if((win==WND_Level) || (win==WND_World)) // on_actionTilesetBox_triggered(false); dock_LvlItemBox->m_lastVisibilityState = true; dock_WldItemBox->m_lastVisibilityState = true; //dock_TilesetBox->m_lastVisibilityState = false; m_toolbarVanilla->setVisible(false); }
bool DrawTestEditor::open (void *ptr) { AEffGUIEditor::open (ptr); CRect size (rect.left , rect.top, rect.right, rect.bottom); CFrame* frame = new CFrame (size, ptr, this); frame->setBackground (backgroundBitmap); size.inset (8, 8); size.top++; // the background bitmap is not correct size.left++; // the background bitmap is not correct // CView* testView = new PLinesView (size); // frame->addView (testView); setTabView (frame, size, CTabView::kPositionBottom); tooltipSupport = new CTooltipSupport; frame->setMouseObserver (tooltipSupport); // last but not least set the class variable frame to our newly created frame this->frame = frame; return true; }