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.
 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.
virtual void createButtonClicked ()
 Create a new NTuple.
virtual void createFileButtonClicked ()
 Create a new NTuple and save to a file.
virtual void currentDataSourceChanged (int item)
 Current Item in the ComboBox changed.
virtual void cutListCheckBox_toggled (bool yes)
 Select or deselect all in cut list.

Protected Attributes

QVBoxLayoutlayout10
QHBoxLayoutlayout7
QHBoxLayoutlayout8
QVBoxLayoutlayout9

Private Member Functions

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

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.
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 ( QWidget parent = 0,
const char *  name = 0 
)

Member Function Documentation

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, and CreateNTupleBase::m_ColumnListView.

void createButtonClicked ( )
protectedvirtual
void createFileButtonClicked ( )
protectedvirtual
void currentDataSourceChanged ( int  item)
protectedvirtual
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::cutNumber, and CreateNTupleBase::m_CutListView.

const std::vector< PlotterBase * > & getDataCutList ( )
private
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 WindowController::instance().

Referenced by CreateNTuple::getDataCutList().

void initListViews ( )
private

Initiate the list views, set column names.

Definition at line 166 of file CreateNTuple.cxx.

References QListView::addColumn(), CreateNTupleBase::m_ColumnListView, and CreateNTupleBase::m_CutListView.

Referenced by CreateNTuple::CreateNTuple().

void languageChange ( )
protectedvirtualslotinherited
void setColumnList ( )
private
void setCutList ( )
private
void updateColumnList ( )
private
void updateCutList ( )
private
void updateNTupleIn ( )
private

Member Data Documentation

QPushButton* cancelButton
inherited
QCheckBox* columnListCheckBox
inherited
unsigned int columnNumber
private
QPushButton* createFileButton
inherited
QPushButton* createNTupleButton
inherited
QCheckBox* cutListCheckBox
inherited
unsigned int cutNumber
private
QVBoxLayout* layout10
protectedinherited

Definition at line 57 of file CreateNTupleBase.h.

Referenced by CreateNTupleBase::CreateNTupleBase().

QHBoxLayout* layout7
protectedinherited

Definition at line 56 of file CreateNTupleBase.h.

Referenced by CreateNTupleBase::CreateNTupleBase().

QHBoxLayout* layout8
protectedinherited

Definition at line 58 of file CreateNTupleBase.h.

Referenced by CreateNTupleBase::CreateNTupleBase().

QVBoxLayout* layout9
protectedinherited

Definition at line 55 of file CreateNTupleBase.h.

Referenced by CreateNTupleBase::CreateNTupleBase().

std::vector< std::string > m_column_list
private
QListView* m_ColumnListView
inherited
std::vector< const TupleCut * > m_cut_list
private
QListView* m_CutListView
inherited
QComboBox* m_ntuple_in
inherited
QLineEdit* m_ntuple_out
inherited
NTuple* newNTuple
private

Definition at line 45 of file CreateNTuple.h.

QLabel* textLabel1
inherited
QLabel* textLabel1_2
inherited
QLabel* TextLabel1_3_2
inherited
QLabel* textLabel2
inherited

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

Generated for HippoDraw Class Library by doxygen