This class will support the listing of plan items and the dragging/dropping thereof.
More...
Public Member Functions |
| | DtPlanTreeWidget (makVrv::DtDe &, QWidget *parent=NULL) |
| | default constructor
|
| virtual | ~DtPlanTreeWidget () |
| | destructor
|
| virtual DtPlanListBoxItem * | currentItem () const |
| | Accessors for plan items.
|
| virtual bool | hasItem (const DtPlanListBoxItem *) |
| | Returns true if this item is here.
|
| virtual void | print () |
| | Prints the current plan.
|
| virtual void | setName (const DtUUID &) |
| | The plan's name (used for printing)
|
| const DtUUID & | name () const |
| virtual void | displayPlan (bool andSelectStatement=true) |
| | Display the specified plan in this tree widget.
|
| virtual void | setIsGlobalPlan (bool) |
| | Sets whether or not this plan represents a global plan.
|
| virtual void | clearAllStatements () |
| | Clears all but the top item which identifies the plan.
|
| virtual void | copySelectedPlanStatementToClipboard () |
| | Copies the entire plan (if top level or no item selected) or the currently selected plan item to the clip board.
|
| virtual void | copyPlanToClipboard () |
| | Copies entire plan to clipboard.
|
| virtual void | addStatementsToPlan (const std::vector< DtSimStatement * > &, bool append, bool redisplay=true) |
| | Adds the given statements to the plan.
|
| virtual void | addStatementAfter (DtSimStatement *stmt, const DtPlanListBoxItem *listItem=0, bool redisplay=true) |
| | Adds the given statement after the supplied statement (or the beginning if no supplied statement)
|
| virtual void | replaceStatement (DtSimStatement *stmt, DtPlanListBoxItem *item) |
| | Replaces the plans list box item with the given statement. This will also change the statement in the plan.
|
| virtual bool | deleteStatement (const DtPlanListBoxItem *) |
| | Deletes the statement in the plan and the list box item that is part of this plan.
|
| virtual bool | isBeingDragged (QTreeWidgetItem *) const |
| virtual void | setPlan (DtPlan *) |
| | Sets and displays the given plan.
|
| virtual DtPlan * | plan () |
| virtual const DtPlan * | plan () const |
| virtual DtPlan * | getOrCreatePlan () |
| virtual void | setCanDropOn (int, bool) |
| | Sets weather or not the item can have something dropped on it for insert.
|
| virtual bool | canDropOn (int) const |
| virtual bool | canDropOn (QTreeWidgetItem *) const |
| virtual bool | canDropOnCurrentItem () const |
| bool | clearing () const |
| virtual DtSimStatement * | selectStatement (int, bool andMakeCurrent=false) |
| | Selects the plan statement that has the given statement index.
|
| virtual DtPlanListBoxItem * | findItemByIndex (int statementIndex, int subBlock=0) |
| | Returns the list box item which represents the statement refered to by the provided index number.
|
| virtual void | setIsComplete (bool) |
| | Sets whether or not the plan is complete.
|
| virtual void | addPlanMimeDataAfter (const QMimeData *, DtPlanListBoxItem *, bool redisplay=true) |
| | Given the mime data, if tehre is a plan in there, pastes it after the supplied list item.
|
| virtual DtPlanListBoxItem * | findLastItemByIndex (int statementIndex, int subBlock=0) |
| | Returns the last item in the list that has the specified statement index.
|
| virtual void | setPlanTitle (const QString &) |
| virtual const QString & | planTitle () const |
| virtual bool | planIsModified () const |
| virtual void | clearPlanIsModified () |
| virtual void | markPlanIsModified () |
| virtual DtSimStatement * | selectedBlockStatement () const |
| | If within a block, that selected blocks statement.
|
| virtual DtSimStatement * | selectedStatement () const |
| | Selected items statement.
|
| virtual DtSimStatement * | displayBlockStatement () const |
| | ActiveBlockStatement or selectedBlockStatement, if active block is null.
|
| virtual void | setShowRightClickMenu (bool) |
| bool | showRightClickMenu () const |
| virtual QString | planDescriptiveName () const |
| virtual void | removeTrigger (const DtUUID &) |
| | Removes trigger.
|
| virtual void | renameTrigger (const DtUUID &uuid, const DtString &newName) |
| | Renames trigger.
|
| virtual void | unusedTriggers (DtRwTriggersList &) const |
| virtual DtPlanListBoxItem * | createPlanListBoxItem (DtSimBlock *, const QString &name, int step=-1) |
| | Creates a new plan list box item.
|
| virtual DtPlanListBoxItem * | createPlanListBoxItem (DtSimBlock *, const DtPlanListBoxItem *parentItem, const DtStmtIndex &, const QString &indent, int step=-1) |
| bool | dragDraw () const |
| virtual void | selectLastStatement () |
| | If there is one, selects the last statement.
|
| virtual int | currentCursor () |
| | The index of the currently selected item (including children)
|
| int | currentStatementIndex () const |
| | Current statment index.
|
| virtual void | selectCursor (int) |
| | Sets the currently selected item from the cursor.
|
| | DtTreeWidget (makVrv::DtDe &de, QWidget *parent) |
| | Constructor.
|
| virtual | ~DtTreeWidget () |
| | DTOR.
|
| virtual QTreeWidgetItem * | lastItem () const |
| | Returns the last item in the list.
|
| QTreeWidgetItem * | itemFromIndex (const QModelIndex &idx) |
| QModelIndex | indexFromItem (QTreeWidgetItem *item, int column=0) const |
| virtual void | setMinimumSizeHint (const QSize &) |
| | Set the minimum size hint. If either width or height is -1 uses default.
|
| virtual QSize | minimumSizeHint () const |
| virtual int | indexOfChild (QTreeWidgetItem *) const |
| | Returns the index of the child.
|
| unsigned int | depth (QTreeWidgetItem *) const |
| | Returns the number of levels down this item is.
|
| QTreeWidgetItem * | nextSibling (QTreeWidgetItem *) const |
| | Returns the next item after the supplied item.
|
| void | setAllowEmptySelection (bool) |
| | Only valid in single selection mode.
|
| bool | allowEmptySelection () const |
| virtual bool | edit (const QModelIndex &index, EditTrigger trigger, QEvent *event) |
| | Override to prevent keystrokes from going to vantage while editing.
|
| virtual void | closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| virtual void | itemLeftClickedOn (QTreeWidgetItem *, QMouseEvent *, int) |
| virtual bool | editingCanceled () const |
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) |
| | When copying a subblock of statements the clone function of the simstatement doesn't add new statementIds so we have to do that afterwards.
|
| virtual void | removeLastDraggedItems () |
| | The last items that were dragged will be removed from the plan.
|
| virtual void | startDrag (Qt::DropActions supportedActions) |
| virtual bool | eventFilter (QObject *o, QEvent *) |
| virtual void | setPlanIsModified (bool) |
| | Sets whether or not plan is modified. If status change signal_planIsModified is sent.
|
| virtual void | itemRightClickedOn (QTreeWidgetItem *, QMouseEvent *, int col) |
| virtual void | addTriggersFromBlock (DtSimBlock *, DtRwTriggersList &, std::set< DtUUID > &visited) const |
| virtual void | addTriggersFromStatement (DtSimStatement *, DtRwTriggersList &, std::set< DtUUID > &visited) const |
| virtual void | unusedTriggers (DtSimBlock *, DtRwTriggersList &, std::set< DtUUID > &visited) const |
| virtual void | scrollContentsBy (int, int) |
| virtual QSize | sizeHint () const |
| | Need to do this as default sizeHint() for an abstract scroll area (in Qt 4.2.2) is too large.
|
virtual
QItemSelectionModel::SelectionFlags | selectionCommand (const QModelIndex &index, const QEvent *event=0) const |
| | Override to allow empty selection in single selection mode.
|
virtual
QItemSelectionModel::SelectionFlags | selectionBehaviorFlags () const |
This class will support the listing of plan items and the dragging/dropping thereof.