MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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:

Public Slots

virtual void changePage (QListWidgetItem *current, QListWidgetItem *previous)
 Changes which page is currently displayed. More...
 
virtual void enableAccept (int)
 Enable the accept button due to the validity of the current settings. More...
 
virtual void disableAccept (int)
 Disable the accept button due to the validity of the current settings. More...
 

Signals

void applied ()
 Emitted when the apply button is clicked. More...
 

Public Member Functions

 DtAssistantConfigDialog (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
virtual ~DtAssistantConfigDialog ()
 Destructor. More...
 
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. More...
 
virtual void completeDialogSetup ()
 Completes the setup of the dialog. More...
 
virtual QWidgetconfigWidget (DtPreferencesPage pageId)
 Returns the widget on the given page. More...
 
virtual void setPage (DtPreferencesPage pageId)
 Sets the currently displayed page. More...
 

Protected Member Functions

virtual void enableOrDisableAccept ()
 Enables or disables the accept button, as appropriate. More...
 
virtual void showEvent (QShowEvent *event)
 Catch show events so that the first time the dialog is shown we can do some additional configuration. More...
 

Protected Attributes

bool myWasAccepted
 Stores the acceptance state of the last execution. More...
 
QListWidget * myContentsWidget
 The contents panel which allows the user to select the configuration page they would like to view. More...
 
QStackedWidget * myPagesWidget
 The stacked widget which holds all of the configuration pages and displays the currently selected one. More...
 
std::map< DtPreferencesPage,
unsigned int > 
myPageNumbers
 Mapping of page IDs to page numbers. More...
 
QDialogButtonBox * myButtonBox
 The dialogs button box. More...
 
std::vector
< DtAssistantConfigWidget * > 
myConfigWidgets
 Widgets for each configuration page in the dialog. More...
 
std::vector< bool > myEnableAccept
 The current settings for each widget on whether or not acceptance of the dialog should be allowed. More...
 
std::vector< QString > myDisableAcceptReasons
 The current reasons for each widget why acceptance of the dialog should not be allowed. More...
 
QSignalMapper * myEnableAcceptMapper
 Maps signals from configuration widgets to enable the accept button button. More...
 
QSignalMapper * myDisableAcceptMapper
 Maps signals from configuration widgets to disable the accept button. More...
 
int myCurrentPage
 The current page. More...
 
bool myFirstShowing
 The first time the dialog is shown, do some additional configuration. More...
 

Private Member Functions

 DtAssistantConfigDialog (const DtAssistantConfigDialog &)
 Copy constructor not implemented. More...
 
DtAssistantConfigDialogoperator= (const DtAssistantConfigDialog &)
 Assignment operator not implemented. More...
 

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 
)

Constructor.

virtual DtAssistantConfigDialog::~DtAssistantConfigDialog ( )
virtual

Destructor.

DtAssistantConfigDialog::DtAssistantConfigDialog ( const DtAssistantConfigDialog )
private

Copy constructor not implemented.

Member Function Documentation

virtual void DtAssistantConfigDialog::addConfigWidget ( DtAssistantConfigWidget widget,
const QIcon &  icon,
const QString &  name,
DtPreferencesPage  pageId 
)
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.

void DtAssistantConfigDialog::applied ( )
signal

Emitted when the apply button is clicked.

virtual void DtAssistantConfigDialog::changePage ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
virtualslot

Changes which page is currently displayed.

virtual void DtAssistantConfigDialog::completeDialogSetup ( )
virtual

Completes the setup of the dialog.

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

virtual QWidget* DtAssistantConfigDialog::configWidget ( DtPreferencesPage  pageId)
virtual

Returns the widget on the given page.

virtual void DtAssistantConfigDialog::disableAccept ( int  )
virtualslot

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

virtual void DtAssistantConfigDialog::enableAccept ( int  )
virtualslot

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

virtual void DtAssistantConfigDialog::enableOrDisableAccept ( )
protectedvirtual

Enables or disables the accept button, as appropriate.

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

Assignment operator not implemented.

virtual void DtAssistantConfigDialog::setPage ( DtPreferencesPage  pageId)
virtual

Sets the currently displayed page.

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

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

Member Data Documentation

QDialogButtonBox* DtAssistantConfigDialog::myButtonBox
protected

The dialogs button box.

std::vector<DtAssistantConfigWidget*> DtAssistantConfigDialog::myConfigWidgets
protected

Widgets for each configuration page in the dialog.

QListWidget* DtAssistantConfigDialog::myContentsWidget
protected

The contents panel which allows the user to select the configuration page they would like to view.

int DtAssistantConfigDialog::myCurrentPage
protected

The current page.

QSignalMapper* DtAssistantConfigDialog::myDisableAcceptMapper
protected

Maps signals from configuration widgets to disable the accept button.

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

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

std::vector<bool> DtAssistantConfigDialog::myEnableAccept
protected

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

QSignalMapper* DtAssistantConfigDialog::myEnableAcceptMapper
protected

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

bool DtAssistantConfigDialog::myFirstShowing
protected

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

std::map<DtPreferencesPage,unsigned int> DtAssistantConfigDialog::myPageNumbers
protected

Mapping of page IDs to page numbers.

QStackedWidget* DtAssistantConfigDialog::myPagesWidget
protected

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

bool DtAssistantConfigDialog::myWasAccepted
protected

Stores the acceptance state of the last execution.


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

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)