CFilePersistenceGuiComp.h
Go to the documentation of this file.
1 #ifndef ifilegui_CFilePersistenceGuiComp_included
2 #define ifilegui_CFilePersistenceGuiComp_included
3 
4 
5 // ACF includes
7 
9 
10 #include <GeneratedFiles/ifilegui/ui_CFilePersistenceGuiComp.h>
11 
12 
13 namespace ifilegui
14 {
15 
16 
17 class CFilePersistenceGuiComp: public iqtgui::TDesignerGuiCompBase<Ui::CFilePersistenceGuiComp>
18 {
19  Q_OBJECT
20 
21 public:
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 
31 protected Q_SLOTS:
32  void on_LoadButton_clicked();
33  void on_SaveButton_clicked();
34 
35 protected:
36  // reimplemented (iqtgui::CGuiComponentBase)
37  void OnGuiCreated();
38 
39 private:
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 #endif // !ifilegui_CFilePersistenceGuiComp_included
50 
51 
Base class for all Qt GUI components, which use the Qt designer's UI.
iqtgui::TDesignerGuiCompBase< Ui::CFilePersistenceGuiComp > BaseClass
void OnGuiCreated()
Called just after GUI is initialized.
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
Interface providing loading and saving of data objects.

© 2007-2017 Witold Gantzke and Kirill Lepskiy