22 #include <qapplication.h>
23 #include <qpushbutton.h>
24 #if QT_VERSION < 0x040000
25 #include <qlistview.h>
27 #include <q3listview.h>
37 using namespace hippodraw;
43 m_browser_mode ( false )
62 vector < const ViewBase * > :: const_iterator first = views.begin ();
64 while ( first != views.end () ) {
70 QString z_axis ( QString::null );
76 const string & t = rep->
name ();
79 #if QT_VERSION < 0x040000
83 x_axis, y_axis, z_axis );
89 x_axis, y_axis, z_axis );
97 #if QT_VERSION < 0x040000
100 selectionChanged ( Q3ListViewItem * item )
103 const ViewBase * view = m_view_map [ item ];
107 m_canvas_view -> setSelectedItem ( vv );
108 m_canvas_view -> ensureVisible ( vv );
109 if ( m_browser_mode ) {
110 copyButton -> setEnabled (
true );
120 if ( yes ==
false )
copyButton -> setEnabled ( yes );
The abstract base class for views.
PlotTable()
The default constructor.
const std::string & getTitle() const
Gets the title to be displayed.
hippodraw::PlotterBase class interface.
virtual bool hasAxis(Axes::Type axis) const
Returns true if the plotter has an axis of specified type.
PlotterBase * getPlotter() const
Returns the plotter used by this view.
void setCanvas(CanvasView *canvas)
Sets the canvas to be used by the table.
hippodraw::ViewBase class interface
virtual void copyButton_clicked()
Responds to click on copy button.
hippodraw::PlotTable class interface
PyArray_TYPES type(numeric::array arr)
postEvent(QObject *receiver, QEvent *event)
virtual DataRep * getDataRep(int index) const
Returns the specified DataRep or null pointer if it doesn't exits.
This class implements additional FigureEditor functionality particular to QtView objects.
A derived class of QCustomEvent PlotTable events.
bool m_browser_mode
The mode of the plot table.
hippodraw::CanvasView class interface
QWidget * m_observer
The Window that initiated the browsing, if any.
void setBrowserMode(bool browser, QWidget *observer=0)
Sets the mode of the plot table.
const std::string & name() const
Returns the name of the display.
virtual void closeButton_clicked()
Response to click on close button.
hippodraw::DataRep class interface.
The base class for the PlotterBase hierarchy.
const std::vector< const ViewBase * > & views() const
Returns temporary list of all QtView objects on the canvas.
CanvasView * m_canvas_view
The canvas that is currently being used.
The base class for data representations.
PlotTableEvent class interface.
The base class for the PlotTable class.
The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas. ...
A derived class of PlotTableBase class which is generated by the Qt designer.
std::map< const QListViewItem *, const ViewBase * > m_view_map
A map to associate a QListViewItem with its ViewBase.
void initialize()
Initialized the table.
virtual const std::string & getLabel(Axes::Type) const
Returns the label for the specified axis.
hippodraw::QtView class interface