VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions
makVrf::DtTacticalGraphicCreatePalette Class Reference

A widget class for creating TacticalGraphic objects. More...

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

Public Member Functions

 DtTacticalGraphicCreatePalette (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0)
 CTOR.
virtual ~DtTacticalGraphicCreatePalette ()
 DTOR.
virtual QPixmap icon () const
 Icon to be used in small display.
virtual QString iconText () const
 Name to put next to the icon.
- Public Member Functions inherited from makVrf::DtEntityCreatePalette
 DtEntityCreatePalette (makVrv::DtDe &de, bool favoritesSupprted, QWidget *parent=0, Qt::WindowFlags flags=0)
 CTOR.
virtual ~DtEntityCreatePalette ()
 DTOR.
- Public Member Functions inherited from makVrf::DtEntityCreatePaletteInterface
virtual ~DtEntityCreatePaletteInterface ()
 Virtual DTOR.
virtual void filterItems ()=0
 Filters items.

Additional Inherited Members

- Public Attributes inherited from makVrf::DtEntityCreatePalette
QVBoxLayout * myMainLayout
QLabelmyForceLabel
QComboBoxmyCategories
QComboBoxmyForces
QTreeWidgetmyEntities
QImage myFavoriteOn
QImage myFavoriteOff
QLabelmySearchLabel
QLineEditmySearch
QPushButtonmyResetButton
- Protected Slots inherited from makVrf::DtEntityCreatePalette
virtual void slot_onForceChanged ()
virtual void slot_onCategoryChanged ()
virtual void slot_onItemPressed (QTreeWidgetItem *, int)
virtual void filterItems ()
virtual void resetFilter ()
- Protected Member Functions inherited from makVrf::DtEntityCreatePalette
void setupUi (QWidget *p, bool favoritesSupported)
 Sets up the contents of the widget onto the supplied parent.
virtual void clear ()
 Clears contents of widget.
virtual void update ()
 Tells widget to update (redraw)
virtual QString currentForce () const
 Returns currently selected force.
virtual int currentForceType () const
 Returns the current force type selected.
virtual int currentForceIndex () const
 Returns the index of the currently selected force in the combo box.
virtual int currentCategoryIndex () const
 Returns the index of the currently selected category in the combo box.
virtual int forceTypeAtIndex (int) const
 Force type at index.
virtual QString currentCategory () const
 Returns currently selected category.
virtual int numForces () const
 Returns number of forces.
virtual int numCategories () const
 Returns number of categories.
virtual void addForce (const QString &, int)
 Adds new force and force type.
virtual QString force (int) const
 Returns the force string at the specified index.
virtual bool hasForce (int) const
 Returns true if the specified force exists.
virtual void addCategory (const QString &)
 Adds new category.
virtual void insertCategory (const QString &, int)
 Adds new category at the specified index.
virtual void insertCategoryBefore (const QString &, const QString &)
 Adds new category before the specified item.
virtual void insertCategoryAfter (const QString &, const QString &)
 Adds new category after the specified item.
virtual bool hasCategory (const QString &) const
 Returns true if the specified category exists.
virtual void selectForce (const QString &)
 Selects force by name.
virtual void showForce (bool)
 Show/hide force.
virtual void selectForce (int)
 Selects force by index.
virtual void selectCategory (const QString &)
 Selects category by name.
virtual void selectCategory (int)
 Selects category by index.
virtual void clearCreateList ()
 Clears the create list.
virtual void setSortingEnabled (bool)
 Sets whether or not to allow list soring.
virtual void sizeColumns ()
 Sizes the columns to contents.
virtual void addItem (const _DtEntityPaletteItem &, int force, bool newItem=false)
 If the entity model key type and force is not already in the list, add it Set newItem to true if this is an item that is a part of the model set.
virtual void addPaletteItem (const _DtEntityPaletteItem &)
 Adds the new item into the logic.
virtual void removePaletteItem (const DtEntityMapperKey &key)
 Removes an item from the internal list for any key that matches the supplied key.
virtual void setEnabled (bool)
 Enables/Disables Gui.
void createFavoriteIcon ()
 Creates the favorites icon (on and off)
- Protected Attributes inherited from makVrf::DtEntityCreatePalette
makVrv::DtDemyDe
DtEntityCreatePaletteLogicmyLogic
std::map< std::string,
QTreeWidgetItem * > 
myItems
bool myFavoritesSupported

Detailed Description

A widget class for creating TacticalGraphic objects.

Constructor & Destructor Documentation

makVrf::DtTacticalGraphicCreatePalette::DtTacticalGraphicCreatePalette ( makVrv::DtDe de,
QWidget parent = 0,
Qt::WindowFlags  flags = 0 
)

CTOR.

virtual makVrf::DtTacticalGraphicCreatePalette::~DtTacticalGraphicCreatePalette ( )
virtual

DTOR.

Member Function Documentation

virtual QPixmap makVrf::DtTacticalGraphicCreatePalette::icon ( ) const
virtual

Icon to be used in small display.

Reimplemented from makVrf::DtEntityCreatePalette.

virtual QString makVrf::DtTacticalGraphicCreatePalette::iconText ( ) const
virtual

Name to put next to the icon.

Reimplemented from makVrf::DtEntityCreatePalette.


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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)