VR-Forces Developer's Guide
 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.

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

Classes

struct  ExtendedLabel
 

Public Types

typedef std::map< int,
ExtendedLabel
ExtendedLabels
 
typedef std::vector
< ExtendedLabel
ObjectSpecificLabels
 

Signals

void labelChanged ()
 
void extendedLabelsChanged ()
 
void objectSpecificLabelChanged (int text, QString marker, QString value)
 

Public Member Functions

 DtExtendedLabelsEntryWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
 
virtual ~DtExtendedLabelsEntryWidget ()
 
virtual void setLabel (const QString &)
 
virtual QString label () const
 
virtual void setExtendedLabels (const std::map< int, DtString > &)
 
virtual std::map< int, DtStringextendedLabels () const
 
virtual void setMinimumLabelWidth (int)
 
virtual void manageObjectSpecificLabels (const std::vector< std::string > &, const std::map< std::string, std::string > &)
 
virtual bool isValid () const
 

Public Attributes

QScrollArea * myScrollView
 
QWidget * myInsideWidget
 
QGridLayout * myLayout
 
ExtendedLabel myCommonLabel
 
ExtendedLabels myExtendedLabels
 
ObjectSpecificLabels myObjectSpecificLabels
 

Protected Slots

virtual void onLabelChanged ()
 
virtual void onExtendedLabelsTextChanged ()
 

Protected Member Functions

void setupGui ()
 
virtual void onExtendedLabelsChanged ()
 
virtual void createdExtendedLabel (int index, ExtendedLabel &label)
 
virtual ExtendedLabel createLabel (int index, const std::string &labelName)
 

Protected Attributes

makVrv::DtDemyDe
 
makVrv::DtSignalConnectionManager myConnectionManager
 
int myMinLabelWidth
 

Member Typedef Documentation

Special extended labels will start at integer 10000.

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 void makVrf::DtExtendedLabelsEntryWidget::manageObjectSpecificLabels ( const std::vector< std::string > &  ,
const std::map< std::string, std::string > &   
)
virtual

If the keywords supplied have additional_labels, this routine will create addition labels with the text specified and then look for ExtendedLabel1, ExtendedLabel2, etc in the extended data. This will be managed differently than the system wide extended labels.

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

Given the set of keywords and the extended data,.

virtual void makVrf::DtExtendedLabelsEntryWidget::onExtendedLabelsTextChanged ( )
protectedvirtualslot
void makVrf::DtExtendedLabelsEntryWidget::labelChanged ( )
signal
void makVrf::DtExtendedLabelsEntryWidget::extendedLabelsChanged ( )
signal
void makVrf::DtExtendedLabelsEntryWidget::objectSpecificLabelChanged ( int  text,
QString  marker,
QString  value 
)
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.

virtual ExtendedLabel makVrf::DtExtendedLabelsEntryWidget::createLabel ( int  index,
const std::string &  labelName 
)
protectedvirtual

Member Data Documentation

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

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)