Classes | Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
iqtgui::CSimpleMainWindowGuiComp Class Reference

#include <CSimpleMainWindowGuiComp.h>

Inheritance diagram for iqtgui::CSimpleMainWindowGuiComp:
iqtgui::CSimpleMainWindowGuiCompBase iqtgui::TRestorableGuiWrap< iqtgui::TGuiComponentBase< QMainWindow > > iqtgui::TGuiComponentBase< QMainWindow > iqtgui::CGuiComponentBase ibase::TLocalizableWrap< icomp::CComponentBase > iqtgui::IGuiObject icomp::CComponentBase istd::IPolymorphic icomp::IComponent istd::IPolymorphic iqtdoc::CMainWindowGuiCompBase iqtdoc::CMainWindowGuiComp

Classes

class  CommandsObserver
 

Public Types

enum  GroupId { GI_SETTINGS = 0x400 }
 
enum  ModelId { MI_PREFERENCE_COMMAND = 0x1000 }
 
typedef
CSimpleMainWindowGuiCompBase 
BaseClass
 
- Public Types inherited from iqtgui::CSimpleMainWindowGuiCompBase
typedef
iqtgui::TRestorableGuiWrap
< iqtgui::TGuiComponentBase
< QMainWindow > > 
BaseClass
 
- Public Types inherited from iqtgui::TRestorableGuiWrap< iqtgui::TGuiComponentBase< QMainWindow > >
typedef
iqtgui::TGuiComponentBase
< QMainWindow > 
BaseClass
 
- Public Types inherited from iqtgui::TGuiComponentBase< QMainWindow >
typedef CGuiComponentBase BaseClass
 
- Public Types inherited from iqtgui::CGuiComponentBase
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
typedef icomp::CComponentBase BaseClass
 

Public Member Functions

 CSimpleMainWindowGuiComp ()
 
virtual void OnTryClose (bool *ignoredPtr=NULL)
 Called on trying to close application. More...
 
- Public Member Functions inherited from iqtgui::TGuiComponentBase< QMainWindow >
 TGuiComponentBase ()
 
virtual QMainWindow * GetQtWidget () const
 
virtual QWidget * CreateQtWidget (QWidget *parentPtr)
 Create slave widget object. More...
 
- Public Member Functions inherited from iqtgui::CGuiComponentBase
 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
 
virtual bool IsGuiCreated () const
 Inform if GUI was initilized. More...
 
virtual QWidget * GetWidget () const
 Get access to internal QWidget object. More...
 
- Public Member Functions inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
 TLocalizableWrap ()
 
virtual void EnableLocalization (bool enableLocalization=true)
 If enabled, listen to the language change event from the application context. More...
 
- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context. More...
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component. More...
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface. More...
 
virtual const IComponentContextGetComponentContext () const
 Get access to component context describing all application-specified component information loaded from components registry. More...
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)
 Set component context of this component. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

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, iqtgui::IMainWindowComponent *componentPtr)
 
virtual void RemoveMainComponent (iqtgui::IMainWindowComponent *componentPtr)
 
virtual void CreateMenuBar ()
 
virtual void CreateDefaultToolBar ()
 
virtual void SetToolBarsVisible (bool isVisible=true)
 
virtual void SetupMenu ()
 
virtual void UpdateFixedCommands (iqtgui::CHierarchicalCommand &fixedCommands)
 
virtual void UpdateViewCommands (iqtgui::CHierarchicalCommand &viewCommand)
 
virtual void UpdateToolsCommands (iqtgui::CHierarchicalCommand &toolsCommand)
 
virtual void UpdateHelpCommands (iqtgui::CHierarchicalCommand &helpCommand)
 
virtual void AppendMenuActions (iqtgui::CHierarchicalCommand &menuCommands)
 
virtual void UpdateMainWindowComponentsVisibility ()
 Set main window visible or invisible, depending on menu commands. More...
 
virtual bool IsMainWindowActive (int index) const
 
virtual void OnRestoreSettings (const QSettings &settings)
 
