ICF 3.1.1.10
Technical documentation of ICF Libraries
CCommandsMultiplexerComp.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 iqtgui_CCommandsMultiplexerComp_included
7#define iqtgui_CCommandsMultiplexerComp_included
8
9
10// ICF includes
15
16
17namespace istdgui
18{
19
20
25 public QObject,
28 virtual public ibase::ICommandsProvider
29{
30public:
33
34 I_BEGIN_COMPONENT(CCommandsMultiplexerComp);
35 I_REGISTER_INTERFACE(ibase::ICommandsProvider);
36 I_ASSIGN(m_commandSelectionCompPtr, "CommandSelector", "Commands selector", true, "CommandSelector");
37 I_ASSIGN_TO(m_commandSelectionModelCompPtr, m_commandSelectionCompPtr, true);
38 I_ASSIGN_MULTI_0(m_commandProvidersCompPtr, "CommandProviders", "List if underlaying command providers", true);
39 I_ASSIGN_TO(m_commandProviderModelsCompPtr, m_commandProvidersCompPtr, false);
40 I_END_COMPONENT;
41
43
44 // reimpemented (ibase::ICommandsProvider)
46
47protected:
48 // reimplemented (imod::IObserver)
49 void BeforeModelChange(imod::IModel* modelPtr) override;
50 void AfterModelChange(imod::IModel* modelPtr, const istd::IChangeable::ChangeSet& changeSet) override;
51
52 // reimpemented (icomp::CComponentBase)
53 void OnComponentCreated() override;
54 void OnComponentDestroyed() override;
55
56private:
57 I_REF(iprm::ISelectionParam, m_commandSelectionCompPtr);
58 I_REF(imod::IModel, m_commandSelectionModelCompPtr);
59 I_MULTIREF(ibase::ICommandsProvider, m_commandProvidersCompPtr);
60 I_MULTIREF(imod::IModel, m_commandProviderModelsCompPtr);
61};
62
63
64} // namespace istdgui
65
66
67#endif // !iqtgui_CCommandsMultiplexerComp_included
68
69
Interface for a provider of the heriarchical commands.
Base class for component implementation.
Reflects the changes of observed objects as changes of some other object (over istd::IChangeable),...
Common interface for model objects, that supports Model/Observer design pattern.
Definition IModel.h:29
Interface allowing to select single option from list of options.
Set of change flags (its IDs).
Definition IChangeable.h:38
Common interface to define the hierarchical graph structures.
const ibase::IHierarchicalCommand * GetCommands() const override
Get list of menu commands.
void BeforeModelChange(imod::IModel *modelPtr) override
This function will be called before update of the observer contents occures.
void AfterModelChange(imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) override
This function will be called after update of the observer contents occures.
Standard GUI specific interfaces and components based on Qt.

© Witold Gantzke and Kirill Lepskiy