#include <PlotTable.h>
Inheritance diagram for PlotTable:
It provides an PlotTable which lists all plots on a canvas.
Definition at line 49 of file 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 the size grip is enabled | |
prop -whether show() should pop up the dialog as modal or modeless | |
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 |
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. |
PlotTable | ( | ) |
void closeButton_clicked | ( | ) | [protected, virtual] |
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().
void copyButton_clicked | ( | ) | [protected, virtual] |
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().
void initialize | ( | ) | [private] |
Initialized the table.
Definition at line 57 of file PlotTable.cxx.
References QListView::clear(), PlotterBase::getDataRep(), PlotterBase::getLabel(), 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().
void languageChange | ( | ) | [protected, virtual, slot, inherited] |
Definition at line 146 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().
void selectionChanged | ( | QListViewItem * | ) | [protected, virtual] |
Implements PlotTableBase.
Definition at line 98 of file PlotTable.cxx.
References PlotTableBase::copyButton, PlotTable::m_browser_mode, PlotTable::m_canvas_view, and PlotTable::m_view_map.
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().
QPushButton* closeButton [inherited] |
Definition at line 35 of file PlotTableBase.h.
Referenced by PlotTableBase::languageChange(), and PlotTableBase::PlotTableBase().
QPushButton* copyButton [inherited] |
Definition at line 36 of file PlotTableBase.h.
Referenced by PlotTableBase::languageChange(), PlotTableBase::PlotTableBase(), PlotTable::selectionChanged(), and PlotTable::setBrowserMode().
bool m_browser_mode [private] |
The mode of the plot table.
Definition at line 76 of file PlotTable.h.
Referenced by PlotTable::closeButton_clicked(), PlotTable::selectionChanged(), and PlotTable::setBrowserMode().
CanvasView* m_canvas_view [private] |
The canvas that is currently being used.
Definition at line 60 of file PlotTable.h.
Referenced by PlotTable::copyButton_clicked(), PlotTable::initialize(), PlotTable::selectionChanged(), and PlotTable::setCanvas().
QWidget* m_observer [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().
QListView* m_plot_table [inherited] |
Definition at line 37 of file PlotTableBase.h.
Referenced by PlotTable::initialize(), PlotTableBase::languageChange(), and PlotTableBase::PlotTableBase().
std::map< const QListViewItem *, const ViewBase * > m_view_map [private] |
A map to associate a QListViewItem with its ViewBase.
Definition at line 64 of file PlotTable.h.
Referenced by PlotTable::initialize(), and PlotTable::selectionChanged().
QGridLayout* PlotTableBaseLayout [protected, inherited] |