You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/LyShine/Code/Editor/Animation/UiAVTrackEventKeyUIControls.h

51 lines
1.4 KiB
C++

/*
* 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<QString> mv_event;
CSmartVariable<QString> 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;
}
};