7 #ifndef CAFU_GUIEDITOR_CHILD_FRAME_HPP_INCLUDED
8 #define CAFU_GUIEDITOR_CHILD_FRAME_HPP_INCLUDED
10 #include "wx/docmdi.h"
11 #include "wx/aui/framemanager.h"
13 #include "ToolManager.hpp"
14 #include "../CommandHistory.hpp"
16 #include "Math3D/Vector2.hpp"
19 namespace cf {
namespace TypeSys {
class TypeInfoT; } }
29 class WindowHierarchyT;
30 class WindowInspectorT;
49 ToolManagerT* GetToolManager() {
return &m_ToolManager; }
61 bool Save(
bool AskForFileName=
false);
73 unsigned long m_LastSavedAtCommandNr;
76 unsigned long m_GridSpacing;
80 wxAuiManager m_AUIManager;
93 wxAuiToolBar* m_ToolbarTools;
98 ID_MENU_FILE_CLOSE=wxID_HIGHEST+1+2000,
103 ID_MENU_EDIT_SNAP_TO_GRID,
104 ID_MENU_EDIT_SET_GRID_SIZE,
106 ID_MENU_CREATE_WINDOW,
107 ID_MENU_CREATE_COMPONENT_FIRST,
108 ID_MENU_CREATE_COMPONENT_MAX = ID_MENU_CREATE_COMPONENT_FIRST + 100,
110 ID_MENU_VIEW_WINDOW_HIERARCHY,
111 ID_MENU_VIEW_WINDOWINSPECTOR,
112 ID_MENU_VIEW_GUIINSPECTOR,
113 ID_MENU_VIEW_RESTORE_DEFAULT_LAYOUT,
114 ID_MENU_VIEW_RESTORE_USER_LAYOUT,
115 ID_MENU_VIEW_SAVE_USER_LAYOUT,
117 ID_TOOLBAR_DOC_PREVIEW,
119 ID_TOOLBAR_TOOL_SELECTION,
120 ID_TOOLBAR_TOOL_NEW_WINDOW,
122 ID_TOOLBAR_WINDOW_MOVE_UP,
123 ID_TOOLBAR_WINDOW_MOVE_DOWN,
124 ID_TOOLBAR_WINDOW_ROTATE_CW,
125 ID_TOOLBAR_WINDOW_ROTATE_CCW,
127 ID_TOOLBAR_TEXT_ALIGN_LEFT,
128 ID_TOOLBAR_TEXT_ALIGN_CENTER,
129 ID_TOOLBAR_TEXT_ALIGN_RIGHT,
137 void OnMenuFile(wxCommandEvent& CE);
138 void OnMenuFileUpdate(wxUpdateUIEvent& UE);
139 void OnMenuUndoRedo(wxCommandEvent& CE);
140 void OnUpdateEditUndoRedo(wxUpdateUIEvent& UE);
141 void OnMenuEditCut(wxCommandEvent& CE);
142 void OnMenuEditCopy(wxCommandEvent& CE);
143 void OnMenuEditPaste(wxCommandEvent& CE);
144 void OnMenuEditDelete(wxCommandEvent& CE);
145 void OnMenuEditGrid(wxCommandEvent& CE);
146 void OnMenuEditUpdate(wxUpdateUIEvent& UE);
147 void OnMenuCreate(wxCommandEvent& CE);
148 void OnMenuView(wxCommandEvent& CE);
149 void OnMenuViewUpdate(wxUpdateUIEvent& UE);
150 void OnClose(wxCloseEvent& CE);
151 void OnToolbar(wxCommandEvent& CE);
153 DECLARE_EVENT_TABLE()
Definition: GuiInspector.hpp:21
float SnapToGrid(float Value) const
Snaps a single position coordinate to the current grid.
Definition: ChildFrame.cpp:373
This class represents the CaWE parent (main) frame.
Definition: ParentFrame.hpp:33
Definition: CommandHistory.hpp:13
bool SubmitCommand(CommandT *Command)
[...] All(!) commands for modifying the document must be submitted via this method.
Definition: ChildFrame.cpp:393
Definition: RenderWindow.hpp:20
Definition: WindowInspector.hpp:26
ChildFrameT(ParentFrameT *Parent, const wxString &FileName, GuiDocumentT *GuiDocument)
Constructor to create a child frame for GUI editing.
Definition: ChildFrame.cpp:145
Definition: ChildFrame.hpp:35
The class describes the settings for a game/MOD.
Definition: GameConfig.hpp:32
Definition: GuiDocument.hpp:39
Definition: WindowHierarchy.hpp:24
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30
This class keeps type information (about an entity class that occurs in the game).
Definition: TypeSys.hpp:79