#include <Fireworks/Core/interface/CSGContinuousAction.h>
Public Member Functions | |
void | createCustomIconsButton (TGCompositeFrame *p, const TGPicture *upPic, const TGPicture *downPic, const TGPicture *disabledPic, const TGPicture *upRunningPic, const TGPicture *downRunningPic, TGLayoutHints *l=nullptr, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=0) |
CSGContinuousAction (CSGActionSupervisor *sup, const char *name) | |
CSGContinuousAction (const CSGContinuousAction &)=delete | |
void | globalDisable () override |
void | globalEnable () override |
bool | isRunning () const |
const CSGContinuousAction & | operator= (const CSGContinuousAction &)=delete |
void | stop () |
void | switchMode () |
Public Member Functions inherited from CSGAction | |
void | activate () |
void | addSCToMenu () |
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()) |
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) |
void | createMenuEntry (TGPopupMenu *menu) |
void | createPictureButton (TGCompositeFrame *p, const TGPicture *pic, TGLayoutHints *l=nullptr, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder) |
void | createShortcut (UInt_t key, const char *mod, int windowID) |
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) |
CSGAction (CSGActionSupervisor *supervisor, const char *name) | |
CSGAction (const CSGAction &)=delete | |
void | disable () |
void | enable () |
Int_t | getKeycode () const |
TGPopupMenu * | getMenu () const |
int | getMenuEntry () const |
Int_t | getModcode () const |
const std::string & | getName () const |
TString | getSCCombo () const |
TGToolBar * | getToolBar () const |
ToolBarData_t * | getToolBarData () const |
const std::string & | getToolTip () const |
virtual Bool_t | isEnabled () const |
const CSGAction & | operator= (const CSGAction &)=delete |
Bool_t | resizeMenuEntry () |
void | setMenuLabel (const std::string &label) |
void | setName (const std::string &name) |
void | setToolTip (const std::string &tip) |
virtual | ~CSGAction () |
Public Attributes | |
sigc::signal< void()> | started_ |
sigc::signal< void()> | stopped_ |
Public Attributes inherited from CSGAction | |
sigc::signal< void()> | activated |
Private Attributes | |
FWCustomIconsButton * | m_button |
const TGPicture * | m_disabledPic |
const TGPicture * | m_downPic |
std::string | m_imageFileName |
bool | m_isRunning |
const TGPicture * | m_runningDownPic |
std::string | m_runningImageFileName |
const TGPicture * | m_runningUpPic |
const TGPicture * | m_upPic |
Additional Inherited Members | |
Static Public Member Functions inherited from CSGAction | |
static TString | keycodeToString (Int_t keycode) |
Description: An action which continues over time (e.g. playing events)
Usage: <usage>
Definition at line 29 of file CSGContinuousAction.h.
CSGContinuousAction::CSGContinuousAction | ( | CSGActionSupervisor * | sup, |
const char * | name | ||
) |
Definition at line 32 of file CSGContinuousAction.cc.
References CSGAction::activated, and switchMode().
|
delete |
void CSGContinuousAction::createCustomIconsButton | ( | TGCompositeFrame * | p, |
const TGPicture * | upPic, | ||
const TGPicture * | downPic, | ||
const TGPicture * | disabledPic, | ||
const TGPicture * | upRunningPic, | ||
const TGPicture * | downRunningPic, | ||
TGLayoutHints * | l = nullptr , |
||
Int_t | id = -1 , |
||
GContext_t | norm = TGButton::GetDefaultGC()() , |
||
UInt_t | option = 0 |
||
) |
Definition at line 44 of file CSGContinuousAction.cc.
References CSGAction::createCustomIconsButton(), m_button, m_disabledPic, m_downPic, m_runningDownPic, m_runningUpPic, and m_upPic.
Referenced by CmsShowMainFrame::CmsShowMainFrame().
|
overridevirtual |
Reimplemented from CSGAction.
Definition at line 102 of file CSGContinuousAction.cc.
References CSGAction::globalDisable(), and m_isRunning.
|
overridevirtual |
Reimplemented from CSGAction.
Definition at line 100 of file CSGContinuousAction.cc.
References CSGAction::globalEnable().
|
inline |
|
delete |
void CSGContinuousAction::stop | ( | ) |
Definition at line 84 of file CSGContinuousAction.cc.
References CSGAction::getMenu(), CSGAction::getMenuEntry(), CSGAction::getToolBar(), CSGAction::getToolBarData(), m_button, m_disabledPic, m_downPic, m_imageFileName, m_isRunning, m_upPic, and FWCustomIconsButton::swapIcons().
Referenced by CmsShowMainFrame::enableNext(), CmsShowMainFrame::enablePrevious(), and switchMode().
void CSGContinuousAction::switchMode | ( | ) |
Definition at line 62 of file CSGContinuousAction.cc.
References CSGAction::getMenu(), CSGAction::getMenuEntry(), CSGAction::getToolBar(), CSGAction::getToolBarData(), CSGAction::globalEnable(), m_button, m_disabledPic, m_isRunning, m_runningDownPic, m_runningImageFileName, m_runningUpPic, started_, stop(), stopped_, and FWCustomIconsButton::swapIcons().
Referenced by CmsShowMain::checkLiveMode(), CSGContinuousAction(), and CmsShowMainFrame::HandleKey().
|
private |
Definition at line 76 of file CSGContinuousAction.h.
Referenced by createCustomIconsButton(), stop(), and switchMode().
|
private |
Definition at line 72 of file CSGContinuousAction.h.
Referenced by createCustomIconsButton(), stop(), and switchMode().
|
private |
Definition at line 71 of file CSGContinuousAction.h.
Referenced by createCustomIconsButton(), and stop().
|
private |
Definition at line 67 of file CSGContinuousAction.h.
Referenced by stop().
|
private |
Definition at line 78 of file CSGContinuousAction.h.
Referenced by globalDisable(), isRunning(), stop(), and switchMode().
|
private |
Definition at line 74 of file CSGContinuousAction.h.
Referenced by createCustomIconsButton(), and switchMode().
|
private |
Definition at line 68 of file CSGContinuousAction.h.
Referenced by switchMode().
|
private |
Definition at line 73 of file CSGContinuousAction.h.
Referenced by createCustomIconsButton(), and switchMode().
|
private |
Definition at line 70 of file CSGContinuousAction.h.
Referenced by createCustomIconsButton(), and stop().
sigc::signal<void()> CSGContinuousAction::started_ |
Definition at line 52 of file CSGContinuousAction.h.
Referenced by switchMode().
sigc::signal<void()> CSGContinuousAction::stopped_ |
Definition at line 53 of file CSGContinuousAction.h.
Referenced by switchMode().