6#include <QtCore/QString>
40 I_ASSIGN(m_defaultStatusIconPathAttrPtr,
"DefaultStatusIcon",
"Path of status icon used by default",
false,
"");
41 I_ASSIGN(m_defaultStatusTextAttrPtr,
"DefaultStatusText",
"Status text used by default",
true,
"");
42 I_ASSIGN(m_styleSheetPathAttrPtr,
"StyleSheet",
"Path to the style sheet file used for this UI component.",
false,
"");
43 I_ASSIGN(m_objectIdAttrPtr,
"ObjectId",
"ID of the widget",
false,
"");
44 I_ASSIGN(m_fixedWidthAttrPtr,
"FixedWidth",
"Fixed width of the widget",
false, 300);
45 I_ASSIGN(m_fixedHeightAttrPtr,
"FixedHeight",
"Fixed height of the widget",
false, 300);
54 virtual bool CreateGui(QWidget* parentPtr)
override;
56 virtual QWidget*
GetWidget()
const override;
135 virtual bool eventFilter(QObject* sourcePtr, QEvent* eventPtr)
override;
151 void MakeAutoSlotConnection();
153 I_ATTR(QString, m_defaultStatusIconPathAttrPtr);
155 I_ATTR(QString, m_styleSheetPathAttrPtr);
156 I_ATTR(QByteArray, m_objectIdAttrPtr);
157 I_ATTR(
int, m_fixedWidthAttrPtr);
158 I_ATTR(
int, m_fixedHeightAttrPtr);
160 QWidget* m_widgetPtr;
163 QIcon m_defaultStatusIcon;
166 template <
class InterfaceType>
172 bool m_hasPendingDesignChanges;
Common interface for model objects, that supports Model/Observer design pattern.
This model wrapper provides a simple connection between a concrete istd::IChangeable implementation a...
virtual QString GetStatusText() const override
Get status text.
virtual QIcon GetStatusIcon() const override
Get the icon describing current status.
Base class for classes implementing interface iqtgui::IGuiObject.
virtual bool CreateGui(QWidget *parentPtr) override
Initializes the GUI and connects it to the parent widget.
virtual bool OnKeyPressed(QKeyEvent *event)
Called from widget event filter when key is pressed.
void SetDefaultVisualStatus()
TMakeIconProviderCompWrap< ibase::TLocalizableWrap< icomp::CComponentBase > > BaseClass
virtual void OnTryClose(bool *ignoredPtr=NULL) override
Called when the application is attempting to close.
virtual void OnRetranslate()
Called when non-GUI elements (like commands) should be retranslated.
virtual bool eventFilter(QObject *sourcePtr, QEvent *eventPtr) override
virtual void OnGuiShown()
Called from widget event filter when slave widget is shown.
I_REGISTER_SUBELEMENT_INTERFACE_T(VisualStatus, imod::IModel, ExtractVisualStatus)
virtual QWidget * GetWidget() const override
Gets access to the internal QWidget object.
virtual void OnGuiDestroyed()
Called just before GUI is released.
virtual void OnLanguageChanged() override
void SetStatusIcon(const QIcon &icon)
Set status icon;.
virtual void OnComponentDestroyed() override
imod::TModelWrap< VisualStatus > m_visualStatus
virtual void OnDesignSchemaChanged(const QByteArray &themeId) override
void SetStatusText(const QString &text)
Set status text;.
virtual QWidget * CreateQtWidget(QWidget *parentPtr)=0
Create slave widget object.
virtual bool DestroyGui() override
Releases GUI resources and disconnects from the parent.
virtual void OnGuiRetranslate()
Called from widget event filter when GUI should be retranslated.
virtual void OnGuiCreated()
Called just after GUI is initialized.
virtual void OnGuiDesignChanged()
I_REGISTER_SUBELEMENT_INTERFACE_T(VisualStatus, IVisualStatus, ExtractVisualStatus)
I_REGISTER_SUBELEMENT_INTERFACE_T(VisualStatus, istd::IChangeable, ExtractVisualStatus)
virtual void OnComponentCreated() override
virtual bool IsGuiCreated() const override
Checks if the GUI has been initialized and created.
virtual void OnGuiHidden()
Called from widget event filter when slave widget is hidden.
Common interface for GUI objects used in ACF component context.
Extends standard information provider to provide additional visual informations.
Common interface for data model objects, which can be changed.
#define I_TEXTATTR(member)
Declare translatable text attribute member.
Standard GUI specific interfaces and components based on Qt.