virtual void OnSaveSettings (QSettings &settings) const
 
virtual void OnGuiCreated ()
 Called just after GUI is initialized. More...
 
virtual void OnGuiDestroyed ()
 Called just before GUI is released. More...
 
virtual void OnRetranslate ()
 Called when non-GUI elements (like commands) should be retranslated. More...
 
virtual void OnGuiShown ()
 Called from widget event filter when slave widget is shown. More...
 
virtual bool eventFilter (QObject *sourcePtr, QEvent *eventPtr)
 
- Protected Member Functions inherited from iqtgui::TRestorableGuiWrap< iqtgui::TGuiComponentBase< QMainWindow > >
virtual bool CreateGui (QWidget *parentPtr)
 
virtual bool DestroyGui ()
 
- Protected Member Functions inherited from iqtgui::CGuiComponentBase
virtual void OnGuiHidden ()
 Called from widget event filter when slave widget is hidden. More...
 
virtual bool OnKeyPressed (QKeyEvent *event)
 Called from widget event filter when key is pressed. More...
 
virtual void OnGuiRetranslate ()
 Called from widget event filter when GUI should be retranslated. More...
 
void SetStatusIcon (const QIcon &icon)
 Set status icon;. More...
 
void SetStatusText (const QString &text)
 Set status text;. More...
 
virtual void OnLanguageChanged ()
 
virtual void OnComponentCreated ()
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active. More...
 
virtual void OnComponentDestroyed ()
 
virtual const
icomp::IRealComponentStaticInfo
GetComponentStaticInfo () const =0
 Get access to static info of this component. More...
 

Protected Attributes

CommandsObserver m_commandsObserver
 
- Protected Attributes inherited from iqtgui::CGuiComponentBase
imod::TModelWrap< VisualStatusm_visualStatus
 

Additional Inherited Members

- Static Protected Member Functions inherited from icomp::CComponentBase
static const
icomp::IRealComponentStaticInfo
InitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 

Detailed Description

Definition at line 82 of file CSimpleMainWindowGuiComp.h.

Member Typedef Documentation

Definition at line 87 of file CSimpleMainWindowGuiComp.h.

Member Enumeration Documentation

Enumerator
GI_SETTINGS 

Definition at line 98 of file CSimpleMainWindowGuiComp.h.

Enumerator
MI_PREFERENCE_COMMAND 

Definition at line 103 of file CSimpleMainWindowGuiComp.h.

Constructor & Destructor Documentation

iqtgui::CSimpleMainWindowGuiComp::CSimpleMainWindowGuiComp ( )

Member Function Documentation

virtual void iqtgui::CSimpleMainWindowGuiComp::AddMainComponent ( int  componentIndex,
iqtgui::IMainWindowComponent componentPtr 
)
protectedvirtual
virtual void iqtgui::CSimpleMainWindowGuiComp::AppendMenuActions ( iqtgui::CHierarchicalCommand menuCommands)
protectedvirtual

Reimplemented in iqtdoc::CMainWindowGuiComp.

virtual void iqtgui::CSimpleMainWindowGuiComp::CreateDefaultToolBar ( )
protectedvirtual
virtual void iqtgui::CSimpleMainWindowGuiComp::CreateMenuBar ( )
protectedvirtual
virtual bool iqtgui::CSimpleMainWindowGuiComp::eventFilter ( QObject *  sourcePtr,
QEvent *  eventPtr 
)
protectedvirtual

Reimplemented from iqtgui::CGuiComponentBase.

Reimplemented in iqtdoc::CMainWindowGuiComp.

virtual bool iqtgui::CSimpleMainWindowGuiComp::IsMainWindowActive ( int  index) const
protectedvirtual

Reimplemented in iqtdoc::CMainWindowGuiComp.

void iqtgui::CSimpleMainWindowGuiComp::OnAbout ( )
protectedslot
void iqtgui::CSimpleMainWindowGuiComp::OnFullScreen ( )
protectedslot
virtual void iqtgui::CSimpleMainWindowGuiComp::OnGuiCreated ( )
protectedvirtual

