CTextLogGuiComp.h
Go to the documentation of this file.
1 #ifndef iloggui_CTextLogGuiComp_included
2 #define iloggui_CTextLogGuiComp_included
3 
4 
5 // Qt includes
6 #include <QtGui/QTextTableCell>
7 
8 // ACF includes
10 #include <ilog/CMessage.h>
12 #include <GeneratedFiles/iloggui/ui_CTextLogGuiComp.h>
13 
14 
15 namespace iloggui
16 {
17 
18 
21  Ui::CTextLogGuiComp, ilog::IMessageContainer>
22 {
23  Q_OBJECT
24 
25 public:
27  Ui::CTextLogGuiComp, ilog::IMessageContainer> BaseClass;
28 
29  I_BEGIN_COMPONENT(CTextLogGuiComp);
30  I_ASSIGN_MULTI_0(m_ignoreIdsListAttrPtr, "IgnoreIdsList", "List if message IDs to be ignored", false);
31  I_END_COMPONENT;
32 
33 protected:
34  // reimplemented (iqtgui::TGuiObserverWrap)
35  virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet);
36 
37  // reimplemented (iqtgui::CGuiComponentBase)
38  virtual void OnGuiCreated();
39  virtual void OnGuiRetranslate();
40 
41 private Q_SLOTS:
42  void DoFilter();
43 
44 private:
45  void UpdateFilters();
46  void GenerateDocument(int severityFilter, const QString& sourceFilter, const QString& textFilter);
47  void InsertImage(QTextTableCell cell, const QImage& image);
48  void InsertText(QTextTableCell cell, const QString& text, const QTextTableCellFormat& cellFormat);
49  QIcon GetCategoryIcon(int category) const;
50  QImage GetCategoryImage(int category) const;
51  QString GetCategoryText(int category) const;
52 
53  QTextTableFormat m_tableFormat;
54  QTextTableCellFormat m_okCellFormat;
55 
59  I_MULTIATTR(int, m_ignoreIdsListAttrPtr);
60 };
61 
62 
63 } // namespace iloggui
64 
65 
66 #endif // !iloggui_CTextLogGuiComp_included
67 
virtual void OnGuiRetranslate()
Called from widget event filter when GUI should be retranslated.
virtual void OnGuiCreated()
Called just after GUI is initialized.
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet)
Do update of the GUI to reflect the state of model.
Common interface for a message container.
iqtgui::TDesignerGuiObserverCompBase< Ui::CTextLogGuiComp, ilog::IMessageContainer > BaseClass
Base class for all Qt GUI components.
Set of change flags (its IDs).
Definition: IChangeable.h:30

© 2007-2017 Witold Gantzke and Kirill Lepskiy