44 lines
1.5 KiB
C++
44 lines
1.5 KiB
C++
|
|
#include "StdAfx.h"
|
|||
|
|
#include "cwxPropEventListPanel.h"
|
|||
|
|
#include "ToolData.h"
|
|||
|
|
#include "RTCutSceneRenderer.h"
|
|||
|
|
#include "cwxPropertyPanel.h"
|
|||
|
|
#include "cwxEventTimeLinePanel.h"
|
|||
|
|
|
|||
|
|
|
|||
|
|
BEGIN_EVENT_TABLE( cwxPropEventListPanel, wxPanel )
|
|||
|
|
EVT_LIST_ITEM_SELECTED( LIST_PROP_ID, cwxPropEventListPanel::OnSelChangePropList )
|
|||
|
|
END_EVENT_TABLE()
|
|||
|
|
|
|||
|
|
|
|||
|
|
cwxPropEventListPanel::cwxPropEventListPanel( wxWindow* pParent, wxWindowID id/* = -1 */) : CEventPanel( pParent, id )
|
|||
|
|
{
|
|||
|
|
CEventPanel::_Initialize( LIST_PROP_ID, EventInfo::PROP );
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
cwxPropEventListPanel::~cwxPropEventListPanel(void)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
void cwxPropEventListPanel::OnSelChangePropList( 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::PROP, 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::PROP, 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) );
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|