49 lines
1.6 KiB
C++
49 lines
1.6 KiB
C++
|
|
#include "stdafx.h"
|
|||
|
|
#include "cwxCamEventListPanel.h"
|
|||
|
|
#include "ToolData.h"
|
|||
|
|
#include "RTCutSceneMakerFrame.h"
|
|||
|
|
#include "cwxPropertyPanel.h"
|
|||
|
|
#include "cwxEventTimeLinePanel.h"
|
|||
|
|
|
|||
|
|
|
|||
|
|
BEGIN_EVENT_TABLE( cwxCamEventListPanel, wxPanel )
|
|||
|
|
EVT_LIST_ITEM_SELECTED( LIST_CAMERA_ID, cwxCamEventListPanel::OnSelChangeCameraList )
|
|||
|
|
END_EVENT_TABLE()
|
|||
|
|
|
|||
|
|
|
|||
|
|
cwxCamEventListPanel::cwxCamEventListPanel( wxWindow* pParent, wxWindowID id /* = -1 */ ) : CEventPanel( pParent, id )
|
|||
|
|
{
|
|||
|
|
CEventPanel::_Initialize( LIST_CAMERA_ID, EventInfo::CAMERA );
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
cwxCamEventListPanel::~cwxCamEventListPanel(void)
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
// TODO: <20><><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> ī<><EFBFBD><DEB6><EFBFBD> <20><><EFBFBD>õǸ<C3B5> Property<74><79> ī<><EFBFBD><DEB6><EFBFBD> <20>ٲ<EFBFBD><D9B2><EFBFBD><EFBFBD><EFBFBD> <20>Ѵ<EFBFBD>. <20><EFBFBD><D7B8><EFBFBD> <20><><EFBFBD>콺<EFBFBD><ECBDBA> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>°<EFBFBD> <20>ȴ<EFBFBD>.
|
|||
|
|
void cwxCamEventListPanel::OnSelChangeCameraList( 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::CAMERA, 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::MAX_CAMERA, 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) );
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|