|
ADTF Qt5
|
#include <qtxsystem_intf.h>
Inherited by adtf::ui::v1::cQtWindow.
Public Types | |
| enum | StateFlags : uint32_t { Content = 0x01 , Layout = 0x02 , Interactive = 0x04 } |
| State flags indicating the reason of the call and folder location within OnLoadState and OnSaveState. More... | |
Public Member Functions | |
| virtual QString | GetStateIdentifier () const =0 |
| virtual void | OnLoadState (const QString &strStateFolder, uint32_t ui32LoadStateFlags)=0 |
| virtual void | OnSaveState (const QString &strStateFolder, uint32_t ui32SaveStateFlags) const =0 |
Protected Member Functions | |
| ~IWindowState ()=default | |
| protected DTOR | |
Window state callback interface.
While registering a window with IQtXSystem::CreateWindow you are allowed to use the window creation flag WCF_HasWindowState. The implementation of parameter pWindow must derive by IWindow and IWindowState.
| enum adtf::ui::v1::IQtXSystem::IWindowState::StateFlags : uint32_t |
State flags indicating the reason of the call and folder location within OnLoadState and OnSaveState.
The window state is defined by 2 different parts:
Runlevel changes are always called with both StateFlags::Content and StateFlags::Layout set, while perspective changes are called with StateFlags::Layout calls only. Concrete user interactions to load a state while importing are additionally indicated by StateFlags::Interactive.
|
pure virtual |
Returns The user defined window state identifier.
Implemented in adtf::ui::cQtWindow, and adtf::ui::v1::cQtWindow.
|
pure virtual |
Callback function to load the internal window state from the given folder strStateFolder. We recommend to use QSettings to save and load a UI View Settings file.
| [in] | strStateFolder | The folder to save the UI View Settings files to. |
| [in] | ui32LoadStateFlags | Flags indicating the reason of the call and folder location. Only the StateFlags::Interactive indicates an user interactions with the view. An exception during this interaction will result in a error message box, while all other calls will and only log the tResult error. |
ui32LoadStateFlags. Implemented in adtf::ui::cQtWindow, and adtf::ui::v1::cQtWindow.
|
pure virtual |
Callback function to save the internal window state to the given folder strStateFolder. We recommend to use QSettings to save and load a UI View Settings file.
| [in] | strStateFolder | The folder to save the UI View Settings files to. |
| [in] | ui32SaveStateFlags | Flags indicating the reason of the call and folder location. |
Implemented in adtf::ui::cQtWindow, and adtf::ui::v1::cQtWindow.