A DtModelDefinitionComboBox populates itself with model definitions.
More...
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 |
Detailed Description
A DtModelDefinitionComboBox populates itself with model definitions.
Member Typedef Documentation
Constructor & Destructor Documentation
| makVrv::DtModelDefinitionComboBox::DtModelDefinitionComboBox |
( |
DtDe & |
de, |
|
|
QWidget * |
parent |
|
) |
| |
| makVrv::DtModelDefinitionComboBox::~DtModelDefinitionComboBox |
( |
| ) |
|
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 | ) |
|
| 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 |
| 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: