Public Member Functions |
| | DtFormationDragDropHandler () |
| virtual bool | isValidForDrag (DtTMMapArea *map, DtModelKey &key) |
| | Override to return true/false to determine if the selected object is valid for dragging.
|
| void | setSnapToGrid (bool) |
| bool | snapToGrid () const |
| void | setGridLineDrawer (DtFormationGridLineDrawer *) |
Public Member Functions inherited from DtDragDropHandler |
| | DtDragDropHandler () |
| | Default Constructor.
|
| virtual | ~DtDragDropHandler () |
| | Destructor.
|
| virtual DtDragObject * | createDragObject (DtTMMapArea *activeMap, QString &dragging) |
| | Drag/Drop code Creates an object that will be used as part of the drag/drop operation to keep track of what is being dragged.
|
| virtual void | dragMove (DtTMMapArea *area, DtModelData *data, const DtPoint &delta) |
| | Moves the item by the supplied amount.
|
| virtual bool | dropEvent (DtTMMapArea *area, QDropEvent *evnt) |
| virtual bool | dragMoveEvent (DtTMMapArea *area, QDragMoveEvent *evnt) |
| virtual bool | dragEnterEvent (DtTMMapArea *area, QDragEnterEvent *evnt) |
| virtual bool | dragLeaveEvent (DtTMMapArea *area, QDragLeaveEvent *evnt) |
Public Member Functions inherited from DtEventHandler |
| | DtEventHandler () |
| | Default Constructor.
|
| virtual | ~DtEventHandler () |
| | Destructor.
|
| virtual void | setEventController (DtEventController *) |
| virtual void | setInitialSelection (const QVector< DtModelKey > &d) |
| virtual void | showDialog (bool b) |
| virtual QWidget * | createDialog (QWidget *w) |
| | Creates the dialog associated with this handler (if there is one)
|
| virtual QWidget * | dialog (bool createIfMissing=true, QWidget *parent=NULL) |
| | If createIfMissing is true, will create the dialog based on the supplied parent window, else will simply return the dialog pointer.
|
| virtual void | reset () |
| virtual DtBaseWindow * | baseWindow () const |
| | Returns the base window of the event controller.
|
| virtual void | activate () |
| | Called when this event handler first becomes active.
|
| virtual void | deactivate () |
| | Called when this event handler is removed as the current event.
|
| virtual void | setBaseWindow (DtBaseWindow *w) |
| | Called when the base window is set for the event controller.
|
| virtual void | init () |
| | Called when the handler is first created, initialize context.
|
| void | setSuspended (bool) |
| | Set when something wants to suspend some aspect of this handler without deactivating it.
|
| bool | suspended () const |
| virtual void | dialogDestroyedEvent () |
| | Called when dialog is destroyed.
|
| | DtArchivableObject (QString name, DtArchivableObjectCreator fcn) |
| | This constructor will add this object to the archivable object factory.
|
| | DtArchivableObject (QString name) |
| | DtArchivableObject () |
| virtual | ~DtArchivableObject () |
| virtual QString | name () const |
| DtArchiver * | archiver () |
| | Returns the archiver of this object.
|
| virtual void | read (QTextStream &s) |
| | Reads/writes archiver.
|
| virtual void | write (QTextStream &s) |
| virtual void | setLevel (int i) |
| virtual int | level () const |
| virtual DtArchivableObject * | clone () |
| | Allows for cloning of this object.
|
Protected Member Functions |
| virtual void | dropSymbol (DtTMMapArea *area, const QPoint &dropPoint, DtModelData *symData, double heightChange) |
| | Drop the specified symbol into the map area.
|
Protected Member Functions inherited from DtDragDropHandler |
| virtual bool | canDrag (DtTMMapArea *area) const |
| | Return true if this handler can start a drag.
|
| virtual void | endDrag (DtTMMapArea *area, int timerMsec) |
| | Called to remove drag symbols.
|
| virtual bool | getDropLocationData (DtTMMapArea *area, const QPoint &dropPoint, QString &idStr, QVector< DtPoint > &pnts, double heightChange) |
| | Called when an item is dropped, this routine will allow for returning of new point data based upon the drop.
|
| virtual DtDragData * | dragDataForArea (DtTMMapArea *area) |
| | Creates (or returns) a drag data object for the specified area.
|
| virtual void | tick () |
| virtual int | timeout () const |
| | Returns how long the temp symbols should stay on map before removing to show modified symbols.
|
| virtual bool | dragAboutToStart (DtTMMapArea *) |
| | Called right before a drag is about to start. Return false to abort drag. Calls dragStart() in map area.
|
| virtual void | modifyPoint (const DtModelData &data, DtPoint &pnt) |
| | Override to modify the point before adding to model data.
|
| virtual bool | dropSymbols (DtTMMapArea *area, const QPoint &dropPoint, const QString &idStr, double heightChange=0.) |