MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtAssistantRtiexecConnQueryWidget Class Reference

Widget used to request the user to provide new connection parameters when an rtiexec cannot establish an RTI connection. More...

+ Inheritance diagram for DtAssistantRtiexecConnQueryWidget:
+ Collaboration diagram for DtAssistantRtiexecConnQueryWidget:

Public Member Functions

 DtAssistantRtiexecConnQueryWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor.
virtual ~DtAssistantRtiexecConnQueryWidget ()
 Destructor.
virtual void addKnownAssistant (const DtAssistantInfo &assistant)
 Adds an assistant to the list of known remote assistants.
virtual void removeKnownAssistant (const DtAssistantInfo &assistant)
 Removes an assistant to the list of known remote assistants.
- Public Member Functions inherited from DtAssistantConnQueryWidget
 DtAssistantConnQueryWidget (QWidget *parent, Qt::WindowFlags f=0)
 Constructor.
virtual ~DtAssistantConnQueryWidget ()
 Destructor.
virtual void setComponentType (DtAssistantComponentType type, bool internalQuery)
 Set the component type the dialog is handling.
virtual DtAssistantComponentType componentType () const
 Get the component type the dialog handled.
virtual bool internalQuery () const
 Get if this query originated from the Assistant or a component.
virtual void useButtonsInsteadOfCheckBox (bool useButtons)
 Configure the widget to use radio buttons rather than a check box to set/unset the whether to use the chosen connection in the future.
virtual void showStartRtiexecButton (bool show)
 Configure the widget to show the start rtiexec button.
virtual const DtAssistantInfoSetknownAssistants () const
 The assistants known by this assistant.
virtual bool isKnownAssistant (const DtRtiConnectionInfo &conn)
 Determine if this connection is an rtiexec connection on the same host as one of the known assistants.
virtual const DtAssistantInfogetAssistant (const MAKRti::DtInetAddr &ip)
 Get the first known assistant that matches the given IP Returns the matching assistant; otherwise, NULL.
virtual const DtAssistantInfogetAssistant (const MAKRti::DtString &hostName)
 Get the first known assistant that matches the given host name Returns the matching assistant; otherwise, NULL.
virtual void setRidConfigurations (const DtAssistantRidConfigInfoMgr::RidConfigurationList &connConfig, bool preserveSelection)
 Sets the list of RID configurations.
virtual void setConnections (const DtRtiConnectionAndConfiguration &connConfig, bool preserveSelection)
 Sets the list of connections.
virtual void addConnections (const DtRtiConnectionAndConfiguration &conns)
 Adds a set of available connections to the list.
virtual void removeConnections (const DtRtiConnectionAndConfiguration &conns)
 Removes a set of available connections from the list.
virtual void getResults (DtRtiConnectionInfoDataPair &conn, DtRtiConnectionConfigurationInfo &config, bool &choose)
 Fills in the current chosen connection information settings.
virtual const
DtRtiConnectionAndConfiguration
userAddedConnections ()
 Returns the set of user added connections during this execution of the dialog.
virtual const
DtRtiConnectionAndConfiguration
userRemovedConnections ()
 Returns the set of user removed connections during this execution of the dialog.
virtual void clearUserAddedAndRemoved ()
 Clears all connections added and removed by the user during this execution of the dialog.
virtual bool selectConnection (const DtRtiConnectionInfo &conn)
 Sets which connection should be selected.
virtual void reselectConnection ()
 Unselects and reselects the specified connection to update the state of the current buttons and dialog options.
virtual void setSelectedConfiguration (const DtRtiConnectionConfigurationInfo *config)
 Populates full compliance checkbox and selected RID configuration per the given configuration.
virtual void setSelectedRtiSetting (const MAKRti::DtString &name, bool isPreconfigured)
 Selects RTI Setting configuration.
virtual void getSelectedConnection (DtRtiConnectionInfo &conn) const
 Get the currently selected connection.
virtual void getSelectedConfiguration (DtRtiConnectionConfigurationInfo &config) const
 Get the currently selected configuration.
virtual void addProhibitedPort (int port, const QString &reason)
 Add a port which is prohibited, along with a reason.
virtual void removeProhibitedPort (int port)
 Remove a port which is prohibited.
virtual void setInitialState (bool check)
 Set the initial state of the dialog when it is shown for the very first time.
virtual bool isConnectionNameInUse (const QString &name) const
 Returns true if the given connection name is already in use by a known connection.
virtual void getInterfaceList (const DtAssistantInfo &assistant, bool useIPv4, QStringList &interfaceAdddrList)
 Reloads the list of local network interfaces which can be selected for new connections.
virtual bool checkForPortConflicts (int port1, int port2=0)
 Check if the port is prohibited and display an error if it is.
