1 #ifndef XGUI_MAINWINDOW_H
2 #define XGUI_MAINWINDOW_H
10 class XGUI_ViewWindow;
13 class PyConsole_EnhConsole;
16 /**\class XGUI_MainWindow
18 * \brief Main window of the application (Desktop).
19 * It contains: Object Browser, 3d Viewer, Python console, property panel, main menu
21 class XGUI_EXPORT XGUI_MainWindow: public QMainWindow
26 XGUI_MainWindow(QWidget* parent = 0);
27 virtual ~XGUI_MainWindow();
29 //! Returns main menu object
30 XGUI_MainMenu* menuObject() const
36 QMdiArea* mdiArea() const;
39 XGUI_Viewer* viewer() const
45 void showPythonConsole();
46 void hidePythonConsole();
48 void createSubWindow();
51 void cascadeWindows();
52 void onViewCreated(XGUI_ViewWindow* theWindow);
53 void onDeleteView(XGUI_ViewWindow* theWindow);
55 void onViewActivated(QMdiSubWindow* theSubWnd);
58 void exitKeySequence();
61 void closeEvent(QCloseEvent* event);
64 XGUI_MainMenu* myMenuBar;
65 XGUI_Viewer* myViewer;
67 PyConsole_EnhConsole* myPythonConsole;