ICF 3.1.1.10
Technical documentation of ICF Libraries
CPatternTeachingControllerGuiComp.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 iqtipr_CPatternTeachingControllerGuiComp_included
7#define iqtipr_CPatternTeachingControllerGuiComp_included
8
9
10// ICF includes
13
14#include <GeneratedFiles/iiprgui/ui_CPatternTeachingControllerGuiComp.h>
15
16
17namespace iiprgui
18{
19
20
23 Ui::CPatternTeachingControllerGuiComp,
24 iipr::IPatternController>
25{
26 Q_OBJECT
27public:
29 Ui::CPatternTeachingControllerGuiComp,
31
32 I_BEGIN_COMPONENT(CPatternTeachingControllerGuiComp);
33 I_ASSIGN(m_patternEditorCompPtr, "PatternEditor", "Pattern editor", false, "PatternEditor");
34 I_ASSIGN_TO(m_patternEditorObserverCompPtr, m_patternEditorCompPtr, false);
35 I_ASSIGN(m_patternViewCompPtr, "PatternView", "GUI representing learned pattern", false, "PatternView");
36 I_ASSIGN(m_patternViewObserverCompPtr, "PatternObserver", "Pattern GUI observer", false, "PatternObserver");
37 I_END_COMPONENT;
38
39protected Q_SLOTS:
43
44protected:
45 // reimplemented (istdgui::TGuiObserverWrap)
46 void UpdateGui(const istd::IChangeable::ChangeSet& changeSet) override;
47
48 // reimplemented (ibase::CGuiObjectBase)
49 void OnGuiCreated() override;
50 void OnGuiDestroyed() override;
51 void OnGuiRetranslate() override;
52
53private:
54 I_REF(istdgui::IGuiObject, m_patternEditorCompPtr);
55 I_REF(imod::IObserver, m_patternEditorObserverCompPtr);
56
57 I_REF(istdgui::IGuiObject, m_patternViewCompPtr);
58 I_REF(imod::IObserver, m_patternViewObserverCompPtr);
59};
60
61
62} // namespace iiprgui
63
64
65#endif // !iqtipr_CPatternTeachingControllerGuiComp_included
66
67
void OnGuiRetranslate() override
Called from widget event filter when GUI should be retranslated.
istdgui::TDesignerGuiObserverCompBase< Ui::CPatternTeachingControllerGuiComp, iipr::IPatternController > BaseClass
void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
void OnGuiDestroyed() override
Called just before GUI is released.
void OnGuiCreated() override
Called just after GUI is initialized.
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Definition IObserver.h:30
Set of change flags (its IDs).
Definition IChangeable.h:38
Common interface for GUI objects using in component context.
Definition IGuiObject.h:27
Base class for all Qt GUI components.
This package contains Qt based implementations of image processing components.

© Witold Gantzke and Kirill Lepskiy