VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtEntityCreatePalette Class Reference

A widget class for managing different camera views the currently selected observer can be placed in. More...

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

Public Member Functions

 DtEntityCreatePalette (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0, bool hasDeployedCountries=true)
 CTOR.
 DtEntityCreatePalette (makVrv::DtDe &de, bool favoritesSupported, QWidget *parent=0, Qt::WindowFlags flags=0, bool hasDeployedCountries=true)
virtual ~DtEntityCreatePalette ()
 DTOR.
virtual QIcon icon ()
 Icon to be used in small display.
virtual QString title ()
 Name to put next to the icon.
virtual const std::string & pageClassName () const
 Get the class name of the page.
virtual void activate ()
 Called when the page is displayed.
virtual void deactivate ()
 Called when the page is hidden.
- Public Member Functions inherited from makVrv::DtPage
 DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR for page.
virtual ~DtPage ()
 DTOR for page.
- Public Member Functions inherited from makVrf::DtEntityCreatePaletteInterface
virtual ~DtEntityCreatePaletteInterface ()
 Virtual DTOR.
virtual void filterItems ()=0
 Filters items.

Static Public Member Functions

static const std::string & thePageClassName ()
 Static accessor for the class name.

Public Attributes

QVBoxLayout * myMainLayout
QLabelmyForceLabel
QLabelmyDeployedCountriesLabel
QComboBoxmyDeployedCountries
QLabelmyCategoriesLabel
QComboBoxmyCategories
QComboBoxmyForces
QTreeWidgetmyEntities
QImage myFavoriteOn
QImage myFavoriteOff
QLabelmySearchLabel
QLineEditmySearch
QPushButtonmyResetButton
bool myInCreationProcess
- Public Attributes inherited from makVrf::DtEntityCreatePaletteInterface
boost::signal< void()> signal_forceChanged
boost::signal< void(std::string)> signal_categoryChanged
boost::signal< void(std::string)> signal_deployedCountryChanged
boost::signal< void(const
DtEntityMapperKey &)> 
signal_createObject
boost::signal< void()> signal_itemsAdded
boost::signal< void(std::string)> signal_itemSelected
boost::signal< void(DtEntityCreatePaletteInterface *)> signal_Updated

Protected Slots

virtual void slot_onForceChanged ()
virtual void slot_onCategoryChanged ()
virtual void slot_onDeployedCountryChanged ()
virtual void slot_onItemPressed (QTreeWidgetItem *, int)
virtual void filterItems ()
virtual void resetFilter ()

Protected Member Functions

void setupUi (QWidget *p, bool favoritesSupported)
 Sets up the contents of the widget onto the supplied parent.
virtual bool hasDeployedCountries () const
 Returns true if supports deployed countries.
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 currentDeployedCountryIndex () const
 Returns the index of the currently selected deployed country in the combo box.
virtual int forceTypeAtIndex (int) const
 Force type at index.
virtual QString currentCategory () const
 Returns currently selected category.
virtual QString currentDeployedCountry () const
 Returns currently selected deployed country.
virtual bool hasDeployedCountry (const QString &) const
 Returns true if the specified deployed country exists.
virtual void insertDeployedCountry (const QString &, int)
 Adds new deployed country at the specified index.
virtual void insertDeployedCountryBefore (const QString &, const QString &)
 Adds new deployed country before the specified item.
virtual void insertDeployedCountryAfter (const QString &, const QString &)
 Adds new deployed country after the specified item.
virtual void addDeployedCountry (const QString &)
 Adds new deployed country.
virtual void selectDeployedCountry (const QString &)
 Selects deployed country by name.
virtual void selectDeployedCountry (int)
 Selects deployed country by index.
virtual int numForces () const
 Returns number of forces.
virtual int numCategories () const
 Returns number of categories.
virtual int numDeployedCountries () const
 Returns number of deployed countries.
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)
virtual void clearForces ()
 Clear forces combo.
virtual void clearDeployedCountries ()
 Clear deployed countries combo.
virtual void clearCategories ()
 Clear categories combo.
virtual void initialize ()
 Called when first item is added.

Protected Attributes

bool myInitialized
DtEntityCreatePaletteLogicmyLogic
std::map< std::string,
QTreeWidgetItem * > 
myItems
bool myFavoritesSupported
bool myHasDeployedCountries
- Protected Attributes inherited from makVrv::DtPage
DtDemyDe

Detailed Description

A widget class for managing different camera views the currently selected observer can be placed in.

Constructor & Destructor Documentation

makVrf::DtEntityCreatePalette::DtEntityCreatePalette ( makVrv::DtDe de,
QWidget parent = 0,
Qt::WindowFlags  flags = 0,
bool  hasDeployedCountries = true 
)

CTOR.

