VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtComputedRouteDefinitionDialog Class Reference
Inheritance diagram for makVrf::DtComputedRouteDefinitionDialog:
Inheritance graph
[legend]

Public Member Functions

 DtComputedRouteDefinitionDialog (makVrv::DtDe &de, QWidget *parent, const QString &title="")
 Constructor. More...
 
virtual ~DtComputedRouteDefinitionDialog ()
 Destructor. More...
 
virtual void init (const QString &title)
 Performs dialog initialization. More...
 
virtual QString getName () const
 Returns the route's name. More...
 
virtual void setName (const QString &name)
 Sets the route's name. More...
 
virtual void setLabel (const QString &name)
 Sets the route's label. More...
 
virtual QString getLabel () const
 Gets the route's label. More...
 
virtual std::map< int, DtStringextendedLabels () const
 Get the route's extended labels. More...
 
virtual DtVector sourceLocation () const
 Get the source location. More...
 
virtual DtVector destinationLocation () const
 Get the destination location. More...
 
virtual void setForce (int force)
 Selects the force. More...
 
int getForce () const
 Returns selected force. More...
 
virtual void addOverlay (const QString &name, bool translate=true)
 Add an overlay to the object's overlay. More...
 
virtual void removeOverlay (const QString &name)
 Remove an overlay from the object's overlay. More...
 
virtual void renameOverlay (const QString &oldName, const QString &newName)
 Rename an overlay int the object's overlay. More...
 
virtual void setOverlay (const QString &name)
 Sets the object's overlay. More...
 
virtual QString getOverlay () const
 Gets the object's overlay. More...
 
virtual void clearOverlays ()
 Clear the overlays combo box. More...
 
virtual void populateOverlays ()
 Populate the overlays combo box. More...
 
virtual void populateRulesTypes ()
 Populate the rules type combo box. More...
 
virtual void setRule (const QString &text, bool val)
 Set a rule setting. More...
 
virtual bool getRule (const QString &text) const
 Get a rule setting. More...
 
virtual void setStatusText (const QString &text)
 Sets the status text. More...
 
virtual void enableBusyIndicator (bool enable)
 Enables or disables the busy indicator. More...
 
virtual void addRule (const QString &text)
 Adds a new rule check box. More...
 
virtual void addRulesType (const QString &name)
 Adds a new rules type to the combo box. More...
 
virtual void clearRulesTypes ()
 Clears out the rules types combo box. More...
 
virtual void setSourceLocationValid (bool)
 
virtual void setDestinationLocationValid (bool)
 
virtual QString rulesType () const
 Returns the current rules type. More...
 
virtual void enableRulesEditing (bool enable)
 Enables or disables ability to edit the current rules. More...
 
virtual void removeSourceAndDestinationPoints ()
 Removes the source and destination points from the display. More...
 
virtual void enableEditing (bool enable)
 Enable or disable editing and creation of a new route. More...
 
virtual void enableMapFocus (bool enable)
 Enables or disables map focus. More...
 
virtual void closeDialog ()
 Closes the dialog. More...
 
- Public Member Functions inherited from makVrf::DtAutoHideDock
 DtAutoHideDock (makVrv::DtDe &de, const QString &title="", const std::string &className="", QWidget *parent=0, Qt::WindowFlags flags=0)
 Ctor. More...
 
 ~DtAutoHideDock ()
 Dtor. More...
 
virtual const QIcon & icon ()
 Set/Get the icon. More...
 
virtual void setIcon (const QIcon &icon)
 
virtual DtAutoHideDockType dockType () const
 Set/Get the type of dock this item represents. More...
 
virtual void setDockType (DtAutoHideDockType t)
 
virtual bool pinned () const
 Set/Get the pin status. More...
 
virtual void setPinned (bool flag)
 
virtual void setTitle (const QString &title)
 
virtual void setAdjustToMinimumSize (bool)
 Whether or not to adjust the size of the doc (on open) to minimum size. Default is true. More...
 
virtual bool adjustToMinimumSize () const
 
const std::string & className () const
 

Public Attributes

Ui_ComputedRouteDefinitionWidgetUi myUiImpl
 
DtOverlayParentEntryWidgetmyOverlaysCombo
 
QWidget * myMainWidget
 
DtMapFocusHandlerManager myMapFocusManager
 
DtExtendedLabelsEntryWidgetmyExtendedLabelsEntryWidget
 
DtLocationEntryWidgetmySourceLocation
 
DtLocationEntryWidgetmyDestinationLocation
 
QPushButtonmyCreateButton
 
QPushButtonmyCancelButton
 

Protected Slots

virtual void slot_onCreateButtonClicked ()
 Processing the clicking of the create button. More...
 
