ICF 3.1.1.10
Technical documentation of ICF Libraries
CFilePersistenceGuiComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef ifilegui_CFilePersistenceGuiComp_included
7#define ifilegui_CFilePersistenceGuiComp_included
8
9
10// ICF includes
12
14
15#include <GeneratedFiles/ifilegui/ui_CFilePersistenceGuiComp.h>
16
17
18namespace ifilegui
19{
20
21
22class CFilePersistenceGuiComp: public istdgui::TDesignerGuiCompBase<Ui::CFilePersistenceGuiComp>
23{
24 Q_OBJECT
25
26public:
28
29 I_BEGIN_COMPONENT(CFilePersistenceGuiComp);
30 I_ASSIGN(m_objectCompPtr, "Object", "Object will be restored and stored", true, "Object");
31 I_ASSIGN(m_fileLoaderCompPtr, "FileLoader", "File loader used to store and restore object", true, "FileLoader");
32 I_ASSIGN(m_showLoadAttrPtr, "ShowLoad", "Show load button", true, true);
33 I_ASSIGN(m_showSaveAttrPtr, "ShowSave", "Show save button", true, true);
34 I_END_COMPONENT;
35
36protected Q_SLOTS:
39
40protected:
41 // reimplemented (istdgui::CGuiComponentBase)
42 void OnGuiCreated() override;
43
44private:
45 I_REF(istd::IChangeable, m_objectCompPtr);
46 I_REF(ifile::IFilePersistence, m_fileLoaderCompPtr);
47 I_ATTR(bool, m_showLoadAttrPtr);
48 I_ATTR(bool, m_showSaveAttrPtr);
49};
50
51} // namespace ifilegui
52
53
54#endif // !ifilegui_CFilePersistenceGuiComp_included
55
56
Interface providing loading and saving of data objects.
istdgui::TDesignerGuiCompBase< Ui::CFilePersistenceGuiComp > BaseClass
void OnGuiCreated() override
Called just after GUI is initialized.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
Base class for all Qt GUI components, which use the Qt designer's UI.
GUI specific interfaces and components for file system access and representation.

© Witold Gantzke and Kirill Lepskiy