1 // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
6 #include <AssetSystem/AssetEditor.h>
9 class CAbstractDictionaryEntry
;
12 namespace SchematycEd
{
17 } // namespace SchematycEd
21 namespace SchematycEd
{
23 class CMainWindow
: public CAssetEditor
, public IEditorNotifyListener
29 virtual ~CMainWindow();
33 virtual const char* GetEditorName() const override
{ return "Schematyc Editor"; };
34 virtual void CreateDefaultLayout(CDockableContainer
* pSender
) override
;
38 // IEditorNotifyListener
39 virtual void OnEditorNotifyEvent(EEditorNotifyEvent event
) override
{ return; }
40 // ~IEditorNotifyListener
43 virtual bool OnOpenAsset(CAsset
* pAsset
) override
{ return false; }
44 virtual bool OnSaveAsset(CEditableAsset
& editAsset
) override
{ return false; }
45 virtual void OnCloseAsset() override
{ return; }
49 virtual void OnOpenLegacy();
50 virtual void OnOpenLegacyClass(CAbstractDictionaryEntry
& classEntry
);
53 void InitLegacyOpenDlg();
54 void FinishLegacyOpenDlg();
55 void InitGenericWidgets();
56 void FinishGenericWidgets();
58 QWidget
* CreateWidgetTemplateFunc(const char* name
);
61 CLegacyOpenDlg
* m_pLegacyOpenDlg
;
62 QPushButton
* m_pAddComponentButton
;
63 std::vector
<CGenericWidget
*> m_genericWidgets
;
66 } // namespace SchematycEd