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;
25 #include <QMainWindow>
58 void PopulateLuaControllers();
61 void CreateCodeEditor();
62 void CreateLuaMessageTable();
63 void CreateLuaStateDocks();
64 void CreateFileActions();
65 void CreateEditActions();
66 void CreateCodeActions();
67 void OpenFile(
const QString& str_path = QString());
68 bool SaveFile(
const QString& str_path = QString());
69 void SetCurrentFile(
const QString& str_path);
70 void UpdateRecentFiles();
71 void SetMessage(
int n_row,
72 const QString& str_robot_id,
73 const QString& str_message);
75 QString StrippedFileName(
const QString& str_path);
77 virtual void closeEvent(QCloseEvent* pc_event);
81 enum { MAX_RECENT_FILES = 5 };
84 QStatusBar* m_pcStatusbar;
87 QDockWidget* m_pcLuaMsgDock;
88 QTableWidget* m_pcLuaMessageTable;
89 QDockWidget* m_pcLuaVariableDock;
90 QDockWidget* m_pcLuaFunctionDock;
91 QTreeView* m_pcLuaVariableTree;
92 QTreeView* m_pcLuaFunctionTree;
94 std::vector<CLuaController*> m_vecControllers;
95 std::vector<CComposableEntity*> m_vecRobots;
96 size_t m_unSelectedRobot;
97 QString m_strFileName;
99 QAction* m_pcFileNewAction;
100 QAction* m_pcFileOpenAction;
101 QAction* m_pcFileOpenRecentAction[MAX_RECENT_FILES];
102 QAction* m_pcFileSaveAction;
103 QAction* m_pcFileSaveAsAction;
104 QAction* m_pcFileSeparateRecentAction;
105 QAction* m_pcEditUndoAction;
106 QAction* m_pcEditRedoAction;
107 QAction* m_pcEditCopyAction;
108 QAction* m_pcEditCutAction;
109 QAction* m_pcEditPasteAction;
110 QAction* m_pcEditFindAction;
111 QAction* m_pcCodeExecuteAction;
The namespace containing all the ARGoS related code.
void HandleEntityDeselection(CEntity *pc_entity)
void FunctionTreeChanged()
CQTOpenGLLuaMainWindow(CQTOpenGLMainWindow *pc_parent)
void HandleEntitySelection(CEntity *pc_entity)
virtual ~CQTOpenGLLuaMainWindow()
void HandleMsgTableSelection()
void CheckLuaStatus(int n_step)
void VariableTreeChanged()