29 #include "../../idlib/precompiled.h"
32 #include "../../sys/win32/rc/common_resource.h"
33 #include "../comafx/DialogName.h"
44 static char THIS_FILE[] = __FILE__;
51 if (g_dlgCamera.GetSafeHwnd() ==
NULL) {
54 LONG lSize =
sizeof(rct);
56 g_dlgCamera.SetWindowPos(
NULL, rct.left, rct.top, 0,0, SWP_NOSIZE | SWP_SHOWWINDOW);
60 g_dlgCamera.ShowWindow(SW_SHOW);
84 CDialog::DoDataExchange(pDX);
106 ON_CBN_SELCHANGE(IDC_COMBO_SPLINES, OnSelchangeComboSplines)
108 ON_LBN_DBLCLK(IDC_LIST_EVENTS, OnDblclkListEvents)
112 ON_BN_CLICKED(ID_FILE_NEW, OnFileNew)
113 ON_BN_CLICKED(ID_FILE_OPEN, OnFileOpen)
114 ON_BN_CLICKED(ID_FILE_SAVE, OnFileSave)
129 if (dlg.DoModal() == IDOK) {
130 long n = m_wndSegments.GetScrollPos() / 4 * 1000;
139 if (dlg.DoModal() == IDOK) {
168 g_qeglobals.d_select_mode = (
m_editPoints == 0) ? sel_editpoint : sel_addpoint;
169 g_qeglobals.d_numpoints = 0;
170 g_qeglobals.d_num_move_points = 0;
229 CDialog::OnInitDialog();
237 g_dlgCamera.ShowWindow(SW_HIDE);
238 g_qeglobals.d_select_mode = sel_brush;
250 CDialog::OnDestroy();
266 CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
271 int n = pScrollBar->GetScrollPos();
282 n -= (
float)max * 0.10;
286 n += (
float)max * 0.10;
289 case SB_THUMBPOSITION : {
293 case SB_THUMBTRACK : {
305 pScrollBar->SetScrollPos(n);
331 if (dlg.DoModal() == IDOK) {
340 if (dlg.DoModal() == IDOK) {
366 g_qeglobals.d_select_mode = sel_editpoint;
372 g_qeglobals.d_select_mode = sel_addpoint;
CMainFrame * g_pParentWnd
void WINAPI Sys_UpdateWindows(int nBits)
afx_msg void OnRadioAddPoints()
void showCameraInspector()
afx_msg void OnSelchangeComboSplines()
afx_msg void OnFileOpen()
CONST PIXELFORMATDESCRIPTOR UINT
#define IDC_RADIO_EDITPOINTS2
#define IDC_BTN_DELETEPOINTS
#define IDC_EDIT_TOTALSEGMENTS
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
#define IDC_CHECK_TRACKCAMERA
void addTarget(const char *name, idCameraPosition::positionType type)
afx_msg void OnFileSave()
bool LoadRegistryInfo(const char *pszName, void *pvBuf, long *plSize)
afx_msg void OnDblclkComboSplines()
void addEvent(idCameraEvent::eventType t, const char *param, long time)
void setActiveTarget(int index)
#define IDC_COMBO_SPLINES
afx_msg void OnBtnDeletepoints()
afx_msg void OnRadioEditpoints()
void save(const char *filename)
afx_msg void OnSelchangeListEvents()
afx_msg void OnBtnDeltarget()
#define IDC_EDIT_CAM_NAME
virtual BOOL OnInitDialog()
void setBaseTime(float f)
#define IDC_BTN_SELECTALL
#define IDC_RADIO_EDITPOINTS
#define IDC_BTN_ADDTARGET
bool load(const char *filename)
bool SaveRegistryInfo(const char *pszName, void *pvBuf, long lSize)
void startEdit(bool camera)
idCameraPosition * getActiveTarget()
idCameraEvent * getEvent(int index)
CDlgCamera(CWnd *pParent=NULL)
void setName(const char *p)
#define IDC_SCROLLBAR_SEGMENT
afx_msg void OnDblclkListEvents()
bool getCameraInfo(long time, idVec3 &origin, idVec3 &direction, float *fv)
idCameraDef * g_splineList
afx_msg void OnBtnDelevent()
virtual void DoDataExchange(CDataExchange *pDX)
char * va(const char *fmt,...)
afx_msg void OnTestcamera()
afx_msg void OnBtnSelectall()
afx_msg void OnBtnAddtarget()
idCameraPosition * getPositionObj()