PlotTable.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _PlotTable_H_
15 #define _PlotTable_H_
16 
17 #ifdef _MSC_VER
18 #include <msdevstudio/MSconfig.h>
19 #endif
20 
21 #include "libqthippo.h"
22 
23 #include <qglobal.h> // for version
24 // #if QT_VERSION < 0x040000
25 #include "qtui/PlotTableBase.h"
26 // #else
27 // #include "PlotTableUI.h"
28 // #endif
29 
30 #include <map>
31 
32 class Q3ListViewItem;
33 
34 namespace hippodraw {
35 
36 class CanvasView;
37 class ViewBase;
38 
48 // #if QT_VERSION < 0x040000
50 // #else
51 // class MDL_QTHIPPOPLOT_API PlotTable : public QDialog,
52 // private Ui::PlotTableUI
53 // #endif
54 {
55 
56 private:
57 
61 
63 #if QT_VERSION < 0x040000
64  std::map < const QListViewItem *, const ViewBase * > m_view_map;
65 #else
66  std::map < const Q3ListViewItem *, const ViewBase * > m_view_map;
67 #endif
68 
72 
77 
79  void initialize ();
80 
81 protected:
82 
83 #if QT_VERSION < 0x040000
84  virtual void selectionChanged ( QListViewItem * );
85 #else
86  virtual void selectionChanged ( Q3ListViewItem * );
87 #endif
88 
91  virtual void copyButton_clicked ();
92 
95  virtual void closeButton_clicked ();
96 
97 public:
98 
101  PlotTable ();
102 
104  void setCanvas ( CanvasView * canvas );
105 
113  void setBrowserMode ( bool browser, QWidget * observer = 0 );
114 
115 };
116 
117 } // namespace hippodraw
118 
119 #endif // _PlotTable_H_

Generated for HippoDraw Class Library by doxygen