![]() |
VR-Forces 4.6.1 Class Documentation
|
A widget class for creating TacticalGraphic objects. More...

Public Member Functions | |
| DtTacticalGraphicCreatePalette (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0) | |
| CTOR. | |
| virtual | ~DtTacticalGraphicCreatePalette () |
| 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 bool | hasDeployedCountries () const |
| Returns true if supports deployed countries. | |
Public Member Functions inherited from makVrf::DtEntityCreatePalette | |
| DtEntityCreatePalette (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0, bool hasDeployedCountries=true) | |
| CTOR. | |
| DtEntityCreatePalette (makVrv::DtDe &de, bool favoritesSupported=true, QWidget *parent=0, Qt::WindowFlags flags=0, bool hasDeployedCountries=true, bool allowCombineMode=false) | |
| virtual | ~DtEntityCreatePalette () |
| DTOR. | |
| virtual void | activate () |
| Called when the page is displayed. | |
| virtual void | deactivate () |
| Called when the page is hidden. | |
| virtual void | setSignalSelectionOnly (bool) |
| Only signals that an item has been selected. Will not start the creation process. | |
| virtual void | setFavoritesSupported (bool) |
| virtual bool | favoritesSupported () const |
| virtual void | setCombinePalettes (bool combine) |
| Allows combining modelSetEntries from different palettes onto on. | |
| virtual bool | combinePalettes () const |
| virtual DtEntityMapperKey | selectedObjectType () const |
| If there is a current selection return the mapper key of that selection. | |
| virtual std::vector < DtEntityMapperKey > | selectedObjects () const |
| If there is more than one, all selected objects (or just the one) | |
| virtual void | selectObject (const DtEntityMapperKey &) |
| Selects the "All" filter and then selects the force from the force filter for the given key. | |
| virtual void | setDragCreateModeEnabled (bool) |
| Turns on mode where entities can be dragged from the palette to start the create, rather than a click. | |
| virtual bool | showNonCreatableUnits () const |
| Whether or not non creatable units should be shown in this palette, if they are set to be displayable on this palette type. | |
| virtual void | setShowNonCreatableUnits (bool) |
| virtual void | addIgnore (const DtEntityType &) |
| Adds a key to ignore (into the logic) when filtering items. Will cause a re-filter. | |
| virtual void | clearIgnore () |
| Clears all the keys to ignore (in logic). Will cause a re-filter. | |
| virtual void | setIgnore (const std::vector< DtEntityType > &) |
| Sets entity types to ignore (in logic) | |
| virtual const std::vector < DtEntityType > & | ignoring () const |
| What is being ignored. | |
| virtual void | setShowFavoritesIcon (bool) |
| virtual bool | showFavoritesIcon () const |
| virtual void | layoutForces () |
| Force a layout of the forces button bar. | |
| 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 | 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 std::vector< std::string > | currentCategories () const |
| Returns currently selected category. | |
| virtual void | setAccessibleCategories (const std::set< std::string > &) |
| All categories available for this palette. | |
| 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 bool | initiallyVisible () const |
| 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, const QColor &, bool forceLayout=false) |
| 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 | setCategories (const DtTagSelectorWidget::Categories &) |
| Sets the new categories. | |
| 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 | enableForce (bool) |
| Enabled/disable force. | |
| virtual void | selectForce (int) |
| Selects force by index. | |
| virtual bool | isStickyCategory (const std::string &) const |
| Returns true if this is a sticky category. | |
| virtual void | setStickyCategories (const std::vector< std::string > &) |
| Sets the sticky categories. Will rework categories if there are selected ones and then reselect categories. | |
| virtual void | selectTopLevelCategory (const std::string &s) |
| Selects a top level category. | |
| virtual const std::vector < std::string > & | stickyCategories () const |
| Sticky categories. | |
| virtual const std::vector < std::string > & | nonStickyCategories () const |
| Non-sticky selected categories. | |
| virtual void | selectCategories (const std::vector< std::string > &) |
| Selects categories. | |
| 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) |
| 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, bool matchPattern=false) |
| Removes an item from the internal list for any key that matches (or matches pattern of) 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. | |
| virtual void | addLocalPaletteFilter (const DtPaletteFilter &) |
| This will only apply to this instance of the palette when filtering. | |
| virtual void | removeLocalPaletteFilter (const DtPaletteFilter &) |
| virtual QMenu * | createRightClickMenu (DtEntityCreatePaletteItem *) |
| virtual void | slot_onTagsChanged (const std::vector< std::string > &) |
| virtual void | setCategoriesFromCounts (const std::map< std::string, int > &, const std::set< std::string > &, int totalItems) |
| Given a map of the counts of categories and how many there are for those counts, select them based on rank. | |
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. | |
| virtual PageAction | pageAction () |
| return the current action on the page | |
| virtual void | setPageAction (PageAction action) |
| set the curret action on the page | |
| virtual void | setActionFlag (int flag) |
| set the action flag of the page | |
| virtual int | actionFlag () |
| return the action flag of the page | |
| virtual void | setParentDialog (QWidget *paraentDialog) |
| set the parent dialog that owns this page | |
| virtual QWidget * | parentDialog () |
| return the parent dialog that own this page | |
| virtual bool | shouldAskBeforeAction (PageAction action) |
| test the action flag with the action, return true if we should ask before executing the action /param action the current page action | |
| virtual void | askBeforeAction () |
| Called when the action flag is set and before the action is beind executed, default do nothing. | |
| virtual void | executeAfterAsk (bool revert) |
| Called after askBeforeAction(), whether user wants to revert the action or resume the action /param revert if true, the user wants to revert the action, otherwise resume it. | |
| virtual void | resumeLastAction () |
| resume the last action of the page | |
| virtual void | onCloseEvent () |
| will be called when user hit the close button of this page, default do nothing. | |
| virtual void | onSwitchEvent () |
| will be called when user try switch to another page, default do nothing. | |
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. | |
A widget class for creating TacticalGraphic objects.
| makVrf::DtTacticalGraphicCreatePalette::DtTacticalGraphicCreatePalette | ( | makVrv::DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | flags = 0 |
||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Icon to be used in small display.
Reimplemented from makVrf::DtEntityCreatePalette.
|
virtual |
Name to put next to the icon.
Reimplemented from makVrf::DtEntityCreatePalette.
|
virtual |
Get the class name of the page.
Reimplemented from makVrf::DtEntityCreatePalette.
|
static |
Static accessor for the class name.
Reimplemented from makVrf::DtEntityCreatePalette.
|
inlinevirtual |
Returns true if supports deployed countries.
Reimplemented from makVrf::DtEntityCreatePalette.