1 #ifndef XGUI_MAINWINDOW_H
2 #define XGUI_MAINWINDOW_H
9 class XGUI_ObjectsBrowser;
11 class PyConsole_EnhConsole;
13 /**\class XGUI_MainWindow
15 * \brief Main window of the application (Desktop).
16 * It contains: Object Browser, 3d Viewer, Python console, property panel, main menu
18 class XGUI_EXPORT XGUI_MainWindow: public QMainWindow
23 XGUI_MainWindow(QWidget* parent = 0);
24 virtual ~XGUI_MainWindow();
26 //! Returns main menu object
27 XGUI_MainMenu* menuObject() const
32 //! Returns Object browser
33 XGUI_ObjectsBrowser* objectBrowser() const
35 return myObjectBrowser;
39 QMdiArea* mdiArea() const;
42 XGUI_Viewer* viewer() const
47 // Creates Dock widgets: Object broewser and Property panel
48 void createDockWidgets();
51 void showPythonConsole();
52 void hidePythonConsole();
53 void showPropertyPanel();
54 void hidePropertyPanel();
55 void showObjectBrowser();
56 void hideObjectBrowser();
59 QDockWidget* createObjectBrowser();
60 QDockWidget* createPropertyPanel();
62 XGUI_MainMenu* myMenuBar;
63 XGUI_ObjectsBrowser* myObjectBrowser;
64 QDockWidget* myPropertyPanelDock;
66 XGUI_Viewer* myViewer;
68 PyConsole_EnhConsole* myPythonConsole;