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/Code/Sandbox/Editor/SelectSequenceDialog.cpp

46 lines
1.1 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "EditorDefs.h"
#include "SelectSequenceDialog.h"
// CSelectSequence dialog
//////////////////////////////////////////////////////////////////////////
CSelectSequenceDialog::CSelectSequenceDialog(QWidget* pParent)
: CGenericSelectItemDialog(pParent)
{
setWindowTitle(tr("Select Sequence"));
}
//////////////////////////////////////////////////////////////////////////
/* virtual */ void
CSelectSequenceDialog::OnInitDialog()
{
SetMode(eMODE_LIST);
CGenericSelectItemDialog::OnInitDialog();
}
//////////////////////////////////////////////////////////////////////////
/* virtual */ void
CSelectSequenceDialog::GetItems(std::vector<SItem>& outItems)
{
IMovieSystem* pMovieSys = GetIEditor()->GetMovieSystem();
for (int i = 0; i < pMovieSys->GetNumSequences(); ++i)
{
IAnimSequence* pSeq = pMovieSys->GetSequence(i);
SItem item;
string fullname = pSeq->GetName();
item.name = fullname.c_str();
outItems.push_back(item);
}
}
#include <moc_SelectSequenceDialog.cpp>