#include <GuiMenuThings.h>
Public Member Functions | |
| GuiToggledMenuItem (Bool_t state=false) | |
| GuiMenuItr | AddToMenu (GuiMenu *menu, const char *name) |
| void | CallBack (GuiMenu *menu, GuiMenu::GuiMenuList::iterator mit) |
| void | Connect (SigC::Slot0< void > s) |
| Bool_t | GetState () |
| void | SetState (Bool_t set) |
| Bool_t | operator() (void) |
Private Attributes | |
| Bool_t | fState |
| SigC::Signal0< void > | fSig |
|
|
Definition at line 8 of file GuiMenuThings.cxx. 00008 : 00009 fState(state) 00010 { 00011 }
|
|
||||||||||||
|
Definition at line 14 of file GuiMenuThings.cxx. References GuiMenu::Add(), CallBack(), GuiMenu::CheckEntry(), fState, and GuiMenuItr. Referenced by TridUVPage::Init(), and TridPageDetector::Init(). 00015 {
00016 GuiMenuItr mit = menu->Add(name);
00017 (*mit)->Connect(bind(bind(slot_class(*this,&GuiToggledMenuItem::CallBack),
00018 mit) , menu));
00019 menu->CheckEntry(mit, (fState));
00020 return mit;
00021 }
|
|
||||||||||||
|
Definition at line 23 of file GuiMenuThings.cxx. References GuiMenu::CheckEntry(), fSig, and fState. Referenced by AddToMenu(). 00024 {
00025 fState = !(fState);
00026 menu->CheckEntry(mit, (fState));
00027 fSig.emit();
00028 }
|
|
|
Definition at line 19 of file GuiMenuThings.h. References s(). Referenced by TridUVPage::Init(), and TridPageDetector::Init(). 00019 { fSig.connect(s); }
|
|
|
Definition at line 21 of file GuiMenuThings.h. 00021 { return fState; };
|
|
|
Definition at line 23 of file GuiMenuThings.h. 00023 { return fState; };
|
|
|
Definition at line 30 of file GuiMenuThings.cxx.
|
|
|
Definition at line 13 of file GuiMenuThings.h. Referenced by CallBack(), and SetState(). |
|
|
Definition at line 12 of file GuiMenuThings.h. Referenced by AddToMenu(), CallBack(), and SetState(). |
1.3.9.1