32 template<
typename FILTERBASECLASS>
43 m_strTitle.SetDescription(
"Window title which will be used at runtime within Qt5 ADTF XSystem UI Service.");
44 FILTERBASECLASS::RegisterPropertyVariable(
"title",
m_strTitle);
55 tResult Init(
typename FILTERBASECLASS::tInitStage eStage)
override
58 if (eStage == FILTERBASECLASS::tInitStage::StagePostConnect)
62 if (strTitle.IsEmpty())
78 if (eStage == FILTERBASECLASS::tInitStage::StagePostConnect)
85 return (FILTERBASECLASS::Shutdown(eStage));
123 template<
typename FILTERBASECLASS>
133 m_strTitle.SetDescription(
"Window title which will be used at runtime within Qt5 ADTF XSystem UI Service.");
134 FILTERBASECLASS::RegisterPropertyVariable(
"title",
m_strTitle);
144 tResult Init(
typename FILTERBASECLASS::tInitStage eStage)
override
147 if (eStage == FILTERBASECLASS::tInitStage::StagePostConnect)
151 if (strTitle.IsEmpty())
155 const uint32_t ui32Flags =
m_bWindowStateEnabled ? IQtXSystem::eWindowCreationFlags::WCF_HasWindowState :
156 IQtXSystem::eWindowCreationFlags::WCF_None;
166 if (eStage == FILTERBASECLASS::tInitStage::StagePostConnect)
173 return (FILTERBASECLASS::Shutdown(eStage));
255 template<
typename FILTERBASECLASS,
typename QTWINDOWBASECLASS = sp
ider::cQtWindow>
257 public QTWINDOWBASECLASS
264 QTWINDOWBASECLASS::m_strTitle.SetDescription(
265 "Window title which will be used at runtime within Qt5 ADTF XSystem UI Service.");
266 FILTERBASECLASS::RegisterPropertyVariable(
"title", QTWINDOWBASECLASS::m_strTitle);
276 tResult Init(
typename FILTERBASECLASS::tInitStage eStage)
override
279 if (eStage == FILTERBASECLASS::tInitStage::StagePostConnect)
282 if ((*QTWINDOWBASECLASS::m_strTitle).IsEmpty())
286 const uint32_t ui32Flags = QTWINDOWBASECLASS::IsWindowStateEnabled() ?
287 IQtXSystem::eWindowCreationFlags::WCF_HasWindowState :
288 IQtXSystem::eWindowCreationFlags::WCF_None;
298 if (eStage == FILTERBASECLASS::tInitStage::StagePostConnect)
305 return (FILTERBASECLASS::Shutdown(eStage));
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
#define RETURN_IF_FAILED(s)
Return if expression is failed, which requires the calling function's return type to be tResult.
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
A common result class usable as return value throughout.
ucom Interface to a objects configuration.
virtual tResult GetObject(iobject_ptr< IObject > &pObject, const char *strNameOID) const =0
Get registered object from object registry.
Object pointer implementation used for reference counting on objects of type IObject.
Basic IWindow implementation.
adtf::base::property_variable< adtf::util::cString > m_strTitle
title property variable will be set while window creating
Implemenation template which implements an IWindow interface and creates windows on a IQtXSystem wh...
adtf::ucom::object_ptr< adtf::ui::ant::IQtXSystem > m_pXSystem
The XSystem reference.
tResult Init(typename FILTERBASECLASS::tInitStage eStage) override
Override init method of the filter.
~qt_ui_filter()=default
DTOR.
tResult Shutdown(typename FILTERBASECLASS::tInitStage eStage) override
Override shutdon method of the filter.
qt_ui_filter()
default CTOR This will register the common property "title" to the filters IConfiguration
Window state callback interface.
Implementation template which implements a IQtXSystem::IWindow and a IQtXSystem::IWindowState interfa...
void OnSaveState([[maybe_unused]] const QString &strStateFolder) const override
Callback function to save the internal window state to the given folder strStateFolder.
adtf::ucom::object_ptr< adtf::ui::riddler::IQtXSystem > m_pXSystem
The XSystem reference.
bool m_bWindowStateEnabled
State for enabled window state.
QString GetStateIdentifier() const override
Get the State Identifier for the Window State callbacks "OnLoadState" and "OnSaveState".
void OnLoadState([[maybe_unused]] const QString &strStateFolder) override
Callback function to load the internal window state from the given folder strStateFolder.
tResult Init(typename FILTERBASECLASS::tInitStage eStage) override
Override init method of the filter.
void EnableWindowState()
Enables the Window state callbacks.
~qt_ui_filter()=default
DTOR.
tResult Shutdown(typename FILTERBASECLASS::tInitStage eStage) override
Override shutdon method of the filter.
qt_ui_filter()
default CTOR This will register the common property "title" to the filters IConfiguration
Implementation template which implements a filter that derives from.
adtf::ucom::object_ptr< adtf::ui::spider::IQtXSystem > m_pXSystem
The XSystem reference.
QString GetStateIdentifier() const
Get the State Identifier for the Window State callbacks "OnLoadState" and "OnSaveState".
tResult Init(typename FILTERBASECLASS::tInitStage eStage) override
Override init method of the filter.
~qt_ui_filter()=default
DTOR.
QString GetHelpLink() const
Returns a filesystem help link to the windows documentation page.
tResult Shutdown(typename FILTERBASECLASS::tInitStage eStage) override
Override shutdon method of the filter.
qt_ui_filter()
default CTOR This will register the common property "title" to the filters IConfiguration
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
void maybe_unused(T &&)
Mimics C++17 attribute maybe_unused to silence compiler warnings on potentially unused enitities.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
adtf_util::cString get_named_graph_object_full_name(const INamedGraphObject &oGraphObject)
Helper function to retrieve a full qualified unique name of an object registered in IFilterGraph.
std::string get_help_link(base::ant::IConfiguration &oConfig)
Get the link to the corresponding help/documentation set by hollow::set_help_link.
ant::qt_ui_filter< adtf::filter::flash::cFilter > cQtUIFilter
Basic UI Filter implementation.
riddler::qt_ui_filter< adtf::filter::hollow::cFilter > cQtUIFilter
Basic UI Filter implementation.
qt_ui_filter< adtf::filter::hollow::cFilter, cQtWindow > cQtUIFilter
Basic UI Filter implementation.
Namespace for entire ADTF SDK.
adtf::ucom::IRuntime * _runtime
Global Runtime Pointer to reference to the current runtime.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.