virtual void slot_onRuleTypeChanged (const QString &text)
 Updates rules based on selected type. More...
 
virtual void slot_onSourceLocationChanged ()
 Processes an update to the source point location. More...
 
virtual void slot_onDestinationLocationChanged ()
 Processes an update to the destination point location. More...
 
virtual void slot_onObjectFacadeAboutToBeRemoved (DtVrfObjectFacadeInterface *)
 Called when an object facade is about to be removed. More...
 
virtual void extendedLabelsChanged ()
 
- Protected Slots inherited from makVrf::DtAutoHideDock
virtual void slot_closePressed ()
 Gets called when the close button is pressed on the titleBarWidget. More...
 
virtual void slot_pinPressed (bool flag)
 Gets called when the pin is pressed on the titleBarWidget. More...
 
virtual void slot_topLevelChanged (bool)
 Gets called when the widget changes its floating status. More...
 

Protected Member Functions

virtual void sessionStatusChanged (int status)
 Close dialog if session is loading or closing scenario. More...
 
virtual void setupGui ()
 Configures the dialog. More...
 
virtual void setupConnections ()
 Connects signals and slots. More...
 
virtual void tearDownConnections ()
 Disconnects signals and slots. More...
 
virtual
DtComputedRouteDefinitionDialogLogic
createLogic ()
 Creates the logic controlling the dialog. More...
 
virtual void closeEvent (QCloseEvent *event)
 Handles closing of the dialog. More...
 
virtual void showEvent (QShowEvent *event)
 Handles showing of the dialog. More...
 
virtual void updateSourcePoint ()
 Updates the location of the source point on the display. More...
 
virtual void updateDestinationPoint ()
 Updates the location of the destination point on the display. More...
 
- Protected Member Functions inherited from makVrf::DtAutoHideDock
virtual bool eventFilter (QObject *p, QEvent *e)
 Event filter installed to listen for mouse events from the titleBarWidget. More...
 
virtual void enterEvent (QEvent *event)
 Automatic event that gets triggered when the mouse enters the widget. More...
 
virtual void leaveEvent (QEvent *event)
 Automatic event that gets triggered when the mouse leaves the widget. More...
 
virtual void paintEvent (QPaintEvent *p)
 This event gets automatically called when the widget is about to be painted on screen. More...
 
virtual void resizeEvent (QResizeEvent *event)
 

Protected Attributes

DtComputedRouteDefinitionDialogLogicmyLogic
 
std::map< QString, QCheckBox * > myRuleCheckBoxes
 
QWidget * myParent
 
QString myDefaultName
 
DtEnvironmentalFacadeCollectionmySourcePoint
 
DtEnvironmentalFacadeCollectionmyDestinationPoint
 
DtForceSelectionEntryWidgetmyForceSelection
 
bool mySourceLocationValid
 
bool myDestinationLocationValid
 
bool myConnectionsSetup
 
- Protected Attributes inherited from makVrf::DtAutoHideDock
makVrv::DtDemyDe
 
DtExtendedTitleBarWidgetmyTitleBarWidget
 
QIcon myIcon
 
DtAutoHideDockType myDockType
 
bool myAdjustToMinimumSize
 
std::string myClassName
 

Additional Inherited Members

- Public Types inherited from makVrf::DtAutoHideDock
enum  DtAutoHideDockType { Palette = 0, Dialog }
 
- Signals inherited from makVrf::DtAutoHideDock
void signal_closing (DtAutoHideDock *dock)
 This signal gets emitted when the widget is closing. More...
 
void signal_pinPressed (DtAutoHideDock *dock)
 This signal gets emitted when the pin button is pressed on this widget. More...
 
void signal_topLevelChanged (DtAutoHideDock *dock)
 This signal gets emitted when this widget changes its status from docked to floating and vice versa. More...
 
void signal_resized (DtAutoHideDock *dock)
 This signal gets emitted when this widget is resized. More...
 
void signal_destroyed (DtAutoHideDock *dock)
 This signal gets emitted when this widget is about to be destroyed. More...
 
void signal_enter (DtAutoHideDock *dock)
 This signal gets emitted when the mouse enters on this widget. More...
 
void signal_leave (DtAutoHideDock *dock)
 This signal gets emitted when the mouse leaves this widget. More...
 

Constructor & Destructor Documentation

makVrf::DtComputedRouteDefinitionDialog::DtComputedRouteDefinitionDialog ( makVrv::DtDe de,
QWidget *  parent,
const QString &  title = "" 
)

Constructor.

virtual makVrf::DtComputedRouteDefinitionDialog::~DtComputedRouteDefinitionDialog ( )
virtual

Destructor.

Member Function Documentation

