CSplashScreenGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtgui_CSplashScreen_included
2 #define iqtgui_CSplashScreen_included
3 
4 
5 // Qt includes
6 #include <QtCore/QtGlobal>
7 #if QT_VERSION >= 0x050000
8 #include <QtWidgets/QSplashScreen>
9 #else
10 #include <QtGui/QSplashScreen>
11 #endif
12 
13 // ACF includes
14 #include <iattr/TAttribute.h>
15 #include <ibase/IApplicationInfo.h>
17 #include <ilog/IMessageConsumer.h>
18 
19 #include <GeneratedFiles/iqtgui/ui_CSplashScreenGuiComp.h>
20 
21 
22 namespace iqtgui
23 {
24 
25 
31  public TDesignerGuiCompBase<Ui::CSplashScreenGuiComp, QSplashScreen>,
32  virtual public ilog::IMessageConsumer
33 {
34  Q_OBJECT
35 public:
37 
38  I_BEGIN_COMPONENT(CSplashScreenGuiComp);
39  I_REGISTER_INTERFACE(ilog::IMessageConsumer);
40  I_ASSIGN(m_applicationInfoCompPtr, "ApplicationInfo", "Version management for application", false, "Application");
41  I_ASSIGN(m_imagePathAttrPtr, "ImagePath", "Path of image shown as splash screen", true, "Splash.jpg");
42  I_ASSIGN(m_showProductNameAttrPtr, "ShowProductName", "If true, product name will be shown, disable it, if it was painted on background image", true, true);
43  I_ASSIGN(m_showApplicationNameAttrPtr, "ShowApplicationName", "If true, application name will be shown, disable it, if it was painted on background image", true, true);
44  I_ASSIGN(m_showApplicationSubnameAttrPtr, "ShowApplicationSubName", "If true, application subname will be shown, disable it, if it was painted on background image", true, false);
45  I_ASSIGN(m_showProductTypeAttrPtr, "ShowProductType", "Additional product description shown over version info", true, false);
46  I_ASSIGN(m_showLegalCopyrightAttrPtr, "ShowLegalCopyright", "If enabled legal copyrights will be shown", true, true);
47  I_ASSIGN_MULTI_1(m_versionIdsAttrPtr, "VersionIds", "List of version ID's for version information should be displayed", false, 0);
48  I_ASSIGN_MULTI_1(m_versionNamesAttrPtr, "VersionNames", "List of version names will be used as version description", false, "Version");
49  I_END_COMPONENT;
50 
52 
53  // reimplemented (ilog::IMessageConsumer)
54  virtual bool IsMessageSupported(
55  int messageCategory = -1,
56  int messageId = -1,
57  const istd::IInformationProvider* messagePtr = NULL) const;
58  virtual void AddMessage(const MessagePtr& messagePtr);
59 
60 Q_SIGNALS:
61  void EmitAddMessage(const MessagePtr& messagePtr);
62 
63 protected:
64  // reimplemented (iqtgui::CGuiComponentBase)
65  virtual void OnGuiCreated();
66  virtual void OnGuiRetranslate();
67 
68 protected Q_SLOTS:
69  void OnAddMessage(const MessagePtr& messagePtr);
70 
71 private:
72  I_REF(ibase::IApplicationInfo, m_applicationInfoCompPtr);
73  I_ATTR(QString, m_imagePathAttrPtr);
74  I_ATTR(bool, m_showProductNameAttrPtr);
75  I_ATTR(bool, m_showApplicationNameAttrPtr);
76  I_ATTR(bool, m_showApplicationSubnameAttrPtr);
77  I_ATTR(bool, m_showProductTypeAttrPtr);
78  I_ATTR(bool, m_showLegalCopyrightAttrPtr);
79  I_MULTIATTR(int, m_versionIdsAttrPtr);
80  I_MULTITEXTATTR(m_versionNamesAttrPtr);
81 
82  int m_mainVersionId;
83 };
84 
85 
86 } // namespace iqtgui
87 
88 
89 #endif // iqtgui_CSplashScreen_included
90 
91 
Splash screen component.
virtual void AddMessage(const MessagePtr &messagePtr)
Adds a message item to the container.
Base class for all Qt GUI components, which use the Qt designer's UI.
virtual void OnGuiCreated()
Called just after GUI is initialized.
TDesignerGuiCompBase< Ui::CSplashScreenGuiComp, QSplashScreen > BaseClass
Implementation of a smart pointer.
Definition: TSmartPtr.h:24
virtual bool IsMessageSupported(int messageCategory=-1, int messageId=-1, const istd::IInformationProvider *messagePtr=NULL) const
Check if some messge is supported.
This interface provides some information about the application.
#define NULL
Definition: istd.h:64
Common interface for a message container consuming information objects (messages).
Common interface for class providing some basic information object.
void EmitAddMessage(const MessagePtr &messagePtr)
void OnAddMessage(const MessagePtr &messagePtr)
virtual void OnGuiRetranslate()
Called from widget event filter when GUI should be retranslated.

© 2007-2017 Witold Gantzke and Kirill Lepskiy