00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef BUTTONTOOL_HH
00025 #define BUTTONTOOL_HH
00026
00027 #include "GenericTool.hh"
00028 #include "FbTk/Observer.hh"
00029
00030 class ButtonTheme;
00031
00032 namespace FbTk {
00033 class Button;
00034 class ImageControl;
00035 };
00036
00037 class ButtonTool: public GenericTool {
00038 public:
00039 ButtonTool(FbTk::Button *button, ToolbarItem::Type type,
00040 ButtonTheme &theme, FbTk::ImageControl &img_ctrl);
00041 virtual ~ButtonTool();
00042
00043 protected:
00044 void renderTheme();
00045 Pixmap m_cache_pm, m_cache_pressed_pm;
00046 FbTk::ImageControl &m_image_ctrl;
00047 };
00048
00049 #endif // BUTTONTOOL_HH