ADTF
|
Implementation template which implements a IQtXSystem::IWindow and a IQtXSystem::IWindowState interface and creates a window on the adtf::ui::riddler::IQtXSystem while initializing. More...
Public Member Functions | |
qt_ui_filter () | |
default CTOR This will register the common property "title" to the filters IConfiguration | |
~qt_ui_filter ()=default | |
DTOR. | |
tResult | Init (typename FILTERBASECLASS::tInitStage eStage) override |
Override init method of the filter. More... | |
tResult | Shutdown (typename FILTERBASECLASS::tInitStage eStage) override |
Override shutdon method of the filter. More... | |
QString | GetStateIdentifier () const override |
Get the State Identifier for the Window State callbacks "OnLoadState" and "OnSaveState". More... | |
void | OnLoadState ([[maybe_unused]] const QString &strStateFolder) override |
Callback function to load the internal window state from the given folder strStateFolder . More... | |
void | OnSaveState ([[maybe_unused]] const QString &strStateFolder) const override |
Callback function to save the internal window state to the given folder strStateFolder . More... | |
Public Member Functions inherited from IQtXSystem::IWindowState | |
virtual void | OnLoadState (const QString &strStateFolder)=0 |
Callback function to load the internal window state from the given folder strStateFolder . More... | |
virtual void | OnSaveState (const QString &strStateFolder) const =0 |
Callback function to save the internal window state to the given folder strStateFolder . More... | |
Protected Member Functions | |
void | EnableWindowState () |
Enables the Window state callbacks. More... | |
Protected Member Functions inherited from cQtWindow | |
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 Member Functions inherited from IQtXSystem::IWindowState | |
~IWindowState ()=default | |
protected DTOR | |
Private Attributes | |
adtf::ucom::object_ptr< adtf::ui::riddler::IQtXSystem > | m_pXSystem |
The XSystem reference. | |
bool | m_bWindowStateEnabled = false |
State for enabled window state. | |
Additional Inherited Members | |
Protected Attributes inherited from cQtWindow | |
adtf::base::property_variable< adtf::util::cString > | m_strTitle |
title property variable will be set while window creating | |
Implementation template which implements a IQtXSystem::IWindow and a IQtXSystem::IWindowState interface and creates a window on the adtf::ui::riddler::IQtXSystem while initializing.
FILTERBASECLASS | a adtf::filter::hollow::cFilter implementation. The Init and Shutdown method will be override. |
Definition at line 124 of file qt_ui_filter.h.
|
inlineprotected |
Enables the Window state callbacks.
We recommend to use this only within your filters CTOR.
Definition at line 210 of file qt_ui_filter.h.
References qt_ui_filter< FILTERBASECLASS >::m_bWindowStateEnabled.
|
inlineoverridevirtual |
Get the State Identifier for the Window State callbacks "OnLoadState" and "OnSaveState".
Implements IQtXSystem::IWindowState.
Definition at line 183 of file qt_ui_filter.h.
References adtf::streaming::ant::get_named_graph_object_full_name().
|
inlineoverride |
Override init method of the filter.
The FILTERBASECLASS
init method will be called. The window is created while adtf::filter::ant::cFilter::tInitStage::StagePostConnect
.
[in] | eStage | current init stage |
Definition at line 144 of file qt_ui_filter.h.
References _runtime, adtf::streaming::ant::get_named_graph_object_full_name(), IRuntime::GetObject(), qt_ui_filter< FILTERBASECLASS >::m_bWindowStateEnabled, qt_ui_filter< FILTERBASECLASS >::m_pXSystem, cQtWindow::m_strTitle, RETURN_IF_FAILED, and RETURN_NOERROR.
|
inlineoverride |
Callback function to load the internal window state from the given folder strStateFolder
.
We recommend to use QSettings to save and load a window state file.
[in] | strStateFolder | The folder to save the window state files to. |
Definition at line 191 of file qt_ui_filter.h.
|
inlineoverride |
Callback function to save the internal window state to the given folder strStateFolder
.
We recommend to use QSettings to save and load a window state file.
[in] | strStateFolder | The folder to save the window state files to. |
Definition at line 199 of file qt_ui_filter.h.
|
inlineoverride |
Override shutdon method of the filter.
The filters shutdown method will be called. The window is destroyed while adtf::filter::ant::cFilter::tInitStage::StagePostConnect
.
[in] | eStage | current shutdown stage |
Definition at line 164 of file qt_ui_filter.h.
References qt_ui_filter< FILTERBASECLASS >::m_pXSystem.