git mv Code\Sandbox\Editor Code/Editor
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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>
|
||||
Reference in New Issue
Block a user