ICF 3.0.5.47
Technical documentation of ICF Libraries
istdgui::CGuiComponentDialog Class Reference

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

#include <CGuiComponentDialog.h>

Inherits QDialog.

Collaboration diagram for istdgui::CGuiComponentDialog:

Public Types

typedef QDialog BaseClass
 

Public Member Functions

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

Protected Member Functions

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

Detailed Description

Class to display an ICF GUI component in a dialog.

Definition at line 28 of file CGuiComponentDialog.h.

Member Typedef Documentation

◆ BaseClass

Constructor & Destructor Documentation

◆ CGuiComponentDialog()

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

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 nullptr.

◆ ~CGuiComponentDialog()

virtual istdgui::CGuiComponentDialog::~CGuiComponentDialog ( )
virtual

Member Function Documentation

◆ closeEvent()

virtual void istdgui::CGuiComponentDialog::closeEvent ( QCloseEvent * eventPtr)
protectedvirtual

◆ GetButtonBoxPtr()

const QDialogButtonBox * istdgui::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.

◆ GetGuiPtr()

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

Returns pointer to the connected GUI object.

Definition at line 91 of file CGuiComponentDialog.h.

◆ keyPressEvent()

virtual void istdgui::CGuiComponentDialog::keyPressEvent ( QKeyEvent * eventPtr)
protectedvirtual

◆ SetDialogGeometry()

void istdgui::CGuiComponentDialog::SetDialogGeometry ( double screenFactor = 0.0,
const QPoint * positionPtr = nullptr )

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.

◆ showEvent()

virtual void istdgui::CGuiComponentDialog::showEvent ( QShowEvent * eventPtr)
protectedvirtual

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

© Witold Gantzke and Kirill Lepskiy