![]() |
VR-Forces Developer's Guide
|
This class will support the listing of plan items and the dragging/dropping thereof.

Classes | |
| struct | StoredSelectionInformation |
Signals | |
| void | editCurrentlySelectedPlanStatement () |
| void | deleteCurrentlySelectedPlanStatement () |
| void | copyCurrentlySelectedPlanStatement () |
| void | pastePlanStatement () |
| void | planRightClickMenuCreated (QMenu *) |
| void | rightClickToBeShown (bool &) |
| void | editCurrentlySelectedTrigger () |
| void | addNewTriggerBlock () |
| void | removeTriggerBlock (const DtUUID &) |
| void | editTriggerBlock (const DtUUID &) |
Signals inherited from makVrf::DtTreeWidget | |
| void | mouseLeftPressed (QTreeWidgetItem *, QMouseEvent *, int col) |
| void | rightClickOnItem (QTreeWidgetItem *, QMouseEvent *, int col) |
| void | contentsMoving (int, int) |
Public Member Functions | |
| DtPlanTreeWidget (makVrv::DtDe &, QWidget *parent=NULL) | |
| virtual | ~DtPlanTreeWidget () |
| virtual void | setExecutingTriggers (const std::vector< DtUUID > &) |
| virtual bool | triggerIsExecuting (const DtUUID &) const |
| virtual void | setRegisteredTriggers (const std::vector< DtUUID > &) |
| virtual bool | triggerIsRegistered (const DtUUID &) const |
| virtual void | setExecutingTriggerStatementIds (const std::vector< int > &) |
| virtual bool | triggerStatementIdIsBeingExecuted (int) const |
| virtual DtPlanStatementItem * | currentlySelectedItem () const |
| virtual DtPlanStatementItem * | currentlyExecutingItem () const |
| virtual bool | hasItem (const DtPlanStatementItem *) |
| virtual makVrv::DtUniqueID | entityId () const |
| virtual void | print () |
| virtual void | setName (const DtUUID &) |
| const DtUUID & | name () const |
| virtual void | displayPlan (bool andSelectStatement=true) |
| virtual void | setIsGlobalPlan (bool) |
| virtual void | clearAllStatements () |
| virtual void | clearPlan () |
| virtual void | copySelectedPlanStatementToClipboard () |
| virtual void | copyPlanToClipboard () |
| virtual void | addStatementsToPlan (const std::vector< DtSimStatement * > &, bool append, bool redisplay=true) |
| virtual void | addStatementAfter (DtSimStatement *stmt, const DtPlanStatementItem *listItem=0, bool redisplay=true, bool addAtEndOfParentBlock=false, DtSimStatement *lastStatementAdded=nullptr) |
| virtual void | replaceStatement (DtSimStatement *stmt, DtPlanStatementItem *item) |
| virtual bool | isBeingDragged (QTreeWidgetItem *) const |
| virtual void | setPlan (DtPlan *) |
| virtual DtPlan * | plan () const |
| virtual DtPlan * | plan () |
| virtual void | selectTrigger (const DtUUID &) |
| virtual DtPlanTriggerItem * | triggerItem (const DtUUID &) const |
| virtual DtPlanListBoxItem * | mainPlanItem () |
| virtual DtPlan * | getOrCreatePlan () |
| virtual void | setCanDropOn (int, bool) |
| virtual bool | canDropOn (int) const |
| virtual bool | canDropOn (QTreeWidgetItem *) const |
| virtual bool | canDropOnCurrentItem () const |
| virtual DtSimStatement * | selectStatement (int, DtPlanListBoxItem *inPlan=nullptr, bool andMakeCurrent=false) |
| virtual DtPlanStatementItem * | findItemByIndex (int statementIndex, DtPlanListBoxItem *, int subBlock=0) |
| virtual void | setIsComplete (bool) |
| virtual void | addPlanMimeDataAfter (const QMimeData *, DtPlanStatementItem *, bool copy=true, bool redisplay=true, bool reselectCurrentItem=true) |
| virtual DtPlanStatementItem * | findLastItemByIndex (int statementIndex, DtPlanListBoxItem *plan, int subBlock=0) |
| virtual void | setPlanTitle (const QString &) |
| virtual const QString & | planTitle () const |
| virtual bool | planIsModified () const |
| virtual void | clearPlanIsModified () |
| virtual void | markPlanIsModified () |
| virtual DtSimStatement * | selectedBlockStatement () const |
| virtual DtSimStatement * | selectedStatement () const |
| virtual DtSimStatement * | displayBlockStatement () const |
| virtual void | setShowRightClickMenu (bool) |
| bool | showRightClickMenu () const |
| virtual QString | planDescriptiveName () const |
| virtual void | removeTrigger (const DtUUID &) |
| virtual void | renameTrigger (const DtUUID &uuid, const DtString &newName) |
| virtual void | unusedTriggers (DtRwTriggersList &) const |
| bool | dragDraw () const |
| virtual bool | clearing () const |
| virtual void | selectLastStatement () |
| virtual DtPlanListBoxItem * | currentPlanItem () |
| virtual void | setPlanIsModified (bool) |
| virtual bool | deleteStatement (DtPlanStatementItem *) |
| const QColor & | dropLineColor () const |
| const QColor & | blockActiveColor () const |
| const QColor & | mainBlockBackgroundColor () const |
| const QColor & | triggerBlockBackgroundColor () const |
| virtual void | displayTriggers () |
| virtual std::map< DtUUID, bool > | clearTriggers () |
| virtual void | addSeparator (const QString &) |
| virtual void | computeUnusedTriggers () |
| const DtRwTriggersList & | unusedTriggers () const |
| virtual bool | triggerIsUnused (const DtUUID &) const |
| virtual void | setPlanLocked (bool) |
| bool | planLocked () const |
Public Member Functions inherited from makVrf::DtTreeWidget | |
| DtTreeWidget (makVrv::DtDe &de, QWidget *parent) | |
| virtual | ~DtTreeWidget () |
| virtual QTreeWidgetItem * | lastItem () const |
| QTreeWidgetItem * | itemFromIndex (const QModelIndex &idx) |
| QModelIndex | indexFromItem (QTreeWidgetItem *item, int column=0) const |
| virtual void | setMinimumSizeHint (const QSize &) |
| virtual QSize | minimumSizeHint () const |
| virtual void | setSizeHint (const QSize &s) |
| virtual int | indexOfChild (QTreeWidgetItem *) const |
| unsigned int | depth (QTreeWidgetItem *) const |
| QTreeWidgetItem * | nextSibling (QTreeWidgetItem *) const |
| void | setAllowEmptySelection (bool) |
| bool | allowEmptySelection () const |
| virtual bool | edit (const QModelIndex &index, EditTrigger trigger, QEvent *event) |
| virtual void | closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| virtual void | itemLeftClickedOn (QTreeWidgetItem *, QMouseEvent *, int) |
| virtual bool | editingCanceled () const |
| QItemSelectionModel::SelectionFlags | lastSelectionCommand () const |
| bool | lastSelectHadControlKeyDown () const |
| virtual void | setAllowWindowsStyleNameEdit (bool) |
| bool | allowWindowsStyleNameEdit () const |
| virtual void | setDisableNameEditIfNotWindowsStyleEdit (bool) |
| bool | disableNameEditIfNotWindowsStyleEnabled () const |
| virtual void | setEditPressTime (double) |
| double | editPressTime () const |
Public Attributes | |
| boost::signals2::signal< void(bool)> | signal_planIsModified |
| boost::signals2::signal< void()> | signal_addedTriggers |
| QMenu * | myRightClickMenu |
| QAction * | myEditAction |
| QAction * | myEditTriggerAction |
| QAction * | myDeleteAction |
| QAction * | myCopyAction |
| QAction * | myPasteAction |
| QToolButton * | myAddNewTriggerBlock |
Protected Member Functions | |
| virtual void | internalComputeUnusedTriggers () |
| virtual void | initializeRightClickMenu () |
| virtual void | resizeEvent (QResizeEvent *) |
| virtual QMimeData * | mimeData (const QList< QTreeWidgetItem * > list) const |
| virtual void | dragEnterEvent (QDragEnterEvent *event) |
| virtual void | dragMoveEvent (QDragMoveEvent *event) |
| virtual bool | dropMimeData (QTreeWidgetItem *parent, int index, const QMimeData *mimeData, Qt::DropAction action) |
| virtual void | dropEvent (QDropEvent *event) |
| virtual void | dragLeaveEvent (QDragLeaveEvent *) |
| virtual void | reissueStatementIds (DtSimStatement *stmt) |
| virtual void | startDrag (Qt::DropActions supportedActions) |
| virtual bool | eventFilter (QObject *o, QEvent *) |
| virtual void | itemRightClickedOn (QTreeWidgetItem *, QMouseEvent *, int col) |
| virtual void | unusedTriggers (DtSimBlock *, DtRwTriggersList &, std::set< DtUUID > &visited) const |
| virtual void | uuidChanged (makVrv::DtUniqueID, const DtUUID &, const DtUUID &) |
| virtual void | storeCurrentContext () |
| virtual void | restoreCurrentContext () |
| virtual void | clearCurrentContext () |
| virtual void | statementDeleted (DtPlanStatementItem *) |
Protected Member Functions inherited from makVrf::DtTreeWidget | |
| virtual void | scrollContentsBy (int, int) |
| virtual QSize | sizeHint () const |
| virtual QItemSelectionModel::SelectionFlags | selectionCommand (const QModelIndex &index, const QEvent *event=0) const |
| virtual QItemSelectionModel::SelectionFlags | selectionBehaviorFlags () const |
Properties | |
| QColor | DropLineColor |
| QColor | BlockActiveColor |
| QColor | MainBlockBackgroundColor |
| QColor | TriggerBlockBackgroundColor |
Private Member Functions | |
| DtPlanTreeWidget (const DtPlanTreeWidget &orig) | |
| DtPlanTreeWidget & | operator= (const DtPlanTreeWidget &rhs) |
Friends | |
| class | DtPlanStatementItem |
| class | DtPlanListBoxItem |
Additional Inherited Members | |
Protected Slots inherited from makVrf::DtTreeWidget | |
| virtual void | checkForEdit () |
| makVrf::DtPlanTreeWidget::DtPlanTreeWidget | ( | makVrv::DtDe & | , |
| QWidget * | parent = NULL |
||
| ) |
default constructor
|
virtual |
destructor
|
private |
copy constructor. Not Implemented.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Accessors for plan items.
|
virtual |
|
virtual |
Returns true if this item is here.
|
virtual |
|
virtual |
Prints the current plan.
|
virtual |
The plan's name (used for printing)
| const DtUUID& makVrf::DtPlanTreeWidget::name | ( | ) | const |
|
virtual |
Display the specified plan in this tree widget.
|
virtual |
Sets whether or not this plan represents a global plan. Used for determining how to display plan name.
|
virtual |
Clears all but the top item which identifies the plan.
|
virtual |
Clears out the plan.
|
virtual |
Copies the entire plan (if top level or no item selected) or the currently selected plan item to the clip board.
|
virtual |
Copies entire plan to clipboard.
|
virtual |
Adds the given statements to the plan. If no plan exists creates one. Also adds to the list box. If append is false will clear current plan and reset with given statements.
|
virtual |
Adds the given statement after the supplied statement (or the beginning if no supplied statement)
|
virtual |
Replaces the plans list box item with the given statement. This will also change the statement in the plan.
|
virtual |
|
virtual |
Sets and displays the given plan.
|
virtual |
|
inlinevirtual |
|
virtual |
Selects and expands the trigger.
|
virtual |
Returns the trigger item.
|
virtual |
The top level item that is the main plan (not the triggers)
|
virtual |
Sets weather or not the item can have something dropped on it for insert.
|
virtual |
|
virtual |
|
virtual |
Selects the plan statement that has the given statement index. If inPlan is nullptr assumes main plan.
|
virtual |
Returns the list box item which represents the statement refered to by the provided index number.
|
virtual |
Sets whether or not the plan is complete.
|
virtual |
Given the mime data, if tehre is a plan in there, pastes it after the supplied list item. If no plan item is given adds to end of plan.
|
virtual |
Returns the last item in the list that has the specified statement index.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If within a block, that selected blocks statement.
|
virtual |
Selected items statement.
|
virtual |
ActiveBlockStatement or selectedBlockStatement, if active block is null.
|
virtual |
|
inline |
|
virtual |
|
virtual |
Removes trigger.
|
virtual |
Renames trigger.
|
virtual |
|
inline |
|
virtual |
|
virtual |
If there is one, selects the last statement.
|
virtual |
The currently selected plan item if that item is selected or one of its statement are selected.
|
virtual |
Sets whether or not plan is modified. If status change signal_planIsModified is sent.
|
virtual |
Deletes the statement in the plan and the list box item that is part of this plan. The supplied plan statement item will be deleted as part of this call.
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Clears out existing triggers and then sets up new triggers from the current plan.
Clears triggers from display. Returns map (by trigger UUID) of the current expanded state of the trigger item.
|
virtual |
Adds a separator line item to the tree widget at the end of the current list of top level items.
|
virtual |
Adds a preTick connection to compute unused triggers (will call internalComputeUnusedTriggers)
|
inline |
|
virtual |
|
inline |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
When copying a subblock of statements the clone function of the simstatement doesn't add new statementIds so we have to do that afterwards.
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from makVrf::DtTreeWidget.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
private |
assignment operator. Not Implemented.
|
friend |
|
friend |
| boost::signals2::signal<void (bool)> makVrf::DtPlanTreeWidget::signal_planIsModified |
| boost::signals2::signal<void ()> makVrf::DtPlanTreeWidget::signal_addedTriggers |
| QMenu* makVrf::DtPlanTreeWidget::myRightClickMenu |
| QAction* makVrf::DtPlanTreeWidget::myEditAction |
| QAction* makVrf::DtPlanTreeWidget::myEditTriggerAction |
| QAction* makVrf::DtPlanTreeWidget::myDeleteAction |
| QAction* makVrf::DtPlanTreeWidget::myCopyAction |
| QAction* makVrf::DtPlanTreeWidget::myPasteAction |
| QToolButton* makVrf::DtPlanTreeWidget::myAddNewTriggerBlock |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| QColor makVrf::DtPlanTreeWidget::DropLineColor |
| QColor makVrf::DtPlanTreeWidget::BlockActiveColor |
| QColor makVrf::DtPlanTreeWidget::MainBlockBackgroundColor |
| QColor makVrf::DtPlanTreeWidget::TriggerBlockBackgroundColor |