22 #include <qapplication.h> 23 #include <qpushbutton.h> 24 #if QT_VERSION < 0x040000 25 #include <qlistview.h> 27 #include <q3listview.h> 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 120 if ( yes ==
false )
copyButton -> setEnabled ( yes );
void setCanvas(CanvasView *canvas)
Sets the canvas to be used by the table.
bool m_browser_mode
The mode of the plot table.
The class of derived from ViewBase and QCanvasRectangle for drawing on a QCanvas. ...
PlotterBase * getPlotter() const
Returns the plotter used by this view.
const std::string & getTitle() const
Gets the title to be displayed.
hippodraw::PlotTable class interface
virtual void copyButton_clicked()
Responds to click on copy button.
virtual void closeButton_clicked()
Response to click on close button.
PlotTable()
The default constructor.
hippodraw::DataRep class interface.
postEvent(QObject *receiver, QEvent *event)
QWidget * m_observer
The Window that initiated the browsing, if any.
hippodraw::CanvasView class interface
hippodraw::ViewBase class interface
virtual const std::string & getLabel(Axes::Type) const
Returns the label for the specified axis.
The base class for data representations.
hippodraw::QtView class interface
const std::vector< const ViewBase *> & views() const
Returns temporary list of all QtView objects on the canvas.
std::map< const QListViewItem *, const ViewBase *> m_view_map
A map to associate a QListViewItem with its ViewBase.
PlotTableEvent class interface.
const std::string & name() const
Returns the name of the display.
The base class for the PlotterBase hierarchy.
PyArray_TYPES type(numeric::array arr)
void initialize()
Initialized the table.
void setBrowserMode(bool browser, QWidget *observer=0)
Sets the mode of the plot table.
This class implements additional FigureEditor functionality particular to QtView objects.
The abstract base class for views.
hippodraw::PlotterBase class interface.
CanvasView * m_canvas_view
The canvas that is currently being used.
A derived class of QCustomEvent PlotTable events.
virtual DataRep * getDataRep(int index) const
Returns the specified DataRep or null pointer if it doesn't exits.
virtual bool hasAxis(Axes::Type axis) const
Returns true if the plotter has an axis of specified type.
virtual void selectionChanged(QListViewItem *)