1 // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
7 #include <CrySchematyc2/GUID.h>
9 #include "GenericWidgetModel.h"
11 //////////////////////////////////////////////////////////////////////////
16 class CAbstractDictionary
;
18 //////////////////////////////////////////////////////////////////////////
20 namespace SchematycEd
{
22 class CGenericWidget
: public QWidget
27 template <class T
> struct Unit
;
28 template <class T
> struct Impl
;
32 virtual ~CGenericWidget();
34 void LoadClass(const SGUID
& fileGUID
, const SGUID
& scopeGUID
);
37 static CGenericWidget
* Create();
40 virtual void LoadClassInternal() = 0;
43 QToolBar
* CreateToolBar();
45 void AddCategory(CAbstractDictionary
& category
);
46 void ReloadCategory(CAbstractDictionary
& category
, bool checked
);
52 QBoxLayout
* m_pMainLayout
;
53 QBoxLayout
* m_pBodyLayout
;
54 QGridLayout
* m_pGridLayout
;
55 CDictionaryWidget
* m_pDictionaryWidget
;
59 } //namespace SchematycEd