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