// =========================================================================== // method definitions // =========================================================================== GUIParameterTracker::GUIParameterTracker(GUIMainWindow &app, const std::string &name) : FXMainWindow(app.getApp(),"Tracker",NULL,NULL,DECOR_ALL,20,20,300,200), myApplication(&app) { buildToolBar(); app.addChild(this, true); FXVerticalFrame *glcanvasFrame = new FXVerticalFrame(this,FRAME_SUNKEN|LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y,0,0,0,0,0,0,0,0); myPanel = new GUIParameterTrackerPanel(glcanvasFrame, *myApplication, *this); setTitle(name.c_str()); setIcon(GUIIconSubSys::getIcon(ICON_APP_TRACKER)); }
MainWindow::MainWindow(QWidget * parent) : QMainWindow(parent), m_system(nullptr) { readSettings(); m_system = new OpticalSystem(this); m_reflectorsDockWidget = new QDockWidget("Reflectors", this); m_lightSourcesDockWidget = new QDockWidget("Light Sources", this); setCentralWidget(m_system); m_reflectorsDockWidget->setWidget(m_system->reflectorsTabs()); m_lightSourcesDockWidget->setWidget(m_system->lightSourcesTabs()); addDockWidget(Qt::BottomDockWidgetArea, m_reflectorsDockWidget); addDockWidget(Qt::BottomDockWidgetArea, m_lightSourcesDockWidget); buildToolBar(); buildMenuBar(); }