Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
PlotTable Class Reference

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

#include <PlotTable.h>

Inheritance diagram for PlotTable:
Inheritance graph
[legend]
Collaboration diagram for PlotTable:
Collaboration graph
[legend]

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

QPushButtoncloseButton
QPushButtoncopyButton
QListViewm_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

QGridLayoutPlotTableBaseLayout
QSpacerItemspacer1

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.

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_.nosp@m.Kunz.nosp@m.@slac.nosp@m..sta.nosp@m.nford.nosp@m..edu

Definition at line 49 of file PlotTable.h.

Constructor & Destructor Documentation

PlotTable ( )

The default constructor.

Definition at line 40 of file PlotTable.cxx.

Member Function Documentation

void closeButton_clicked ( )
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().

void copyButton_clicked ( )
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().

void initialize ( )
private
void languageChange ( )
protectedvirtualslotinherited
void selectionChanged ( QListViewItem item)
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().

Member Data Documentation

QPushButton* closeButton
inherited

Definition at line 35 of file PlotTableBase.h.

Referenced by PlotTableBase::languageChange(), and PlotTableBase::PlotTableBase().

QPushButton* copyButton
inherited
bool m_browser_mode
private

The mode of the plot table.

See Also
setMode(bool)

Definition at line 76 of file PlotTable.h.

Referenced by PlotTable::closeButton_clicked(), 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(), 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
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().

QGridLayout* PlotTableBaseLayout
protectedinherited

Definition at line 40 of file PlotTableBase.h.

Referenced by PlotTableBase::PlotTableBase().

QSpacerItem* spacer1
protectedinherited

Definition at line 41 of file PlotTableBase.h.

Referenced by PlotTableBase::PlotTableBase().


The documentation for this class was generated from the following files:

Generated for HippoDraw Class Library by doxygen