ADTF  3.18.2
IQtXSystem::IWindowabstract

IWindow interface defintion for to. More...

Inheritance diagram for IQtXSystem::IWindow:
[legend]

Public Member Functions

virtual tResult Create (const char *strWindowID, QWidget &oParentWidget)=0
 Callback which in called within the applications main th thread to create a window. More...
 
virtual tResult Destroy (QWidget &oParentWidget)=0
 Callback which in called within the applications main th thread to deliver a destroy message to the windows implementation. More...
 
virtual tResult OnIdle ()=0
 Callback for actions within a idle thread. More...
 
virtual tResult OnTimer ()=0
 Callback for actions within a steady timer. More...
 

Detailed Description

IWindow interface defintion for to.

Definition at line 55 of file qtxsystem_intf.h.

Member Function Documentation

◆ Create()

virtual tResult Create ( const char *  strWindowID,
QWidget &  oParentWidget 
)
pure virtual

Callback which in called within the applications main th thread to create a window.

This Callback is a reaction on a IQtXSystem::CreateWindow call. You are able to initialize your own widget set to pParentWidget and create your display.

Parameters
[in]strWindowIDunique ID of the Window. The ID is to manage the different IWindow creations and has to be unique.
[in]oParentWidgetparent widget to add you own sub widgets to.
Returns
Return a standard result code. If an error is returned the creation of the window breaks and the return value is passed to the CreateWindow call.
See also
IQtXSystem::CreateWindow

Implemented in cQtWindow.

◆ Destroy()

virtual tResult Destroy ( QWidget &  oParentWidget)
pure virtual

Callback which in called within the applications main th thread to deliver a destroy message to the windows implementation.

This Callback is a reaction on a IQtXSystem::DestroyWindow call or any quit of the XSystem and can be used to cleanup. Qt is using reference counting on widget. Added widgets to oParentWidget are invalid after functions return.

Parameters
[in]oParentWidgetparent widget about to destroy.
Returns
Return a standard result code. If an error is returned the return value is passed to the DestroyWindow call.
See also
IQtXSystem::DestroyWindow

Implemented in cQtWindow.

◆ OnIdle()

virtual tResult OnIdle ( )
pure virtual

Callback for actions within a idle thread.

Use this for low priority activity. The default xsystem calls this roughly at a 100ms interval. To update your UI based on input data prefer OnTimer().

Remarks
Make sure to return, otherwise the applications main thread will block.
Returns
Standard Result Code.
See also
cQtWindow

Implemented in cQtWindow.

◆ OnTimer()

virtual tResult OnTimer ( )
pure virtual

Callback for actions within a steady timer.

This function is called at a specific interval from within the GUI thread (default is 50ms).

Remarks
Make sure to return, otherwise the applications main thread will block.
Returns
Standard Result Code.
See also
cQtWindow

Implemented in cQtWindow.