!B (Sandbox) (CE-21795) Importing models with multisubmaterials via fbx switches...
[CRYENGINE.git] / Code / Sandbox / Plugins / LodGeneratorPlugin / panel / LodGeneratorDialog.h
blob31f0d5727c37a2a43e9e722a334f73d48b9d534e
1 #pragma once
3 #include "EditorFramework/Editor.h"
4 #include "IEditor.h"
6 namespace Ui {
7 class CLodGeneratorDialog;
9 struct IStatObj;
10 struct IMaterial;
12 class CLodGeneratorDialog : public CDockableEditor, public IEditorNotifyListener
14 Q_OBJECT
16 public:
17 explicit CLodGeneratorDialog(QWidget *parent = 0);
18 ~CLodGeneratorDialog();
20 void OnEditorNotifyEvent( EEditorNotifyEvent event ) override;
22 signals:
23 void UpdateObj_Signal(IStatObj * pObj);
24 void UpdateMaterial_Signal(IMaterial* pMaterial);
26 public slots:
27 bool FileOpened();
28 bool OnMaterialChange(const QString& materialPath);
29 void OnTextureSizeChanged(int nWidth, int nHeight);
30 bool OnGenerateMaterial();
31 void OnMaterialGeneratePrepare();
33 private:
34 void Reset(bool value);
35 void ClearLodPanels();
36 void GenerateLodPanels();
37 bool OnSave();
38 bool LoadMaterialHelper(const QString& materialPath);
40 virtual const char* GetEditorName() const override;
42 private:
43 Ui::CLodGeneratorDialog *ui;