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.
46 lines
1.2 KiB
C++
46 lines
1.2 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 "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>
|