2005-10-25 01:45:52 +02:00
|
|
|
//#include "wx/tglbtn.h"
|
|
|
|
|
|
|
|
class ITool;
|
|
|
|
|
|
|
|
class ToolButton : public wxButton
|
|
|
|
{
|
|
|
|
public:
|
2005-10-31 04:36:50 +01:00
|
|
|
ToolButton(wxWindow *parent, const wxString& label, const wxString& toolName, const wxSize& size = wxDefaultSize, long style = 0);
|
2005-10-25 01:45:52 +02:00
|
|
|
|
2005-12-03 07:35:31 +01:00
|
|
|
void SetSelectedAppearance(bool selected);
|
|
|
|
|
2005-10-25 01:45:52 +02:00
|
|
|
protected:
|
|
|
|
void OnClick(wxCommandEvent& evt);
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxString m_Tool;
|
2005-12-03 07:35:31 +01:00
|
|
|
bool m_Selected;
|
2005-10-25 01:45:52 +02:00
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
};
|
2005-12-03 07:35:31 +01:00
|
|
|
|
|
|
|
class ToolButtonBar : public wxToolBar
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ToolButtonBar(wxWindow* parent, int baseID);
|
2005-12-05 21:17:10 +01:00
|
|
|
void AddToolButton(const wxString& shortLabel, const wxString& longLabel, const wxString& iconPNGFilename, const wxString& toolName);
|
2005-12-03 07:35:31 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void OnTool(wxCommandEvent& evt);
|
|
|
|
|
|
|
|
private:
|
|
|
|
int m_Id;
|
2005-12-05 21:17:10 +01:00
|
|
|
int m_Size;
|
2005-12-03 07:35:31 +01:00
|
|
|
std::map<int, wxString> m_Buttons;
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
};
|