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

Signals | |
| void | editCurrentlySelectedPlanStatement () |
| void | deleteCurrentlySelectedPlanStatement () |
| void | copyCurrentlySelectedPlanStatement () |
| void | pastePlanStatement () |
| void | planRightClickMenuCreated (QMenu *) |
| void | rightClickToBeShown () |
| void | editCurrentlySelectedTrigger () |
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 DtPlanListBoxItem * | currentItem () const |
| virtual bool | hasItem (const DtPlanListBoxItem *) |
| 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 | copySelectedPlanStatementToClipboard () |
| virtual void | copyPlanToClipboard () |
| virtual void | addStatementsToPlan (const std::vector< DtSimStatement * > &, bool append, bool redisplay=true) |
| virtual void | addStatementAfter (DtSimStatement *stmt, const DtPlanListBoxItem *listItem=0, bool redisplay=true, bool addAtEndOfParentBlock=false, DtSimStatement *lastAddedPlanStatement=0) |
| virtual void | replaceStatement (DtSimStatement *stmt, DtPlanListBoxItem *item) |
| virtual bool | deleteStatement (const DtPlanListBoxItem *) |
| virtual bool | isBeingDragged (QTreeWidgetItem *) const |
| virtual void | setPlan (DtPlan *) |
| virtual DtPlan * | plan () |
| virtual const DtPlan * | plan () const |
| virtual DtPlan * | getOrCreatePlan () |
| virtual void | setCanDropOn (int, bool) |
| virtual bool | canDropOn (int) const |
| virtual bool | canDropOn (QTreeWidgetItem *) const |
| virtual bool | canDropOnCurrentItem () const |
| bool | clearing () const |
| virtual DtSimStatement * | selectStatement (int, bool andMakeCurrent=false) |
| virtual DtPlanListBoxItem * | findItemByIndex (int statementIndex, int subBlock=0) |
| virtual void | setIsComplete (bool) |
| virtual void | addPlanMimeDataAfter (const QMimeData *, DtPlanListBoxItem *, bool copy=true, bool redisplay=true, bool reselectCurrentItem=true) |
| virtual DtPlanListBoxItem * | findLastItemByIndex (int statementIndex, 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 |
| virtual DtPlanListBoxItem * | createPlanListBoxItem (DtSimBlock *, const QString &name, int step=-1) |
| virtual DtPlanListBoxItem * | createPlanListBoxItem (DtSimBlock *, const DtPlanListBoxItem *parentItem, const DtStmtIndex &, const QString &indent, int step=-1) |
| bool | dragDraw () const |
| virtual void | selectLastStatement () |
| virtual int | currentCursor () |
| int | currentStatementIndex () const |
| virtual void | selectCursor (int) |
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 |
Protected Member Functions | |
| virtual void | initializeRightClickMenu () |
| virtual void | resizeEvent (QResizeEvent *) |
| virtual DtPlanListBoxItem * | displayStatement (DtSimBlock *block, const DtStmtIndex &stmt, const DtPlanListBoxItem *parentItem, int &step) |
| virtual void | displayBlock (DtSimBlock *block, const DtPlanListBoxItem *parentItem, int &step) |
| 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 | removeLastDraggedItems () |
| virtual void | startDrag (Qt::DropActions supportedActions) |
| virtual bool | eventFilter (QObject *o, QEvent *) |
| virtual void | setPlanIsModified (bool) |
| 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 &) |
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 |
Private Member Functions | |
| DtPlanTreeWidget (const DtPlanTreeWidget &orig) | |
| DtPlanTreeWidget & | operator= (const DtPlanTreeWidget &rhs) |
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 |
Accessors for plan items.
|
virtual |
Returns true if this item is here.
|
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 |
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 |
Deletes the statement in the plan and the list box item that is part of this plan.
|
virtual |
|
virtual |
Sets and displays the given plan.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Sets weather or not the item can have something dropped on it for insert.
|
virtual |
|
virtual |
|
inline |
|
virtual |
Selects the plan statement that has the given statement index.
|
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 |
|
virtual |
Creates a new plan list box item.
|
virtual |
|
inline |
|
virtual |
If there is one, selects the last statement.
|
virtual |
The index of the currently selected item (including children)
|
inline |
Current statment index.
|
virtual |
Sets the currently selected item from the cursor. If cursor > number of items then last statement is selected.
|
protectedvirtual |
|
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 |
The last items that were dragged will be removed from the plan.
|
protectedvirtual |
|
protectedvirtual |
Sets whether or not plan is modified. If status change signal_planIsModified is sent.
|
protectedvirtual |
Reimplemented from makVrf::DtTreeWidget.
|
protectedvirtual |
|
protectedvirtual |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
private |
assignment operator. Not Implemented.
| 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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |