Panel.h
gehe zur Dokumentation dieser Datei
00001 
00039 #ifndef _MUTABOR_PANEL_H_
00040 #define _MUTABOR_PANEL_H_
00041 
00042 #include "Defs.h"
00043 
00044 // ----------------------------------------------------------------------------
00045 // headers and forward declarations
00046 // ----------------------------------------------------------------------------
00047 
00048 #include "wx/panel.h"
00049 #include "wx/control.h"
00050 #include "wx/containr.h"
00051 
00052 extern const wxChar MutPanelNameStr[];
00053 
00054 // ----------------------------------------------------------------------------
00055 // wxPanel contains other controls and implements TAB traversal between them
00056 // ----------------------------------------------------------------------------
00057 
00058 class MutPanel : public wxControl
00059 {
00060 public:
00061         MutPanel() { Init(); }
00062         
00063         // Old-style constructor (no default values for coordinates to avoid
00064         // ambiguity with the new one)
00065         MutPanel (wxWindow *parent,
00066                   int x, int y, int width, int height,
00067                   long style = 0 /* wxTAB_TRAVERSAL | wxNO_BORDER */,
00068                   const wxValidator& validator = wxDefaultValidator,
00069                   const wxString& name = wxPanelNameStr)
00070         {
00071                 Init();         
00072                 Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, validator, name);
00073         }
00074         
00075         // Constructor
00076         MutPanel(wxWindow *parent,
00077                  wxWindowID winid = wxID_ANY,
00078                  const wxPoint& pos = wxDefaultPosition,
00079                  const wxSize& size = wxDefaultSize,
00080                  long style = 0 /* wxTAB_TRAVERSAL | wxNO_BORDER */,
00081                  const wxValidator& validator = wxDefaultValidator,
00082                  const wxString& name = wxPanelNameStr)
00083         {
00084                 Init();         
00085                 Create(parent, winid, pos, size, style, validator, name);
00086         }
00087         
00088         // Pseudo ctor
00089         bool Create(wxWindow *parent,
00090                     wxWindowID winid = wxID_ANY,
00091                     const wxPoint& pos = wxDefaultPosition,
00092                     const wxSize& size = wxDefaultSize,
00093                     long style = 0 /* wxTAB_TRAVERSAL | wxNO_BORDER */,
00094                     const wxValidator& validator = wxDefaultValidator,
00095                     const wxString& name = wxPanelNameStr);
00096         
00097         virtual ~MutPanel();
00098         
00099         // implementation from now on
00100         // --------------------------
00101         
00102         // calls layout for layout constraints and sizers
00103         void OnSize(wxSizeEvent& event);
00104         
00105         virtual void InitDialog();
00106         
00107 #ifdef __WXUNIVERSAL__
00108         virtual bool IsCanvasWindow() const { return true; }
00109 #endif
00110         
00111         
00112         WX_DECLARE_CONTROL_CONTAINER();
00113         
00114 protected:
00115         // common part of all ctors
00116         void Init();
00117         
00118 private:
00119         DECLARE_DYNAMIC_CLASS_NO_COPY(MutPanel)
00120         DECLARE_EVENT_TABLE()
00121 };
00122 
00123 #endif
00124 // _MUTABOR_PANEL_H_
00125 
00126 

Erzeugt am Sun Aug 21 2011 10:51:55 für Mutabor von doxygen 1.7.4