Diana Software
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
QGCutsFrame Class Reference

Frame to handle editing of cuts. More...

Inheritance diagram for QGCutsFrame:

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...
 
QGDropDownBoxGetDropDownBox ()
 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...
 
QGDropDownBoxfDropDownBox
 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...
 

Detailed Description

Frame to handle editing of cuts.

Author
Adam Bryant (adam_.nosp@m.brya.nosp@m.nt@be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u)

Definition at line 21 of file QGCutsFrame.hh.

Constructor & Destructor Documentation

◆ QGCutsFrame()

QGCutsFrame::QGCutsFrame ( TGWindow *  p = 0,
UInt_t  w = 100,
UInt_t  h = 100 
)

◆ ~QGCutsFrame()

QGCutsFrame::~QGCutsFrame ( )
virtual

Destructor.

Definition at line 78 of file QGCutsFrame.cc.

Member Function Documentation

◆ AddCut()

void QGCutsFrame::AddCut ( const std::string &  cut)

◆ ClearCopiedCuts()

void QGCutsFrame::ClearCopiedCuts ( )
static

Clear copied cuts.

Definition at line 91 of file QGCutsFrame.cc.

References fCopiedCuts.

Referenced by QGGraphicalCut::CopyNameToClipboard(), and QGPlotIconsFrame::HandleCopyLimitsButton().

◆ CopyCut()

void QGCutsFrame::CopyCut ( const std::string &  cut)
static

Copy cut.

Definition at line 96 of file QGCutsFrame.cc.

References fCopiedCuts.

Referenced by QGGraphicalCut::CopyNameToClipboard(), and QGPlotIconsFrame::HandleCopyLimitsButton().

◆ GetCopiedCuts()

static const std::vector<std::string>& QGCutsFrame::GetCopiedCuts ( )
inlinestatic

Get copied cuts.

Definition at line 39 of file QGCutsFrame.hh.

References fCopiedCuts.

Referenced by QGCutsEditorWindow::HandlePasteButton().

◆ GetCuts()

vector< string > QGCutsFrame::GetCuts ( )

Get cuts.

Definition at line 101 of file QGCutsFrame.cc.

References fCuts.

Referenced by QGPlot::GetCutsFromEditWindow().

◆ GetCutsListBox()

TGListBox* QGCutsFrame::GetCutsListBox ( )
inline

◆ GetDropDownBox()

QGDropDownBox* QGCutsFrame::GetDropDownBox ( )
inline

◆ GetSelectedEntries()

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().

◆ HandleCopyButton()

void QGCutsFrame::HandleCopyButton ( )

Handle copy button.

Definition at line 111 of file QGCutsFrame.cc.

References fCopiedCuts, fCuts, and GetSelectedEntries().

◆ HandleDropDownBox()

void QGCutsFrame::HandleDropDownBox ( )

Handle drop down box.

Definition at line 130 of file QGCutsFrame.cc.

References AddCut(), fAddButton, fAddEditFrame, fCuts, fCutsListBox, fDropDownBox, and fEditId.

◆ HandleEditButton()

void QGCutsFrame::HandleEditButton ( )

Handle edit button.

Definition at line 150 of file QGCutsFrame.cc.

References fAddButton, fAddEditFrame, fCuts, fDropDownBox, fEditId, and GetSelectedEntries().

◆ HandlePasteButton()

void QGCutsFrame::HandlePasteButton ( )

Handle paste button.

Definition at line 163 of file QGCutsFrame.cc.

References AddCut(), and fCopiedCuts.

◆ HandleRemoveButton()

void QGCutsFrame::HandleRemoveButton ( )

Handle remove button.

Definition at line 171 of file QGCutsFrame.cc.

References fCuts, fCutsListBox, and GetSelectedEntries().

◆ SetCuts()

void QGCutsFrame::SetCuts ( const std::vector< std::string > &  cuts)

◆ SetLabel()

void QGCutsFrame::SetLabel ( const std::string &  label)

Set label.

Definition at line 203 of file QGCutsFrame.cc.

References fLabel.

Referenced by QGPulseEditWindow::ShowEventDataFrame().

Member Data Documentation

◆ fAddButton

TGPictureButton* QGCutsFrame::fAddButton
private

Add button.

Definition at line 76 of file QGCutsFrame.hh.

Referenced by HandleDropDownBox(), HandleEditButton(), and QGCutsFrame().

◆ fAddEditFrame

TGHorizontalFrame* QGCutsFrame::fAddEditFrame
private

Frame for drop down box and Add/Edit buttons.

Definition at line 79 of file QGCutsFrame.hh.

Referenced by HandleDropDownBox(), HandleEditButton(), and QGCutsFrame().

◆ fButtonsFrame

TGHorizontalFrame* QGCutsFrame::fButtonsFrame
private

Cuts buttons frame.

Definition at line 82 of file QGCutsFrame.hh.

Referenced by QGCutsFrame().

◆ fCopiedCuts

vector< string > QGCutsFrame::fCopiedCuts
staticprivate

Cuts copied to the clipboard.

Definition at line 85 of file QGCutsFrame.hh.

Referenced by ClearCopiedCuts(), CopyCut(), GetCopiedCuts(), HandleCopyButton(), and HandlePasteButton().

◆ fCopyButton

TGPictureButton* QGCutsFrame::fCopyButton
private

Copy button.

Definition at line 88 of file QGCutsFrame.hh.

Referenced by QGCutsFrame().

◆ fCuts

std::map<Int_t, std::string> QGCutsFrame::fCuts
private

◆ fCutsListBox

TGListBox* QGCutsFrame::fCutsListBox
private

◆ fDropDownBox

QGDropDownBox* QGCutsFrame::fDropDownBox
private

Drop down box.

Definition at line 97 of file QGCutsFrame.hh.

Referenced by GetDropDownBox(), HandleDropDownBox(), HandleEditButton(), and QGCutsFrame().

◆ fEditButton

TGPictureButton* QGCutsFrame::fEditButton
private

Edit button.

Definition at line 100 of file QGCutsFrame.hh.

Referenced by QGCutsFrame().

◆ fEditId

Int_t QGCutsFrame::fEditId
private

Id of cut being edited.

Definition at line 103 of file QGCutsFrame.hh.

Referenced by HandleDropDownBox(), and HandleEditButton().

◆ fId

Int_t QGCutsFrame::fId
private

Cut id.

Definition at line 106 of file QGCutsFrame.hh.

Referenced by AddCut().

◆ fLabel

TGLabel* QGCutsFrame::fLabel
private

Label.

Definition at line 109 of file QGCutsFrame.hh.

Referenced by QGCutsFrame(), and SetLabel().

◆ fPasteButton

TGPictureButton* QGCutsFrame::fPasteButton
private

Paste button.

Definition at line 112 of file QGCutsFrame.hh.

Referenced by QGCutsFrame().

◆ fRemoveButton

TGPictureButton* QGCutsFrame::fRemoveButton
private

Remove button.

Definition at line 115 of file QGCutsFrame.hh.

Referenced by QGCutsFrame().


The documentation for this class was generated from the following files: