Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PlotTable Class Reference

#include <PlotTable.h>

Inheritance diagram for PlotTable:

Inheritance graph
[legend]
Collaboration diagram for PlotTable:

Collaboration graph
[legend]
List of all members.

Detailed Description

A derived class of PlotTableBase class which is generated by the Qt designer.

It provides an PlotTable which lists all plots on a canvas.

Requests:
Display TextRep in more friendly way.

Author:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

Definition at line 46 of file PlotTable.h.

Public Member Functions

 PlotTable ()
 The default constructor.
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.

Protected Member Functions

virtual void on_closeButton_clicked ()
 Response to click on close buttion.
virtual void on_copyButton_clicked ()
 Responds to click on copy button.
virtual void selectionChanged (QListViewItem *)

Private Member Functions

void initialize ()
 Initialized the table.

Private Attributes

bool m_browser_mode
 The mode of the plot table.
CanvasViewm_canvas_view
 The canvas that is currently being used.
QWidgetm_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.


Constructor & Destructor Documentation

PlotTable::PlotTable  ) 
 

The default constructor.

Definition at line 40 of file PlotTable.cxx.


Member Function Documentation

void PlotTable::initialize  )  [private]
 

Initialized the table.

Definition at line 57 of file PlotTable.cxx.

References PlotterBase::getDataRep(), PlotterBase::getLabel(), ViewBase::getPlotter(), PlotterBase::getTitle(), PlotterBase::hasAxis(), m_canvas_view, m_view_map, DataRep::name(), num_util::type(), CanvasView::views(), hippodraw::Axes::X, hippodraw::Axes::Y, and hippodraw::Axes::Z.

Referenced by setCanvas().

void PlotTable::on_closeButton_clicked  )  [protected, virtual]
 

Response to click on close buttion.

Definition at line 135 of file PlotTable.cxx.

References PlotTableEvent::Close, m_browser_mode, m_observer, and QApplication::postEvent().

void PlotTable::on_copyButton_clicked  )  [protected, virtual]
 

Responds to click on copy button.

Definition at line 125 of file PlotTable.cxx.

References PlotTableEvent::Copy, m_canvas_view, m_observer, and QApplication::postEvent().

void PlotTable::selectionChanged QListViewItem  )  [protected, virtual]
 

Definition at line 98 of file PlotTable.cxx.

void PlotTable::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 intiating 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 m_browser_mode, and m_observer.

void PlotTable::setCanvas CanvasView canvas  ) 
 

Sets the canvas to be used by the table.

Definition at line 49 of file PlotTable.cxx.

References initialize(), and m_canvas_view.

Referenced by CanvasWindow::viewShowPlotTable().


Member Data Documentation

bool PlotTable::m_browser_mode [private]
 

The mode of the plot table.

See also:
setMode(bool)

Definition at line 73 of file PlotTable.h.

Referenced by on_closeButton_clicked(), and setBrowserMode().

CanvasView* PlotTable::m_canvas_view [private]
 

The canvas that is currently being used.

Definition at line 57 of file PlotTable.h.

Referenced by initialize(), on_copyButton_clicked(), and setCanvas().

QWidget* PlotTable::m_observer [private]
 

The Window that initiated the browsing, if any.

Definition at line 68 of file PlotTable.h.

Referenced by on_closeButton_clicked(), on_copyButton_clicked(), and setBrowserMode().

std::map< const QListViewItem *, const ViewBase * > PlotTable::m_view_map [private]
 

A map to associate a QListViewItem with its ViewBase.

Definition at line 61 of file PlotTable.h.

Referenced by initialize().


The documentation for this class was generated from the following files:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3