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. More...
 
 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. More...
 
void setCanvas (CanvasView *canvas)
 Sets the canvas to be used by the table. More...
 
 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. More...
 
virtual void copyButton_clicked ()
 Responds to click on copy button. More...
 
virtual void selectionChanged (QListViewItem *)
 

Protected Attributes

QGridLayoutPlotTableBaseLayout
 
QSpacerItemspacer1
 

Private Member Functions

void initialize ()
 Initialized the table. More...
 

Private Attributes

bool m_browser_mode
 The mode of the plot table. More...
 
CanvasViewm_canvas_view
 The canvas that is currently being used. More...
 
QWidgetm_observer
 The Window that initiated the browsing, if any. More...
 
std::map< const QListViewItem *, const ViewBase *> m_view_map
 A map to associate a QListViewItem with its ViewBase. More...
 

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()

PlotTable ( )

The default constructor.

Definition at line 40 of file PlotTable.cxx.

References PlotTable::setCanvas().

Referenced by PlotTable::initialize().

Member Function Documentation

◆ closeButton_clicked()

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

Referenced by PlotTable::copyButton_clicked().

◆ copyButton_clicked()

void copyButton_clicked ( )
protectedvirtual

Responds to click on copy button.

Implements PlotTableBase.

Definition at line 125 of file PlotTable.cxx.

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

Referenced by PlotTable::setBrowserMode().

◆ initialize()

void initialize ( )
private

◆ languageChange

void languageChange ( )
protectedvirtualslotinherited

◆ selectionChanged()

void selectionChanged ( QListViewItem item)
protectedvirtual

◆ setBrowserMode()

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::copyButton_clicked(), PlotTable::m_browser_mode, and PlotTable::m_observer.

Referenced by PlotTable::selectionChanged().

◆ setCanvas()

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 PlotTable::PlotTable(), and CanvasWindow::viewShowPlotTable().

Member Data Documentation

◆ closeButton

QPushButton* closeButton
inherited

Definition at line 35 of file PlotTableBase.h.

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

◆ copyButton

QPushButton* copyButton
inherited

◆ m_browser_mode

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(), PlotTable::selectionChanged(), and PlotTable::setBrowserMode().

◆ m_canvas_view

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

◆ m_observer

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

◆ m_plot_table

QListView* m_plot_table
inherited

◆ m_view_map

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

◆ PlotTableBaseLayout

QGridLayout* PlotTableBaseLayout
protectedinherited

Definition at line 40 of file PlotTableBase.h.

Referenced by PlotTableBase::PlotTableBase().

◆ spacer1

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