![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
#include <CSimpleMainWindowGuiComp.h>
Classes | |
class | CommandsObserver |
Public Types | |
enum | GroupId { GI_SETTINGS = 0x400 } |
enum | ModelId { MI_PREFERENCE_COMMAND = 0x1000 } |
typedef CSimpleMainWindowGuiCompBase | BaseClass |
![]() | |
typedef istdgui::TRestorableGuiWrap< istdgui::TGuiComponentBase< QMainWindow > > | BaseClass |
![]() | |
typedef istdgui::TGuiComponentBase< QMainWindow > | BaseClass |
![]() | |
typedef CGuiComponentBase | BaseClass |
![]() | |
typedef ibase::TVisualChangesHandlerWrap< icomp::CComponentBase > | BaseClass |
![]() | |
typedef icomp::CComponentBase | BaseClass |
Public Member Functions | |
CSimpleMainWindowGuiComp () | |
void | OnTryClose (bool *ignoredPtr=nullptr) override |
Called on trying to close application. | |
![]() | |
TGuiComponentBase () | |
virtual QMainWindow * | GetQtWidget () const |
![]() | |
I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, IVisualStatus, ExtractVisualStatus) | |
I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, istd::IChangeable, ExtractVisualStatus) | |
I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, imod::IModel, ExtractVisualStatus) | |
CGuiComponentBase () | |
bool | IsGuiShown () const |
bool | IsGuiCreated () const override |
Inform if GUI was initilized. | |
QWidget * | GetWidget () const override |
Get access to internal QWidget object. | |
![]() | |
TVisualChangesHandlerWrap (Args &&... args) | |
virtual void | EnableVisualChangesHandler (bool enableLocalization=true) |
If enabled, listen to the language change event from the application context. | |
![]() | |
CComponentBase () | |
Create component and assign it to specific context. | |
CComponentBase (const CComponentBase &)=delete | |
CComponentBase & | operator= (const CComponentBase &)=delete |
virtual const ICompositeComponent * | GetParentComponent (bool ownerOnly=false) const |
Get parent of this component. | |
virtual void * | GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="") |
Get access to specified component interface. | |
virtual const IComponentContext * | GetComponentContext () const |
Get access to component context describing all application-specified component information loaded from components registry. | |
virtual void | SetComponentContext (const IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner) |
Set component context of this component. | |
![]() | |
![]() |
Protected Slots | |
void | OnShowToolbars () |
void | OnFullScreen () |
void | OnAbout () |
void | OnHelpManual () |
void | OnSettings () |
void | OnShowOtherCommandTriggered (bool enabled) |
Protected Member Functions | |
virtual void | UpdateMenuActions () |
virtual void | SetupMainWindowComponents (QMainWindow &mainWindow) |
virtual void | AddMainComponent (int componentIndex, istdgui::IMainWindowComponent &component) |
virtual void | RemoveMainComponent (istdgui::IMainWindowComponent &component) |
virtual void | CreateMenuBar () |
virtual void | UpdateToolbarsVisibility () |
virtual void | SetupMenu () |
virtual std::unique_ptr< QToolBar > | CreateDefaultToolBar () const |
virtual void | UpdateFixedCommands (istdgui::CHierarchicalCommand &fixedCommands) |
virtual void | UpdateViewCommands (istdgui::CHierarchicalCommand &viewCommand) |
virtual void | UpdateToolsCommands (istdgui::CHierarchicalCommand &toolsCommand) |
virtual void | UpdateHelpCommands (istdgui::CHierarchicalCommand &helpCommand) |
virtual void | AppendMenuActions (istdgui::CHierarchicalCommand &menuCommands) |
virtual void | UpdateMainWindowComponentsVisibility () |
Set main window visible or invisible, depending on menu commands. | |
virtual bool | IsMainWindowActive (int index) const |
void | OnRestoreSettings (const QSettings &settings) override |
void | OnSaveSettings (QSettings &settings) const override |
void | OnGuiCreated () override |
Called just after GUI is initialized. | |
void | OnGuiDestroyed () override |
Called just before GUI is released. | |
void | OnRetranslate () override |
Called when non-GUI elements (like commands) should be retranslated. | |
void | OnGuiShown () override |
Called from widget event filter when slave widget is shown. | |
bool | eventFilter (QObject *sourcePtr, QEvent *eventPtr) override |
![]() | |
bool | CreateGui (QWidget *parentPtr) override |
bool | DestroyGui () override |
![]() | |
virtual QWidget * | CreateQtWidget (QWidget *parentPtr) |
Create slave widget object. | |
![]() | |
virtual void | OnGuiHidden () |
Called from widget event filter when slave widget is hidden. | |
virtual bool | OnKeyPressed (QKeyEvent *event) |
Called from widget event filter when key is pressed. | |
virtual void | OnGuiRetranslate () |
Called from widget event filter when GUI should be retranslated. | |
void | SetStatusIcon (const QIcon &icon) |
Set status icon;. | |
void | SetStatusText (const QString &text) |
Set status text;. | |
void | OnLanguageChanged () override |
void | OnDesignSchemaChanged () override |
bool | eventFilter (QObject *sourcePtr, QEvent *eventPtr) override |
void | OnComponentCreated () override |
void | OnComponentDestroyed () override |
![]() | |
![]() | |
bool | IsComponentActive () const |
Check if component is active. | |
virtual const IRealComponentStaticInfo & | GetComponentStaticInfo () const =0 |
Get access to static info of this component. | |
Protected Attributes | |
CommandsObserver | m_commandsObserver |
![]() | |
istd::CMainThreadCaller | m_updateGuiCaller |
imod::TModelWrap< VisualStatus > | m_visualStatus |
Additional Inherited Members | |
![]() | |
static void | MakeAutoSlotConnection (const QWidget &widget, QObject &object) |
![]() | |
static const IRealComponentStaticInfo & | InitStaticInfo (IComponent *componentPtr) |
static QByteArray | GetComponentId (const IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray()) |
Definition at line 82 of file CSimpleMainWindowGuiComp.h.
Definition at line 87 of file CSimpleMainWindowGuiComp.h.
Enumerator | |
---|---|
GI_SETTINGS |
Definition at line 99 of file CSimpleMainWindowGuiComp.h.
Enumerator | |
---|---|
MI_PREFERENCE_COMMAND |
Definition at line 104 of file CSimpleMainWindowGuiComp.h.
istdgui::CSimpleMainWindowGuiComp::CSimpleMainWindowGuiComp | ( | ) |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in idocgui::CMainWindowGuiComp.
|
protectedvirtual |
|
protectedvirtual |
|
overrideprotected |
|
protectedvirtual |
Reimplemented in idocgui::CMainWindowGuiComp.
|
protectedslot |
|
protectedslot |
|
overrideprotectedvirtual |
Called just after GUI is initialized.
Reimplemented from istdgui::CGuiComponentBase.
|
overrideprotectedvirtual |
Called just before GUI is released.
Reimplemented from istdgui::CGuiComponentBase.
|
overrideprotectedvirtual |
Called from widget event filter when slave widget is shown.
Reimplemented from istdgui::CGuiComponentBase.
|
protectedslot |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Called when non-GUI elements (like commands) should be retranslated.
Reimplemented from istdgui::CGuiComponentBase.
|
overrideprotectedvirtual |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
overridevirtual |
Called on trying to close application.
ignoredPtr | if it is not nullptr, ignoring of close is allowed. In this case implementation should set pointed value to true. |
Reimplemented from istdgui::CGuiComponentBase.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in idocgui::CMainWindowGuiComp.
|
protectedvirtual |
|
protectedvirtual |
Set main window visible or invisible, depending on menu commands.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in idocgui::CMainWindowGuiComp.
|
protectedvirtual |
|
protected |
Definition at line 175 of file CSimpleMainWindowGuiComp.h.
© Witold Gantzke and Kirill Lepskiy