![]() |
VR-Forces Developer's Guide
|
Dialog for setting navigation signal flags on a surface vessel. Presents a scrollable list of halyard rows, each with a button that opens a sub-dialog for picking flags, and a summary label showing current selections. On OK, sends a DtSetSignalFlagsRequest directly.

Public Member Functions | |
| DtSetSignalFlagsDialog (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtSetSignalFlagsDialog () override |
Public Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface | |
| DtBaseTaskSetDialogInterface (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtBaseTaskSetDialogInterface () override |
| virtual void | run (const std::set< makVrv::DtUniqueID > &) override |
| virtual void | setOKEnabled (bool) override |
| virtual void | setApplyVisible (bool) override |
| virtual void | setCancelEnabled (bool) override |
| virtual void | setCancelButtonText (const QString &) override |
| virtual bool | valid () const override |
| virtual void | setReadOnlyMode (bool) override |
| virtual bool | okEnabled () const override |
| int | accepted () const |
| virtual void | setupGui (const std::set< makVrv::DtUniqueID > &) override |
| virtual void | setAutoSizeOnShow (bool) |
| virtual bool | autoSizeOnShow () const |
| virtual void | setDescription (const QString &desc) |
| virtual QString | description () const |
| virtual bool | editStatement (const std::set< makVrv::DtUniqueID > &, const DtSimStatement *) override |
| virtual void | setPartOfPlan (int b) override |
| virtual void | hideButtons (bool) override |
| virtual bool | applyWithoutGoingBack () const |
Public Member Functions inherited from makVrf::DtTaskSetDialogInterface | |
| DtTaskSetDialogInterface (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0) | |
| virtual | ~DtTaskSetDialogInterface () override |
| virtual void | runOneClick (const std::set< makVrv::DtUniqueID > &) |
| virtual void | connectSignals (const std::set< makVrv::DtUniqueID > &) |
| virtual void | setSendToRemoteController (bool b) |
| virtual bool | sendToRemoteController () const |
| virtual void | selectionChanged (const DtUUID &selection) override |
| virtual void | sendSetRequest (std::vector< DtUUID > names, const DtSetDataRequest &) |
| virtual bool | insertMapFocusHandler (DtMapFocusHandlerInterface *, int index=-1) override |
| virtual void | initializeFromAction (DtVrfTaskSetAction *) override |
| DtVrfTaskSetAction * | initializedAction () const |
| virtual void | sendTaskRequest (std::vector< DtUUID > names, const DtSimTask &) |
| virtual std::vector < makVrv::DtUniqueID > | entityIds () const |
| virtual std::vector< DtUUID > | names () const |
| virtual void | setupFromExtendedData (const std::map< std::string, std::string > &) |
| virtual DtSimObjectReference | findStateView (const std::set< makVrv::DtUniqueID > &) const |
| virtual DtSimObjectReference | findStateView (makVrv::DtUniqueID) const |
| int | partOfPlan () const |
| virtual void | cancel () |
| virtual QWidget * | widget () override |
| const std::set < makVrv::DtUniqueID > & | connectedTo () const |
| virtual void | noObjectsSelected () override |
| virtual QWidget * | sizeToParent () const |
| makVrv::DtDe & | de () |
Public Member Functions inherited from makVrf::DtCommandDialogExtensionInterface | |
| virtual | ~DtCommandDialogExtensionInterface () |
| virtual bool | initiallyBroadcast () const |
| virtual bool | alwaysPopOut () const |
| virtual bool | allowBroadcasting () const |
| virtual bool | hasUserEntry () const |
| virtual QString | entitySelectionGroupBoxTitle () const |
| virtual void | filterAboutToBeAdded (DtVrfSelectionFilter *) |
| virtual void | parentShown (QWidget *) |
| virtual void | onCancel ()=0 |
| virtual makVrv::DtUnicode | broadcastTitle () const |
Protected Member Functions | |
| virtual QWidget * | contents (const std::set< makVrv::DtUniqueID > &data) override |
| virtual void | sendRequest () override |
| virtual void | setupStatement (const DtSimStatement *stmt) override |
| virtual void | initializeItems (const std::set< makVrv::DtUniqueID > &data) override |
| virtual QSize | canvasSize () override |
Protected Member Functions inherited from makVrf::DtBaseTaskSetDialogInterface | |
| virtual void | resizeEvent (QResizeEvent *) override |
| virtual void | updateApplyButtonVisibility () |
| virtual void | updateButtonText () |
| virtual void | postGuiSetup (const std::set< makVrv::DtUniqueID > &data) |
| virtual void | closeEvent (QCloseEvent *) override |
| virtual void | setupFrom (const std::set< makVrv::DtUniqueID > &s) override |
| virtual bool | wantsSelectionOfObjectInCommandMode (const std::set< makVrv::DtUniqueID > &) const override |
| virtual void | sendSetRequest (const DtSetDataRequest &) |
| virtual void | sendTaskRequest (const DtSimTask &) |
| virtual void | sendCommandRequest (const DtSimCommandObjectWrapper &) override |
| virtual void | onOK () override |
| virtual QWidget * | takeOKCancelButtonCanvas (QWidget *newParent) override |
| virtual void | giveOKCancelButtonCanvas (QWidget *) override |
| virtual void | slot_oneClickComplete () override |
Protected Member Functions inherited from makVrf::DtTaskSetDialogInterface | |
| virtual QString | statusText () const |
| virtual bool | eventFilter (QObject *, QEvent *) override |
| virtual makVrv::DtQtCursor | cursorOverride () const |
| virtual void | slot_objectAboutToBeRemoved (DtSimObjectReference) |
| virtual std::vector< std::string > | commandDialogFiltersFor (const std::set< makVrv::DtUniqueID > &data, const DtSimStatement *stmt, int &initialSelection) const override |
Protected Attributes | |
| QWidget * | myCanvas |
| QVBoxLayout * | myCanvasLayout |
| QTableWidget * | myTable |
| QPushButton * | myAddHalyardButton |
| std::array< bool, DtHalyardPositionCount > | myHalyardVisible |
| std::array< std::vector< int > , DtHalyardPositionCount > | myHalyardFlags |
Protected Attributes inherited from makVrf::DtBaseTaskSetDialogInterface | |
| bool | myAutoSizeOnShow |
| bool | myValidInitialization |
| bool | myReadOnlyMode = false |
| bool | myOKEnabled = false |
| boost::signals2::connection | myCompleteConnection |
| bool | myApplyWithoutGoingBackVisble = true |
Protected Attributes inherited from makVrf::DtTaskSetDialogInterface | |
| makVrv::DtDe & | myDe |
| int | myPartOfPlan |
| std::set< makVrv::DtUniqueID > | myConnectedTo |
| bool | mySendToRemoteController |
| makVrv::DtSignalConnectionManager | myConnections |
| DtVrfTaskSetAction * | myAction |
| DtMapFocusHandler | myMapFocusHandler |
| bool | myOneClickMode = false |
Private Member Functions | |
| void | openFlagPicker (int halyardIndex) |
| void | updateSummaryLabel (int halyardIndex) |
| void | addHalyard () |
| void | removeHalyard (int halyardIndex) |
| void | showHalyardRow (int halyardIndex) |
| void | clearAllHalyards () |
| void | populateFromEntity (const makVrv::DtUniqueID &id) |
| void | updateAddButton () |
| int | findTableRow (int halyardIndex) const |
| makVrf::DtSetSignalFlagsDialog::DtSetSignalFlagsDialog | ( | makVrv::DtDe & | de, |
| QWidget * | parent, | ||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
Constructor.
|
overridevirtual |
Destructor.
|
overrideprotectedvirtual |
Build and return the content widget (scrollable halyard button grid).
Implements makVrf::DtBaseTaskSetDialogInterface.
|
overrideprotectedvirtual |
Construct and send a DtSetSignalFlagsRequest from stored flag values.
Implements makVrf::DtBaseTaskSetDialogInterface.
|
overrideprotectedvirtual |
Populate stored flags from an existing plan statement.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
overrideprotectedvirtual |
Pre-populate the dialog from the currently published signal flag state of the target entity (only when a single entity is selected).
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
overrideprotectedvirtual |
Return initial dialog size.
Reimplemented from makVrf::DtBaseTaskSetDialogInterface.
|
private |
Open the flag picker sub-dialog for the given halyard index.
|
private |
Rebuild the flags cell widget for the given halyard index.
|
private |
Show a menu to add a halyard row.
|
private |
Remove a halyard row by halyard index.
|
private |
Make a halyard row visible in the table (idempotent — no-op if the row already exists).
|
private |
Remove all halyard rows and clear all stored flag values.
|
private |
Read the entity's currently published signal flags into myHalyardFlags / myHalyardVisible and build the corresponding rows.
|
private |
Update visibility of the + button based on how many halyards are shown.
Find the table row for a given halyard index, or -1 if not found.
|
protected |
|
protected |
|
protected |
|
protected |
Button to add the next halyard to the dialog.
|
protected |
Tracks which halyard rows are currently visible.
|
protected |
Stored flag values for each halyard position.