This class will support the listing of plan items and the dragging/dropping thereof.
More...
|
| | DtPlanTreeWidget (makVrv::DtDe &, QWidget *parent=NULL) |
| | default constructor More...
|
| |
| virtual | ~DtPlanTreeWidget () |
| | destructor More...
|
| |
| virtual DtPlanListBoxItem * | currentItem () const |
| | Accessors for plan items. More...
|
| |
| virtual bool | hasItem (const DtPlanListBoxItem *) |
| | Returns true if this item is here. More...
|
| |
| virtual void | print () |
| | Prints the current plan. More...
|
| |
| virtual void | setName (const DtUUID &) |
| | The plan's name (used for printing) More...
|
| |
| const DtUUID & | name () const |
| |
| virtual void | displayPlan (bool andSelectStatement=true) |
| | Display the specified plan in this tree widget. More...
|
| |
| virtual void | setIsGlobalPlan (bool) |
| | Sets whether or not this plan represents a global plan. More...
|
| |
| virtual void | clearAllStatements () |
| | Clears all but the top item which identifies the plan. More...
|
| |
| virtual void | copySelectedPlanStatementToClipboard () |
| | Copies the entire plan (if top level or no item selected) or the currently selected plan item to the clip board. More...
|
| |
| virtual void | copyPlanToClipboard () |
| | Copies entire plan to clipboard. More...
|
| |
| virtual void | addStatementsToPlan (const std::vector< DtSimStatement * > &, bool append, bool redisplay=true) |
| | Adds the given statements to the plan. More...
|
| |
| virtual void | addStatementAfter (DtSimStatement *stmt, const DtPlanListBoxItem *listItem=0, bool redisplay=true, bool addAtEndOfParentBlock=false, DtSimStatement *lastAddedPlanStatement=0) |
| | Adds the given statement after the supplied statement (or the beginning if no supplied statement) More...
|
| |
| 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. More...
|
| |
| virtual bool | deleteStatement (const DtPlanListBoxItem *) |
| | Deletes the statement in the plan and the list box item that is part of this plan. More...
|
| |
| virtual bool | isBeingDragged (QTreeWidgetItem *) const |
| |
| virtual void | setPlan (DtPlan *) |
| | Sets and displays the given plan. More...
|
| |
| 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. More...
|
| |
| 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. More...
|
| |
| virtual DtPlanListBoxItem * | findItemByIndex (int statementIndex, int subBlock=0) |
| | Returns the list box item which represents the statement refered to by the provided index number. More...
|
| |
| virtual void | setIsComplete (bool) |
| | Sets whether or not the plan is complete. More...
|
| |
| virtual void | addPlanMimeDataAfter (const QMimeData *, DtPlanListBoxItem *, bool copy=true, bool redisplay=true) |
| | Given the mime data, if tehre is a plan in there, pastes it after the supplied list item. More...
|
| |
| virtual DtPlanListBoxItem * | findLastItemByIndex (int statementIndex, int subBlock=0) |
| | Returns the last item in the list that has the specified statement index. More...
|
| |
| 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. More...
|
| |
| virtual DtSimStatement * | selectedStatement () const |
| | Selected items statement. More...
|
| |
| virtual DtSimStatement * | displayBlockStatement () const |
| | ActiveBlockStatement or selectedBlockStatement, if active block is null. More...
|
| |
| virtual void | setShowRightClickMenu (bool) |
| |
| bool | showRightClickMenu () const |
| |
| virtual QString | planDescriptiveName () const |
| |
| virtual void | removeTrigger (const DtUUID &) |
| | Removes trigger. More...
|
| |
| virtual void | renameTrigger (const DtUUID &uuid, const DtString &newName) |
| | Renames trigger. More...
|
| |
| virtual void | unusedTriggers (DtRwTriggersList &) const |
| |
| virtual DtPlanListBoxItem * | createPlanListBoxItem (DtSimBlock *, const QString &name, int step=-1) |
| | Creates a new plan list box item. More...
|
| |
| 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. More...
|
| |
| virtual int | currentCursor () |
| | The index of the currently selected item (including children) More...
|
| |
| int | currentStatementIndex () const |
| | Current statment index. More...
|
| |
| virtual void | selectCursor (int) |
| | Sets the currently selected item from the cursor. More...
|
| |
| | DtTreeWidget (makVrv::DtDe &de, QWidget *parent) |
| | Constructor. More...
|
| |
| virtual | ~DtTreeWidget () |
| | DTOR. More...
|
| |
| virtual QTreeWidgetItem * | lastItem () const |
| | Returns the last item in the list. More...
|
| |
| 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. More...
|
| |
| virtual QSize | minimumSizeHint () const |
| |
| virtual void | setSizeHint (const QSize &s) |
| | Sets the size hint in absence of minimum size. More...
|
| |
| virtual int | indexOfChild (QTreeWidgetItem *) const |
| | Returns the index of the child. More...
|
| |
| unsigned int | depth (QTreeWidgetItem *) const |
| | Returns the number of levels down this item is. More...
|
| |
| QTreeWidgetItem * | nextSibling (QTreeWidgetItem *) const |
| | Returns the next item after the supplied item. More...
|
| |
| void | setAllowEmptySelection (bool) |
| | Only valid in single selection mode. More...
|
| |
| bool | allowEmptySelection () const |
| |
| virtual bool | edit (const QModelIndex &index, EditTrigger trigger, QEvent *event) |
| | Override to prevent keystrokes from going to vantage while editing. More...
|
| |
| virtual void | closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) |
| |
| virtual void | mousePressEvent (QMouseEvent *event) |
| |
| virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
| | Turn off in name editing potential if double click. More...
|
| |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| |
| virtual void | itemLeftClickedOn (QTreeWidgetItem *, QMouseEvent *, int) |
| |
| virtual bool | editingCanceled () const |
| |
| virtual void | setAllowWindowsStyleNameEdit (bool) |
| |
| bool | allowWindowsStyleNameEdit () const |
| |
| virtual void | setDisableNameEditIfNotWindowsStyleEdit (bool) |
| | If not supporting windows style editing also disallow double click name editing. More...
|
| |
| bool | disableNameEditIfNotWindowsStyleEnabled () const |
| |
| virtual void | setEditPressTime (double) |
| |
| double | editPressTime () const |
| |
|
| 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. More...
|
| |
| virtual void | removeLastDraggedItems () |
| | The last items that were dragged will be removed from the plan. More...
|
| |
| 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. More...
|
| |
| 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 | uuidChanged (makVrv::DtUniqueID, const DtUUID &, const DtUUID &) |
| |
| 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. More...
|
| |
virtual
QItemSelectionModel::SelectionFlags | selectionCommand (const QModelIndex &index, const QEvent *event=0) const |
| | Override to allow empty selection in single selection mode. More...
|
| |
virtual
QItemSelectionModel::SelectionFlags | selectionBehaviorFlags () const |
| |
This class will support the listing of plan items and the dragging/dropping thereof.