#include <Fireworks/Core/interface/CSGAction.h>
Public Member Functions | |
void | activate () |
void | addSCToMenu () |
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()) |
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 | createMenuEntry (TGPopupMenu *menu) |
void | createPictureButton (TGCompositeFrame *p, const TGPicture *pic, TGLayoutHints *l=0, 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=0, 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 &) | |
void | disableImp () |
void | enableImp () |
const CSGAction & | operator= (const CSGAction &) |
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 39 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 AlCaRecoCosmics_cfg::name.
|
virtual |
|
private |
|
inline |
void CSGAction::addSCToMenu | ( | ) |
Definition at line 213 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 = 0 , |
||
Bool_t | state = true , |
||
Int_t | id = -1 , |
||
GContext_t | norm = TGButton::GetDefaultGC() () , |
||
FontStruct_t | font = TGTextButton::GetDefaultFontStruct() |
||
) |
Definition at line 127 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), ExpressReco_HICollisions_FallBack::id, isEnabled(), m_buttons, m_name, m_supervisor, m_toolTip, and lumiNorm::norm.
FWCustomIconsButton * CSGAction::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 |
||
) |
Definition at line 152 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 203 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 = 0 , |
||
Int_t | id = -1 , |
||
GContext_t | norm = TGButton::GetDefaultGC() () , |
||
UInt_t | option = kRaisedFrame|kDoubleBorder |
||
) |
Definition at line 140 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 172 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 = 0 , |
||
Int_t | id = -1 , |
||
GContext_t | norm = TGButton::GetDefaultGC() () , |
||
FontStruct_t | font = TGTextButton::GetDefaultFontStruct() , |
||
UInt_t | option = kRaisedFrame|kDoubleBorder |
||
) |
Definition at line 116 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), ExpressReco_HICollisions_FallBack::id, isEnabled(), m_buttons, m_name, m_supervisor, m_toolTip, and lumiNorm::norm.
Referenced by FWConvTrackHitsDetailView::build(), and FWTrackHitsDetailView::build().
void CSGAction::disable | ( | ) |
Definition at line 279 of file CSGAction.cc.
References disableImp(), and m_enabled.
Referenced by CmsShowMainFrame::CmsShowMainFrame(), CmsShowMainFrame::enableComplexNavigation(), CmsShowMainFrame::enableNext(), and CmsShowMainFrame::enablePrevious().
|
private |
Definition at line 321 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 274 of file CSGAction.cc.
References enableImp(), and m_enabled.
Referenced by FWFFService::checkPosition(), FWFFLooper::checkPosition(), CmsShowMain::checkPosition(), CmsShowMainFrame::enableComplexNavigation(), CmsShowMainFrame::enableNavigatorControls(), CmsShowMainFrame::enableNext(), and CmsShowMainFrame::enablePrevious().
|
private |
Definition at line 302 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 258 of file CSGAction.cc.
References m_keycode.
TGPopupMenu * CSGAction::getMenu | ( | ) | const |
Definition at line 250 of file CSGAction.cc.
References m_menu.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
int CSGAction::getMenuEntry | ( | ) | const |
Definition at line 254 of file CSGAction.cc.
References m_entry.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
Int_t CSGAction::getModcode | ( | ) | const |
Definition at line 262 of file CSGAction.cc.
References m_modcode.
const std::string & CSGAction::getName | ( | void | ) | const |
Definition at line 82 of file CSGAction.cc.
References m_name.
TString CSGAction::getSCCombo | ( | ) | const |
Definition at line 90 of file CSGAction.cc.
References m_scCombo.
TGToolBar * CSGAction::getToolBar | ( | ) | const |
Definition at line 270 of file CSGAction.cc.
References m_toolBar.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
ToolBarData_t * CSGAction::getToolBarData | ( | ) | const |
Definition at line 266 of file CSGAction.cc.
References m_tools.
Referenced by CSGContinuousAction::stop(), and CSGContinuousAction::switchMode().
const std::string & CSGAction::getToolTip | ( | ) | const |
Definition at line 86 of file CSGAction.cc.
References m_toolTip.
|
virtual |
Reimplemented in CSGContinuousAction.
Definition at line 292 of file CSGAction.cc.
References disableImp(), and m_globalEnabled.
Referenced by CSGContinuousAction::globalDisable().
|
virtual |
Reimplemented in CSGContinuousAction.
Definition at line 285 of file CSGAction.cc.
References enableImp(), and m_globalEnabled.
Referenced by CSGContinuousAction::globalEnable(), and CSGContinuousAction::switchMode().
|
virtual |
Definition at line 298 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 |
Bool_t CSGAction::resizeMenuEntry | ( | ) |
Definition at line 218 of file CSGAction.cc.
References cond::rpcobimon::current, m_entry, m_menu, m_name, m_scCombo, and tablePrinter::width.
Referenced by addSCToMenu().
void CSGAction::setMenuLabel | ( | const std::string & | label | ) |
void CSGAction::setName | ( | const std::string & | name | ) |
Definition at line 94 of file CSGAction.cc.
References m_name, and AlCaRecoCosmics_cfg::name.
Referenced by python.Vispa.Gui.PortWidget.PortWidget::__init__(), and python.Vispa.Views.PropertyView.Property::__init__().
void CSGAction::setToolTip | ( | const std::string & | tip | ) |
Definition at line 106 of file CSGAction.cc.
References CSGActionSupervisor::getToolTipDelay(), m_buttons, m_supervisor, m_tools, and m_toolTip.
Referenced by python.Vispa.Plugins.EdmBrowser.EventContentView.LabelItem::__init__(), FWConvTrackHitsDetailView::build(), FWTrackHitsDetailView::build(), CmsShowMainFrame::CmsShowMainFrame(), python.Vispa.Gui.PortWidget.PortWidget::setName(), python.Vispa.Gui.VispaWidget.VispaWidget::setText(), and python.Vispa.Views.PropertyView.TextEditWithButtonProperty::valueChanged().
sigc::signal<void> CSGAction::activated |
Definition at line 89 of file CSGAction.h.
Referenced by activate(), FWTrackHitsDetailView::build(), FWConvTrackHitsDetailView::build(), CmsShowMainFrame::CloseWindow(), CSGContinuousAction::CSGContinuousAction(), FWGUIManager::FWGUIManager(), CmsShowMainFrame::quit(), and CmsShowMain::setupDataHandling().
|
private |
Definition at line 103 of file CSGAction.h.
Referenced by createCheckButton(), createCustomIconsButton(), createPictureButton(), createTextButton(), disableImp(), enableImp(), and setToolTip().
|
private |
Definition at line 110 of file CSGAction.h.
Referenced by createMenuEntry(), CSGAction(), and ~CSGAction().
|
private |
Definition at line 111 of file CSGAction.h.
Referenced by CSGAction(), disable(), enable(), and isEnabled().
|
private |
Definition at line 107 of file CSGAction.h.
Referenced by createMenuEntry(), CSGAction(), disableImp(), enableImp(), getMenuEntry(), resizeMenuEntry(), and setMenuLabel().
|
private |
Definition at line 112 of file CSGAction.h.
Referenced by CSGAction(), globalDisable(), globalEnable(), and isEnabled().
|
private |
Definition at line 104 of file CSGAction.h.
Referenced by createMenuEntry(), createShortcut(), CSGAction(), disableImp(), enableImp(), and getKeycode().
|
private |
Definition at line 106 of file CSGAction.h.
Referenced by addSCToMenu(), createMenuEntry(), createShortcut(), CSGAction(), disableImp(), enableImp(), getMenu(), resizeMenuEntry(), and setMenuLabel().
|
private |
Definition at line 105 of file CSGAction.h.
Referenced by createShortcut(), CSGAction(), disableImp(), enableImp(), and getModcode().
|
private |
Definition at line 100 of file CSGAction.h.
Referenced by createCheckButton(), createMenuEntry(), createTextButton(), CSGAction(), getName(), resizeMenuEntry(), and setName().
|
private |
Definition at line 102 of file CSGAction.h.
Referenced by createShortcut(), getSCCombo(), and resizeMenuEntry().
|
private |
Definition at line 99 of file CSGAction.h.
Referenced by addSCToMenu(), createCheckButton(), createCustomIconsButton(), createPictureButton(), createTextButton(), CSGAction(), and setToolTip().
|
private |
Definition at line 108 of file CSGAction.h.
Referenced by CSGAction(), disableImp(), enableImp(), and getToolBar().
|
private |
Definition at line 109 of file CSGAction.h.
Referenced by CSGAction(), getToolBarData(), and setToolTip().
|
private |
Definition at line 101 of file CSGAction.h.
Referenced by createCheckButton(), createCustomIconsButton(), createPictureButton(), createTextButton(), CSGAction(), getToolTip(), and setToolTip().
|
private |
Definition at line 113 of file CSGAction.h.
Referenced by createShortcut(), CSGAction(), disableImp(), and enableImp().