6#ifndef iqtgui_CGuiComponentBase_included
7#define iqtgui_CGuiComponentBase_included
11#include <QtCore/QString>
44 I_ASSIGN(m_defaultStatusIconPathAttrPtr,
"DefaultStatusIcon",
"Path of status icon used by default",
false,
"");
45 I_ASSIGN(m_defaultStatusTextAttrPtr,
"DefaultStatusText",
"Status text used by default",
true,
"");
46 I_ASSIGN(m_styleSheetPathAttrPtr,
"StyleSheet",
"Path to the style sheet file used for this UI component.",
false,
"");
47 I_ASSIGN(m_objectIdAttrPtr,
"WidgetId",
"QT ID of the widget",
false,
"");
48 I_ASSIGN(m_fixedWidthAttrPtr,
"FixedWidth",
"Fixed width of the widget",
false, 300);
49 I_ASSIGN(m_fixedHeightAttrPtr,
"FixedHeight",
"Fixed height of the widget",
false, 300);
149 I_ATTR(QString, m_defaultStatusIconPathAttrPtr);
150 I_TEXTATTR(m_defaultStatusTextAttrPtr);
151 I_ATTR(QString, m_styleSheetPathAttrPtr);
152 I_ATTR(QByteArray, m_objectIdAttrPtr);
153 I_ATTR(
int, m_fixedWidthAttrPtr);
154 I_ATTR(
int, m_fixedHeightAttrPtr);
156 QWidget* m_widgetPtr;
159 QIcon m_defaultStatusIcon;
162 template <
class InterfaceType>
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...
Call some function in main application thread.
Common interface for data model objects, which can be changed.
QIcon GetStatusIcon() const override
Get the icon describing current status.
QString GetStatusText() const override
Get status text.
Base class for classes implementing interface istdgui::IGuiObject.
void SetStatusText(const QString &text)
Set status text;.
void OnTryClose(bool *ignoredPtr=nullptr) override
Called on trying to close application.
virtual void OnGuiCreated()
Called just after GUI is initialized.
imod::TModelWrap< VisualStatus > m_visualStatus
ibase::TVisualChangesHandlerWrap< icomp::CComponentBase > BaseClass
void SetStatusIcon(const QIcon &icon)
Set status icon;.
virtual void OnGuiRetranslate()
Called from widget event filter when GUI should be retranslated.
void OnComponentCreated() override
virtual void OnGuiHidden()
Called from widget event filter when slave widget is hidden.
bool DestroyGui() override
Release GUI and disconnect it from parent.
QWidget * GetWidget() const override
Get access to internal QWidget object.
bool CreateGui(QWidget *parentPtr) override
Initialize GUI and connect it to the parent.
static void MakeAutoSlotConnection(const QWidget &widget, QObject &object)
virtual void OnRetranslate()
Called when non-GUI elements (like commands) should be retranslated.
virtual QWidget * CreateQtWidget(QWidget *parentPtr)=0
Create slave widget object.
bool IsGuiCreated() const override
Inform if GUI was initilized.
void OnComponentDestroyed() override
virtual bool OnKeyPressed(QKeyEvent *event)
Called from widget event filter when key is pressed.
virtual void OnGuiDestroyed()
Called just before GUI is released.
bool eventFilter(QObject *sourcePtr, QEvent *eventPtr) override
void OnLanguageChanged() override
istd::CMainThreadCaller m_updateGuiCaller
virtual void OnGuiShown()
Called from widget event filter when slave widget is shown.
void OnDesignSchemaChanged() override
Common interface for GUI objects using in component context.
Extends standard information provider to provide additional visual informations.
Standard GUI specific interfaces and components based on Qt.