virtual void makVrf::DtComputedRouteDefinitionDialog::init ( const QString &  title)
virtual

Performs dialog initialization.

virtual QString makVrf::DtComputedRouteDefinitionDialog::getName ( ) const
virtual

Returns the route's name.

virtual void makVrf::DtComputedRouteDefinitionDialog::setName ( const QString &  name)
virtual

Sets the route's name.

virtual void makVrf::DtComputedRouteDefinitionDialog::setLabel ( const QString &  name)
virtual

Sets the route's label.

virtual QString makVrf::DtComputedRouteDefinitionDialog::getLabel ( ) const
virtual

Gets the route's label.

virtual std::map<int, DtString> makVrf::DtComputedRouteDefinitionDialog::extendedLabels ( ) const
virtual

Get the route's extended labels.

virtual DtVector makVrf::DtComputedRouteDefinitionDialog::sourceLocation ( ) const
virtual

Get the source location.

virtual DtVector makVrf::DtComputedRouteDefinitionDialog::destinationLocation ( ) const
virtual

Get the destination location.

virtual void makVrf::DtComputedRouteDefinitionDialog::setForce ( int  force)
virtual

Selects the force.

int makVrf::DtComputedRouteDefinitionDialog::getForce ( ) const

Returns selected force.

virtual void makVrf::DtComputedRouteDefinitionDialog::addOverlay ( const QString &  name,
bool  translate = true 
)
virtual

Add an overlay to the object's overlay.

virtual void makVrf::DtComputedRouteDefinitionDialog::removeOverlay ( const QString &  name)
virtual

Remove an overlay from the object's overlay.

virtual void makVrf::DtComputedRouteDefinitionDialog::renameOverlay ( const QString &  oldName,
const QString &  newName 
)
virtual

Rename an overlay int the object's overlay.

virtual void makVrf::DtComputedRouteDefinitionDialog::setOverlay ( const QString &  name)
virtual

Sets the object's overlay.

virtual QString makVrf::DtComputedRouteDefinitionDialog::getOverlay ( ) const
virtual

Gets the object's overlay.

virtual void makVrf::DtComputedRouteDefinitionDialog::clearOverlays ( )
virtual

Clear the overlays combo box.

virtual void makVrf::DtComputedRouteDefinitionDialog::populateOverlays ( )
virtual

Populate the overlays combo box.

virtual void makVrf::DtComputedRouteDefinitionDialog::populateRulesTypes ( )
virtual

Populate the rules type combo box.

virtual void makVrf::DtComputedRouteDefinitionDialog::setRule ( const QString &  text,
bool  val 
)
virtual

Set a rule setting.

virtual bool makVrf::DtComputedRouteDefinitionDialog::getRule ( const QString &  text) const
virtual

Get a rule setting.

virtual void makVrf::DtComputedRouteDefinitionDialog::setStatusText ( const QString &  text)
virtual

Sets the status text.

virtual void makVrf::DtComputedRouteDefinitionDialog::enableBusyIndicator ( bool  enable)
virtual

Enables or disables the busy indicator.

virtual void makVrf::DtComputedRouteDefinitionDialog::addRule ( const QString &  text)
virtual

Adds a new rule check box.

virtual void makVrf::DtComputedRouteDefinitionDialog::addRulesType ( const QString &  name)
virtual

Adds a new rules type to the combo box.

virtual void makVrf::DtComputedRouteDefinitionDialog::clearRulesTypes ( )
virtual

Clears out the rules types combo box.

virtual void makVrf::DtComputedRouteDefinitionDialog::setSourceLocationValid ( bool  )
virtual
virtual void makVrf::DtComputedRouteDefinitionDialog::setDestinationLocationValid ( bool  )
virtual
virtual QString makVrf::DtComputedRouteDefinitionDialog::rulesType ( ) const
virtual

Returns the current rules type.

virtual void makVrf::DtComputedRouteDefinitionDialog::enableRulesEditing ( bool  enable)
virtual

Enables or disables ability to edit the current rules.

virtual void makVrf::DtComputedRouteDefinitionDialog::removeSourceAndDestinationPoints ( )
virtual

Removes the source and destination points from the display.

virtual void makVrf::DtComputedRouteDefinitionDialog::enableEditing ( bool  enable)
virtual

Enable or disable editing and creation of a new route.

virtual void makVrf::DtComputedRouteDefinitionDialog::enableMapFocus ( bool  enable)
virtual

Enables or disables map focus.

virtual void makVrf::DtComputedRouteDefinitionDialog::closeDialog ( )
virtual

Closes the dialog.

virtual void makVrf::DtComputedRouteDefinitionDialog::sessionStatusChanged ( int  status)
protectedvirtual

