Files
0ad/source/tools/atlas/AtlasUI/CustomControls/Buttons/ToolButton.h
T
Ykkrosh 178ad741b9 DevIL: Improved quality of DXT5 alpha compression.
textureconv: Made -(no)mipmaps work. Defaulted to DXT5 for alpha
textures (since DXT3 almost never seems any good). Recompiled with new
DevIL code.
GUIRenderer: Removed complaints about 0-sized objects (e.g. hitpoint
bars).
Atlas: Added forgotten files.

This was SVN commit r3006.
2005-10-24 23:45:52 +00:00

31 lines
597 B
C++

//#include "wx/tglbtn.h"
class ITool;
class ToolButton : public wxButton
{
public:
static ToolButton* g_Current;
ToolButton(wxWindow *parent,
const wxString& label,
const wxString& toolName,
const wxSize& size = wxDefaultSize,
long style = 0)
: wxButton(parent, wxID_ANY, label, wxDefaultPosition, size, style),
m_Tool(toolName)
{
SetSelectedAppearance(false);
}
protected:
void OnClick(wxCommandEvent& evt);
void SetSelectedAppearance(bool selected);
private:
wxString m_Tool;
DECLARE_EVENT_TABLE();
};