MAK RTIspy API Documentation for HLA 1516
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtAssistantConfigDialog Class Reference

Qt dialog which allows a user to change the Assistant configuration. More...

+ Inheritance diagram for DtAssistantConfigDialog:
+ Collaboration diagram for DtAssistantConfigDialog:

List of all members.

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 int addConfigWidget (DtAssistantConfigWidget *widget, const QIcon &icon, const QString &name)
 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 QWidgetconfigWidget (int pageNum)
 Returns the widget on the given page.
virtual void setPage (int pageNum)
 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.
QDialogButtonBox * myButtonBox
 The dialogs button box.
std::vector
< DtAssistantConfigWidget * > 
myConfigWidgets
 Widgets for each configuration page in the dialog.
std::vector< boolmyEnableAccept
 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.
DtAssistantConfigDialogoperator= (DtAssistantConfigDialog const &)
 Assignment operator not implemented.

Detailed Description

Qt dialog which allows a user to change the Assistant configuration.


Constructor & Destructor Documentation

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

Destructor.

Copy constructor not implemented.


Member Function Documentation

int DtAssistantConfigDialog::addConfigWidget ( DtAssistantConfigWidget widget,
const QIcon &  icon,
const QString &  name 
) [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. The widget's page is returned.

References connect(), myConfigWidgets, myContentsWidget, myDisableAcceptMapper, myDisableAcceptReasons, myEnableAccept, myEnableAcceptMapper, and myPagesWidget.

Referenced by DtAssistantPreferencesViewMgr::initialize().

Emitted when the apply button is clicked.

Referenced by DtAssistantConfigDialog().

void DtAssistantConfigDialog::changePage ( QListWidgetItem *  current,
QListWidgetItem *  previous 
) [virtual, slot]

Changes which page is currently displayed.

References myButtonBox, myContentsWidget, myCurrentPage, and myPagesWidget.

Referenced by DtAssistantConfigDialog().

Completes the setup of the dialog.

All widgets should be added with addConfigWidget prior to calling this method.

References myButtonBox, myContentsWidget, myPagesWidget, and setPage().

Referenced by DtAssistantPreferencesViewMgr::initialize().

QWidget * DtAssistantConfigDialog::configWidget ( int  pageNum) [virtual]

Returns the widget on the given page.

References myConfigWidgets.

void DtAssistantConfigDialog::disableAccept ( int  page) [virtual, slot]

Disable the accept button due to the validity of the current settings.

References enableOrDisableAccept(), myConfigWidgets, myDisableAcceptReasons, and myEnableAccept.

Referenced by DtAssistantConfigDialog().

void DtAssistantConfigDialog::enableAccept ( int  page) [virtual, slot]

Enable the accept button due to the validity of the current settings.

References enableOrDisableAccept(), myDisableAcceptReasons, and myEnableAccept.

Referenced by DtAssistantConfigDialog().

void DtAssistantConfigDialog::enableOrDisableAccept ( ) [protected, virtual]

Enables or disables the accept button, as appropriate.

References myButtonBox, myDisableAcceptReasons, and myEnableAccept.

Referenced by disableAccept(), and enableAccept().

DtAssistantConfigDialog& DtAssistantConfigDialog::operator= ( DtAssistantConfigDialog const &  ) [private]

Assignment operator not implemented.

void DtAssistantConfigDialog::setPage ( int  pageNum) [virtual]

Sets the currently displayed page.

References myContentsWidget.

Referenced by completeDialogSetup(), and DtAssistantPreferencesViewMgr::showConfigDialog().

void DtAssistantConfigDialog::showEvent ( QShowEvent *  event) [protected, virtual]

Catch show events so that the first time the dialog is shown we can do some additional configuration.

References myContentsWidget, and myFirstShowing.


Member Data Documentation

QDialogButtonBox* DtAssistantConfigDialog::myButtonBox [protected]

Widgets for each configuration page in the dialog.

Referenced by addConfigWidget(), configWidget(), and disableAccept().

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().

The current page.

Referenced by changePage().

Maps signals from configuration widgets to disable the accept button.

Referenced by addConfigWidget(), and DtAssistantConfigDialog().

std::vector<QString> DtAssistantConfigDialog::myDisableAcceptReasons [protected]

The current reasons for each widget why acceptance of the dialog should not be allowed.

Referenced by addConfigWidget(), disableAccept(), enableAccept(), and enableOrDisableAccept().

The current settings for each widget on whether or not acceptance of the dialog should be allowed.

Referenced by addConfigWidget(), disableAccept(), enableAccept(), and enableOrDisableAccept().

Maps signals from configuration widgets to enable the accept button button.

Referenced by addConfigWidget(), and DtAssistantConfigDialog().

The first time the dialog is shown, do some additional configuration.

Referenced by showEvent().

QStackedWidget* DtAssistantConfigDialog::myPagesWidget [protected]

The stacked widget which holds all of the configuration pages and displays the currently selected one.

Referenced by addConfigWidget(), changePage(), completeDialogSetup(), and DtAssistantConfigDialog().

Stores the acceptance state of the last execution.


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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)