virtual bool checkForValidAddr (const QString &addrStr, const MAKRti::DtInetAddr &ifAddr, MAKRti::DtInetAddr &addr)
 Check if the string is a valid address, as well as valid for the specified interface.
virtual bool checkForConnNameConflict (const QString &name)
 Check if the new connection name is unique.
virtual bool checkForDuplicateConn (const DtRtiConnectionInfo &conn)
 Check if the given connection is a duplicate of an existing connection.
- Public Member Functions inherited from DtAssistantConfigWidget
 DtAssistantConfigWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor.
virtual ~DtAssistantConfigWidget ()
 Destructor.
virtual QString reasonForDisabledAccept () const
 If the widget has disabled the accept button, returns the reason why.

Protected Member Functions

virtual bool addConnection (const DtRtiConnectionInfoDataPair &conn, const DtRtiConfigurationInfoDataPair &config, DtNameToConnInfoMap::iterator &connIter)
 Adds an available connection to the list.
virtual void removeConnection (const DtRtiConnectionInfoDataPair &conn)
 Removes an available connection from the list.
virtual void clearAllConnections ()
 Clears the entire connection list.
virtual void updateDisplayedConnection (const QString &name, const DtRtiConnectionInfoDataPair &updatedConn, QTreeWidgetItem *connItem)
 Depending on the type of our current query connection, we update connItem based on updatedConn.
virtual QTreeWidgetItemfindConnInTree (const DtRtiConnectionInfo &conn, DtNameToConnInfoMap::iterator &connIter)
 Finds the connection item in the tree.
virtual void getConnStatusText (const QTreeWidgetItem *item, const DtRtiConnectionInfoDataPair &conn, const DtRtiConfigurationInfoDataPair &, QString &text)
 Gets the connection status text for the given connection.
virtual void evaluateConnections ()
 Evaluates connections for conflicts or invalid configuration.
virtual void showEvent (QShowEvent *event)
 Prepare the widget to be shown.
virtual bool promptUserForNewConnInfo (DtRtiConnectionInfoDataPair &conn)
 Prompts the user for new connection info.
virtual bool promptUserToEditConnInfo (DtRtiConnectionInfoDataPair &conn)
 Prompts the user to edit connection info.
virtual bool promptUserForConnInfo (DtRtiConnectionInfoDataPair &conn, const QString &dialogTitle, bool useNameOfGivenConn)
 Prompts the user for connection info.
virtual void setAcceptEnabledBasedOnConn (const DtRtiConnectionInfoDataPair *conn)
 Enables or disables the accept button based on the state of the given currently selected connection.
- Protected Member Functions inherited from DtAssistantConnQueryWidget
virtual bool replaceConnection (const DtRtiConnAndAssociatedConfig &oldConn, DtRtiConnectionInfoDataPair &newConn, DtNameToConnInfoMap::iterator &connIter)
 Replace a connection on the list and pass back the iterator of the new item.
virtual void refreshConnections (const DtAssistantInfo &assistant, bool isConnected)
 Refresh the list of connections with the connection status of the given assistant.
virtual void storeUserAddedConnection (const DtRtiConnectionInfoDataPair &conn)
 Store information on a connection that user requested to add.
virtual void storeUserRemovedConnection (const DtRtiConnectionInfoDataPair &conn)
 Store information on a connection that user requested to remove.
virtual void setConnItemToolTip (QTreeWidgetItem *item, const DtRtiConnectionInfoDataPair &conn=std::make_pair(DtRtiConnectionInfo::invalidConn(), DtRtiAssociatedConnectionData()), const DtRtiConfigurationInfoDataPair &config=DtRtiConfigurationInfoDataPair())
 Set the tool tip for the given item.
virtual void setFullyCompliantStateBasedOnConn (const DtRtiConnAndAssociatedConfig *connConfig)
 Enables or disables and sets the fully compliant check box based on the state of the given currently selected connection and if active, its configuration .
virtual void setRemoveEnabledBasedOnConn (const DtRtiConnectionInfoDataPair *conn)
 Enables or disables the remove button based on the state of the given currently selected connection.
virtual void setEditEnabledBasedOnConn (const DtRtiConnectionInfoDataPair *conn)
 Enables or disables the edit button based on the state of the given currently selected connection.
virtual void updateDialogBasedOnConn (const DtRtiConnectionInfoDataPair *conn, const DtRtiConfigurationInfoDataPair *config, bool isDisabled)
 Updates the dialog based on the state of the given currently selected connection and configuration.
virtual void disableItem (QTreeWidgetItem *item, bool disable)
 Marks the item as disabled.
virtual bool isItemDisabled (const QTreeWidgetItem *item) const
 Returns true if the item is marked as disabled.
