A derived class of PlotTableBase class which is generated by the Qt designer. More...
#include <PlotTable.h>
Public Member Functions | |
accept () | |
done (int r) | |
enum {Rejected, Accepted} | |
exec () | |
extension () const | |
isModal () const | |
isSizeGripEnabled () const | |
orientation () const | |
PlotTable () | |
The default constructor. | |
prop -whether show() should pop up the dialog as modal or modeless | |
prop -whether the size grip is enabled | |
reject () | |
result () const | |
void | setBrowserMode (bool browser, QWidget *observer=0) |
Sets the mode of the plot table. | |
void | setCanvas (CanvasView *canvas) |
Sets the canvas to be used by the table. | |
setExtension (QWidget *extension) | |
setModal (bool modal) | |
setOrientation (Orientation orientation) | |
setResult (int i) | |
setSizeGripEnabled (bool) | |
show () | |
showExtension (bool showIt) |
Public Attributes | |
QPushButton * | closeButton |
QPushButton * | copyButton |
QListView * | m_plot_table |
Protected Slots | |
virtual void | languageChange () |
Protected Member Functions | |
virtual void | closeButton_clicked () |
Response to click on close button. | |
virtual void | copyButton_clicked () |
Responds to click on copy button. | |
virtual void | selectionChanged (QListViewItem *) |
Protected Attributes | |
QGridLayout * | PlotTableBaseLayout |
QSpacerItem * | spacer1 |
Private Member Functions | |
void | initialize () |
Initialized the table. |
Private Attributes | |
bool | m_browser_mode |
The mode of the plot table. | |
CanvasView * | m_canvas_view |
The canvas that is currently being used. | |
QWidget * | m_observer |
The Window that initiated the browsing, if any. | |
std::map< const QListViewItem *, const ViewBase * > | m_view_map |
A map to associate a QListViewItem with its ViewBase. |
A derived class of PlotTableBase class which is generated by the Qt designer.
It provides an PlotTable which lists all plots on a canvas.
Definition at line 49 of file PlotTable.h.
PlotTable | ( | ) |
The default constructor.
Definition at line 40 of file PlotTable.cxx.
|
protectedvirtual |
Response to click on close button.
Implements PlotTableBase.
Definition at line 135 of file PlotTable.cxx.
References PlotTableEvent::Close, PlotTable::m_browser_mode, PlotTable::m_observer, and QApplication::postEvent().
|
protectedvirtual |
Responds to click on copy button.
Implements PlotTableBase.
Definition at line 125 of file PlotTable.cxx.
References PlotTableEvent::Copy, PlotTable::m_canvas_view, PlotTable::m_observer, and QApplication::postEvent().
|
private |
Initialized the table.
Definition at line 57 of file PlotTable.cxx.
References QListView::clear(), PlotterBase::getDataRep(), PlotterBase::getLabel(), ViewBase::getPlotter(), PlotterBase::getTitle(), PlotterBase::hasAxis(), PlotTable::m_canvas_view, PlotTableBase::m_plot_table, PlotTable::m_view_map, DataRep::name(), num_util::type(), CanvasView::views(), hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.
Referenced by PlotTable::setCanvas().
|
protectedvirtualslotinherited |
Definition at line 145 of file PlotTableBase.cpp.
References QListView::clear(), PlotTableBase::closeButton, PlotTableBase::copyButton, QListView::header(), PlotTableBase::m_plot_table, QListViewItem::setText(), and QPushButton::setText().
Referenced by PlotTableBase::PlotTableBase().
|
protectedvirtual |
Implements PlotTableBase.
Definition at line 98 of file PlotTable.cxx.
void setBrowserMode | ( | bool | browser, |
QWidget * | observer = 0 |
||
) |
Sets the mode of the plot table.
When true
, the mode is browser mode, i.e. the table is connected to a CanvasView that does not have a Window. The widget initiating the browsing, observer, will receive events from the table. When false
(the default), the table is connected to a CanvasView with an open Window.
Definition at line 116 of file PlotTable.cxx.
References PlotTableBase::copyButton, PlotTable::m_browser_mode, and PlotTable::m_observer.
void setCanvas | ( | CanvasView * | canvas | ) |
Sets the canvas to be used by the table.
Definition at line 49 of file PlotTable.cxx.
References PlotTable::initialize(), and PlotTable::m_canvas_view.
Referenced by CanvasWindow::viewShowPlotTable().
|
inherited |
Definition at line 35 of file PlotTableBase.h.
Referenced by PlotTableBase::languageChange(), and PlotTableBase::PlotTableBase().
|
inherited |
Definition at line 36 of file PlotTableBase.h.
Referenced by PlotTableBase::languageChange(), PlotTableBase::PlotTableBase(), and PlotTable::setBrowserMode().
|
private |
The mode of the plot table.
Definition at line 76 of file PlotTable.h.
Referenced by PlotTable::closeButton_clicked(), and PlotTable::setBrowserMode().
|
private |
The canvas that is currently being used.
Definition at line 60 of file PlotTable.h.
Referenced by PlotTable::copyButton_clicked(), PlotTable::initialize(), and PlotTable::setCanvas().
|
private |
The Window that initiated the browsing, if any.
Definition at line 71 of file PlotTable.h.
Referenced by PlotTable::closeButton_clicked(), PlotTable::copyButton_clicked(), and PlotTable::setBrowserMode().
|
inherited |
Definition at line 37 of file PlotTableBase.h.
Referenced by PlotTable::initialize(), PlotTableBase::languageChange(), and PlotTableBase::PlotTableBase().
|
private |
A map to associate a QListViewItem with its ViewBase.
Definition at line 64 of file PlotTable.h.
Referenced by PlotTable::initialize().
|
protectedinherited |
Definition at line 40 of file PlotTableBase.h.
Referenced by PlotTableBase::PlotTableBase().
|
protectedinherited |
Definition at line 41 of file PlotTableBase.h.
Referenced by PlotTableBase::PlotTableBase().