PlotTable.h

Go to the documentation of this file.
00001 /* -*- mode: c++ -*- */
00002 
00014 #ifndef _PlotTable_H_
00015 #define _PlotTable_H_
00016 
00017 #ifdef _MSC_VER
00018 #include <msdevstudio/MSconfig.h>
00019 #endif
00020 
00021 #include "libqthippo.h"
00022 
00023 #include <qglobal.h> // for version
00024 // #if QT_VERSION < 0x040000
00025 #include "qtui/PlotTableBase.h"
00026 // #else
00027 // #include "PlotTableUI.h"
00028 // #endif
00029 
00030 #include <map>
00031 
00032 class Q3ListViewItem;
00033 
00034 namespace hippodraw {
00035 
00036 class CanvasView;
00037 class ViewBase;
00038 
00048 // #if QT_VERSION < 0x040000
00049 class MDL_QTHIPPOPLOT_API PlotTable : public PlotTableBase
00050 // #else
00051 // class MDL_QTHIPPOPLOT_API PlotTable : public QDialog,
00052 //                                    private Ui::PlotTableUI
00053 // #endif
00054 {
00055 
00056 private:
00057 
00060   CanvasView * m_canvas_view;
00061 
00063 #if QT_VERSION < 0x040000
00064   std::map < const QListViewItem *, const ViewBase * > m_view_map;
00065 #else
00066   std::map < const Q3ListViewItem *, const ViewBase * > m_view_map;
00067 #endif
00068 
00071   QWidget * m_observer;
00072 
00076   bool m_browser_mode;
00077 
00079   void initialize ();
00080 
00081 protected:
00082 
00083 #if QT_VERSION < 0x040000
00084   virtual void selectionChanged ( QListViewItem * );
00085 #else
00086   virtual void selectionChanged ( Q3ListViewItem * );
00087 #endif
00088 
00091   virtual void copyButton_clicked ();
00092 
00095   virtual void closeButton_clicked ();
00096 
00097 public:
00098 
00101   PlotTable ();
00102 
00104   void setCanvas ( CanvasView * canvas );
00105 
00113   void setBrowserMode ( bool browser, QWidget * observer = 0 );
00114 
00115 };
00116 
00117 } // namespace hippodraw
00118 
00119 #endif // _PlotTable_H_

Generated for HippoDraw Class Library by doxygen