Close dialog if session is loading or closing scenario.

virtual void makVrf::DtComputedRouteDefinitionDialog::setupGui ( )
protectedvirtual

Configures the dialog.

Reimplemented from makVrf::DtAutoHideDock.

virtual void makVrf::DtComputedRouteDefinitionDialog::setupConnections ( )
protectedvirtual

Connects signals and slots.

virtual void makVrf::DtComputedRouteDefinitionDialog::tearDownConnections ( )
protectedvirtual

Disconnects signals and slots.

virtual DtComputedRouteDefinitionDialogLogic* makVrf::DtComputedRouteDefinitionDialog::createLogic ( )
protectedvirtual

Creates the logic controlling the dialog.

virtual void makVrf::DtComputedRouteDefinitionDialog::closeEvent ( QCloseEvent *  event)
protectedvirtual

Handles closing of the dialog.

Reimplemented from makVrf::DtAutoHideDock.

virtual void makVrf::DtComputedRouteDefinitionDialog::showEvent ( QShowEvent *  event)
protectedvirtual

Handles showing of the dialog.

virtual void makVrf::DtComputedRouteDefinitionDialog::updateSourcePoint ( )
protectedvirtual

Updates the location of the source point on the display.

Creates the point if not already displayed.

virtual void makVrf::DtComputedRouteDefinitionDialog::updateDestinationPoint ( )
protectedvirtual

Updates the location of the destination point on the display.

Creates the point if not already displayed.

virtual void makVrf::DtComputedRouteDefinitionDialog::slot_onCreateButtonClicked ( )
protectedvirtualslot

Processing the clicking of the create button.

virtual void makVrf::DtComputedRouteDefinitionDialog::slot_onRuleTypeChanged ( const QString &  text)
protectedvirtualslot

Updates rules based on selected type.

virtual void makVrf::DtComputedRouteDefinitionDialog::slot_onSourceLocationChanged ( )
protectedvirtualslot

Processes an update to the source point location.

virtual void makVrf::DtComputedRouteDefinitionDialog::slot_onDestinationLocationChanged ( )
protectedvirtualslot

Processes an update to the destination point location.

virtual void makVrf::DtComputedRouteDefinitionDialog::slot_onObjectFacadeAboutToBeRemoved ( DtVrfObjectFacadeInterface )
protectedvirtualslot

Called when an object facade is about to be removed.

If the object facade corresponds to mySourcePoint or myDestinationPoint, cleanup our reference.

virtual void makVrf::DtComputedRouteDefinitionDialog::extendedLabelsChanged ( )
protectedvirtualslot

Member Data Documentation

Ui_ComputedRouteDefinitionWidgetUi makVrf::DtComputedRouteDefinitionDialog::myUiImpl
DtOverlayParentEntryWidget* makVrf::DtComputedRouteDefinitionDialog::myOverlaysCombo
QWidget* makVrf::DtComputedRouteDefinitionDialog::myMainWidget
DtMapFocusHandlerManager makVrf::DtComputedRouteDefinitionDialog::myMapFocusManager
DtExtendedLabelsEntryWidget* makVrf::DtComputedRouteDefinitionDialog::myExtendedLabelsEntryWidget
DtLocationEntryWidget* makVrf::DtComputedRouteDefinitionDialog::mySourceLocation
DtLocationEntryWidget* makVrf::DtComputedRouteDefinitionDialog::myDestinationLocation
QPushButton* makVrf::DtComputedRouteDefinitionDialog::myCreateButton
QPushButton* makVrf::DtComputedRouteDefinitionDialog::myCancelButton
DtComputedRouteDefinitionDialogLogic* makVrf::DtComputedRouteDefinitionDialog::myLogic
protected
std::map<QString, QCheckBox*> makVrf::DtComputedRouteDefinitionDialog::myRuleCheckBoxes
protected
QWidget* makVrf::DtComputedRouteDefinitionDialog::myParent
protected
QString makVrf::DtComputedRouteDefinitionDialog::myDefaultName
protected
DtEnvironmentalFacadeCollection* makVrf::DtComputedRouteDefinitionDialog::mySourcePoint
protected
DtEnvironmentalFacadeCollection* makVrf::DtComputedRouteDefinitionDialog::myDestinationPoint
protected
DtForceSelectionEntryWidget* makVrf::DtComputedRouteDefinitionDialog::myForceSelection
protected
bool makVrf::DtComputedRouteDefinitionDialog::mySourceLocationValid
protected
bool makVrf::DtComputedRouteDefinitionDialog::myDestinationLocationValid
protected
bool makVrf::DtComputedRouteDefinitionDialog::myConnectionsSetup
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)