bbtkwxGUIEditorGraphicBBS.cxx
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00037 #include "bbtkwxGUIEditorGraphicBBS.h"
00038 #include "bbtkwxGUIEditorGraphicContainer.h"
00039
00040
00041 namespace bbtk
00042 {
00043
00044
00045
00046 wxGUIEditorGraphicBBS::wxGUIEditorGraphicBBS(wxFrame *parent)
00047 : wxFrame(parent, -1, _T("bbEditor"),wxDefaultPosition, wxSize(1200,800))
00048 {
00049 m_mgr.SetManagedWindow(this);
00050 editorgraphiccontainer = new wxGUIEditorGraphicContainer(this);
00051
00052 wxPanel *mWxGUIGrapphicEditorPanel = new wxPanel(this,-1);
00053 wxPanel *mWxGUIBoxBrowserPanel = new wxPanel(this,-1);
00054 wxPanel *mWxGUIConfigurationGraphicEditorPanel = new wxPanel(this,-1);
00055
00056 mWxGUIGrapphicEditorPanel->SetBackgroundColour( wxColor(255,0,0) );
00057 mWxGUIBoxBrowserPanel->SetBackgroundColour( wxColor(0,255,0) );
00058 mWxGUIConfigurationGraphicEditorPanel->SetBackgroundColour( wxColor(255,0,255) );
00059
00060
00061 m_mgr.AddPane(mWxGUIGrapphicEditorPanel,
00062 wxAuiPaneInfo().Name(wxT("graphic_editor_content"))
00063 .Caption(wxT("Graphic editor"))
00064 .MinimizeButton(true)
00065 .MaximizeButton(true)
00066 .Center()
00067 .MinSize(wxSize(100,100))
00068 );
00069
00070 m_mgr.AddPane(mWxGUIBoxBrowserPanel,
00071 wxAuiPaneInfo().Name(wxT("box_browser_content"))
00072 .Caption(wxT("Box browser"))
00073 .MinimizeButton(true)
00074 .MaximizeButton(true)
00075 .Right()
00076 .Layer(2)
00077 .MinSize(wxSize(400,100))
00078 );
00079
00080 m_mgr.AddPane(mWxGUIConfigurationGraphicEditorPanel,
00081 wxAuiPaneInfo().Name(wxT("configuration_graphic_editor_content"))
00082 .Caption(wxT("Messages"))
00083 .MinimizeButton(true)
00084 .MaximizeButton(true)
00085 .Bottom()
00086 .MinSize(wxSize(100,100))
00087 );
00088
00089 SetAutoLayout(true);
00090 Layout();
00091 m_mgr.Update();
00092
00093 }
00094
00095
00096 wxGUIEditorGraphicBBS::~wxGUIEditorGraphicBBS()
00097 {
00098 delete editorgraphiccontainer;
00099 m_mgr.UnInit();
00100 }
00101
00102
00103
00104
00105 }
00106
00107
00108