ADTF
|
Basic IWindow implementation. More...
Public Member Functions | |
QString | GetStateIdentifier () const override |
Returns The user defined window state identifier. 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... | |
QString | GetHelpLink () const override |
Returns a filesystem help link to the windows documentation page. More... | |
![]() | |
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... | |
bool | IsWindowStateEnabled () const |
![]() | |
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... | |
![]() | |
~IWindowState ()=default | |
protected DTOR | |
![]() | |
~IHelp ()=default | |
protected DTOR | |
Private Attributes | |
bool | m_bWindowStateEnabled = false |
State for enabled window state. | |
Additional Inherited Members | |
![]() | |
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
. Additionally it will implement the riddler::IQtXSystem::IWindowState and the spider::IQtXSystem::IHelp interface.
Definition at line 152 of file xsystem_qtwindow.h.
|
inlineprotected |
Enables the Window state callbacks.
We recommend to use this only within your filters CTOR.
Definition at line 197 of file xsystem_qtwindow.h.
References cQtWindow::m_bWindowStateEnabled.
|
inlineoverridevirtual |
Returns a filesystem help link to the windows documentation page.
empty | The link will be ignored. |
not-empty | The filesystem help link to the windows documentation page. |
Implements IQtXSystem::IHelp.
Definition at line 185 of file xsystem_qtwindow.h.
|
inlineoverridevirtual |
Returns The user defined window state identifier.
Implements IQtXSystem::IWindowState.
Definition at line 161 of file xsystem_qtwindow.h.
|
inlineprotected |
true | EnableWindowState was called |
false | EnableWindowState was not called |
Definition at line 206 of file xsystem_qtwindow.h.
References cQtWindow::m_bWindowStateEnabled.
|
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 170 of file xsystem_qtwindow.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 178 of file xsystem_qtwindow.h.