CRegistryPropEditorComp.h
Go to the documentation of this file.
1 #ifndef icmpstr_CRegistryPropEditorComp_included
2 #define icmpstr_CRegistryPropEditorComp_included
3 
4 
5 // ACF includes
6 #include "icomp/IRegistry.h"
11 
12 // ACF-Solutions includes
14 #include "GeneratedFiles/icmpstr/ui_CRegistryPropEditorComp.h"
15 
16 
17 namespace icmpstr
18 {
19 
20 
21 class CRegistryPropEditorComp: public iqtgui::TDesignerGuiObserverCompBase<Ui::CRegistryPropEditorComp, icomp::IRegistry>
22 {
23  Q_OBJECT
24 
25 public:
27 
28  enum ItemType
29  {
32  };
33 
34  enum DataRole
35  {
39  DR_COMPONENT_ID = Qt::UserRole + 1,
40  DR_ITEM_TYPE = Qt::UserRole + 2,
41  DR_EXPORT_ID = Qt::UserRole + 3
42  };
43 
44  I_BEGIN_COMPONENT(CRegistryPropEditorComp);
45  I_ASSIGN(m_consistInfoCompPtr, "ConsistencyInfo", "Allows to check consistency of registries and attributes", false, "ConsistencyInfo");
46  I_ASSIGN(m_envManagerCompPtr, "MetaInfoManager", "Allows access to component meta information", true, "MetaInfoManager");
47  I_ASSIGN_TO(m_envManagerModelCompPtr, m_envManagerCompPtr, false);
48  I_END_COMPONENT;
49 
50 protected:
51  class TextLog:
52  public QString,
53  virtual public ilog::IMessageConsumer
54  {
55  public:
56  // reimplemented (ilog::IMessageConsumer)
57  virtual bool IsMessageSupported(
58  int messageCategory = -1,
59  int messageId = -1,
60  const istd::IInformationProvider* messagePtr = NULL) const;
61  virtual void AddMessage(const MessagePtr& messagePtr);
62  };
63 
64  void CreateOverview();
65 
66  // reimplemented (imod::TGuiObserverWrap)
67  virtual void OnGuiModelAttached();
68  virtual void OnGuiModelDetached();
69  virtual void UpdateGui(int updateFlags = 0);
70 
71  // reimplemented (iqtgui::CGuiComponentBase)
72  virtual void OnGuiCreated();
73 
74 protected Q_SLOTS:
75  void OnUpdateExportsTree();
76  void OnUpdateKeywords();
78  void on_OverviewTree_itemChanged(QTreeWidgetItem* itemPtr, int column);
79 
80 signals:
81  void AfterExportsChanged();
82 
83 private:
84  void UpdateConsistencyStatus(
85  QTreeWidgetItem* exportedtemPtr,
86  const icomp::IRegistry& registry,
87  const QByteArray& componentId,
88  const QByteArray& exportId,
89  ItemType itemType);
90 
91  static QString ConvertToKeyword(const QString& input, const QString& key = QString());
92 
93 private:
94  I_REF(IRegistryConsistInfo, m_consistInfoCompPtr);
95  I_REF(icomp::IComponentEnvironmentManager, m_envManagerCompPtr);
96  I_REF(imod::IModel, m_envManagerModelCompPtr);
97 
98  iqtgui::CCheckableComboBox* m_categoryComboBox;
99 };
100 
101 
102 } // namespace icmpstr
103 
104 
105 #endif // !icmpstr_CRegistryPropEditorComp_included
106 
#define NULL
I_ASSIGN_TO(m_envManagerModelCompPtr, m_envManagerCompPtr, false)
iqtgui::TDesignerGuiObserverCompBase< Ui::CRegistryPropEditorComp, icomp::IRegistry > BaseClass
virtual bool IsMessageSupported(int messageCategory=-1, int messageId=-1, const istd::IInformationProvider *messagePtr=NULL) const
void on_OverviewTree_itemChanged(QTreeWidgetItem *itemPtr, int column)
virtual void UpdateGui(int updateFlags=0)
virtual void AddMessage(const MessagePtr &messagePtr)

© 2007-2011 Witold Gantzke and Kirill Lepskiy