PickTable.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _PickTable_H_
15 #define _PickTable_H_
16 
17 #include <qglobal.h>
18 #include "qtui/PickTableBase.h"
19 
20 #if QT_VERSION < 0x040000
21 #else
22 #include "libqthippo.h"
23 class Q3ListViewItem;
24 #endif
25 
26 #include <vector>
27 
28 namespace hippodraw {
29 
30 class NTuple;
31 class NTupleSorter;
32 class PlotterBase;
33 class DataRep;
34 
45 // #if QT_VERSION < 0x040000
47 // #else
48 // class MDL_QTHIPPOPLOT_API PickTable : public QDialog,
49 // private Ui::PickTableUI
50 // #endif
51 {
52 
53 private:
54 
58 
63 
66  unsigned int m_column;
67 
70 
71 protected:
72 
75  virtual void addEntry();
76 
79  virtual void clear();
80 
83  virtual void deleteSelectedItem();
84 
87  virtual void pickedCheckBoxClicked();
88 
91  virtual void listSorted ( int );
92 
95 #if QT_VERSION < 0x040000
96  unsigned int indexOf ( QListViewItem * target );
97 #else
98  unsigned int indexOf ( Q3ListViewItem * target );
99 #endif
100 
106  void refreshItems ( unsigned int select);
107 
111  void addDataRep ();
112 
113 public:
114 
118  PickTable ( PlotterBase * plotter );
119 
123  void addItem ( std::vector < double > & v );
124 
127  virtual void m_pick_table_selectionChanged();
128 
131  NTuple * getPickTable () const;
132 
133 };
134 
135 } // namespace hippodraw
136 
137 #endif // _PickTable_H_
DataRep * m_datarep
The DataRep of picked points.
Definition: PickTable.h:69
The file created from PickTableBase.ui with the Qt uic tool.
#define MDL_QTHIPPOPLOT_API
Definition: libqthippo.h:36
A helper class to sort and keep sorted an NTuple.
Definition: NTupleSorter.h:32
unsigned int m_column
The number of columns of the pick table.
Definition: PickTable.h:66
PlotterBase * m_target
The target PlotterBase object.
Definition: PickTable.h:62
The base class for the PlotterBase hierarchy.
Definition: PlotterBase.h:55
The base class for data representations.
Definition: DataRep.h:68
ViewBase * v
Definition: PlotTable.cxx:104
NTupleSorter * m_sorter
The object that maintains the NTuple of picked data points.
Definition: PickTable.h:57
A DataSource class implemented with std::vector&lt;double&gt; to store the column data. ...
Definition: NTuple.h:33
The base class for the PickTable class.
Definition: PickTableBase.h:29
A derived class of PickTableBase class which is generated by the Qt designer.
Definition: PickTable.h:46

Generated for HippoDraw Class Library by doxygen