#ifndef XGUI_MAINWINDOW_H
#define XGUI_MAINWINDOW_H
+#include "XGUI.h"
#include <QMainWindow>
class XGUI_MainMenu;
class XGUI_Viewer;
-class QTreeWidget;
+class XGUI_ActionsMgr;
class QMdiArea;
-
-class XGUI_MainWindow : public QMainWindow
+class PyConsole_EnhConsole;
+
+/**\class XGUI_MainWindow
+ * \ingroup GUI
+ * \brief Main window of the application (Desktop).
+ * It contains: Object Browser, 3d Viewer, Python console, property panel, main menu
+ */
+class XGUI_EXPORT XGUI_MainWindow: public QMainWindow
{
- Q_OBJECT
+Q_OBJECT
public:
- XGUI_MainWindow(QWidget* parent = 0);
- virtual ~XGUI_MainWindow();
-
- XGUI_MainMenu* menuObject() const { return myMenuBar; }
-
- QTreeWidget* objectBrowser() const { return myObjectBrowser; }
- void showObjectBrowser();
- void hideObjectBrowser();
+ XGUI_MainWindow(QWidget* parent = 0);
+ virtual ~XGUI_MainWindow();
- QMdiArea* mdiArea() const;
+ //! Returns main menu object
+ XGUI_MainMenu* menuObject() const
+ {
+ return myMenuBar;
+ }
- XGUI_Viewer* viewer() const { return myViewer; }
+ //! Returns MDI area
+ QMdiArea* mdiArea() const;
-private:
- //!! For test purposes only
- //QWidget* getSubWindow();
+ //! Returns 3d viewer
+ XGUI_Viewer* viewer() const
+ {
+ return myViewer;
+ }
- void fillObjectBrowser();
- void addPropertyPanel();
+public slots:
+ void showPythonConsole();
+ void hidePythonConsole();
+private:
+ XGUI_MainMenu* myMenuBar;
+ XGUI_Viewer* myViewer;
- XGUI_MainMenu* myMenuBar;
- QTreeWidget* myObjectBrowser;
-
- XGUI_Viewer* myViewer;
+ PyConsole_EnhConsole* myPythonConsole;
};
-#endif
\ No newline at end of file
+#endif