1 //#**************************************************************
2 //# filename:             DialogFramesRecording.h
3 //#
4 //# author:               Gerstmayr, Vetyukov
5 //#
6 //# generated:
7 //# description:
8 //# comments:
9 //#
10 //# Copyright (c) 2003-2013 Johannes Gerstmayr, Linz Center of Mechatronics GmbH, Austrian
11 //# Center of Competence in Mechatronics GmbH, Institute of Technical Mechanics at the
12 //# Johannes Kepler Universitaet Linz, Austria. All rights reserved.
13 //#
14 //# This file is part of HotInt.
15 //# HotInt is free software: you can redistribute it and/or modify it under the terms of
16 //# the HOTINT license. See folder 'licenses' for more details.
17 //#
18 //# bug reports are welcome!!!
19 //# WWW:		www.hotint.org
20 //# email:	bug_reports@hotint.org or support@hotint.org
21 //#***************************************************************************************
22 
23 
24 #if !defined(AFX_DIALOGFRAMESRECORDING_H__830C73BC_4C26_41D3_822F_EB2EC1BFC852__INCLUDED_)
25 #define AFX_DIALOGFRAMESRECORDING_H__830C73BC_4C26_41D3_822F_EB2EC1BFC852__INCLUDED_
26 
27 #if _MSC_VER > 1000
28 #pragma once
29 #endif // _MSC_VER > 1000
30 // DialogFramesRecording.h : header file
31 //
32 
33 #include "resource.h"
34 #include "afxwin.h"
35 
36 /////////////////////////////////////////////////////////////////////////////
37 // CDialogFramesRecording dialog
38 
39 class CDialogFramesRecording : public CDialog
40 {
41 	BOOL bCurrentCheckRecordFrames;
42 	void UpdateEnableControls();
43 
44 // Construction
45 public:
46 	CDialogFramesRecording(CWnd* pParent = NULL);   // standard constructor
SetWindowDimensions(const CRect & r)47 	void SetWindowDimensions(const CRect & r)
48 	{
49 		m_nWindowSizeX = r.Width();
50 		m_nWindowSizeY = r.Height();
51 	}
52 
53 	//void Serialize(CArchive & ar); //AD removed 2012-11-09
54 
55 	//convert some internal settings (window position, open dialog windows, etc.) to EDC
56 	virtual void Configuration2EDC(ElementDataContainer& edc);
57 	//convert EDC to some internal settings (window position, open dialog windows, etc.)
58 	virtual void EDC2Configuration(const ElementDataContainer& edc);
59 
60 private:
61 	WCDInterface* pWCDI;
62 
63 public:
SetWCDI(WCDInterface * pWCDI_)64 	void SetWCDI(WCDInterface * pWCDI_) { pWCDI = pWCDI_; }
GetWCDI()65 	WCDInterface* GetWCDI() { return pWCDI; }
66 	virtual void LoadData();  //Get data from WCDinterface
67 	virtual void WriteData(); //Put data to WCDinterface
68 
69 // Dialog Data
70 	//{{AFX_DATA(CDialogFramesRecording)
71 	enum { IDD = IDD_DIALOG_FRAMES_RECORDING };
72 	BOOL m_bCheckRecordFrames;                //B163
73 	//CString	m_strPathToImageFiles;            //T102 // AD: old code - remove this to find all access to the variable
74 	BOOL m_bCheckIncludeOutputWindow;         //B168
75 
76 	CString	m_strPathToSingleImageFiles;      //T111
77   CString m_strSingleImageFileName;					//T112
78 	CString	m_strPathToVideoImageFiles;				//T113
79   CString m_strVideoImageFileName;					//T114
80 	int m_radio_fileformat;                   //format of the saved files
81 
82 	int		m_nRecordEachFrameOf;               //I166
83 	int		m_nWindowSizeX;
84 	int		m_nWindowSizeY;
85 	int		m_nFrameCounter;
86 	BOOL	m_bShowFrameNumbers;                //B165
87 	//BOOL	m_bProcessImage;                    //B164 // AD: no longer needed ? file format is picked via radio contro�l ?
88 	//}}AFX_DATA
89 
90 
91 // Overrides
92 	// ClassWizard generated virtual function overrides
93 	//{{AFX_VIRTUAL(CDialogFramesRecording)
94 	protected:
95 	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
96 	//}}AFX_VIRTUAL
97 
98 // Implementation
99 protected:
100 
101 	// Generated message map functions
102 	//{{AFX_MSG(CDialogFramesRecording)
103 	afx_msg void OnCheckRecordFrames();
104 	virtual BOOL OnInitDialog();
105 	//}}AFX_MSG
106 	DECLARE_MESSAGE_MAP()
107 public:
108 	afx_msg void OnBnClickedOk();
109 	afx_msg void OnBnClickedButtonBrowsesingle();
110 	afx_msg void OnBnClickedButtonBrowsevideo();
111 private:
112 	void OnBrowse(CString& pathstring, const char* title); // returns the full path from the BrowseInfoWindow. CString& version possible...
113 
114 public:
115 	afx_msg void OnBnClickedRadioFormat();
116 };
117 
118 //{{AFX_INSERT_LOCATION}}
119 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
120 
121 #endif // !defined(AFX_DIALOGFRAMESRECORDING_H__830C73BC_4C26_41D3_822F_EB2EC1BFC852__INCLUDED_)
122