makVrf::DtEntityCreatePalette::DtEntityCreatePalette ( makVrv::DtDe de,
bool  favoritesSupported,
QWidget parent = 0,
Qt::WindowFlags  flags = 0,
bool  hasDeployedCountries = true 
)
virtual makVrf::DtEntityCreatePalette::~DtEntityCreatePalette ( )
virtual

DTOR.

Member Function Documentation

virtual QIcon makVrf::DtEntityCreatePalette::icon ( )
virtual

Icon to be used in small display.

Implements makVrv::DtPage.

Reimplemented in makVrf::DtTacticalGraphicCreatePalette, and makVrf::DtHazardAreaCreatePalette.

virtual QString makVrf::DtEntityCreatePalette::title ( )
virtual

Name to put next to the icon.

Implements makVrv::DtPage.

Reimplemented in makVrf::DtTacticalGraphicCreatePalette, and makVrf::DtHazardAreaCreatePalette.

virtual const std::string& makVrf::DtEntityCreatePalette::pageClassName ( ) const
virtual
static const std::string& makVrf::DtEntityCreatePalette::thePageClassName ( )
static

Static accessor for the class name.

Reimplemented in makVrf::DtTacticalGraphicCreatePalette, and makVrf::DtHazardAreaCreatePalette.

virtual void makVrf::DtEntityCreatePalette::activate ( )
inlinevirtual

Called when the page is displayed.

Implements makVrv::DtPage.

virtual void makVrf::DtEntityCreatePalette::deactivate ( )
inlinevirtual

Called when the page is hidden.

Implements makVrv::DtPage.

void makVrf::DtEntityCreatePalette::setupUi ( QWidget p,
bool  favoritesSupported 
)
protected

Sets up the contents of the widget onto the supplied parent.

virtual bool makVrf::DtEntityCreatePalette::hasDeployedCountries ( ) const
inlineprotectedvirtual

Returns true if supports deployed countries.

Implements makVrf::DtEntityCreatePaletteInterface.

Reimplemented in makVrf::DtTacticalGraphicCreatePalette, and makVrf::DtHazardAreaCreatePalette.

virtual void makVrf::DtEntityCreatePalette::clear ( )
protectedvirtual

Clears contents of widget.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::update ( )
protectedvirtual

Tells widget to update (redraw)

Implements makVrf::DtEntityCreatePaletteInterface.

virtual QString makVrf::DtEntityCreatePalette::currentForce ( ) const
protectedvirtual

Returns currently selected force.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual int makVrf::DtEntityCreatePalette::currentForceType ( ) const
protectedvirtual

Returns the current force type selected.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual int makVrf::DtEntityCreatePalette::currentForceIndex ( ) const
protectedvirtual

Returns the index of the currently selected force in the combo box.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual int makVrf::DtEntityCreatePalette::currentCategoryIndex ( ) const
protectedvirtual

Returns the index of the currently selected category in the combo box.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual int makVrf::DtEntityCreatePalette::currentDeployedCountryIndex ( ) const
protectedvirtual

Returns the index of the currently selected deployed country in the combo box.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual int makVrf::DtEntityCreatePalette::forceTypeAtIndex ( int  ) const
protectedvirtual

Force type at index.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual QString makVrf::DtEntityCreatePalette::currentCategory ( ) const
protectedvirtual

Returns currently selected category.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual QString makVrf::DtEntityCreatePalette::currentDeployedCountry ( ) const
protectedvirtual

Returns currently selected deployed country.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual bool makVrf::DtEntityCreatePalette::hasDeployedCountry ( const QString &  ) const
protectedvirtual

Returns true if the specified deployed country exists.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::insertDeployedCountry ( const QString &  ,
int   
)
protectedvirtual

Adds new deployed country at the specified index.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::insertDeployedCountryBefore ( const QString &  ,
const QString &   
)
protectedvirtual

Adds new deployed country before the specified item.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::insertDeployedCountryAfter ( const QString &  ,
const QString &   
)
protectedvirtual

Adds new deployed country after the specified item.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::addDeployedCountry ( const QString &  )
protectedvirtual

Adds new deployed country.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::selectDeployedCountry ( const QString &  )
protectedvirtual

Selects deployed country by name.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::selectDeployedCountry ( int  )
protectedvirtual

Selects deployed country by index.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual int makVrf::DtEntityCreatePalette::numForces ( ) const
protectedvirtual

Returns number of forces.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual int makVrf::DtEntityCreatePalette::numCategories ( ) const
protectedvirtual

Returns number of categories.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual int makVrf::DtEntityCreatePalette::numDeployedCountries ( ) const
protectedvirtual

Returns number of deployed countries.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::addForce ( const QString &  ,
int   
)
protectedvirtual

Adds new force and force type.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual QString makVrf::DtEntityCreatePalette::force ( int  ) const
protectedvirtual

