Public Types | Public Member Functions | Protected Member Functions | List of all members
iqtgui::CGuiComponentDialog Class Reference

Class to display an ACF GUI component in a dialog. More...

#include <CGuiComponentDialog.h>

Inheritance diagram for iqtgui::CGuiComponentDialog:

Public Types

typedef QDialog BaseClass
 

Public Member Functions

 CGuiComponentDialog (iqtgui::IGuiObject *guiObjectPtr, int buttons=0, bool isModal=true, QWidget *parentWidgetPtr=NULL)
 Construct the component dialog. More...
 
virtual ~CGuiComponentDialog ()
 
void SetDialogGeometry (double screenFactor=0.0, const QPoint *positionPtr=NULL)
 Set initial size and position of the dialog. More...
 
const QDialogButtonBox * GetButtonBoxPtr () const
 Returns the internal button box. More...
 
const iqtgui::IGuiObjectGetGuiPtr () const
 Returns pointer to the connected GUI object. More...
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *eventPtr)
 
virtual void keyPressEvent (QKeyEvent *eventPtr)
 
virtual void showEvent (QShowEvent *eventPtr)
 

Detailed Description

Class to display an ACF GUI component in a dialog.

Definition at line 28 of file CGuiComponentDialog.h.

Member Typedef Documentation

Definition at line 31 of file CGuiComponentDialog.h.

Constructor & Destructor Documentation

iqtgui::CGuiComponentDialog::CGuiComponentDialog ( iqtgui::IGuiObject guiObjectPtr,
int  buttons = 0,
bool  isModal = true,
QWidget *  parentWidgetPtr = NULL 
)

Construct the component dialog.

Parameters
guiObjectPtrPointer to the gui object.
buttonsYou can define some standard buttons for this dialog. Default no buttons are set and the dialog starts only with the "Close" button.
See Also
QDialogButtonBox::StandardButtons
Parameters
isModalcontrols the modality of this dialog.
parentWidgetPtr- parent widget for this dialog. Default is NULL.
virtual iqtgui::CGuiComponentDialog::~CGuiComponentDialog ( )
virtual

Member Function Documentation

virtual void iqtgui::CGuiComponentDialog::closeEvent ( QCloseEvent *  eventPtr)
protectedvirtual
const QDialogButtonBox * iqtgui::CGuiComponentDialog::GetButtonBoxPtr ( ) const
inline

Returns the internal button box.

You can use this function to create your own connections to the signals of the button group.

Definition at line 85 of file CGuiComponentDialog.h.

const iqtgui::IGuiObject * iqtgui::CGuiComponentDialog::GetGuiPtr ( ) const
inline

Returns pointer to the connected GUI object.

Definition at line 91 of file CGuiComponentDialog.h.

virtual void iqtgui::CGuiComponentDialog::keyPressEvent ( QKeyEvent *  eventPtr)
protectedvirtual
void iqtgui::CGuiComponentDialog::SetDialogGeometry ( double  screenFactor = 0.0,
const QPoint *  positionPtr = NULL 
)

Set initial size and position of the dialog.

Parameters
screenFactorSize factor related to the screen size. If the value is smaller or equal 0.0 the default size will be used.
positionPtrPosition of the dialog on the screen. If not set, the dialog will be placed at the center of the screen.
virtual void iqtgui::CGuiComponentDialog::showEvent ( QShowEvent *  eventPtr)
protectedvirtual

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy