LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "ButtonBar.h"
Public Member Functions | |
ButtonBar (TGMainFrame *frame) | |
virtual | ~ButtonBar () |
void | PrevEvt () |
void | NextEvt () |
void | ReloadEvt () |
void | AutoAdvance () |
void | FileList () |
void | GoTo () |
void | PrintToFile () |
int | NoImpl (const char *c) |
void | SetRunEvent (int run, int event) |
Bool_t | HandleTimer (TTimer *t) |
Private Member Functions | |
ClassDef (ButtonBar, 0) | |
Private Attributes | |
TTimer * | fTimer |
Timer to handle auto advancing. More... | |
TGCompositeFrame * | fButtonBar |
The top button bar. More... | |
TGLayoutHints * | fLayout |
Layout for button bar. More... | |
TGTextButton * | fPrevEvt |
Goto to previous event. More... | |
TGTextButton * | fNextEvt |
Goto to next event. More... | |
TGTextButton * | fAutoAdvance |
Start to auto advance. More... | |
TGTextButton * | fReload |
Reload current event. More... | |
TGTextEntry * | fCurrentFile |
Currently loaded file. More... | |
TGPictureButton * | fFileList |
Access to the list of files attached. More... | |
TGLabel * | fRunEvtLabel |
Run/Event number label. More... | |
TGTextEntry * | fRunTextEntry |
Run number text entry. More... | |
TGTextEntry * | fEventTextEntry |
Event number text entry. More... | |
TGTextButton * | fGoTo |
Go To event button. More... | |
TGTextButton * | fPrint |
Print button. More... | |
Definition at line 20 of file ButtonBar.h.
evdb::ButtonBar::ButtonBar | ( | TGMainFrame * | frame | ) |
Definition at line 32 of file ButtonBar.cxx.
References fAutoAdvance, fButtonBar, fCurrentFile, fEventTextEntry, fFileList, fGoTo, fLayout, fNextEvt, fPrevEvt, fPrint, fReload, fRunEvtLabel, fRunTextEntry, norm, and evdb::PicturePool().
|
virtual |
Definition at line 122 of file ButtonBar.cxx.
References fButtonBar, fCurrentFile, fEventTextEntry, fFileList, fGoTo, fLayout, fNextEvt, fPrevEvt, fPrint, fReload, fRunEvtLabel, fRunTextEntry, and fTimer.
void evdb::ButtonBar::AutoAdvance | ( | ) |
Definition at line 171 of file ButtonBar.cxx.
References fAutoAdvance, evdb::EventDisplay::fAutoAdvanceInterval, and fTimer.
|
private |
void evdb::ButtonBar::FileList | ( | ) |
Definition at line 204 of file ButtonBar.cxx.
void evdb::ButtonBar::GoTo | ( | ) |
Definition at line 219 of file ButtonBar.cxx.
References tca::evt, fEventTextEntry, fRunTextEntry, evdb::kGOTO_EVENT, evdb::NavState::Set(), and evdb::NavState::SetTarget().
Bool_t evdb::ButtonBar::HandleTimer | ( | TTimer * | t | ) |
The timer sets the pace for the auto advance feature
Definition at line 159 of file ButtonBar.cxx.
References evdb::EventDisplay::fAutoAdvanceInterval, and NextEvt().
void evdb::ButtonBar::NextEvt | ( | ) |
Definition at line 149 of file ButtonBar.cxx.
References evdb::kNEXT_EVENT, and evdb::NavState::Set().
Referenced by HandleTimer().
int evdb::ButtonBar::NoImpl | ( | const char * | c | ) |
Definition at line 242 of file ButtonBar.cxx.
References fButtonBar, s, and evdb::TopWindow().
void evdb::ButtonBar::PrevEvt | ( | ) |
Definition at line 142 of file ButtonBar.cxx.
References evdb::kPREV_EVENT, and evdb::NavState::Set().
void evdb::ButtonBar::PrintToFile | ( | ) |
Definition at line 215 of file ButtonBar.cxx.
void evdb::ButtonBar::ReloadEvt | ( | ) |
Definition at line 197 of file ButtonBar.cxx.
References evdb::kRELOAD_EVENT, and evdb::NavState::Set().
void evdb::ButtonBar::SetRunEvent | ( | int | run, |
int | event | ||
) |
Definition at line 229 of file ButtonBar.cxx.
References fEventTextEntry, and fRunTextEntry.
Referenced by evdb::DisplayWindow::SetRunEvent().
|
private |
Start to auto advance.
Definition at line 49 of file ButtonBar.h.
Referenced by AutoAdvance(), and ButtonBar().
|
private |
The top button bar.
Definition at line 45 of file ButtonBar.h.
Referenced by ButtonBar(), NoImpl(), and ~ButtonBar().
|
private |
Currently loaded file.
Definition at line 51 of file ButtonBar.h.
Referenced by ButtonBar(), and ~ButtonBar().
|
private |
Event number text entry.
Definition at line 56 of file ButtonBar.h.
Referenced by ButtonBar(), GoTo(), SetRunEvent(), and ~ButtonBar().
|
private |
Access to the list of files attached.
Definition at line 52 of file ButtonBar.h.
Referenced by ButtonBar(), and ~ButtonBar().
|
private |
Go To event button.
Definition at line 58 of file ButtonBar.h.
Referenced by ButtonBar(), and ~ButtonBar().
|
private |
Layout for button bar.
Definition at line 46 of file ButtonBar.h.
Referenced by ButtonBar(), and ~ButtonBar().
|
private |
Goto to next event.
Definition at line 48 of file ButtonBar.h.
Referenced by ButtonBar(), and ~ButtonBar().
|
private |
Goto to previous event.
Definition at line 47 of file ButtonBar.h.
Referenced by ButtonBar(), and ~ButtonBar().
|
private |
Print button.
Definition at line 59 of file ButtonBar.h.
Referenced by ButtonBar(), and ~ButtonBar().
|
private |
Reload current event.
Definition at line 50 of file ButtonBar.h.
Referenced by ButtonBar(), and ~ButtonBar().
|
private |
Run/Event number label.
Definition at line 54 of file ButtonBar.h.
Referenced by ButtonBar(), and ~ButtonBar().
|
private |
Run number text entry.
Definition at line 55 of file ButtonBar.h.
Referenced by ButtonBar(), GoTo(), SetRunEvent(), and ~ButtonBar().
|
private |
Timer to handle auto advancing.
Definition at line 42 of file ButtonBar.h.
Referenced by AutoAdvance(), and ~ButtonBar().