virtual QString reserveNameForConnection (const DtRtiConnectionInfoDataPair &conn)
 Reserves the name for the given connection.
virtual void unreserveNameForConnection (const DtRtiConnectionInfoDataPair &conn)
 Unreserves the given connection name.
virtual void setAcceptEnabled (bool enabled, const QString &reasonForDisable)
 Sets whether or not accept is enabled.
virtual bool isAddressNotation (const QString &addrString) const
 Checks if the given string contains an address notation.
virtual void setLocalInterfaces (const DtRtiConnectionInfo &connInfo)
 Initialize local interfaces from connection info.

Protected Attributes

DtAssistantAddRtiexecConnDialogmyAddConnDialog
 Dialog used to set information for a new connection.
- Protected Attributes inherited from DtAssistantConnQueryWidget
Ui::AssistantConnQueryWidget myUiImpl
DtAssistantComponentType myComponentType
 The type of the current querying component.
bool myInternalQuery
 Whether the query originated internally or from a component.
DtNameToConnInfoMap myConnectionInfo
 The map of connection entries to detailed connection info.
DtAssistantInfoSet myRemoteAssistants
 The set of known remote assistants.
DtRtiConnectionAndConfiguration myAddedConnections
 Set of added connections.
DtRtiConnectionAndConfiguration myRemovedConnections
 Set of added connections.
DtNameToConnInfoMap::iterator myPredefinedLightweightConnection
 The predefined lightweight connection.
DtNameToConnInfoMap::iterator myPredefinedRtiexecConnection
 The predefined rtiexec connection.
DtNameToConnInfoMap::iterator myChosenConnection
 The connection chosen to be used without prompting.
std::map< int, QString > myProhibitedPorts
 List of prohibited ports and reasons why.
QMenu * myContextMenu
 Context Menu.
bool myContextMenuEnabled
 Controls whether the context menu should be displayed on right clicks.
bool myShowStartRtiexecButton
 Whether the start rtiexec button is displayed.
bool myUseButtonsInsteadOfCheckBox
 Whether the radio buttons are used instead of the check box to set the selected connection to be used automatically in the future.
bool myInitialState
 The dialog is being displayed for the first time ever and should be in its default initial state.
bool myProcessLocalInterfaceSelection
 Indicates that dialog is being initialized and selections can be ignored.
int myLastSelectedIndex
 Keeps track of the last selected configuration for restoration when choosing edit.
bool myEditConfigurationsAvailable
 Indicates if "Edit Configurations..." is the final entry in the RTI Settings combo box.
QAction * myAddConnectionAction
QAction * myRemoveConnectionAction
QAction * myEditConnectionAction
QAction * myStartRtiexecAction
QIcon myValidChoiceIcon
QIcon myUnknownChoiceIcon
QIcon myInvalidChoiceIcon
QIcon myPartialValidIcon

Private Member Functions

 DtAssistantRtiexecConnQueryWidget (DtAssistantRtiexecConnQueryWidget const &)
 Copy constructor not implemented.
DtAssistantRtiexecConnQueryWidgetoperator= (DtAssistantRtiexecConnQueryWidget const &)
 Assignment operator not implemented.

Additional Inherited Members

- Public Slots inherited from DtAssistantConnQueryWidget
virtual void processAdd ()
 Processes the pressing of the add connection button by the user.
virtual void processRemove ()
 Processes the pressing of the remove connection button by the user.
virtual void processEdit ()
 Processes the pressing of the edit connection button by the user.
virtual void processSelectionChange (QTreeWidgetItem *item=0)
 Processes a selection change.
virtual void configurationIndexChanged (int index)
 Processes selection change in the configuration combo box.
virtual void processTcpInterfaceChange (int hostIndex)
 Process a selection change for the local TCP interface.
virtual void processUdpInterfaceChange (int hostIndex)
 Process a selection change for the local UDP interface.
virtual void showContextMenu (const QPoint &)
 Shows the context menu at the given location.
- Signals inherited from DtAssistantConnQueryWidget
void editRtiConfigurations ()
 Signal emitted when user chooses to edit configurations.
void selectionAccepted ()
 Signal emitted when the selection is accepted.
void acceptEnabled (bool)
 Signal that the accept button should be enabled/disabled.
void connectionAdded (const DtRtiConnectionInfoDataPair &conn, DtAssistantConnQueryWidget *widget)
 Signal emitted when a new connection is added by a user (but not yet accepted).
- Protected Types inherited from DtAssistantConnQueryWidget
enum  DtConnQueryCol { ConnectionNameCol, StatusCol, SortCol }
typedef std::map< QString,
DtRtiConnAndAssociatedConfig
DtNameToConnInfoMap

Detailed Description

Widget used to request the user to provide new connection parameters when an rtiexec cannot establish an RTI connection.

