![]() |
Diana Software
|
Frame to handle editing of cuts. More...
Public Member Functions | |
| QGCutsFrame (TGWindow *p=0, UInt_t w=100, UInt_t h=100) | |
| Constructor. More... | |
| virtual | ~QGCutsFrame () |
| Destructor. More... | |
| void | AddCut (const std::string &cut) |
| Add cut. More... | |
| std::vector< std::string > | GetCuts () |
| Get cuts. More... | |
| TGListBox * | GetCutsListBox () |
| Get pointer to cuts list box. More... | |
| QGDropDownBox * | GetDropDownBox () |
| Get drop down box. More... | |
| std::vector< Int_t > | GetSelectedEntries () |
| Get id numbers of selected entries in list box. More... | |
| void | HandleCopyButton () |
| Handle copy button. More... | |
| void | HandleDropDownBox () |
| Handle drop down box. More... | |
| void | HandleEditButton () |
| Handle edit button. More... | |
| void | HandlePasteButton () |
| Handle paste button. More... | |
| void | HandleRemoveButton () |
| Handle remove button. More... | |
| void | SetCuts (const std::vector< std::string > &cuts) |
| Set cuts. More... | |
| void | SetLabel (const std::string &label) |
| Set label. More... | |
Static Public Member Functions | |
| static void | ClearCopiedCuts () |
| Clear copied cuts. More... | |
| static void | CopyCut (const std::string &cut) |
| Copy cut. More... | |
| static const std::vector< std::string > & | GetCopiedCuts () |
| Get copied cuts. More... | |
Private Attributes | |
| TGPictureButton * | fAddButton |
| Add button. More... | |
| TGHorizontalFrame * | fAddEditFrame |
| Frame for drop down box and Add/Edit buttons. More... | |
| TGHorizontalFrame * | fButtonsFrame |
| Cuts buttons frame. More... | |
| TGPictureButton * | fCopyButton |
| Copy button. More... | |
| std::map< Int_t, std::string > | fCuts |
| Cuts. More... | |
| TGListBox * | fCutsListBox |
| Cuts list box. More... | |
| QGDropDownBox * | fDropDownBox |
| Drop down box. More... | |
| TGPictureButton * | fEditButton |
| Edit button. More... | |
| Int_t | fEditId |
| Id of cut being edited. More... | |
| Int_t | fId |
| Cut id. More... | |
| TGLabel * | fLabel |
| Label. More... | |
| TGPictureButton * | fPasteButton |
| Paste button. More... | |
| TGPictureButton * | fRemoveButton |
| Remove button. More... | |
Static Private Attributes | |
| static std::vector< std::string > | fCopiedCuts |
| Cuts copied to the clipboard. More... | |
Frame to handle editing of cuts.
Definition at line 21 of file QGCutsFrame.hh.
| QGCutsFrame::QGCutsFrame | ( | TGWindow * | p = 0, |
| UInt_t | w = 100, |
||
| UInt_t | h = 100 |
||
| ) |
Constructor.
Definition at line 25 of file QGCutsFrame.cc.
References QGDropDownBox::EnableTabCompletion(), fAddButton, fAddEditFrame, fButtonsFrame, fCopyButton, fCutsListBox, fDropDownBox, fEditButton, fLabel, fPasteButton, and fRemoveButton.
|
virtual |
Destructor.
Definition at line 78 of file QGCutsFrame.cc.
| void QGCutsFrame::AddCut | ( | const std::string & | cut | ) |
Add cut.
Definition at line 83 of file QGCutsFrame.cc.
References fCuts, fCutsListBox, and fId.
Referenced by HandleDropDownBox(), HandlePasteButton(), QGPlotIconsFrame::HandlePulsesButton(), SetCuts(), and QGGraphicalCut::ViewPulses().
|
static |
Clear copied cuts.
Definition at line 91 of file QGCutsFrame.cc.
References fCopiedCuts.
Referenced by QGGraphicalCut::CopyNameToClipboard(), and QGPlotIconsFrame::HandleCopyLimitsButton().
|
static |
Copy cut.
Definition at line 96 of file QGCutsFrame.cc.
References fCopiedCuts.
Referenced by QGGraphicalCut::CopyNameToClipboard(), and QGPlotIconsFrame::HandleCopyLimitsButton().
|
inlinestatic |
Get copied cuts.
Definition at line 39 of file QGCutsFrame.hh.
References fCopiedCuts.
Referenced by QGCutsEditorWindow::HandlePasteButton().
| vector< string > QGCutsFrame::GetCuts | ( | ) |
Get cuts.
Definition at line 101 of file QGCutsFrame.cc.
References fCuts.
Referenced by QGPlot::GetCutsFromEditWindow().
|
inline |
Get pointer to cuts list box.
Definition at line 45 of file QGCutsFrame.hh.
References fCutsListBox.
Referenced by QGHistogramEditWindow::QGHistogramEditWindow(), QGPulseEditWindow::QGPulseEditWindow(), and QGScatterPlotEditWindow::QGScatterPlotEditWindow().
|
inline |
Get drop down box.
Definition at line 48 of file QGCutsFrame.hh.
References fDropDownBox.
Referenced by QGHistogramEditWindow::FillVariablesDropDownBoxes(), QGPulseEditWindow::FillVariablesDropDownBoxes(), and QGScatterPlotEditWindow::FillVariablesDropDownBoxes().
| vector< Int_t > QGCutsFrame::GetSelectedEntries | ( | ) |
Get id numbers of selected entries in list box.
Definition at line 182 of file QGCutsFrame.cc.
References fCutsListBox.
Referenced by HandleCopyButton(), HandleEditButton(), and HandleRemoveButton().
| void QGCutsFrame::HandleCopyButton | ( | ) |
Handle copy button.
Definition at line 111 of file QGCutsFrame.cc.
References fCopiedCuts, fCuts, and GetSelectedEntries().
| void QGCutsFrame::HandleDropDownBox | ( | ) |
Handle drop down box.
Definition at line 130 of file QGCutsFrame.cc.
References AddCut(), fAddButton, fAddEditFrame, fCuts, fCutsListBox, fDropDownBox, and fEditId.
| void QGCutsFrame::HandleEditButton | ( | ) |
Handle edit button.
Definition at line 150 of file QGCutsFrame.cc.
References fAddButton, fAddEditFrame, fCuts, fDropDownBox, fEditId, and GetSelectedEntries().
| void QGCutsFrame::HandlePasteButton | ( | ) |
Handle paste button.
Definition at line 163 of file QGCutsFrame.cc.
References AddCut(), and fCopiedCuts.
| void QGCutsFrame::HandleRemoveButton | ( | ) |
Handle remove button.
Definition at line 171 of file QGCutsFrame.cc.
References fCuts, fCutsListBox, and GetSelectedEntries().
| void QGCutsFrame::SetCuts | ( | const std::vector< std::string > & | cuts | ) |
Set cuts.
Definition at line 192 of file QGCutsFrame.cc.
References AddCut(), fCuts, and fCutsListBox.
Referenced by QGPlotIconsFrame::HandlePulsesButton(), QGHistogramEditWindow::SetPlot(), QGPulseEditWindow::SetPlot(), QGScatterPlotEditWindow::SetPlot(), QGPulseEditWindow::UpdateEventData(), and QGGraphicalCut::ViewPulses().
| void QGCutsFrame::SetLabel | ( | const std::string & | label | ) |
Set label.
Definition at line 203 of file QGCutsFrame.cc.
References fLabel.
Referenced by QGPulseEditWindow::ShowEventDataFrame().
|
private |
Add button.
Definition at line 76 of file QGCutsFrame.hh.
Referenced by HandleDropDownBox(), HandleEditButton(), and QGCutsFrame().
|
private |
Frame for drop down box and Add/Edit buttons.
Definition at line 79 of file QGCutsFrame.hh.
Referenced by HandleDropDownBox(), HandleEditButton(), and QGCutsFrame().
|
private |
|
staticprivate |
Cuts copied to the clipboard.
Definition at line 85 of file QGCutsFrame.hh.
Referenced by ClearCopiedCuts(), CopyCut(), GetCopiedCuts(), HandleCopyButton(), and HandlePasteButton().
|
private |
|
private |
Cuts.
Definition at line 91 of file QGCutsFrame.hh.
Referenced by AddCut(), GetCuts(), HandleCopyButton(), HandleDropDownBox(), HandleEditButton(), HandleRemoveButton(), and SetCuts().
|
private |
Cuts list box.
Definition at line 94 of file QGCutsFrame.hh.
Referenced by AddCut(), GetCutsListBox(), GetSelectedEntries(), HandleDropDownBox(), HandleRemoveButton(), QGCutsFrame(), and SetCuts().
|
private |
Drop down box.
Definition at line 97 of file QGCutsFrame.hh.
Referenced by GetDropDownBox(), HandleDropDownBox(), HandleEditButton(), and QGCutsFrame().
|
private |
|
private |
Id of cut being edited.
Definition at line 103 of file QGCutsFrame.hh.
Referenced by HandleDropDownBox(), and HandleEditButton().
|
private |
|
private |
|
private |
|
private |