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

Specialized ORBAT page that will put page into creation mode. More...

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

Public Member Functions

 DtOrbatPalettePage (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0)
 
virtual ~DtOrbatPalettePage ()
 
virtual const std::string & pageClassName () const
 Get the class name of the page. More...
 
virtual void clear ()
 Clears contents of widget. More...
 
virtual void update ()
 Tells widget to update (redraw) More...
 
virtual void setEnabled (bool)
 Enables/Disables Gui. More...
 
virtual bool initiallyVisible () const
 
- Public Member Functions inherited from makVrf::DtVrfOrbatPage
virtual ~DtVrfOrbatPage ()
 DTOR. More...
 
virtual QIcon icon ()
 Get the icon of the page. More...
 
virtual QString title ()
 Get the title of the page. More...
 
virtual void setOrbatActivated (bool)
 Whether or not the orbat view is activated. It will be active if there is a back-end that can simulate. More...
 
virtual void itemPositioned (DtObjectListViewItem *item)
 Select object is just created from palette and expand parent if collapsed. More...
 
virtual void setOrbatCreationMode (bool)
 Sets whether or not this is in creation mode only. More...
 
bool orbatCreationMode () const
 
virtual void setSignalObjectToCreate (bool)
 Only signal what item is to be created – don't actually create it. More...
 
bool signalObjectToCreate () const
 
virtual void setShowInOrbatOnly (bool)
 Only show items that are in the ORBAT. More...
 
bool showInOrbatOnly () const
 
virtual void closeDialogs ()
 
virtual void validateButtons ()
 
- Public Member Functions inherited from makVrf::DtVrfEchelonHierarchyPage
virtual ~DtVrfEchelonHierarchyPage ()
 DTOR. More...
 
- Public Member Functions inherited from makVrf::DtVrfHierarchyPage
virtual ~DtVrfHierarchyPage ()
 DTOR. More...
 
DtVrfTreeWidgetechelon ()
 
virtual void selectObjects (const std::vector< DtObjectListViewItem::DtVrfObjectState >)
 Clears current selection and selects object in list. More...
 
virtual std::vector
< DtObjectListViewItem::DtVrfObjectState
selectedObjects () const
 Returns a list of the objects selected. More...
 
virtual DtExpandCollapseButtoncreateExpandCollapseButton (unsigned int, int numButtons)
 
virtual int initialSortColumn () const
 
virtual void changeForceOf (const QStringList &ids, int)
 
virtual void setAllowNameChange (bool)
 
virtual void setEditPressTime (double)
 
virtual void setRootNodeDefaultHidden (QTreeWidgetItem *, bool)
 
virtual bool isRootNodeDefaultHidden (QTreeWidgetItem *)
 
virtual void setDoubleClickAttachesAndCenters (bool b)
 Calls down to logic to set. More...
 
bool doubleClickAttachesAndCenters () const
 
- Public Member Functions inherited from makVrv::DtPage
 DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR for page. More...
 
virtual ~DtPage ()
 DTOR for page. More...
 
virtual PageAction pageAction ()
 return the current action on the page More...
 
virtual void setPageAction (PageAction action)
 set the curret action on the page More...
 
virtual void setActionFlag (int flag)
 set the action flag of the page More...
 
virtual int actionFlag ()
 return the action flag of the page More...
 
virtual void setParentDialog (QWidget *paraentDialog)
 set the parent dialog that owns this page More...
 
virtual QWidget * parentDialog ()
 return the parent dialog that own this page More...
 
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 More...
 
virtual void askBeforeAction ()
 Called when the action flag is set and before the action is beind executed, default do nothing. More...
 
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. More...
 
virtual void resumeLastAction ()
 resume the last action of the page More...
 
virtual void onCloseEvent ()
 will be called when user hit the close button of this page, default do nothing. More...
 
virtual void onSwitchEvent ()
 will be called when user try switch to another page, default do nothing. More...
 
