44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
|
|
#include "StdAfx.h"
|
|||
|
|
#include "cwxDOFEventListPanel.h"
|
|||
|
|
#include "ToolData.h"
|
|||
|
|
#include "RTCutSceneRenderer.h"
|
|||
|
|
#include "cwxPropertyPanel.h"
|
|||
|
|
#include "cwxEventTimeLinePanel.h"
|
|||
|
|
|
|||
|
|
|
|||
|
|
BEGIN_EVENT_TABLE( cwxDOFEventListPanel, wxPanel )
|
|||
|
|
EVT_LIST_ITEM_SELECTED( LIST_DOF_ID, cwxDOFEventListPanel::OnSelChangeDOFList )
|
|||
|
|
END_EVENT_TABLE()
|
|||
|
|
|
|||
|
|
|
|||
|
|
cwxDOFEventListPanel::cwxDOFEventListPanel( wxWindow* pParent, wxWindowID id/* = -1 */ ) : CEventPanel( pParent, id )
|
|||
|
|
{
|
|||
|
|
CEventPanel::_Initialize( LIST_DOF_ID, EventInfo::DOF );
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
cwxDOFEventListPanel::~cwxDOFEventListPanel(void)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
void cwxDOFEventListPanel::OnSelChangeDOFList( wxListEvent& ListEvent )
|
|||
|
|
{
|
|||
|
|
// <20><><EFBFBD>õ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>̺<EFBFBD>Ʈ Ÿ<><C5B8> <20><><EFBFBD>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>.
|
|||
|
|
int iSelected = m_pListView->GetNextItem( -1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED );
|
|||
|
|
if( wxNOT_FOUND != iSelected )
|
|||
|
|
{
|
|||
|
|
// <20><><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20>ε<EFBFBD><CEB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ε<EFBFBD><CEB5><EFBFBD><EFBFBD><EFBFBD> <20><>ġ<EFBFBD>Ѵ<EFBFBD>.
|
|||
|
|
const EventInfo* pSelectedEventInfo = TOOL_DATA.GetEventInfoByIndex( EventInfo::DOF, iSelected );
|
|||
|
|
|
|||
|
|
if( pSelectedEventInfo )
|
|||
|
|
{
|
|||
|
|
// <20>̺<EFBFBD>Ʈ Ÿ<>Ӷ<EFBFBD><D3B6>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Ŵ
|
|||
|
|
cwxTLObjectSelectEvent SelectEvent( wxEVT_TIMELINE_OBJECT_SELECT, -1, wxString(wxT("List Select")),
|
|||
|
|
pSelectedEventInfo->iID, CToolData::DOF, 0 );
|
|||
|
|
cwxEventTimeLinePanel* pEventTimeLinePanel = TOOL_DATA.GetEventTLPanel();
|
|||
|
|
pEventTimeLinePanel->OnTLObjectSelect( SelectEvent ); // <20>Ӽ<EFBFBD>â <20><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20>ٲ<EFBFBD>
|
|||
|
|
pEventTimeLinePanel->SelectObject( pSelectedEventInfo->iID, DWORD(pSelectedEventInfo->fStartTime*10.0f) );
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|