Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
CreateNTuple Class Reference

This class manages the Create NTuple dialog. More...

#include <CreateNTuple.h>

Inheritance diagram for CreateNTuple:
Inheritance graph
[legend]
Collaboration diagram for CreateNTuple:
Collaboration graph
[legend]

Public Member Functions

 accept ()
 
 CreateNTuple (QWidget *parent=0, const char *name=0)
 The constructor. More...
 
 done (int r)
 
 enum { Rejected, Accepted }
 
 exec ()
 
 extension () const
 
 isModal () const
 
 isSizeGripEnabled () const
 
 orientation () const
 
 prop - whether the size grip is enabled
 
 prop - whether show() should pop up the dialog as modal or modeless
 
 reject ()
 
 result () const
 
 setExtension (QWidget *extension)
 
 setModal (bool modal)
 
 setOrientation (Orientation orientation)
 
 setResult (int i)
 
 setSizeGripEnabled (bool)
 
 show ()
 
 showExtension (bool showIt)
 

Public Attributes

QPushButtoncancelButton
 
QCheckBoxcolumnListCheckBox
 
QPushButtoncreateFileButton
 
QPushButtoncreateNTupleButton
 
QCheckBoxcutListCheckBox
 
QListViewm_ColumnListView
 
QListViewm_CutListView
 
QComboBoxm_ntuple_in
 
QLineEditm_ntuple_out
 
QLabeltextLabel1
 
QLabeltextLabel1_2
 
QLabelTextLabel1_3_2
 
QLabeltextLabel2
 

Protected Slots

virtual void languageChange ()
 

Protected Member Functions

virtual void columnListCheckBox_toggled (bool yes)
 Select or deselect all in column list. More...
 
virtual void createButtonClicked ()
 Create a new NTuple. More...
 
virtual void createFileButtonClicked ()
 Create a new NTuple and save to a file. More...
 
virtual void currentDataSourceChanged (int item)
 Current Item in the ComboBox changed. More...
 
virtual void cutListCheckBox_toggled (bool yes)
 Select or deselect all in cut list. More...
 

Protected Attributes

QVBoxLayoutlayout10
 
QHBoxLayoutlayout7
 
QHBoxLayoutlayout8
 
QVBoxLayoutlayout9
 

Private Member Functions

const std::vector< PlotterBase *> & getDataCutList ()
 Get all the data cut used by the DataSource. More...
 
void getPlotterList (std::vector< PlotterBase * > &)
 Get all the plotter used by the canvas window. More...
 
void initListViews ()
 Initiate the list views, set column names. More...
 
void setColumnList ()
 Filter according to the selected column. More...
 
void setCutList ()
 Filter according to the selected cut. More...
 
void updateColumnList ()
 Update column list view. More...
 
void updateCutList ()
 Update cut list view. More...
 
void updateNTupleIn ()
 Update the ComboBox. More...
 

Private Attributes

unsigned int columnNumber
 
unsigned int cutNumber
 
std::vector< std::string > m_column_list
 
std::vector< const TupleCut *> m_cut_list
 The list of TupleCut objects. More...
 
NTuplenewNTuple
 

Detailed Description

This class manages the Create NTuple dialog.

Author
Xie Fang xiefa.nosp@m.ng@s.nosp@m.tanfo.nosp@m.rd.e.nosp@m.du

Definition at line 33 of file CreateNTuple.h.

Constructor & Destructor Documentation

◆ CreateNTuple()

CreateNTuple ( QWidget parent = 0,
const char *  name = 0 
)

Member Function Documentation

◆ columnListCheckBox_toggled()

void columnListCheckBox_toggled ( bool  yes)
protectedvirtual

Select or deselect all in column list.

Reimplemented from CreateNTupleBase.

Definition at line 326 of file CreateNTuple.cxx.

References CreateNTuple::columnNumber, CreateNTupleBase::m_ColumnListView, and CreateNTuple::setColumnList().

