00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef __TOOLDLG_H__
00014 #define __TOOLDLG_H__
00015
00016 #ifndef WX_PRECOMP
00017 #include "wx/wx.h"
00018 #endif
00019
00020 #include "wx/minifram.h"
00021
00022 #include "wx/canvas/canmod.h"
00023
00024 #include "wx/editor/doccancom.h"
00025 #include "wx/editor/sttool.h"
00026 #include "wx/editor/edit.h"
00027
00028 #include "wx/editor/strucdlg.h"
00029
00030 extern wxBitmap* GetBitmap( const wxString& name );
00031
00032
00033
00034
00035 class A2DEDITORDLLEXP ToolDlg: public wxMiniFrame
00036 {
00037
00038 public:
00039
00040 ToolDlg( wxFrame* parent );
00041
00042
00043 ~ToolDlg();
00044
00045 virtual void Populate();
00046
00047
00048
00049
00050
00051 void AddCmdMenu( wxBitmap& bitmap, const a2dMenuIdItem& cmdId );
00052
00053
00054
00055
00056
00057 void RemoveCmdMenu( const a2dMenuIdItem& cmdId );
00058
00059
00060 protected:
00061
00062
00063
00064 void OnCmdMenuId(wxCommandEvent &event);
00065
00066 void OnCloseWindow(wxCloseEvent& event);
00067
00068 wxPanel* m_panel;
00069
00070
00071 int m_chosen;
00072
00073 wxGridSizer* m_sizer;
00074
00075
00076 DECLARE_EVENT_TABLE()
00077
00078 };
00079
00080
00081 #endif
00082