VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtModelDefinitionComboBox Class Reference

A DtModelDefinitionComboBox populates itself with model definitions. More...

Inheritance diagram for makVrv::DtModelDefinitionComboBox:
Inheritance graph
[legend]

Public Member Functions

 DtModelDefinitionComboBox (DtDe &de, QWidget *parent)
 CTOR.
 ~DtModelDefinitionComboBox ()
 DTOR.
void populate ()
 Populate combo box with model definitions, based on the schema filter.
void addSchemaFilter (const std::string &filter)
 Filter schema from model definition combo box.
void removeSchemaFilter (const std::string &filter)
 Remove a filter schema.
void addPersistentItem (const std::string &persistentItem)
 Add an item that gets added during the call to populate.
void addMissingItem (const std::string &missingItem)
 Add an item that gets added during the call to populate and mark it as missing.
void removePersistentItem (const std::string &filter)
 Remove an item that so it doesn't get added during the call to populate.
void setFilteringMode (bool isPositive)
 Set true to filter additively (include only model definitions whose schemata have been added).
void setShowImagesIfAvailable (bool)
 If true, show images next to items that will display 2D bitmaps (typically model definitions in the WidgetTheme).
bool showImagesIfAvailable () const
 Returns whether or not images will be shown next to combo box items.

Protected Types

typedef boost::unordered_set
< std::string > 
NameSet

Protected Member Functions

void slot_modelDefinitionToBeRemoved (const DtModelDefinition &modelDef)
 Remove a model definition from the combo box.
void showImagesForModelDefinitions ()
 Modify combo to show images for items.
QImage imageForModelDefinition (const QString &) const
 Give the particular model definition, return a QImage that will represent that model definition.

Protected Attributes

DtDemyDe
DtSignalConnectionManager myConnections
NameSet myFilterSet
NameSet myPersistentItemSet
NameSet myMissingItemSet
bool myFilterMode
bool myShowImagesIfAvailable

Detailed Description

A DtModelDefinitionComboBox populates itself with model definitions.

Member Typedef Documentation

typedef boost::unordered_set<std::string> makVrv::DtModelDefinitionComboBox::NameSet
protected

Constructor & Destructor Documentation

makVrv::DtModelDefinitionComboBox::DtModelDefinitionComboBox ( DtDe de,
QWidget *  parent 
)

CTOR.

makVrv::DtModelDefinitionComboBox::~DtModelDefinitionComboBox ( )

DTOR.

Member Function Documentation

void makVrv::DtModelDefinitionComboBox::populate ( )

Populate combo box with model definitions, based on the schema filter.

void makVrv::DtModelDefinitionComboBox::addSchemaFilter ( const std::string &  filter)

Filter schema from model definition combo box.

void makVrv::DtModelDefinitionComboBox::removeSchemaFilter ( const std::string &  filter)

Remove a filter schema.

void makVrv::DtModelDefinitionComboBox::addPersistentItem ( const std::string &  persistentItem)

Add an item that gets added during the call to populate.

void makVrv::DtModelDefinitionComboBox::addMissingItem ( const std::string &  missingItem)

Add an item that gets added during the call to populate and mark it as missing.

void makVrv::DtModelDefinitionComboBox::removePersistentItem ( const std::string &  filter)

Remove an item that so it doesn't get added during the call to populate.

void makVrv::DtModelDefinitionComboBox::setFilteringMode ( bool  isPositive)

Set true to filter additively (include only model definitions whose schemata have been added).

False by default (excludes model definitions whose schemata have been added).

void makVrv::DtModelDefinitionComboBox::setShowImagesIfAvailable ( bool  )

If true, show images next to items that will display 2D bitmaps (typically model definitions in the WidgetTheme).

bool makVrv::DtModelDefinitionComboBox::showImagesIfAvailable ( ) const

Returns whether or not images will be shown next to combo box items.

void makVrv::DtModelDefinitionComboBox::slot_modelDefinitionToBeRemoved ( const DtModelDefinition modelDef)
protected

Remove a model definition from the combo box.

void makVrv::DtModelDefinitionComboBox::showImagesForModelDefinitions ( )
protected

Modify combo to show images for items.

QImage makVrv::DtModelDefinitionComboBox::imageForModelDefinition ( const QString &  ) const
protected

Give the particular model definition, return a QImage that will represent that model definition.

This will only for for model definitions that can be rasterized (e.g. jpeg, bmp).

Member Data Documentation

DtDe& makVrv::DtModelDefinitionComboBox::myDe
protected
DtSignalConnectionManager makVrv::DtModelDefinitionComboBox::myConnections
protected
NameSet makVrv::DtModelDefinitionComboBox::myFilterSet
protected
NameSet makVrv::DtModelDefinitionComboBox::myPersistentItemSet
protected
NameSet makVrv::DtModelDefinitionComboBox::myMissingItemSet
protected
bool makVrv::DtModelDefinitionComboBox::myFilterMode
protected
bool makVrv::DtModelDefinitionComboBox::myShowImagesIfAvailable
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)