ADTF
|
Basic IWindow implementation. More...
Protected Member Functions | |
cQtWindow ()=default | |
default CTOR | |
virtual | ~cQtWindow ()=default |
default DTOR | |
virtual QWidget * | CreateView ()=0 |
Callback you have to implement and return a newly QWidget which will be embed to the oParentWidget of the Create . More... | |
virtual void | ReleaseView ()=0 |
Callback you have to implement to cleanup while destroying of the parents window. More... | |
tResult | Create (const char *strWindowID, QWidget &oParentWidget) override |
Callback which in called within the applications main th thread to create a window. More... | |
tResult | Destroy (QWidget &) override |
Callback which in called within the applications main th thread to deliver a destroy message to the windows implementation. More... | |
tResult | OnIdle () override |
Callback for actions within a idle thread. More... | |
tResult | OnTimer () override |
Callback for actions within a steady timer. More... | |
Protected Attributes | |
adtf::base::property_variable< adtf::util::cString > | m_strTitle |
title property variable will be set while window creating | |
Additional Inherited Members |
Basic IWindow implementation.
This implementation is used to provide callbacks on creation and destroying widget while IWindow::Create call.
The Create method will call the CreateView
first and embed your created widget to the oParentWidget
.
Definition at line 39 of file xsystem_qtwindow.h.
|
inlineoverrideprotectedvirtual |
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.
[in] | strWindowID | unique ID of the Window. The ID is to manage the different IWindow creations and has to be unique. |
[in] | oParentWidget | parent widget to add you own sub widgets to. |
CreateWindow
call.Implements IQtXSystem::IWindow.
Definition at line 96 of file xsystem_qtwindow.h.
References cQtWindow::CreateView(), cQtWindow::m_strTitle, RETURN_IF_POINTER_NULL, and RETURN_NOERROR.
|
protectedpure virtual |
Callback you have to implement and return a newly QWidget which will be embed to the oParentWidget
of the Create
.
Referenced by cQtWindow::Create().
|
inlineoverrideprotectedvirtual |
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.
[in] | oParentWidget | parent widget about to destroy. |
DestroyWindow
call.Implements IQtXSystem::IWindow.
Definition at line 121 of file xsystem_qtwindow.h.
References cQtWindow::ReleaseView(), and RETURN_NOERROR.
|
inlineoverrideprotectedvirtual |
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().
Implements IQtXSystem::IWindow.
Definition at line 127 of file xsystem_qtwindow.h.
References RETURN_NOERROR.
|
inlineoverrideprotectedvirtual |
Callback for actions within a steady timer.
This function is called at a specific interval from within the GUI thread (default is 50ms).
Implements IQtXSystem::IWindow.
Definition at line 132 of file xsystem_qtwindow.h.
References RETURN_NOERROR.
|
protectedpure virtual |
Callback you have to implement to cleanup while destroying of the parents window.
Referenced by cQtWindow::Destroy().