#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) | |
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 |
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 | |
CSGAction (const CSGAction &)=delete | |
void | disableImp () |
void | enableImp () |
const CSGAction & | operator= (const CSGAction &)=delete |
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 37 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 dataset::name.
|
virtual |
|
privatedelete |
|
inline |
void CSGAction::addSCToMenu | ( | ) |
Definition at line 223 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 137 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), triggerObjects_cff::id, isEnabled(), m_buttons, m_name, m_supervisor, and m_toolTip.
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 162 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), isEnabled(), m_buttons, m_supervisor, and m_toolTip.
Referenced by CmsShowMainFrame::CmsShowMainFrame(), and CSGContinuousAction::createCustomIconsButton().
void CSGAction::createMenuEntry | ( | TGPopupMenu * | menu | ) |
Definition at line 213 of file CSGAction.cc.
References addSCToMenu(), isEnabled(), m_connector, m_entry, m_keycode, m_menu, and m_name.
Referenced by CmsShowMainFrame::CmsShowMainFrame(), and CmsShowMainFrame::createNewViewerAction().
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 150 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), isEnabled(), m_buttons, m_supervisor, and m_toolTip.
void CSGAction::createShortcut | ( | UInt_t | key, |
const char * | mod, | ||
int | windowID | ||
) |
Definition at line 182 of file CSGAction.cc.
References addSCToMenu(), keycodeToString(), m_keycode, m_menu, m_modcode, m_scCombo, and m_windowID.
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 126 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), triggerObjects_cff::id, isEnabled(), m_buttons, m_name, m_supervisor, m_toolTip, and TSGForRoadSearch_cfi::option.
Referenced by FWTrackHitsDetailView::build(), and FWConvTrackHitsDetailView::build().
void CSGAction::disable | ( | ) |
Definition at line 289 of file CSGAction.cc.
References disableImp(), and m_enabled.
Referenced by CmsShowMainFrame::CmsShowMainFrame(), CmsShowMainFrame::enableComplexNavigation(), CmsShowMainFrame::enableNext(), and CmsShowMainFrame::enablePrevious().
|
private |
Definition at line 331 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 284 of file CSGAction.cc.
References enableImp(), and m_enabled.
Referenced by CmsShowMain::checkPosition(), CmsShowMainFrame::enableComplexNavigation(), CmsShowMainFrame::enableNavigatorControls(), CmsShowMainFrame::enableNext(), and CmsShowMainFrame::enablePrevious().
|
private |
Definition at line 312 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 |
Definition at line 268 of file CSGAction.cc.
References m_keycode.
TGPopupMenu * CSGAction::getMenu | ( | ) | const |
Definition at line 260 of file CSGAction.cc.
References m_menu.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
int CSGAction::getMenuEntry | ( | ) | const |
Definition at line 264 of file CSGAction.cc.
References m_entry.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
Int_t CSGAction::getModcode | ( | ) | const |
Definition at line 272 of file CSGAction.cc.
References m_modcode.
const std::string & CSGAction::getName | ( | void | ) | const |
Definition at line 81 of file CSGAction.cc.
References m_name.
Referenced by FWPFCandidateDetailView::build(), FWConvTrackHitsDetailView::build(), and plotting.Plot::draw().
TString CSGAction::getSCCombo | ( | ) | const |
Definition at line 89 of file CSGAction.cc.
References m_scCombo.
TGToolBar * CSGAction::getToolBar | ( | ) | const |
Definition at line 280 of file CSGAction.cc.
References m_toolBar.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
ToolBarData_t * CSGAction::getToolBarData | ( | ) | const |
Definition at line 276 of file CSGAction.cc.
References m_tools.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
const std::string & CSGAction::getToolTip | ( | ) | const |
Definition at line 85 of file CSGAction.cc.
References m_toolTip.
|
virtual |
Reimplemented in CSGContinuousAction.
Definition at line 302 of file CSGAction.cc.
References disableImp(), and m_globalEnabled.
Referenced by CSGContinuousAction::globalDisable().
|
virtual |
Reimplemented in CSGContinuousAction.
Definition at line 295 of file CSGAction.cc.
References enableImp(), and m_globalEnabled.
Referenced by CSGContinuousAction::globalEnable(), and CSGContinuousAction::switchMode().
|
virtual |
Definition at line 308 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 355 of file CSGAction.cc.
References mps_fire::i, and cuy::rep.
Referenced by createShortcut().
Bool_t CSGAction::resizeMenuEntry | ( | ) |
Definition at line 228 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 93 of file CSGAction.cc.
References m_buttons, m_name, and dataset::name.
Referenced by Vispa.Gui.PortWidget.PortWidget::__init__(), Vispa.Views.PropertyView.Property::__init__(), and FWConvTrackHitsDetailView::switchProjection().
void CSGAction::setToolTip | ( | const std::string & | tip | ) |
Definition at line 116 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), m_buttons, m_supervisor, m_tools, m_toolTip, and btvTracks_cfi::tip.
Referenced by Vispa.Plugins.EdmBrowser.EventContentView.LabelItem::__init__(), FWTrackHitsDetailView::build(), CmsShowMainFrame::CmsShowMainFrame(), Vispa.Gui.PortWidget.PortWidget::setName(), Vispa.Gui.VispaWidget.VispaWidget::setText(), and Vispa.Views.PropertyView.TextEditWithButtonProperty::valueChanged().
sigc::signal<void> CSGAction::activated |
Definition at line 88 of file CSGAction.h.
Referenced by activate(), FWPFCandidateDetailView::build(), FWTrackHitsDetailView::build(), FWConvTrackHitsDetailView::build(), CmsShowMainFrame::CloseWindow(), CSGContinuousAction::CSGContinuousAction(), FWGUIManager::FWGUIManager(), CmsShowMainFrame::quit(), and CmsShowMain::setupDataHandling().
|
private |
Definition at line 102 of file CSGAction.h.
Referenced by createCheckButton(), createCustomIconsButton(), createPictureButton(), createTextButton(), disableImp(), enableImp(), setName(), and setToolTip().
|
private |
Definition at line 109 of file CSGAction.h.
Referenced by createMenuEntry(), CSGAction(), and ~CSGAction().
|
private |
Definition at line 110 of file CSGAction.h.
Referenced by CSGAction(), disable(), enable(), and isEnabled().
|
private |
Definition at line 106 of file CSGAction.h.
Referenced by createMenuEntry(), CSGAction(), disableImp(), enableImp(), getMenuEntry(), resizeMenuEntry(), and setMenuLabel().
|
private |
Definition at line 111 of file CSGAction.h.
Referenced by CSGAction(), globalDisable(), globalEnable(), and isEnabled().
|
private |
Definition at line 103 of file CSGAction.h.
Referenced by createMenuEntry(), createShortcut(), CSGAction(), disableImp(), enableImp(), and getKeycode().
|
private |
Definition at line 105 of file CSGAction.h.
Referenced by addSCToMenu(), createMenuEntry(), createShortcut(), CSGAction(), disableImp(), enableImp(), getMenu(), resizeMenuEntry(), and setMenuLabel().
|
private |
Definition at line 104 of file CSGAction.h.
Referenced by createShortcut(), CSGAction(), disableImp(), enableImp(), and getModcode().
|
private |
Definition at line 99 of file CSGAction.h.
Referenced by createCheckButton(), createMenuEntry(), createTextButton(), CSGAction(), getName(), resizeMenuEntry(), and setName().
|
private |
Definition at line 101 of file CSGAction.h.
Referenced by createShortcut(), getSCCombo(), and resizeMenuEntry().
|
private |
Definition at line 98 of file CSGAction.h.
Referenced by addSCToMenu(), createCheckButton(), createCustomIconsButton(), createPictureButton(), createTextButton(), CSGAction(), and setToolTip().
|
private |
Definition at line 107 of file CSGAction.h.
Referenced by CSGAction(), disableImp(), enableImp(), and getToolBar().
|
private |
Definition at line 108 of file CSGAction.h.
Referenced by CSGAction(), getToolBarData(), and setToolTip().
|
private |
Definition at line 100 of file CSGAction.h.
Referenced by createCheckButton(), createCustomIconsButton(), createPictureButton(), createTextButton(), CSGAction(), getToolTip(), and setToolTip().
|
private |
Definition at line 112 of file CSGAction.h.
Referenced by createShortcut(), CSGAction(), disableImp(), and enableImp().