VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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. More...
 
virtual QString label () const
 
virtual void setExtendedLabels (const std::map< int, DtString > &)
 If there are extended labels, sets the values. More...
 
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. More...
 

Public Attributes

QScrollArea * myScrollView
 
QWidget * myInsideWidget
 
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. More...
 
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. More...
 

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 QString 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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)