Returns the force string at the specified index.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual bool makVrf::DtEntityCreatePalette::hasForce ( int  ) const
protectedvirtual

Returns true if the specified force exists.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::addCategory ( const QString &  )
protectedvirtual

Adds new category.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::insertCategory ( const QString &  ,
int   
)
protectedvirtual

Adds new category at the specified index.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::insertCategoryBefore ( const QString &  ,
const QString &   
)
protectedvirtual

Adds new category before the specified item.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::insertCategoryAfter ( const QString &  ,
const QString &   
)
protectedvirtual

Adds new category after the specified item.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual bool makVrf::DtEntityCreatePalette::hasCategory ( const QString &  ) const
protectedvirtual

Returns true if the specified category exists.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::selectForce ( const QString &  )
protectedvirtual

Selects force by name.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::showForce ( bool  )
protectedvirtual

Show/hide force.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::selectForce ( int  )
protectedvirtual

Selects force by index.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::selectCategory ( const QString &  )
protectedvirtual

Selects category by name.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::selectCategory ( int  )
protectedvirtual

Selects category by index.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::clearCreateList ( )
protectedvirtual

Clears the create list.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::setSortingEnabled ( bool  )
protectedvirtual

Sets whether or not to allow list soring.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::sizeColumns ( )
protectedvirtual

Sizes the columns to contents.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::addItem ( const _DtEntityPaletteItem ,
int  force,
bool  newItem = false 
)
protectedvirtual

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.

Used for dynamically adding objects to the palette during runtime.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::addPaletteItem ( const _DtEntityPaletteItem )
protectedvirtual

Adds the new item into the logic.

Be sure to re-execute filter if need be to get these items to show up in the dialog

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::removePaletteItem ( const DtEntityMapperKey key)
protectedvirtual

Removes an item from the internal list for any key that matches the supplied key.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::setEnabled ( bool  )
protectedvirtual

Enables/Disables Gui.

Implements makVrf::DtEntityCreatePaletteInterface.

void makVrf::DtEntityCreatePalette::createFavoriteIcon ( )
protected

Creates the favorites icon (on and off)

virtual void makVrf::DtEntityCreatePalette::clearForces ( )
protectedvirtual

Clear forces combo.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::clearDeployedCountries ( )
protectedvirtual

Clear deployed countries combo.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::clearCategories ( )
protectedvirtual

Clear categories combo.

Implements makVrf::DtEntityCreatePaletteInterface.

virtual void makVrf::DtEntityCreatePalette::initialize ( )
protectedvirtual

Called when first item is added.

virtual void makVrf::DtEntityCreatePalette::slot_onForceChanged ( )
protectedvirtualslot
virtual void makVrf::DtEntityCreatePalette::slot_onCategoryChanged ( )
protectedvirtualslot
virtual void makVrf::DtEntityCreatePalette::slot_onDeployedCountryChanged ( )
protectedvirtualslot
virtual void makVrf::DtEntityCreatePalette::slot_onItemPressed ( QTreeWidgetItem ,
int   
)
protectedvirtualslot
virtual void makVrf::DtEntityCreatePalette::filterItems ( )
protectedvirtualslot
virtual void makVrf::DtEntityCreatePalette::resetFilter ( )
protectedvirtualslot

Member Data Documentation

bool makVrf::DtEntityCreatePalette::myInitialized
protected
DtEntityCreatePaletteLogic* makVrf::DtEntityCreatePalette::myLogic
protected
std::map<std::string, QTreeWidgetItem*> makVrf::DtEntityCreatePalette::myItems
protected
bool makVrf::DtEntityCreatePalette::myFavoritesSupported
protected
bool makVrf::DtEntityCreatePalette::myHasDeployedCountries
protected
QVBoxLayout* makVrf::DtEntityCreatePalette::myMainLayout
QLabel* makVrf::DtEntityCreatePalette::myForceLabel
QLabel* makVrf::DtEntityCreatePalette::myDeployedCountriesLabel
QComboBox* makVrf::DtEntityCreatePalette::myDeployedCountries
QLabel* makVrf::DtEntityCreatePalette::myCategoriesLabel
QComboBox* makVrf::DtEntityCreatePalette::myCategories
QComboBox* makVrf::DtEntityCreatePalette::myForces
QTreeWidget* makVrf::DtEntityCreatePalette::myEntities
QImage makVrf::DtEntityCreatePalette::myFavoriteOn
QImage makVrf::DtEntityCreatePalette::myFavoriteOff
QLabel* makVrf::DtEntityCreatePalette::mySearchLabel
QLineEdit* makVrf::DtEntityCreatePalette::mySearch
QPushButton* makVrf::DtEntityCreatePalette::myResetButton
bool makVrf::DtEntityCreatePalette::myInCreationProcess

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)