ICF 3.1.1.10
Technical documentation of ICF Libraries
CDataSequenceSupplierResultsViewComp.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 iqtmeas_CDataSequenceSupplierResultsViewComp_included
7#define iqtmeas_CDataSequenceSupplierResultsViewComp_included
8
9
10// Qt includes
11#include <QtCore/QtGlobal>
12#include <QtWidgets/QVBoxLayout>
13
14// ICF includes
19
20
21namespace imeasgui
22{
23
24
27 istdgui::TGuiComponentBase<QWidget>,
28 imod::TSingleModelObserverBase<imeas::IDataSequenceProvider> >
29{
30public:
34
35 I_BEGIN_COMPONENT(CDataSequenceSupplierResultsViewComp);
36 I_REGISTER_INTERFACE(imod::IObserver);
37 I_REGISTER_INTERFACE(imod::IModelEditor);
38 I_ASSIGN(m_resultsGuiCompPtr, "ResultsGui", "GUI for the supplier's results", true, "ResultsGui");
39 I_ASSIGN_TO(m_resultsObserverCompPtr, m_resultsGuiCompPtr, true);
40 I_END_COMPONENT;
41
42
43protected:
44 // reimplemented (istdgui::TGuiObserverWrap)
45 void UpdateGui(const istd::IChangeable::ChangeSet& changeSet) override;
46
47 // reimplemented (istdgui::CGuiComponentBase)
48 void OnGuiCreated() override;
49 void OnGuiDestroyed() override;
50
51private:
52 I_REF(istdgui::IGuiObject, m_resultsGuiCompPtr);
53 I_REF(imod::IObserver, m_resultsObserverCompPtr);
54};
55
56
57} // namespace imeasgui
58
59
60#endif // !iqtmeas_CDataSequenceSupplierResultsViewComp_included
61
62
void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
Do update of the GUI to reflect the state of model.
void OnGuiDestroyed() override
Called just before GUI is released.
istdgui::TGuiObserverWrap< istdgui::TGuiComponentBase< QWidget >, imod::TSingleModelObserverBase< imeas::IDataSequenceProvider > > BaseClass
void OnGuiCreated() override
Called just after GUI is initialized.
Common interface for an model editor.
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Definition IObserver.h:30
Basic implementation for a single model observer with binding to concrete data object interface.
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 componentes.
Join functionality of istdgui::IGuiObject interface and imod::IObserver.
This package contains Qt based implementations of measurement components.

© Witold Gantzke and Kirill Lepskiy