/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "UiAnimViewKeyPropertiesDlg.h" class CUiAnimViewTrackEventKeyUIControls : public CUiAnimViewKeyUIControls { public: CSmartVariableArray mv_table; CSmartVariableEnum mv_event; CSmartVariable mv_value; void OnCreateVars() override; bool SupportTrackType(const CUiAnimParamType& paramType, EUiAnimCurveType trackType, EUiAnimValue valueType) const override; bool OnKeySelectionChange(CUiAnimViewKeyBundle& selectedKeys) override; void OnUIChange(IVariable* pVar, CUiAnimViewKeyBundle& keys) override; unsigned int GetPriority() const override { return 1; } static const GUID& GetClassID() { // {BBF52016-4935-4465-AEA6-62518D0EA499} static const GUID guid = { 0xbbf52016, 0x4935, 0x4465, { 0xae, 0xa6, 0x62, 0x51, 0x8d, 0x0e, 0xa4, 0x99 } }; return guid; } private: void OnEventEdit(); void BuildEventDropDown(QString& curEvent, const QString& addedEvent = ""); QString m_lastEvent; static const char* GetAddEventString() { static const char* addEventString = "Add a new event..."; return addEventString; } };