Referenced by CreateNTuple::cutListCheckBox_toggled().

◆ createButtonClicked()

void createButtonClicked ( )
protectedvirtual

◆ createFileButtonClicked()

void createFileButtonClicked ( )
protectedvirtual

◆ currentDataSourceChanged()

void currentDataSourceChanged ( int  item)
protectedvirtual

◆ cutListCheckBox_toggled()

void cutListCheckBox_toggled ( bool  yes)
protectedvirtual

Select or deselect all in cut list.

Reimplemented from CreateNTupleBase.

Definition at line 306 of file CreateNTuple.cxx.

References CreateNTuple::columnListCheckBox_toggled(), CreateNTuple::cutNumber, and CreateNTupleBase::m_CutListView.

Referenced by CreateNTuple::createFileButtonClicked().

◆ getDataCutList()

const std::vector< PlotterBase *> & getDataCutList ( )
private

◆ getPlotterList()

void getPlotterList ( std::vector< PlotterBase * > &  plotterlist)
private

Get all the plotter used by the canvas window.

Definition at line 196 of file CreateNTuple.cxx.

References CreateNTuple::getDataCutList(), and WindowController::instance().

Referenced by CreateNTuple::currentDataSourceChanged(), and CreateNTuple::getDataCutList().

◆ initListViews()

void initListViews ( )
private

◆ languageChange

void languageChange ( )
protectedvirtualslotinherited

◆ setColumnList()

void setColumnList ( )
private

◆ setCutList()

void setCutList ( )
private

◆ updateColumnList()

void updateColumnList ( )
private

◆ updateCutList()

void updateCutList ( )
private

◆ updateNTupleIn()

void updateNTupleIn ( )
private

Member Data Documentation

◆ cancelButton

QPushButton* cancelButton
inherited

◆ columnListCheckBox

QCheckBox* columnListCheckBox
inherited

◆ columnNumber

unsigned int columnNumber
private

◆ createFileButton

QPushButton* createFileButton
inherited

◆ createNTupleButton

QPushButton* createNTupleButton
inherited

◆ cutListCheckBox

QCheckBox* cutListCheckBox
inherited

◆ cutNumber

unsigned int cutNumber
private

◆ layout10

QVBoxLayout* layout10
protectedinherited

Definition at line 57 of file CreateNTupleBase.h.

Referenced by CreateNTupleBase::CreateNTupleBase().

◆ layout7

QHBoxLayout* layout7
protectedinherited

Definition at line 56 of file CreateNTupleBase.h.

Referenced by CreateNTupleBase::CreateNTupleBase().

◆ layout8

QHBoxLayout* layout8
protectedinherited

Definition at line 58 of file CreateNTupleBase.h.

Referenced by CreateNTupleBase::CreateNTupleBase().

◆ layout9

QVBoxLayout* layout9
protectedinherited

Definition at line 55 of file CreateNTupleBase.h.

Referenced by CreateNTupleBase::CreateNTupleBase().

◆ m_column_list

std::vector< std::string > m_column_list
private

◆ m_ColumnListView

QListView* m_ColumnListView
inherited

◆ m_cut_list

std::vector< const TupleCut * > m_cut_list
private

◆ m_CutListView

QListView* m_CutListView
inherited

◆ m_ntuple_in

QComboBox* m_ntuple_in
inherited

◆ m_ntuple_out

QLineEdit* m_ntuple_out
inherited

◆ newNTuple

NTuple* newNTuple
private

Definition at line 45 of file CreateNTuple.h.

◆ textLabel1

QLabel* textLabel1
inherited

◆ textLabel1_2

QLabel* textLabel1_2
inherited

◆ TextLabel1_3_2

QLabel* TextLabel1_3_2
inherited

◆ textLabel2

QLabel* textLabel2
inherited

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

Generated for HippoDraw Class Library by doxygen