Called just after GUI is initialized.

Reimplemented from iqtgui::CGuiComponentBase.

Reimplemented in iqtdoc::CMainWindowGuiComp.

virtual void iqtgui::CSimpleMainWindowGuiComp::OnGuiDestroyed ( )
protectedvirtual

Called just before GUI is released.

Reimplemented from iqtgui::CGuiComponentBase.

virtual void iqtgui::CSimpleMainWindowGuiComp::OnGuiShown ( )
protectedvirtual

Called from widget event filter when slave widget is shown.

Reimplemented from iqtgui::CGuiComponentBase.

void iqtgui::CSimpleMainWindowGuiComp::OnHelpManual ( )
protectedslot
virtual void iqtgui::CSimpleMainWindowGuiComp::OnRestoreSettings ( const QSettings &  settings)
protectedvirtual
virtual void iqtgui::CSimpleMainWindowGuiComp::OnRetranslate ( )
protectedvirtual

Called when non-GUI elements (like commands) should be retranslated.

Reimplemented from iqtgui::CGuiComponentBase.

Reimplemented in iqtdoc::CMainWindowGuiComp.

virtual void iqtgui::CSimpleMainWindowGuiComp::OnSaveSettings ( QSettings &  settings) const
protectedvirtual
void iqtgui::CSimpleMainWindowGuiComp::OnSettings ( )
protectedslot
void iqtgui::CSimpleMainWindowGuiComp::OnShowOtherCommandTriggered ( bool  enabled)
protectedslot
void iqtgui::CSimpleMainWindowGuiComp::OnShowToolbars ( )
protectedslot
virtual void iqtgui::CSimpleMainWindowGuiComp::OnTryClose ( bool *  ignoredPtr = NULL)
virtual

Called on trying to close application.

Parameters
ignoredPtrif it is not NULL, ignoring of close is allowed. In this case implementation should set pointed value to true.

Reimplemented from iqtgui::CGuiComponentBase.

virtual void iqtgui::CSimpleMainWindowGuiComp::RemoveMainComponent ( iqtgui::IMainWindowComponent componentPtr)
protectedvirtual
virtual void iqtgui::CSimpleMainWindowGuiComp::SetToolBarsVisible ( bool  isVisible = true)
protectedvirtual
virtual void iqtgui::CSimpleMainWindowGuiComp::SetupMainWindowComponents ( QMainWindow &  mainWindow)
protectedvirtual
virtual void iqtgui::CSimpleMainWindowGuiComp::SetupMenu ( )
protectedvirtual
virtual void iqtgui::CSimpleMainWindowGuiComp::UpdateFixedCommands ( iqtgui::CHierarchicalCommand fixedCommands)
protectedvirtual

Reimplemented in iqtdoc::CMainWindowGuiComp.

virtual void iqtgui::CSimpleMainWindowGuiComp::UpdateHelpCommands ( iqtgui::CHierarchicalCommand helpCommand)
protectedvirtual
virtual void iqtgui::CSimpleMainWindowGuiComp::UpdateMainWindowComponentsVisibility ( )
protectedvirtual

Set main window visible or invisible, depending on menu commands.

virtual void iqtgui::CSimpleMainWindowGuiComp::UpdateMenuActions ( )
protectedvirtual
virtual void iqtgui::CSimpleMainWindowGuiComp::UpdateToolsCommands ( iqtgui::CHierarchicalCommand toolsCommand)
protectedvirtual

Reimplemented in iqtdoc::CMainWindowGuiComp.

virtual void iqtgui::CSimpleMainWindowGuiComp::UpdateViewCommands ( iqtgui::CHierarchicalCommand viewCommand)
protectedvirtual

Member Data Documentation

CommandsObserver iqtgui::CSimpleMainWindowGuiComp::m_commandsObserver
protected

Definition at line 173 of file CSimpleMainWindowGuiComp.h.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy