6#include <QtCore/QProcess>
7#include <QtCore/QPointer>
10#include <imod/TSingleModelObserverBase.h>
11#include <icomp/CComponentBase.h>
12#include <ibase/ICommandsProvider.h>
13#include <ifile/IFileNameParam.h>
14#include <iqtgui/IIconProvider.h>
15#include <iqtgui/TMakeIconProviderCompWrap.h>
16#include <iqtgui/TDesignSchemaHandlerWrap.h>
17#include <iqtgui/CHierarchicalCommand.h>
18#include <ibase/TLocalizableWrap.h>
19#include <iqtgui/IGuiObject.h>
31 public iqtgui::TMakeIconProviderCompWrap<
32 ibase::TLocalizableWrap<icomp::CComponentBase>>,
33 virtual public ibase::ICommandsProvider
37 typedef iqtgui::TMakeIconProviderCompWrap<ibase::TLocalizableWrap<icomp::CComponentBase>> BaseClass;
38 typedef QObject BaseClass2;
41 I_REGISTER_INTERFACE(ibase::ICommandsProvider);
42 I_ASSIGN(m_actionIconScreenOnAttrPtr,
"ActionFullScreenOnIcon",
"Icon screen on used command menu",
true,
":/Icons/FullScreenOnNormal");
43 I_ASSIGN(m_actionIconScreenOffAttrPtr,
"ActionFullScreenOffIcon",
"Icon screen off used command menu",
true,
":/Icons/FullScreenOffNormal");
44 I_ASSIGN(m_menuNameAttrPtr,
"MenuName",
"Name of the menu for the action group",
true,
"View");
45 I_ASSIGN(m_menuDescriptionOnAttrPtr,
"MenuDescriptionOn",
"Description for the full screen On",
true,
"Switch to fullscreen mode");
46 I_ASSIGN(m_menuDescriptionOffAttrPtr,
"MenuDescriptionOff",
"Description for the full screen Off",
true,
"Switch to normal view mode");
47 I_ASSIGN(m_rootMenuNameAttrPtr,
"RootMenu",
"Name of the root command",
true,
"");
48 I_ASSIGN(m_guiObjectCompPtr,
"GuiObject",
"Any of the gui object",
true,
"GuiObject");
54 virtual bool eventFilter(QObject* watchedPtr, QEvent* eventPtr)
override;
57 virtual const ibase::IHierarchicalCommand* GetCommands()
const override;
60 virtual void OnComponentCreated()
override;
63 Q_REQUIRED_RESULT
virtual bool CheckIsFullScreen()
const;
64 Q_REQUIRED_RESULT
virtual QWidget* GetMainWidget(QWidget* fromWidgetPtr =
nullptr)
const;
65 virtual void UpdateVisualStatus();
68 virtual void OnDesignSchemaChanged(
const QByteArray& themeId)
override;
71 virtual void OnLanguageChanged()
override;
74 void OnCommandActivated();
77 I_ATTR(QByteArray, m_actionIconScreenOnAttrPtr);
78 I_ATTR(QByteArray, m_actionIconScreenOffAttrPtr);
79 I_TEXTATTR(m_menuNameAttrPtr);
80 I_TEXTATTR(m_menuDescriptionOnAttrPtr);
81 I_TEXTATTR(m_menuDescriptionOffAttrPtr);
82 I_TEXTATTR(m_rootMenuNameAttrPtr);
83 I_REF(iqtgui::IGuiObject, m_guiObjectCompPtr);
85 iqtgui::CHierarchicalCommand m_rootMenuCommand;
86 iqtgui::CHierarchicalCommand m_mainMenuCommand;
87 iqtgui::CHierarchicalCommand m_switchCommand;
89 mutable QPointer<QWidget> m_mainWidgetPtr;
91 Qt::WindowStates m_mainWidgetLastState;