ACF $AcfVersion:0$
CFilePersistenceGuiComp.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
7
9
10#include <GeneratedFiles/ifilegui/ui_CFilePersistenceGuiComp.h>
11
12
13namespace ifilegui
14{
15
16
17class CFilePersistenceGuiComp: public iqtgui::TDesignerGuiCompBase<Ui::CFilePersistenceGuiComp>
18{
19 Q_OBJECT
20
21public:
23
24 I_BEGIN_COMPONENT(CFilePersistenceGuiComp);
25 I_ASSIGN(m_objectCompPtr, "Object", "Object will be restored and stored", true, "Object");
26 I_ASSIGN(m_fileLoaderCompPtr, "FileLoader", "File loader used to store and restore object", true, "FileLoader");
27 I_ASSIGN(m_showLoadAttrPtr, "ShowLoad", "Show load button", true, true);
28 I_ASSIGN(m_showSaveAttrPtr, "ShowSave", "Show save button", true, true);
29 I_END_COMPONENT;
30
31protected Q_SLOTS:
34
35protected:
36 // reimplemented (iqtgui::CGuiComponentBase)
37 virtual void OnGuiCreated() override;
38
39private:
40 I_REF(istd::IChangeable, m_objectCompPtr);
41 I_REF(ifile::IFilePersistence, m_fileLoaderCompPtr);
42 I_ATTR(bool, m_showLoadAttrPtr);
43 I_ATTR(bool, m_showSaveAttrPtr);
44};
45
46} // namespace ifilegui
47
48
49
50
Interface providing loading and saving of data objects.
iqtgui::TDesignerGuiCompBase< Ui::CFilePersistenceGuiComp > BaseClass
virtual void OnGuiCreated() override
Called just after GUI is initialized.
Base class for all Qt GUI components, which use the Qt designer's UI.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:28
GUI specific interfaces and components for file system access and representation.