#include <Fireworks/Core/interface/CSGAction.h>
Public Member Functions | |
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 void | globalDisable () |
virtual void | globalEnable () |
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 () |
Static Public Member Functions | |
static TString | keycodeToString (Int_t keycode) |
Public Attributes | |
sigc::signal< void()> | activated |
Private Member Functions | |
void | disableImp () |
void | enableImp () |
Private Attributes | |
std::vector< TGButton * > | m_buttons |
CSGConnector * | m_connector |
Bool_t | m_enabled |
int | m_entry |
Bool_t | m_globalEnabled |
Int_t | m_keycode |
TGPopupMenu * | m_menu |
Int_t | m_modcode |
std::string | m_name |
TString | m_scCombo |
CSGActionSupervisor * | m_supervisor |
TGToolBar * | m_toolBar |
ToolBarData_t * | m_tools |
std::string | m_toolTip |
int | m_windowID |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 38 of file CSGAction.h.
CSGAction::CSGAction | ( | CSGActionSupervisor * | supervisor, |
const char * | name | ||
) |
Definition at line 38 of file CSGAction.cc.
References CSGActionSupervisor::addToActionMap(), CSGActionSupervisor::getListOfActions(), m_connector, m_enabled, m_entry, m_globalEnabled, m_keycode, m_menu, m_modcode, m_name, m_supervisor, m_toolBar, m_tools, m_toolTip, m_windowID, and Skims_PA_cff::name.
|
virtual |
|
delete |
|
inline |
void CSGAction::addSCToMenu | ( | ) |
Definition at line 217 of file CSGAction.cc.
References m_menu, m_supervisor, CSGActionSupervisor::resizeMenu(), and resizeMenuEntry().
Referenced by createMenuEntry(), and createShortcut().
void CSGAction::createCheckButton | ( | TGCompositeFrame * | p, |
TGLayoutHints * | l = nullptr , |
||
Bool_t | state = true , |
||
Int_t | id = -1 , |
||
GContext_t | norm = TGButton::GetDefaultGC()() , |
||
FontStruct_t | font = TGTextButton::GetDefaultFontStruct() |
||
) |
Definition at line 126 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), triggerObjects_cff::id, isEnabled(), cmsLHEtoEOSManager::l, m_buttons, m_name, m_supervisor, m_toolTip, and AlCaHLTBitMon_ParallelJobs::p.
FWCustomIconsButton * CSGAction::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 |
||
) |
Definition at line 155 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), isEnabled(), cmsLHEtoEOSManager::l, m_buttons, m_supervisor, m_toolTip, fileinputsource_cfi::option, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by CmsShowMainFrame::CmsShowMainFrame(), and CSGContinuousAction::createCustomIconsButton().
void CSGAction::createMenuEntry | ( | TGPopupMenu * | menu | ) |
Definition at line 205 of file CSGAction.cc.
References addSCToMenu(), isEnabled(), m_connector, m_entry, m_keycode, m_menu, m_name, and optionsL1T::menu.
Referenced by CmsShowMainFrame::CmsShowMainFrame().
void CSGAction::createPictureButton | ( | TGCompositeFrame * | p, |
const TGPicture * | pic, | ||
TGLayoutHints * | l = nullptr , |
||
Int_t | id = -1 , |
||
GContext_t | norm = TGButton::GetDefaultGC()() , |
||
UInt_t | option = kRaisedFrame | kDoubleBorder |
||
) |
Definition at line 142 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), isEnabled(), cmsLHEtoEOSManager::l, m_buttons, m_supervisor, m_toolTip, fileinputsource_cfi::option, and AlCaHLTBitMon_ParallelJobs::p.
void CSGAction::createShortcut | ( | UInt_t | key, |
const char * | mod, | ||
int | windowID | ||
) |
Definition at line 175 of file CSGAction.cc.
References addSCToMenu(), crabWrapper::key, keycodeToString(), m_keycode, m_menu, m_modcode, m_scCombo, m_windowID, and mod().
Referenced by CmsShowMainFrame::CmsShowMainFrame().
void CSGAction::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 |
||
) |
Definition at line 113 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), triggerObjects_cff::id, isEnabled(), cmsLHEtoEOSManager::l, m_buttons, m_name, m_supervisor, m_toolTip, fileinputsource_cfi::option, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by FWConvTrackHitsDetailView::build().
void CSGAction::disable | ( | ) |
Definition at line 274 of file CSGAction.cc.
References disableImp(), and m_enabled.
Referenced by CmsShowMainFrame::CmsShowMainFrame(), CmsShowMainFrame::enableComplexNavigation(), CmsShowMainFrame::enableNext(), and CmsShowMainFrame::enablePrevious().
|
private |
Definition at line 310 of file CSGAction.cc.
References isEnabled(), m_buttons, m_entry, m_keycode, m_menu, m_modcode, m_toolBar, and m_windowID.
Referenced by disable(), and globalDisable().
void CSGAction::enable | ( | ) |
Definition at line 269 of file CSGAction.cc.
References enableImp(), and m_enabled.
Referenced by FWFFLooper::checkPosition(), CmsShowMain::checkPosition(), CmsShowMainFrame::enableComplexNavigation(), CmsShowMainFrame::enableNavigatorControls(), CmsShowMainFrame::enableNext(), and CmsShowMainFrame::enablePrevious().
|
private |
Definition at line 291 of file CSGAction.cc.
References isEnabled(), m_buttons, m_entry, m_keycode, m_menu, m_modcode, m_toolBar, and m_windowID.
Referenced by enable(), and globalEnable().
Int_t CSGAction::getKeycode | ( | ) | const |
TGPopupMenu * CSGAction::getMenu | ( | ) | const |
Definition at line 257 of file CSGAction.cc.
References m_menu.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
int CSGAction::getMenuEntry | ( | ) | const |
Definition at line 259 of file CSGAction.cc.
References m_entry.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
Int_t CSGAction::getModcode | ( | ) | const |
const std::string & CSGAction::getName | ( | void | ) | const |
TString CSGAction::getSCCombo | ( | ) | const |
TGToolBar * CSGAction::getToolBar | ( | ) | const |
Definition at line 267 of file CSGAction.cc.
References m_toolBar.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
ToolBarData_t * CSGAction::getToolBarData | ( | ) | const |
Definition at line 265 of file CSGAction.cc.
References m_tools.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
const std::string & CSGAction::getToolTip | ( | ) | const |
|
virtual |
Reimplemented in CSGContinuousAction.
Definition at line 284 of file CSGAction.cc.
References disableImp(), and m_globalEnabled.
Referenced by CSGContinuousAction::globalDisable().
|
virtual |
Reimplemented in CSGContinuousAction.
Definition at line 279 of file CSGAction.cc.
References enableImp(), and m_globalEnabled.
Referenced by CSGContinuousAction::globalEnable(), and CSGContinuousAction::switchMode().
|
virtual |
Definition at line 289 of file CSGAction.cc.
References m_enabled, and m_globalEnabled.
Referenced by CmsShowMain::checkPosition(), createCheckButton(), createCustomIconsButton(), createMenuEntry(), createPictureButton(), createTextButton(), disableImp(), enableImp(), CmsShowMainFrame::nextIsEnabled(), and CmsShowMainFrame::previousIsEnabled().
|
static |
Definition at line 332 of file CSGAction.cc.
References mps_fire::i, and cuy::rep.
Referenced by createShortcut().
Bool_t CSGAction::resizeMenuEntry | ( | ) |
Definition at line 223 of file CSGAction.cc.
References m_entry, m_menu, m_name, m_scCombo, GetRecoTauVFromDQM_MC_cff::next, and ApeEstimator_cff::width.
Referenced by addSCToMenu().
void CSGAction::setMenuLabel | ( | const std::string & | label | ) |
void CSGAction::setName | ( | const std::string & | name | ) |
Definition at line 85 of file CSGAction.cc.
References m_buttons, m_name, and Skims_PA_cff::name.
Referenced by FWConvTrackHitsDetailView::switchProjection().
void CSGAction::setToolTip | ( | const std::string & | tip | ) |
Definition at line 104 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), m_buttons, m_supervisor, m_tools, m_toolTip, and qcdUeDQM_cfi::tip.
Referenced by CmsShowMainFrame::CmsShowMainFrame().
sigc::signal<void()> CSGAction::activated |
Definition at line 100 of file CSGAction.h.
Referenced by activate(), FWConvTrackHitsDetailView::build(), CmsShowMainFrame::CloseWindow(), CSGContinuousAction::CSGContinuousAction(), FWGUIManager::FWGUIManager(), CmsShowMainFrame::quit(), and CmsShowMain::setupDataHandling().
|
private |
Definition at line 114 of file CSGAction.h.
Referenced by createCheckButton(), createCustomIconsButton(), createPictureButton(), createTextButton(), disableImp(), enableImp(), setName(), and setToolTip().
|
private |
Definition at line 121 of file CSGAction.h.
Referenced by createMenuEntry(), CSGAction(), and ~CSGAction().
|
private |
Definition at line 122 of file CSGAction.h.
Referenced by CSGAction(), disable(), enable(), and isEnabled().
|
private |
Definition at line 118 of file CSGAction.h.
Referenced by createMenuEntry(), CSGAction(), disableImp(), enableImp(), getMenuEntry(), resizeMenuEntry(), and setMenuLabel().
|
private |
Definition at line 123 of file CSGAction.h.
Referenced by CSGAction(), globalDisable(), globalEnable(), and isEnabled().
|
private |
Definition at line 115 of file CSGAction.h.
Referenced by createMenuEntry(), createShortcut(), CSGAction(), disableImp(), enableImp(), and getKeycode().
|
private |
Definition at line 117 of file CSGAction.h.
Referenced by addSCToMenu(), createMenuEntry(), createShortcut(), CSGAction(), disableImp(), enableImp(), getMenu(), resizeMenuEntry(), and setMenuLabel().
|
private |
Definition at line 116 of file CSGAction.h.
Referenced by createShortcut(), CSGAction(), disableImp(), enableImp(), and getModcode().
|
private |
Definition at line 111 of file CSGAction.h.
Referenced by createCheckButton(), createMenuEntry(), createTextButton(), CSGAction(), getName(), resizeMenuEntry(), and setName().
|
private |
Definition at line 113 of file CSGAction.h.
Referenced by createShortcut(), getSCCombo(), and resizeMenuEntry().
|
private |
Definition at line 110 of file CSGAction.h.
Referenced by addSCToMenu(), createCheckButton(), createCustomIconsButton(), createPictureButton(), createTextButton(), CSGAction(), and setToolTip().
|
private |
Definition at line 119 of file CSGAction.h.
Referenced by CSGAction(), disableImp(), enableImp(), and getToolBar().
|
private |
Definition at line 120 of file CSGAction.h.
Referenced by CSGAction(), getToolBarData(), and setToolTip().
|
private |
Definition at line 112 of file CSGAction.h.
Referenced by createCheckButton(), createCustomIconsButton(), createPictureButton(), createTextButton(), CSGAction(), getToolTip(), and setToolTip().
|
private |
Definition at line 124 of file CSGAction.h.
Referenced by createShortcut(), CSGAction(), disableImp(), and enableImp().