+++ /dev/null
-/*M///////////////////////////////////////////////////////////////////////////////////////\r
-//\r
-// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.\r
-//\r
-// By downloading, copying, installing or using the software you agree to this license.\r
-// If you do not agree to this license, do not download, install,\r
-// copy or use the software.\r
-//\r
-//\r
-// Intel License Agreement\r
-// For Open Source Computer Vision Library\r
-//\r
-// Copyright (C) 2000, Intel Corporation, all rights reserved.\r
-// Third party copyrights are property of their respective owners.\r
-//\r
-// Redistribution and use in source and binary forms, with or without modification,\r
-// are permitted provided that the following conditions are met:\r
-//\r
-// * Redistribution's of source code must retain the above copyright notice,\r
-// this list of conditions and the following disclaimer.\r
-//\r
-// * Redistribution's in binary form must reproduce the above copyright notice,\r
-// this list of conditions and the following disclaimer in the documentation\r
-// and/or other materials provided with the distribution.\r
-//\r
-// * The name of Intel Corporation may not be used to endorse or promote products\r
-// derived from this software without specific prior written permission.\r
-//\r
-// This software is provided by the copyright holders and contributors "as is" and\r
-// any express or implied warranties, including, but not limited to, the implied\r
-// warranties of merchantability and fitness for a particular purpose are disclaimed.\r
-// In no event shall the Intel Corporation or contributors be liable for any direct,\r
-// indirect, incidental, special, exemplary, or consequential damages\r
-// (including, but not limited to, procurement of substitute goods or services;\r
-// loss of use, data, or profits; or business interruption) however caused\r
-// and on any theory of liability, whether in contract, strict liability,\r
-// or tort (including negligence or otherwise) arising in any way out of\r
-// the use of this software, even if advised of the possibility of such damage.\r
-//\r
-//M*/// PTOffline.cpp : implementation file\r
-//\r
-\r
-#include "stdafx.h"\r
-#include "stereogr.h"\r
-#include "PTOffline.h"\r
-\r
-#ifdef _DEBUG\r
-#define new DEBUG_NEW\r
-#undef THIS_FILE\r
-static char THIS_FILE[] = __FILE__;\r
-#endif\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CPTOffline dialog\r
-\r
-\r
-CPTOffline::CPTOffline(CWnd* pParent /*=NULL*/)\r
- : CDialog(CPTOffline::IDD, pParent)\r
-{\r
- //{{AFX_DATA_INIT(CPTOffline)\r
- m_strValue = _T("");\r
- m_strSaveFile = _T("");\r
- //}}AFX_DATA_INIT\r
-}\r
-\r
-\r
-void CPTOffline::DoDataExchange(CDataExchange* pDX)\r
-{\r
- CDialog::DoDataExchange(pDX);\r
- //{{AFX_DATA_MAP(CPTOffline)\r
- DDX_Text(pDX, IDC_EDITFRAMESCOUNT, m_strValue);\r
- DDX_Text(pDX, IDC_EDITPTSAVEFILE, m_strSaveFile);\r
- //}}AFX_DATA_MAP\r
-}\r
-\r
-\r
-BEGIN_MESSAGE_MAP(CPTOffline, CDialog)\r
- //{{AFX_MSG_MAP(CPTOffline)\r
- ON_BN_CLICKED(IDC_BUTTON_BROWSESAVEFILE, OnButtonBrowsesavefile)\r
- //}}AFX_MSG_MAP\r
-END_MESSAGE_MAP()\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CPTOffline message handlers\r
-\r
-void CPTOffline::SetFramesCount(int count)\r
-{\r
- m_strValue.Format("%d", count);\r
-}\r
-\r
-int CPTOffline::GetFrameCount() const\r
-{\r
- return atoi(LPCTSTR(m_strValue));\r
-}\r
-\r
-BOOL CPTOffline::OnInitDialog() \r
-{\r
- CDialog::OnInitDialog();\r
- \r
- ShowWindow(SW_SHOW) ;\r
- return TRUE; // return TRUE unless you set the focus to a control\r
- // EXCEPTION: OCX Property Pages should return FALSE\r
-}\r
-\r
-void CPTOffline::OnButtonBrowsesavefile() \r
-{\r
-// CFileDialog dlg(TRUE, 0, 0, 0, 0, this);\r
-// if(dlg.DoModal() == IDOK)\r
-// {\r
-// CString fpath = dlg.GetPathName();\r
-// char drive[_MAX_DRIVE];\r
-// char path[_MAX_PATH];\r
-// _splitpath(LPCTSTR(fpath), drive, path, 0, 0);\r
-// m_strSaveFile = CString(drive) + path;\r
-// UpdateData(FALSE);\r
-// }\r
-}\r