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 Slots | Public Member Functions | Protected Attributes
DtWidgetDialog Class Reference

A generic dialog which houses a single widget. More...

+ Inheritance diagram for DtWidgetDialog:
+ Collaboration diagram for DtWidgetDialog:

Public Slots

virtual void enableAccept (bool enable)
 Enables or disables any buttons with the AcceptRole. More...
 
virtual void enableApply (bool enable)
 Enables or disables any buttons with the ApplyRole. More...
 
virtual void enableButtonRole (QDialogButtonBox::ButtonRole role, bool enable)
 Enables or disables any buttons with the given role. More...
 

Public Member Functions

 DtWidgetDialog (QDialogButtonBox::StandardButtons buttons=QDialogButtonBox::Ok|QDialogButtonBox::Cancel, QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
virtual ~DtWidgetDialog ()
 Destructor. More...
 
virtual void setWidget (QWidget *widget)
 Embeds the widget in the dialog. More...
 
virtual QPushButton * addButton (const QString &text, QDialogButtonBox::ButtonRole role)
 Adds a button with customized text to the dialog. More...
 
virtual QPushButton * addButton (QDialogButtonBox::StandardButton button)
 Adds a standard button to the dialog. More...
 
virtual bool centerButtons () const
 Centers the buttons in the dialog. More...
 
virtual void removeButton (QAbstractButton *button)
 Removes the given button from the dialog. More...
 
virtual void removeButton (QDialogButtonBox::StandardButton button)
 Removes a standard button from the dialog. More...
 
virtual bool isAcceptEnabled ()
 Returns true if there is an accept button enabled. More...
 

Protected Attributes

QVBoxLayout * myLayout
 The layout of the dialog. More...
 
QDialogButtonBox * myButtonBox
 The button box on the dialog. More...
 
QWidgetmyWidget
 The embedded widget. More...
 

Detailed Description

A generic dialog which houses a single widget.

Can be used to easily provide QDialog functionality to a QWidget and provides a button box which can be set with buttons as needed.

Constructor & Destructor Documentation

DtWidgetDialog::DtWidgetDialog ( QDialogButtonBox::StandardButtons  buttons = QDialogButtonBox::Ok|QDialogButtonBox::Cancel,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

virtual DtWidgetDialog::~DtWidgetDialog ( )
virtual

Destructor.

Member Function Documentation

virtual QPushButton* DtWidgetDialog::addButton ( const QString &  text,
QDialogButtonBox::ButtonRole  role 
)
virtual

Adds a button with customized text to the dialog.

virtual QPushButton* DtWidgetDialog::addButton ( QDialogButtonBox::StandardButton  button)
virtual

Adds a standard button to the dialog.

virtual bool DtWidgetDialog::centerButtons ( ) const
virtual

Centers the buttons in the dialog.

virtual void DtWidgetDialog::enableAccept ( bool  enable)
virtualslot

Enables or disables any buttons with the AcceptRole.

virtual void DtWidgetDialog::enableApply ( bool  enable)
virtualslot

Enables or disables any buttons with the ApplyRole.

virtual void DtWidgetDialog::enableButtonRole ( QDialogButtonBox::ButtonRole  role,
bool  enable 
)
virtualslot

Enables or disables any buttons with the given role.

virtual bool DtWidgetDialog::isAcceptEnabled ( )
virtual

Returns true if there is an accept button enabled.

virtual void DtWidgetDialog::removeButton ( QAbstractButton *  button)
virtual

Removes the given button from the dialog.

virtual void DtWidgetDialog::removeButton ( QDialogButtonBox::StandardButton  button)
virtual

Removes a standard button from the dialog.

virtual void DtWidgetDialog::setWidget ( QWidget widget)
virtual

Embeds the widget in the dialog.

If a widget has already been set, has no effect. Takes ownership of the widget and will delete it when the dialog is destroyed.

Referenced by DtConsoleDialog::DtConsoleDialog().

Member Data Documentation

QDialogButtonBox* DtWidgetDialog::myButtonBox
protected

The button box on the dialog.

QVBoxLayout* DtWidgetDialog::myLayout
protected

The layout of the dialog.

QWidget* DtWidgetDialog::myWidget
protected

The embedded widget.

Referenced by DtConsoleDialog::widget().


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)