![]() |
MAK RTIspy API Documentation for HLA 1516
|
Qt dialog which allows a user to change the Assistant configuration. More...
Inheritance diagram for DtAssistantConfigDialog:
Collaboration diagram for DtAssistantConfigDialog:Public Slots | |
| virtual void | changePage (QListWidgetItem *current, QListWidgetItem *previous) |
| Changes which page is currently displayed. | |
| virtual void | enableAccept (int) |
| Enable the accept button due to the validity of the current settings. | |
| virtual void | disableAccept (int) |
| Disable the accept button due to the validity of the current settings. | |
Signals | |
| void | applied () |
| Emitted when the apply button is clicked. | |
Public Member Functions | |
| DtAssistantConfigDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor. | |
| virtual | ~DtAssistantConfigDialog () |
| Destructor. | |
| virtual void | addConfigWidget (DtAssistantConfigWidget *widget, const QIcon &icon, const QString &name, DtPreferencesPage pageId) |
| Adds a widget to a new page in the dialog, using the given icon and name for the contents bar on the side. | |
| virtual void | completeDialogSetup () |
| Completes the setup of the dialog. | |
| virtual QWidget * | configWidget (DtPreferencesPage pageId) |
| Returns the widget on the given page. | |
| virtual void | setPage (DtPreferencesPage pageId) |
| Sets the currently displayed page. | |
Protected Member Functions | |
| virtual void | enableOrDisableAccept () |
| Enables or disables the accept button, as appropriate. | |
| virtual void | showEvent (QShowEvent *event) |
| Catch show events so that the first time the dialog is shown we can do some additional configuration. | |
Protected Attributes | |
| bool | myWasAccepted |
| Stores the acceptance state of the last execution. | |
| QListWidget * | myContentsWidget |
| The contents panel which allows the user to select the configuration page they would like to view. | |
| QStackedWidget * | myPagesWidget |
| The stacked widget which holds all of the configuration pages and displays the currently selected one. | |
| std::map< DtPreferencesPage, unsigned int > | myPageNumbers |
| Mapping of page IDs to page numbers. | |
| QDialogButtonBox * | myButtonBox |
| The dialogs button box. | |
| std::vector < DtAssistantConfigWidget * > | myConfigWidgets |
| Widgets for each configuration page in the dialog. | |
| std::vector< bool > | myEnableAccept |
| The current settings for each widget on whether or not acceptance of the dialog should be allowed. | |
| std::vector< QString > | myDisableAcceptReasons |
| The current reasons for each widget why acceptance of the dialog should not be allowed. | |
| QSignalMapper * | myEnableAcceptMapper |
| Maps signals from configuration widgets to enable the accept button button. | |
| QSignalMapper * | myDisableAcceptMapper |
| Maps signals from configuration widgets to disable the accept button. | |
| int | myCurrentPage |
| The current page. | |
| bool | myFirstShowing |
| The first time the dialog is shown, do some additional configuration. | |
Private Member Functions | |
| DtAssistantConfigDialog (DtAssistantConfigDialog const &) | |
| Copy constructor not implemented. | |
| DtAssistantConfigDialog & | operator= (DtAssistantConfigDialog const &) |
| Assignment operator not implemented. | |
Qt dialog which allows a user to change the Assistant configuration.
| DtAssistantConfigDialog::DtAssistantConfigDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructor.
References applied(), changePage(), connect(), disableAccept(), enableAccept(), myButtonBox, myContentsWidget, myDisableAcceptMapper, myEnableAcceptMapper, and myPagesWidget.
|
virtual |
Destructor.
|
private |
Copy constructor not implemented.
|
virtual |
Adds a widget to a new page in the dialog, using the given icon and name for the contents bar on the side.
Widgets will be added and paged in order as this method is called.
References connect(), myConfigWidgets, myContentsWidget, myDisableAcceptMapper, myDisableAcceptReasons, myEnableAccept, myEnableAcceptMapper, myPageNumbers, and myPagesWidget.
Referenced by DtAssistantPreferencesViewMgr::initialize().
|
signal |
Emitted when the apply button is clicked.
Referenced by DtAssistantConfigDialog().
|
virtualslot |
Changes which page is currently displayed.
References myButtonBox, myContentsWidget, myCurrentPage, and myPagesWidget.
Referenced by DtAssistantConfigDialog().
|
virtual |
Completes the setup of the dialog.
All widgets should be added with addConfigWidget prior to calling this method.
References DtConnectionsPage, myButtonBox, myContentsWidget, myPagesWidget, and setPage().
Referenced by DtAssistantPreferencesViewMgr::initialize().
|
virtual |
Returns the widget on the given page.
References myConfigWidgets, and myPageNumbers.
|
virtualslot |
Disable the accept button due to the validity of the current settings.
References enableOrDisableAccept(), myConfigWidgets, myDisableAcceptReasons, and myEnableAccept.
Referenced by DtAssistantConfigDialog().
|
virtualslot |
Enable the accept button due to the validity of the current settings.
References enableOrDisableAccept(), myDisableAcceptReasons, and myEnableAccept.
Referenced by DtAssistantConfigDialog().
|
protectedvirtual |
Enables or disables the accept button, as appropriate.
References myButtonBox, myDisableAcceptReasons, and myEnableAccept.
Referenced by disableAccept(), and enableAccept().
|
private |
Assignment operator not implemented.
|
virtual |
Sets the currently displayed page.
References myContentsWidget, and myPageNumbers.
Referenced by completeDialogSetup(), and DtAssistantPreferencesViewMgr::showConfigDialog().
|
protectedvirtual |
Catch show events so that the first time the dialog is shown we can do some additional configuration.
References myContentsWidget, and myFirstShowing.
|
protected |
The dialogs button box.
Referenced by changePage(), completeDialogSetup(), DtAssistantConfigDialog(), and enableOrDisableAccept().
|
protected |
Widgets for each configuration page in the dialog.
Referenced by addConfigWidget(), configWidget(), and disableAccept().
|
protected |
The contents panel which allows the user to select the configuration page they would like to view.
Referenced by addConfigWidget(), changePage(), completeDialogSetup(), DtAssistantConfigDialog(), setPage(), and showEvent().
|
protected |
The current page.
Referenced by changePage().
|
protected |
Maps signals from configuration widgets to disable the accept button.
Referenced by addConfigWidget(), and DtAssistantConfigDialog().
|
protected |
The current reasons for each widget why acceptance of the dialog should not be allowed.
Referenced by addConfigWidget(), disableAccept(), enableAccept(), and enableOrDisableAccept().
|
protected |
The current settings for each widget on whether or not acceptance of the dialog should be allowed.
Referenced by addConfigWidget(), disableAccept(), enableAccept(), and enableOrDisableAccept().
|
protected |
Maps signals from configuration widgets to enable the accept button button.
Referenced by addConfigWidget(), and DtAssistantConfigDialog().
|
protected |
The first time the dialog is shown, do some additional configuration.
Referenced by showEvent().
|
protected |
Mapping of page IDs to page numbers.
Referenced by addConfigWidget(), configWidget(), and setPage().
|
protected |
The stacked widget which holds all of the configuration pages and displays the currently selected one.
Referenced by addConfigWidget(), changePage(), completeDialogSetup(), and DtAssistantConfigDialog().
|
protected |
Stores the acceptance state of the last execution.