- Public Member Functions inherited from makVrf::DtGenericPaletteInterface
virtual ~DtGenericPaletteInterface ()
 Virtual DTOR. More...
 

Static Public Member Functions

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

Protected Member Functions

virtual void activate ()
 MUST be called to set up logic and widgets. More...
 
- Protected Member Functions inherited from makVrf::DtVrfOrbatPage
virtual void slot_addUnitFromUnitDialog (const DtEntityMapperKey &key, const QString &)
 
virtual void slot_checkEntityCreateSelection ()
 
virtual void moveSelectedBy (int)
 
virtual void onMarkingTextChanged (DtObjectListViewItem *, const QString &)
 
virtual void hideEvent (QHideEvent *)
 
virtual void cancelCreation ()
 
virtual void slot_stoppedObjectCreation ()
 
virtual void slot_creatingObject ()
 
virtual void slot_itemRemoved (makVrv::DtUniqueID)
 
virtual bool isForceRootNode (DtObjectListViewItem *) const
 
virtual bool isForceRootNode (makVrv::DtUniqueID) const
 
virtual int forceForRootNode (DtObjectListViewItem *) const
 
virtual int forceForRootNode (makVrv::DtUniqueID) const
 
virtual void paletteItemsAdded ()
 
virtual DtVrfHierarchyPageLogiccreateLogic ()
 
virtual void onItemSelected ()
 Updates button state based on current selection. More...
 
virtual DtVrfTreeWidgetcreateHierarchyList ()
 
virtual void slot_createObjectType (const DtEntityMapperKey &x)
 
virtual void slot_reparentOrbatItems (const QStringList &ids, makVrv::DtUniqueID parentID, int newOrbatPosition=-1)
 Reparent orbat items to the new parent. If orbat position is -1 items wil be added to the end of the parent. More...
 
virtual void editOrbatEntry (makVrv::DtUniqueID)
 Puts up a dialog to allow the modification of specifics of the selected object. More...
 
virtual void setupForEditMode (const makVrv::DtStateView< DtOrbatState > *)
 Sets up the palette panel for edit mode. More...
 
virtual void setupForCreateMode ()
 Sets up the palette panel for create mode. More...
 
virtual void createEntityPalettePanel ()
 Creates the basic palette panel. More...
 
virtual DtSelectUnitDialogcreateSelectUnitDialog ()
 Creates the unit selection dialog. More...
 
virtual void createRightClickMenu ()
 Creates right click menu and actions. More...
 
virtual void onRightClickOnItem (QTreeWidgetItem *, QMouseEvent *e, int col)
 If any items selected are orbat items bring up orbat right click menu, else bring up context menu. More...
 
virtual void addObjectsToOrbatFromPalette (const std::vector< DtEntityMapperKey > &, const DtUUID &onTopOf, const QString &name="", bool createSubordinates=true)
 Adds a new object to the orbat from a drag/drop operation. More...
 
virtual void addChildForCopyToVector (DtObjectListViewItem *, QStringList &nodes, std::set< DtUUID > &processed, bool consideredUnparented=false)
 Iterate over children and put into xml vector for later copy to clipboard for pasting. More...
 
virtual void createFromTick ()
 
virtual void editFromTick ()
 
virtual void setupForOrbatCreationMode ()
 
virtual void setupForOrbatEditMode ()
 
virtual void changeMaximumNameLength (const DtEntityMapperKey &)
 
virtual void addObjectItemsFromOrbatPalette (const QByteArray &, DtObjectListViewItem *)
 
virtual void objectsDroppedFromPalette (const std::vector< DtEntityMapperKey > &keys, const DtUUID &onTopOf)
 
virtual bool eventFilter (QObject *o, QEvent *e)
 
virtual void onCreateDone ()
 
 DtVrfOrbatPage (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0)
 CTOR. More...
 
