VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Types | Signals | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtExtendedLabelsEntryWidget Class Reference

Widget that will allow for entry of label and any extended labels. More...

Inheritance diagram for makVrf::DtExtendedLabelsEntryWidget:
Inheritance graph
[legend]

Classes

struct  ExtendedLabel

Public Types

typedef std::map< int,
ExtendedLabel
ExtendedLabels

Signals

void labelChanged ()
void extendedLabelsChanged ()

Public Member Functions

 DtExtendedLabelsEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
virtual ~DtExtendedLabelsEntryWidget ()
virtual void setLabel (const QString &)
 Sets the singular label available to all objects.
virtual std::string label () const
virtual void setExtendedLabels (const std::map< int, DtString > &)
 If there are extended labels, sets the values.
virtual std::map< int, DtStringextendedLabels () const
virtual void setMinimumLabelWidth (int)
virtual bool isValid () const
 Returns true if all the labels in this widget are considered valid as per any validation rules they may have.

Public Attributes

QScrollArea * myScrollView
QWidgetmyInsideWidget
QGridLayout * myLayout
ExtendedLabel myCommonLabel
ExtendedLabels myExtendedLabels

Protected Slots

virtual void onLabelChanged ()
virtual void onExtendedLabelsTextChanged ()

Protected Member Functions

void setupGui ()
 Sets up gui. Called from constructor.
virtual void onExtendedLabelsChanged ()
virtual void createdExtendedLabel (int index, ExtendedLabel &label)
 Override in order to add validation to the created label (if desired) via a QValidator.

Protected Attributes

makVrv::DtDemyDe
makVrv::DtSignalConnectionManager myConnectionManager
int myMinLabelWidth
QPixmap myWarningIcon

Detailed Description

Widget that will allow for entry of label and any extended labels.

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtExtendedLabelsEntryWidget::DtExtendedLabelsEntryWidget ( makVrv::DtDe de,
QWidget parent,
const Qt::WindowFlags &  flags = 0 
)
virtual makVrf::DtExtendedLabelsEntryWidget::~DtExtendedLabelsEntryWidget ( )
virtual

Member Function Documentation

virtual void makVrf::DtExtendedLabelsEntryWidget::setLabel ( const QString &  )
virtual

Sets the singular label available to all objects.

virtual std::string makVrf::DtExtendedLabelsEntryWidget::label ( ) const
virtual
virtual void makVrf::DtExtendedLabelsEntryWidget::setExtendedLabels ( const std::map< int, DtString > &  )
virtual

If there are extended labels, sets the values.

virtual std::map<int, DtString> makVrf::DtExtendedLabelsEntryWidget::extendedLabels ( ) const
virtual
virtual void makVrf::DtExtendedLabelsEntryWidget::setMinimumLabelWidth ( int  )
virtual
virtual bool makVrf::DtExtendedLabelsEntryWidget::isValid ( ) const
virtual

Returns true if all the labels in this widget are considered valid as per any validation rules they may have.

If not then a warning icon will be displayed with the

virtual void makVrf::DtExtendedLabelsEntryWidget::onLabelChanged ( )
protectedvirtualslot
virtual void makVrf::DtExtendedLabelsEntryWidget::onExtendedLabelsTextChanged ( )
protectedvirtualslot
void makVrf::DtExtendedLabelsEntryWidget::labelChanged ( )
signal
void makVrf::DtExtendedLabelsEntryWidget::extendedLabelsChanged ( )
signal
void makVrf::DtExtendedLabelsEntryWidget::setupGui ( )
protected

Sets up gui. Called from constructor.

virtual void makVrf::DtExtendedLabelsEntryWidget::onExtendedLabelsChanged ( )
protectedvirtual
virtual void makVrf::DtExtendedLabelsEntryWidget::createdExtendedLabel ( int  index,
ExtendedLabel label 
)
protectedvirtual

Override in order to add validation to the created label (if desired) via a QValidator.

In not can override on onExtendedLabelsTextChanged(). Default is no-op

Member Data Documentation

QScrollArea* makVrf::DtExtendedLabelsEntryWidget::myScrollView
QWidget* makVrf::DtExtendedLabelsEntryWidget::myInsideWidget
QGridLayout* makVrf::DtExtendedLabelsEntryWidget::myLayout
ExtendedLabel makVrf::DtExtendedLabelsEntryWidget::myCommonLabel
ExtendedLabels makVrf::DtExtendedLabelsEntryWidget::myExtendedLabels
makVrv::DtDe& makVrf::DtExtendedLabelsEntryWidget::myDe
protected
makVrv::DtSignalConnectionManager makVrf::DtExtendedLabelsEntryWidget::myConnectionManager
protected
int makVrf::DtExtendedLabelsEntryWidget::myMinLabelWidth
protected
QPixmap makVrf::DtExtendedLabelsEntryWidget::myWarningIcon
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)