7 #ifndef CAFU_PARENT_FRAME_HPP_INCLUDED
8 #define CAFU_PARENT_FRAME_HPP_INCLUDED
10 #include "Templates/Array.hpp"
11 #include "Templates/Pointer.hpp"
12 #include "wx/docview.h"
28 namespace cf {
namespace GuiSys {
class WindowT; } }
29 namespace MatSys {
class TextureMapI; }
49 ID_MENU_FILE_NEW_MAP=wxID_HIGHEST+1+1000,
50 ID_MENU_FILE_NEW_MODEL,
52 ID_MENU_FILE_NEW_FONT,
54 ID_MENU_FILE_OPEN_CMDLINE,
55 ID_MENU_FILE_CONFIGURE,
65 ID_MENU_HELP_CONTENTS,
66 ID_MENU_HELP_CAFU_WEBSITE,
67 ID_MENU_HELP_CAFU_FORUM,
68 ID_MENU_HELP_SET_FRAME_SIZE,
69 ID_MENU_HELP_D3_MTR_CONVERTER,
101 GameConfigT* AskUserForGameConfig(
const wxFileName& DocumentPath)
const;
109 wxMDIChildFrame* OpenFile(
GameConfigT* GameConfig, wxString FileName);
112 void OnSize (wxSizeEvent& SE);
114 void OnShow (wxShowEvent& SE);
115 void OnClose (wxCloseEvent& CE);
116 void OnMenuFile(wxCommandEvent& CE);
117 void OnMenuHelp(wxCommandEvent& CE);
119 wxCmdLineParser& m_CmdLineParser;
120 HMODULE m_RendererDLL;
122 DECLARE_EVENT_TABLE()
wxGLCanvas * m_GLCanvas
Our persistent "home" of the shared GL context. Used whenever there is no view.
Definition: ParentFrame.hpp:84
This class represents a CaWE "map" document.
Definition: MapDocument.hpp:45
This class represents the CaWE parent (main) frame.
Definition: ParentFrame.hpp:33
static int OpenGLAttributeList[]
The OpenGL attribute list for this window. The same list must be used for all child windows...
Definition: ParentFrame.hpp:94
wxGLContext * m_GLContext
The OpenGL rendering context that represents our app-global OpenGL state.
Definition: ParentFrame.hpp:85
~ParentFrameT()
The destructor.
Definition: ParentFrame.cpp:173
This class represents a child frame.
Definition: ChildFrame.hpp:55
MatSys::TextureMapI * m_WhiteTexture
A white texture map that is set as default lightmap whenever nothing else is available.
Definition: ParentFrame.hpp:86
ChildFrameT * GetActiveMapChildFrame() const
Returns the currently active child frame or NULL if no map childframe is active (e.g. no map open or GUI editor is active).
Definition: ParentFrame.cpp:205
This is an interface to a texture-map.
Definition: TextureMap.hpp:23
ArrayT< IntrusivePtrT< cf::GuiSys::WindowT > > m_GuiClipboard
The common clipboard for all GUI Editor child frames.
Definition: ParentFrame.hpp:91
MapDocumentT * GetActiveMapDoc() const
Returns the document of the currently active map child frame or NULL if no map document is active...
Definition: ParentFrame.cpp:216
ArrayT< GuiEditor::ChildFrameT * > m_GuiChildFrames
The list where all GUI child frames register themselves on construction and unregister on destruction...
Definition: ParentFrame.hpp:90
The class describes the settings for a game/MOD.
Definition: GameConfig.hpp:32
ArrayT< ModelEditor::ChildFrameT * > m_MdlChildFrames
The list where all model child frames register themselves on construction and unregister on destructi...
Definition: ParentFrame.hpp:89
ArrayT< ChildFrameT * > m_ChildFrames
The list where all map child frames register themselves on construction and unregister on destruction...
Definition: ParentFrame.hpp:88
ParentFrameT(wxCmdLineParser &Parser)
The constructor.
Definition: ParentFrame.cpp:87
wxFileHistory m_FileHistory
The file history of our and all our childrens "File" menu.
Definition: ParentFrame.hpp:87