|
ADTF Qt5
|
#include <xsystem_qtwindow.h>
Inherits adtf::ui::ant::IQtXSystem::IWindow.
Inherited by adtf::ui::ant::qt_ui_filter< adtf::filter::cDynamicFilter >, adtf::ui::ant::qt_ui_filter< adtf::filter::cFilter >, adtf::ui::ant::qt_ui_service< adtf::system::ant::cADTFService >, adtf::ui::riddler::qt_ui_filter< adtf::filter::cFilter >, adtf::ui::ant::qt_ui_filter< FILTERBASECLASS >, adtf::ui::ant::qt_ui_service< SERVICEBASECLASS >, adtf::ui::riddler::qt_ui_filter< FILTERBASECLASS >, adtf::ui::riddler::qt_ui_service< SERVICEBASECLASS >, adtf::ui::spider::cQtWindow, and adtf::ui::v1::cQtWindow.
Protected Member Functions | |
| cQtWindow ()=default | |
| default CTOR | |
| virtual | ~cQtWindow ()=default |
| default DTOR | |
| virtual QWidget * | CreateView ()=0 |
| virtual void | ReleaseView ()=0 |
| tResult | Create (const char *strWindowID, QWidget &oParentWidget) override |
| Callback which in called within the applications main th thread to create a window. | |
| tResult | Destroy (QWidget &) override |
| Callback which in called within the applications main th thread to deliver a destroy message to the windows implementation. | |
| tResult | OnIdle () override |
| tResult | OnTimer () override |
Protected Attributes | |
| adtf::base::property_variable< adtf::util::cString > | m_strTitle |
| title property variable will be set while window creating | |
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.
|
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 adtf::ui::ant::IQtXSystem::IWindow.
|
protectedpure virtual |
Callback you have to implement and return a newly QWidget which will be embed to the oParentWidget of the 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 adtf::ui::ant::IQtXSystem::IWindow.
|
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 adtf::ui::ant::IQtXSystem::IWindow.
|
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 adtf::ui::ant::IQtXSystem::IWindow.
|
protectedpure virtual |
Callback you have to implement to cleanup while destroying of the parents window.