1 #ifndef Fireworks_Core_CSGAction_h
2 #define Fireworks_Core_CSGAction_h
25 #include <sigc++/sigc++.h>
28 #include <TGToolBar.h>
46 const std::string&
getName()
const;
61 void setName(
const std::string& name);
64 void createTextButton(TGCompositeFrame*
p, TGLayoutHints*
l = 0, Int_t
id = -1, GContext_t
norm = TGButton::GetDefaultGC() (), FontStruct_t font = TGTextButton::GetDefaultFontStruct(),
UInt_t option = kRaisedFrame|kDoubleBorder);
65 void createCheckButton(TGCompositeFrame* p, TGLayoutHints*
l = 0, Bool_t
state =
true, Int_t
id = -1, GContext_t
norm = TGButton::GetDefaultGC() (), FontStruct_t font = TGTextButton::GetDefaultFontStruct());
66 void createPictureButton(TGCompositeFrame* p,
const TGPicture* pic, TGLayoutHints*
l = 0, Int_t
id = -1, GContext_t
norm = TGButton::GetDefaultGC() (),
UInt_t option = kRaisedFrame|kDoubleBorder);
68 const TGPicture* upPic,
69 const TGPicture* downPic,
70 const TGPicture* disabledPic,
73 GContext_t
norm = TGButton::GetDefaultGC() (),
const std::string & getName() const
ToolBarData_t * getToolBarData() const
void setMenuLabel(const std::string &label)
TGPopupMenu * getMenu() const
sigc::signal< void > activated
void createCheckButton(TGCompositeFrame *p, TGLayoutHints *l=0, Bool_t state=true, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), FontStruct_t font=TGTextButton::GetDefaultFontStruct())
CSGConnector * m_connector
void createPictureButton(TGCompositeFrame *p, const TGPicture *pic, TGLayoutHints *l=0, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder)
virtual void globalDisable()
const CSGAction & operator=(const CSGAction &)
TGToolBar * getToolBar() const
void setToolTip(const std::string &tip)
virtual Bool_t isEnabled() const
static TString keycodeToString(Int_t keycode)
TString getSCCombo() const
CSGActionSupervisor * m_supervisor
void setName(const std::string &name)
void createMenuEntry(TGPopupMenu *menu)
CSGAction(CSGActionSupervisor *supervisor, const char *name)
virtual void globalEnable()
std::vector< TGButton * > m_buttons
FWCustomIconsButton * createCustomIconsButton(TGCompositeFrame *p, const TGPicture *upPic, const TGPicture *downPic, const TGPicture *disabledPic, TGLayoutHints *l=0, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=0)
void createTextButton(TGCompositeFrame *p, TGLayoutHints *l=0, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), FontStruct_t font=TGTextButton::GetDefaultFontStruct(), UInt_t option=kRaisedFrame|kDoubleBorder)
void createShortcut(UInt_t key, const char *mod, int windowID)
const std::string & getToolTip() const
T mod(const T &a, const T &b)