7 #ifndef QTOPENGL_LUA_MAIN_WINDOW_H
8 #define QTOPENGL_LUA_MAIN_WINDOW_H
11 class CQTOpenGLLuaMainWindow;
12 class CQTOpenGLLuaEditor;
13 class CQTOpenGLLuaFindDialog;
14 class CQTOpenGLMainWindow;
16 class CComposableEntity;
24 #include <QMainWindow>
57 void PopulateLuaControllers();
60 void CreateCodeEditor();
61 void CreateLuaMessageTable();
62 void CreateLuaStateDocks();
63 void CreateFileActions();
64 void CreateEditActions();
65 void CreateCodeActions();
66 void OpenFile(
const QString& str_path = QString());
67 bool SaveFile(
const QString& str_path = QString());
68 void SetCurrentFile(
const QString& str_path);
69 void UpdateRecentFiles();
70 void SetMessage(
int n_row,
71 const QString& str_robot_id,
72 const QString& str_message);
74 QString StrippedFileName(
const QString& str_path);
76 virtual void closeEvent(QCloseEvent* pc_event);
80 enum { MAX_RECENT_FILES = 5 };
83 QStatusBar* m_pcStatusbar;
86 QDockWidget* m_pcLuaMsgDock;
87 QTableWidget* m_pcLuaMessageTable;
88 QDockWidget* m_pcLuaVariableDock;
89 QDockWidget* m_pcLuaFunctionDock;
90 QTreeView* m_pcLuaVariableTree;
91 QTreeView* m_pcLuaFunctionTree;
93 std::vector<CLuaController*> m_vecControllers;
94 std::vector<CComposableEntity*> m_vecRobots;
95 size_t m_unSelectedRobot;
96 QString m_strFileName;
98 QAction* m_pcFileNewAction;
99 QAction* m_pcFileOpenAction;
100 QAction* m_pcFileOpenRecentAction[MAX_RECENT_FILES];
101 QAction* m_pcFileSaveAction;
102 QAction* m_pcFileSaveAsAction;
103 QAction* m_pcFileSeparateRecentAction;
104 QAction* m_pcEditUndoAction;
105 QAction* m_pcEditRedoAction;
106 QAction* m_pcEditCopyAction;
107 QAction* m_pcEditCutAction;
108 QAction* m_pcEditPasteAction;
109 QAction* m_pcEditFindAction;
110 QAction* m_pcCodeExecuteAction;