-
-
- void SetWindow(wxWindow* w) { window = w; }
- wxWindow* GetWindow() { return window; }
-
- void SetId(int new_id) { id = new_id; }
- int GetId() const { return id; }
-
- void SetKind(int new_kind) { kind = new_kind; }
- int GetKind() const { return kind; }
-
- void SetState(int new_state) { state = new_state; }
- int GetState() const { return state; }
-
- void SetSizerItem(wxSizerItem* s) { sizer_item = s; }
- wxSizerItem* GetSizerItem() const { return sizer_item; }
-
- void SetLabel(const wxString& s) { label = s; }
- const wxString& GetLabel() const { return label; }
-
- void SetBitmap(const wxBitmap& bmp) { bitmap = bmp; }
- const wxBitmap& GetBitmap() const { return bitmap; }
-
- void SetDisabledBitmap(const wxBitmap& bmp) { disabled_bitmap = bmp; }
- const wxBitmap& GetDisabledBitmap() const { return disabled_bitmap; }
-
- void SetHoverBitmap(const wxBitmap& bmp) { hover_bitmap = bmp; }
- const wxBitmap& GetHoverBitmap() const { return hover_bitmap; }
-
- void SetShortHelp(const wxString& s) { short_help = s; }
- const wxString& GetShortHelp() const { return short_help; }
-
- void SetLongHelp(const wxString& s) { long_help = s; }
- const wxString& GetLongHelp() const { return long_help; }
-
- void SetMinSize(const wxSize& s) { min_size = s; }
- const wxSize& GetMinSize() const { return min_size; }
-
- void SetSpacerPixels(int s) { spacer_pixels = s; }
- int GetSpacerPixels() const { return spacer_pixels; }
-
- void SetProportion(int p) { proportion = p; }
- int GetProportion() const { return proportion; }
-
- void SetActive(bool b) { active = b; }
- bool IsActive() const { return active; }
-
- void SetHasDropDown(bool b) { dropdown = b; }
- bool HasDropDown() const { return dropdown; }
-
- void SetSticky(bool b) { sticky = b; }
- bool IsSticky() const { return sticky; }
-
- void SetUserData(long l) { user_data = l; }
- long GetUserData() const { return user_data; }
+
+
+ void SetWindow(wxWindow* w) { m_window = w; }
+ wxWindow* GetWindow() { return m_window; }
+
+ void SetId(int newId) { m_toolId = newId; }
+ int GetId() const { return m_toolId; }
+
+ void SetKind(int newKind) { m_kind = newKind; }
+ int GetKind() const { return m_kind; }
+
+ void SetState(int newState) { m_state = newState; }
+ int GetState() const { return m_state; }
+
+ void SetSizerItem(wxSizerItem* s) { m_sizerItem = s; }
+ wxSizerItem* GetSizerItem() const { return m_sizerItem; }
+
+ void SetLabel(const wxString& s) { m_label = s; }
+ const wxString& GetLabel() const { return m_label; }
+
+ void SetBitmap(const wxBitmap& bmp) { m_bitmap = bmp; }
+ const wxBitmap& GetBitmap() const { return m_bitmap; }
+
+ void SetDisabledBitmap(const wxBitmap& bmp) { m_disabledBitmap = bmp; }
+ const wxBitmap& GetDisabledBitmap() const { return m_disabledBitmap; }
+
+ void SetHoverBitmap(const wxBitmap& bmp) { m_hoverBitmap = bmp; }
+ const wxBitmap& GetHoverBitmap() const { return m_hoverBitmap; }
+
+ void SetShortHelp(const wxString& s) { m_shortHelp = s; }
+ const wxString& GetShortHelp() const { return m_shortHelp; }
+
+ void SetLongHelp(const wxString& s) { m_longHelp = s; }
+ const wxString& GetLongHelp() const { return m_longHelp; }
+
+ void SetMinSize(const wxSize& s) { m_minSize = s; }
+ const wxSize& GetMinSize() const { return m_minSize; }
+
+ void SetSpacerPixels(int s) { m_spacerPixels = s; }
+ int GetSpacerPixels() const { return m_spacerPixels; }
+
+ void SetProportion(int p) { m_proportion = p; }
+ int GetProportion() const { return m_proportion; }
+
+ void SetActive(bool b) { m_active = b; }
+ bool IsActive() const { return m_active; }
+
+ void SetHasDropDown(bool b)
+ {
+ wxCHECK_RET( !b || m_kind == wxITEM_NORMAL,
+ wxS("Only normal tools can have drop downs") );
+
+ m_dropDown = b;
+ }
+
+ bool HasDropDown() const { return m_dropDown; }
+
+ void SetSticky(bool b) { m_sticky = b; }
+ bool IsSticky() const { return m_sticky; }
+
+ void SetUserData(long l) { m_userData = l; }
+ long GetUserData() const { return m_userData; }
+
+ void SetAlignment(int l) { m_alignment = l; }
+ int GetAlignment() const { return m_alignment; }