- Protected Member Functions inherited from makVrf::DtVrfEchelonHierarchyPage
 DtVrfEchelonHierarchyPage (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0)
 CTOR. More...
 
virtual
DtMarkingTextSignalItemDelegate
createTreeItemDelegate ()
 
- Protected Member Functions inherited from makVrf::DtVrfHierarchyPage
 DtVrfHierarchyPage (makVrv::DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0)
 CTOR. More...
 
virtual void setupUi (QWidget *p)
 
virtual DtScrollButtonAreacreateCollapseButtonConainer (QWidget *parent)
 
virtual void slot_onDeParent (const QStringList &)
 
virtual void slot_onReParent (const QStringList &children, makVrv::DtUniqueID parentId)
 
virtual void createSearchBar ()
 
virtual void showSearchBars (bool)
 
virtual void deactivate ()
 Called when the page is hidden. More...
 
virtual void setChildrenVisible (QTreeWidgetItem *item, bool visible)
 

Additional Inherited Members

- Public Types inherited from makVrv::DtPage
enum  PageAction { None = 0x0000, Switching = 0x0001, Closing = 0x0010 }
 
- Public Slots inherited from makVrf::DtVrfOrbatPage
virtual void onCreateFromOrbat ()
 
- Public Slots inherited from makVrf::DtVrfHierarchyPage
- Public Attributes inherited from makVrf::DtVrfOrbatPage
boost::signals2::signal< void(DtEntityMapperKey,
std::string, DtUUID)> 
signal_createObject
 
QHBoxLayout * myButtonLayout
 
QWidget * myButtons
 
QPushButtonmyAddToOrbat
 
QPushButtonmyAddUnitToOrbat
 
QPushButtonmyEditOrbatEntry
 
QPushButtonmyRemoveFromOrbat
 
QPushButtonmyOrganize
 
QFrame * mySeparator
 
QPushButtonmyCreateFromOrbat
 
DtEntityCreatePalettemyEntityPalettePanel
 Part of entity create palette extension to be able to add items at a particular location and with a particular name. More...
 
DtAggregateAsDialogmyAggregateAsDialog
 
DtSelectUnitDialogmySelectUnitDialog
 
QLabelmyNameLabel
 
QLabelmyCreateHelpText
 
QLineEditmyNameLineEdit
 
QHBoxLayout * myPaletteButtonLayout
 
QPushButtonmyClose
 
QPushButtonmyOK
 
QPushButtonmyAddButton
 
QMenumyRightClickMenu
 Right click menu created when right clicking on orbat only items. More...
 
QActionmyAddToOrbatAction
 
QActionmyAddUnitToOrbatAction
 
QActionmyEditOrbatAction
 
QActionmyRemoveFromOrbatAction
 
QActionmyCreateFromOrbatAction
 
QActionmyOrganizeAction
 
QActionmyMoveUp
 
QActionmyMoveDown
 
QActionmyCopyAction
 
QActionmyPasteAction
 
- Public Attributes inherited from makVrf::DtVrfHierarchyPage
boost::signals2::signal< void(QTreeWidgetItem *)> signal_itemDoubleClicked
 
QVBoxLayout * myMasterLayout
 
DtVrfTreeWidgetmyEchelon
 
DtScrollButtonAreamyCollapseButtonWidget
 
QPixmap myPlusPixmap
 
QPixmap myMinusPixmap
 
QCheckBoxmyShowEchelonId
 
QFrame * myDividingLine
 
QLabelmySearchLabel
 
QLineEditmySearch
 
QPushButtonmyResetButton
 
QHBoxLayout * mySearchBarLayout
 
- Protected Types inherited from makVrf::DtVrfHierarchyPage
typedef std::map
< QTreeWidgetItem
*, DtParentedUnderOrganizedNode * > 
VisibilityFilters
 
- Protected Slots inherited from makVrf::DtVrfOrbatPage
virtual void onAddToOrbat ()
 
