/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Editor/EditorFramework/Dialogs/AssetProfilesDlg.moc.h
61 строка
2 KB
Ingrater
Clang-format fixes and update to 18.1.1 (#1234)
10 мар 2024, 15:51
Не верифицирован
10 мар 2024, 15:51
2f16acf
Код
Авторство
О чём код?
#pragma once #include <EditorFramework/EditorFrameworkDLL.h> #include <EditorFramework/ui_AssetProfilesDlg.h> #include <Foundation/Containers/Map.h> #include <Foundation/Strings/String.h> #include <QDialog> class ezAssetProfilesDocument; class ezPlatformProfile; class ezQtDocumentTreeView; class ezDocument; struct ezDocumentObjectPropertyEvent; class EZ_EDITORFRAMEWORK_DLL ezQtAssetProfilesDlg : public QDialog, public Ui_ezQtAssetProfilesDlg { public: Q_OBJECT public: ezQtAssetProfilesDlg(QWidget* pParent); ~ezQtAssetProfilesDlg(); ezUInt32 m_uiActiveConfig = 0; private Q_SLOTS: void on_ButtonOk_clicked(); void on_ButtonCancel_clicked(); void OnItemDoubleClicked(QModelIndex idx); void on_AddButton_clicked(); void on_DeleteButton_clicked(); void on_RenameButton_clicked(); void on_SwitchToButton_clicked(); private: struct Binding { enum class State { None, Added, Deleted }; State m_State = State::None; ezPlatformProfile* m_pProfile = nullptr; }; bool DetermineNewProfileName(QWidget* parent, ezString& result); bool CheckProfileNameUniqueness(const char* szName); void AllAssetProfilesToObject(); void PropertyChangedEventHandler(const ezDocumentObjectPropertyEvent& e); void ApplyAllChanges(); ezUuid NativeToObject(ezPlatformProfile* pProfile); void ObjectToNative(ezUuid objectGuid, ezPlatformProfile* pProfile); void SelectionEventHandler(const ezSelectionManagerEvent& e); ezAssetProfilesDocument* m_pDocument; ezMap<ezUuid, Binding> m_ProfileBindings; };