Constructor & Destructor Documentation

DtAssistantRtiexecConnQueryWidget::DtAssistantRtiexecConnQueryWidget ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

virtual DtAssistantRtiexecConnQueryWidget::~DtAssistantRtiexecConnQueryWidget ( )
virtual

Destructor.

DtAssistantRtiexecConnQueryWidget::DtAssistantRtiexecConnQueryWidget ( DtAssistantRtiexecConnQueryWidget const &  )
private

Copy constructor not implemented.

Member Function Documentation

virtual bool DtAssistantRtiexecConnQueryWidget::addConnection ( const DtRtiConnectionInfoDataPair conn,
const DtRtiConfigurationInfoDataPair config,
DtNameToConnInfoMap::iterator &  connIter 
)
protectedvirtual

Adds an available connection to the list.

Returns true if it was successfully added and sets the iterator to location in the map of the new connection.

Implements DtAssistantConnQueryWidget.

virtual void DtAssistantRtiexecConnQueryWidget::addKnownAssistant ( const DtAssistantInfo assistant)
virtual

Adds an assistant to the list of known remote assistants.

Reimplemented from DtAssistantConnQueryWidget.

virtual void DtAssistantRtiexecConnQueryWidget::clearAllConnections ( )
protectedvirtual

Clears the entire connection list.

Implements DtAssistantConnQueryWidget.

virtual void DtAssistantRtiexecConnQueryWidget::evaluateConnections ( )
protectedvirtual

Evaluates connections for conflicts or invalid configuration.

Implements DtAssistantConnQueryWidget.

virtual QTreeWidgetItem* DtAssistantRtiexecConnQueryWidget::findConnInTree ( const DtRtiConnectionInfo conn,
DtNameToConnInfoMap::iterator &  connIter 
)
protectedvirtual

Finds the connection item in the tree.

Returns a pointer to the tree item as well as an iterator to its location in the map.

Implements DtAssistantConnQueryWidget.

virtual void DtAssistantRtiexecConnQueryWidget::getConnStatusText ( const QTreeWidgetItem item,
const DtRtiConnectionInfoDataPair conn,
const DtRtiConfigurationInfoDataPair ,
QString &  text 
)
protectedvirtual

Gets the connection status text for the given connection.

Implements DtAssistantConnQueryWidget.

DtAssistantRtiexecConnQueryWidget& DtAssistantRtiexecConnQueryWidget::operator= ( DtAssistantRtiexecConnQueryWidget const &  )
private

Assignment operator not implemented.

virtual bool DtAssistantRtiexecConnQueryWidget::promptUserForConnInfo ( DtRtiConnectionInfoDataPair conn,
const QString &  dialogTitle,
bool  useNameOfGivenConn 
)
protectedvirtual

Prompts the user for connection info.

virtual bool DtAssistantRtiexecConnQueryWidget::promptUserForNewConnInfo ( DtRtiConnectionInfoDataPair conn)
protectedvirtual

Prompts the user for new connection info.

Implements DtAssistantConnQueryWidget.

virtual bool DtAssistantRtiexecConnQueryWidget::promptUserToEditConnInfo ( DtRtiConnectionInfoDataPair conn)
protectedvirtual

Prompts the user to edit connection info.

Implements DtAssistantConnQueryWidget.

virtual void DtAssistantRtiexecConnQueryWidget::removeConnection ( const DtRtiConnectionInfoDataPair conn)
protectedvirtual

Removes an available connection from the list.

Implements DtAssistantConnQueryWidget.

virtual void DtAssistantRtiexecConnQueryWidget::removeKnownAssistant ( const DtAssistantInfo assistant)
virtual

Removes an assistant to the list of known remote assistants.

Reimplemented from DtAssistantConnQueryWidget.

virtual void DtAssistantRtiexecConnQueryWidget::setAcceptEnabledBasedOnConn ( const DtRtiConnectionInfoDataPair conn)
protectedvirtual

Enables or disables the accept button based on the state of the given currently selected connection.

Implements DtAssistantConnQueryWidget.

virtual void DtAssistantRtiexecConnQueryWidget::showEvent ( QShowEvent *  event)
protectedvirtual

Prepare the widget to be shown.

virtual void DtAssistantRtiexecConnQueryWidget::updateDisplayedConnection ( const QString &  name,
const DtRtiConnectionInfoDataPair updatedConn,
QTreeWidgetItem connItem 
)
protectedvirtual

Depending on the type of our current query connection, we update connItem based on updatedConn.

Implements DtAssistantConnQueryWidget.

Member Data Documentation

DtAssistantAddRtiexecConnDialog* DtAssistantRtiexecConnQueryWidget::myAddConnDialog
protected

Dialog used to set information for a new connection.


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

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)