virtual void onAddUnitToOrbat ()
 
virtual void entityPanelDestroyed ()
 
virtual void selectUnitDialogDestroyed ()
 
virtual void onRemoveFromOrbat ()
 
virtual void onEditOrbatEntry ()
 
virtual void onEditCancelled ()
 
virtual void onEditComplete ()
 
virtual void onOrganizeOrbat ()
 
virtual void aggregateAsDestroyed ()
 
virtual void onMoveUpInOrbatOrder ()
 
virtual void onMoveDownInOrbatOrder ()
 
virtual void onCopyOrbat ()
 
virtual void onPasteOrbat ()
 
virtual void onAddOrbatItem ()
 
- Protected Slots inherited from makVrf::DtVrfHierarchyPage
virtual void onScrollRangeChanged (int)
 
virtual void onViewItemExpanded (QTreeWidgetItem *)
 
virtual void onViewItemCollapsed (QTreeWidgetItem *)
 
virtual void onExpandToLevel (unsigned int)
 
virtual void onCollapseToLevel (unsigned int)
 
virtual void itemDoubleClicked (QTreeWidgetItem *)
 
virtual void executeTextFilter ()
 
virtual void resetTextFilter ()
 
- Protected Attributes inherited from makVrf::DtVrfOrbatPage
bool myCreatingObjectFromOrbat
 
bool myInCreationMode
 
bool myOrbatActivated
 
DtEntityMapperKey myObjectSelected
 
makVrv::DtUniqueID myEditing
 
DtUUID myUUIDBeingAdded
 
bool myOrbatCreationMode
 
makVrv::DtSignalConnectionManager mySidcConnections
 
bool mySignalObjectToCreate
 
bool myShowInOrbatOnly
 
- Protected Attributes inherited from makVrf::DtVrfEchelonHierarchyPage
std::string myClassName
 
- Protected Attributes inherited from makVrf::DtVrfHierarchyPage
DtVrfHierarchyPageLogicmyLogic
 
makVrv::DtSignalConnectionManager myConnections
 
VisibilityFilters myVisibilityFilters
 
std::set< QTreeWidgetItem * > myDefaultHiddenRootNodes
 
bool myDoubleClickAttachesAndCenters
 Defaults to false. More...
 
- Protected Attributes inherited from makVrv::DtPage
DtDemyDe
 
QWidget * myParentDialog
 
PageAction myCurrentPageAction
 
int myActionFlag
 

Detailed Description

Specialized ORBAT page that will put page into creation mode.

Constructor & Destructor Documentation

makVrf::DtOrbatPalettePage::DtOrbatPalettePage ( makVrv::DtDe de,
QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)
virtual makVrf::DtOrbatPalettePage::~DtOrbatPalettePage ( )
virtual

Member Function Documentation

virtual const std::string& makVrf::DtOrbatPalettePage::pageClassName ( ) const
virtual

Get the class name of the page.

Reimplemented from makVrf::DtVrfOrbatPage.

static const std::string& makVrf::DtOrbatPalettePage::thePageClassName ( )
static

Static accessor for the class name.

virtual void makVrf::DtOrbatPalettePage::clear ( )
inlinevirtual

Clears contents of widget.

Implements makVrf::DtGenericPaletteInterface.

virtual void makVrf::DtOrbatPalettePage::update ( )
inlinevirtual

Tells widget to update (redraw)

Implements makVrf::DtGenericPaletteInterface.

virtual void makVrf::DtOrbatPalettePage::setEnabled ( bool  )
inlinevirtual

Enables/Disables Gui.

Implements makVrf::DtGenericPaletteInterface.

virtual bool makVrf::DtOrbatPalettePage::initiallyVisible ( ) const
inlinevirtual
virtual void makVrf::DtOrbatPalettePage::activate ( )
protectedvirtual

MUST be called to set up logic and widgets.

Reimplemented from makVrf::DtVrfOrbatPage.


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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)