Go to the documentation of this file. 1 #ifndef Fireworks_Core_CSGAction_h
2 #define Fireworks_Core_CSGAction_h
24 #include <sigc++/sigc++.h>
27 #include <TGToolBar.h>
63 TGLayoutHints*
l =
nullptr,
65 GContext_t norm = TGButton::GetDefaultGC()(),
66 FontStruct_t font = TGTextButton::GetDefaultFontStruct(),
67 UInt_t
option = kRaisedFrame | kDoubleBorder);
69 TGLayoutHints*
l =
nullptr,
72 GContext_t norm = TGButton::GetDefaultGC()(),
73 FontStruct_t font = TGTextButton::GetDefaultFontStruct());
76 TGLayoutHints*
l =
nullptr,
78 GContext_t norm = TGButton::GetDefaultGC()(),
79 UInt_t
option = kRaisedFrame | kDoubleBorder);
81 const TGPicture* upPic,
82 const TGPicture* downPic,
83 const TGPicture* disabledPic,
84 TGLayoutHints*
l =
nullptr,
86 GContext_t norm = TGButton::GetDefaultGC()(),
virtual void globalDisable()
FWCustomIconsButton * createCustomIconsButton(TGCompositeFrame *p, const TGPicture *upPic, const TGPicture *downPic, const TGPicture *disabledPic, TGLayoutHints *l=nullptr, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=0)
T mod(const T &a, const T &b)
void setToolTip(const std::string &tip)
ToolBarData_t * getToolBarData() const
void createShortcut(UInt_t key, const char *mod, int windowID)
const std::string & getName() const
void createCheckButton(TGCompositeFrame *p, TGLayoutHints *l=nullptr, Bool_t state=true, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), FontStruct_t font=TGTextButton::GetDefaultFontStruct())
const CSGAction & operator=(const CSGAction &)=delete
void setMenuLabel(const std::string &label)
sigc::signal< void > activated
void setName(const std::string &name)
const std::string & getToolTip() const
TGToolBar * getToolBar() const
TString getSCCombo() const
void createPictureButton(TGCompositeFrame *p, const TGPicture *pic, TGLayoutHints *l=nullptr, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder)
static TString keycodeToString(Int_t keycode)
std::vector< TGButton * > m_buttons
CSGActionSupervisor * m_supervisor
virtual Bool_t isEnabled() const
void createTextButton(TGCompositeFrame *p, TGLayoutHints *l=nullptr, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), FontStruct_t font=TGTextButton::GetDefaultFontStruct(), UInt_t option=kRaisedFrame|kDoubleBorder)
void createMenuEntry(TGPopupMenu *menu)
virtual void globalEnable()
CSGAction(CSGActionSupervisor *supervisor, const char *name)
CSGConnector * m_connector
TGPopupMenu * getMenu() const