VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Signals | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions
MAKVrExchange::DtPlotterLegendDialog Class Reference

A dialog for customizing plot series display settings. More...

Inheritance diagram for MAKVrExchange::DtPlotterLegendDialog:
Inheritance graph
[legend]

Signals

void seriesToggled (const DtString &brokerName, const DtString &fieldName, bool enabled)
 Notifies listening slots that the series has been toggled.
void seriesStyleChanged (const DtString &brokerName, const DtString &fieldName, unsigned int style)
 Notifies listening slots that the series' style has changed.
void seriesColorChanged (const DtString &brokerName, const DtString &fieldName, int r, int g, int b)
 Notifies listening slots that the series' color has changed.

Public Member Functions

 DtPlotterLegendDialog (QWidget *parent=0)
 CTOR.
virtual ~DtPlotterLegendDialog ()
 Virtual DTOR.
virtual void addItem (const DtSeriesColorRecord &rec, const DtString &units, const DtString &description)
 Add an item to with the given name in the given section.
virtual void removeSection (const DtString &sectionName)
 Removes the section with the given name and all items under it.
virtual void resizeToContents ()
 Resize the dialog to the size of the table.

Protected Types

typedef std::map< DtString,
QTableWidgetItem * > 
SectionHeaderMap
typedef std::map< DtString,
QTableWidgetItem * > 
SeriesItemsMap
typedef std::map
< QTableWidgetItem
*, SeriesItemsMap
HeaderSeriesItemsMap

Protected Slots

virtual void onTableWidgetItemChanged (QTableWidgetItem *item)
 Receives notification that the user toggled a series on or off.
virtual void onEnableAllSeries ()
 Enables all the series for the current broker.
virtual void onDisableAllSeries ()
 Disables all the series for the current broker.

Protected Member Functions

void initView ()
 Create the view.
void connectToSignals ()
 Connect to signals from legend widgets.
virtual QTableWidgetItem * getHeaderItem (const DtString &sectionName)
 Get (or create) the header item for the given section.
virtual bool eventFilter (QObject *obj, QEvent *event)
 Processes events from the main table list.

Protected Attributes

SectionHeaderMap mySectionHeaders
HeaderSeriesItemsMap myHeaderSeriesItems
bool myNeedsShowHideFlag
QMenumyHeaderContextMenu
DtLineStyleComboDelegatemyStyleDelegate
DtLineColorSelectDelegatemyColorDelegate
QTableWidget * myListWidget

Private Member Functions

 DtPlotterLegendDialog (DtPlotterLegendDialog &other)
 Copy CTOR not Implemented – do not copy.
DtPlotterLegendDialogoperator= (DtPlotterLegendDialog &other)
 Assignment Operator not Implemented – do not copy.

Detailed Description

A dialog for customizing plot series display settings.

Member Typedef Documentation

typedef std::map<QTableWidgetItem*,SeriesItemsMap> MAKVrExchange::DtPlotterLegendDialog::HeaderSeriesItemsMap
protected
typedef std::map<DtString,QTableWidgetItem*> MAKVrExchange::DtPlotterLegendDialog::SectionHeaderMap
protected
typedef std::map<DtString,QTableWidgetItem*> MAKVrExchange::DtPlotterLegendDialog::SeriesItemsMap
protected

Constructor & Destructor Documentation

MAKVrExchange::DtPlotterLegendDialog::DtPlotterLegendDialog ( QWidget parent = 0)

CTOR.

virtual MAKVrExchange::DtPlotterLegendDialog::~DtPlotterLegendDialog ( )
virtual

Virtual DTOR.

MAKVrExchange::DtPlotterLegendDialog::DtPlotterLegendDialog ( DtPlotterLegendDialog other)
private

Copy CTOR not Implemented – do not copy.

Member Function Documentation

virtual void MAKVrExchange::DtPlotterLegendDialog::addItem ( const DtSeriesColorRecord rec,
const DtString units,
const DtString description 
)
virtual

Add an item to with the given name in the given section.

void MAKVrExchange::DtPlotterLegendDialog::connectToSignals ( )
protected

Connect to signals from legend widgets.

Non-virtual - Called from CTOR.

virtual bool MAKVrExchange::DtPlotterLegendDialog::eventFilter ( QObject obj,
QEvent *  event 
)
protectedvirtual

Processes events from the main table list.

Displays context menu if header is right clicked.

virtual QTableWidgetItem* MAKVrExchange::DtPlotterLegendDialog::getHeaderItem ( const DtString sectionName)
protectedvirtual

Get (or create) the header item for the given section.

void MAKVrExchange::DtPlotterLegendDialog::initView ( )
protected

Create the view.

Non-virtual - Called from CTOR.

virtual void MAKVrExchange::DtPlotterLegendDialog::onDisableAllSeries ( )
protectedvirtualslot

Disables all the series for the current broker.

Called when the user selects disable all from the header context menu.

virtual void MAKVrExchange::DtPlotterLegendDialog::onEnableAllSeries ( )
protectedvirtualslot

Enables all the series for the current broker.

Called when the user selects enable all from the header context menu.

virtual void MAKVrExchange::DtPlotterLegendDialog::onTableWidgetItemChanged ( QTableWidgetItem *  item)
protectedvirtualslot

Receives notification that the user toggled a series on or off.

Updates the plot using the checked state and the series id.

DtPlotterLegendDialog& MAKVrExchange::DtPlotterLegendDialog::operator= ( DtPlotterLegendDialog other)
private

Assignment Operator not Implemented – do not copy.

virtual void MAKVrExchange::DtPlotterLegendDialog::removeSection ( const DtString sectionName)
virtual

Removes the section with the given name and all items under it.

virtual void MAKVrExchange::DtPlotterLegendDialog::resizeToContents ( )
virtual

Resize the dialog to the size of the table.

void MAKVrExchange::DtPlotterLegendDialog::seriesColorChanged ( const DtString brokerName,
const DtString fieldName,
int  r,
int  g,
int  b 
)
signal

Notifies listening slots that the series' color has changed.

void MAKVrExchange::DtPlotterLegendDialog::seriesStyleChanged ( const DtString brokerName,
const DtString fieldName,
unsigned int  style 
)
signal

Notifies listening slots that the series' style has changed.

void MAKVrExchange::DtPlotterLegendDialog::seriesToggled ( const DtString brokerName,
const DtString fieldName,
bool  enabled 
)
signal

Notifies listening slots that the series has been toggled.

Member Data Documentation

DtLineColorSelectDelegate* MAKVrExchange::DtPlotterLegendDialog::myColorDelegate
protected
QMenu* MAKVrExchange::DtPlotterLegendDialog::myHeaderContextMenu
protected
HeaderSeriesItemsMap MAKVrExchange::DtPlotterLegendDialog::myHeaderSeriesItems
protected
QTableWidget* MAKVrExchange::DtPlotterLegendDialog::myListWidget
protected
bool MAKVrExchange::DtPlotterLegendDialog::myNeedsShowHideFlag
protected
SectionHeaderMap MAKVrExchange::DtPlotterLegendDialog::mySectionHeaders
protected
DtLineStyleComboDelegate* MAKVrExchange::DtPlotterLegendDialog::myStyleDelegate
protected

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

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)