Move the sources to trunk
[opencv] / apps / HMMDemo / InfoDialogs.h
1 /*M///////////////////////////////////////////////////////////////////////////////////////
2 //
3 //  IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4 //
5 //  By downloading, copying, installing or using the software you agree to this license.
6 //  If you do not agree to this license, do not download, install,
7 //  copy or use the software.
8 //
9 //
10 //                        Intel License Agreement
11 //                For Open Source Computer Vision Library
12 //
13 // Copyright (C) 2000, Intel Corporation, all rights reserved.
14 // Third party copyrights are property of their respective owners.
15 //
16 // Redistribution and use in source and binary forms, with or without modification,
17 // are permitted provided that the following conditions are met:
18 //
19 //   * Redistribution's of source code must retain the above copyright notice,
20 //     this list of conditions and the following disclaimer.
21 //
22 //   * Redistribution's in binary form must reproduce the above copyright notice,
23 //     this list of conditions and the following disclaimer in the documentation
24 //     and/or other materials provided with the distribution.
25 //
26 //   * The name of Intel Corporation may not be used to endorse or promote products
27 //     derived from this software without specific prior written permission.
28 //
29 // This software is provided by the copyright holders and contributors "as is" and
30 // any express or implied warranties, including, but not limited to, the implied
31 // warranties of merchantability and fitness for a particular purpose are disclaimed.
32 // In no event shall the Intel Corporation or contributors be liable for any direct,
33 // indirect, incidental, special, exemplary, or consequential damages
34 // (including, but not limited to, procurement of substitute goods or services;
35 // loss of use, data, or profits; or business interruption) however caused
36 // and on any theory of liability, whether in contract, strict liability,
37 // or tort (including negligence or otherwise) arising in any way out of
38 // the use of this software, even if advised of the possibility of such damage.
39 //
40 //M*/#if !defined(AFX_INFODIALOGS_H__146316CB_C652_4BC3_B237_7154C045B1F2__INCLUDED_)
41 #define AFX_INFODIALOGS_H__146316CB_C652_4BC3_B237_7154C045B1F2__INCLUDED_
42
43 #if _MSC_VER > 1000
44 #pragma once
45 #endif // _MSC_VER > 1000
46 // InfoDialogs.h : header file
47 //
48
49 #include "FaceBase.h"
50
51 /////////////////////////////////////////////////////////////////////////////
52 // CPersonName dialog
53
54 class CPersonName : public CDialog
55 {
56 // Construction
57 public:
58     CPersonName( CFaceBase& base, CWnd* pParent = NULL );   // standard constructor
59     CString GetPersonName() { return m_person_name; }
60
61 // Dialog Data
62     //{{AFX_DATA(CPersonName)
63     enum { IDD = IDD_PERSON_NAME };
64     // NOTE: the ClassWizard will add data members here
65     //}}AFX_DATA
66
67
68 // Overrides
69     // ClassWizard generated virtual function overrides
70     //{{AFX_VIRTUAL(CPersonName)
71     protected:
72     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
73     //}}AFX_VIRTUAL
74
75 // Implementation
76 protected:
77
78     CString    m_person_name;
79     CFaceBase& m_base;
80
81     // Generated message map functions
82     //{{AFX_MSG(CPersonName)
83         virtual BOOL OnInitDialog();
84         virtual void OnOK();
85         //}}AFX_MSG
86     DECLARE_MESSAGE_MAP()
87 };
88
89 /////////////////////////////////////////////////////////////////////////////
90 // CBaseInfo dialog
91
92 class CBaseInfo : public CDialog
93 {
94 // Construction
95 public:
96         CBaseInfo( CFaceBase& base, CWnd* pParent = NULL);   // standard constructor
97     CString  GetFileName() { return m_filename; };
98     CString  GetBaseName() { return m_basename; };
99
100 // Dialog Data
101         //{{AFX_DATA(CBaseInfo)
102         enum { IDD = IDD_BASEPARAMS };
103                 // NOTE: the ClassWizard will add data members here
104         //}}AFX_DATA
105
106
107 // Overrides
108         // ClassWizard generated virtual function overrides
109         //{{AFX_VIRTUAL(CBaseInfo)
110         protected:
111         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
112         //}}AFX_VIRTUAL
113
114 // Implementation
115 protected:
116
117     CFaceBase& m_base;
118     CString  m_filename;
119     CString  m_basename;
120
121         // Generated message map functions
122         //{{AFX_MSG(CBaseInfo)
123         virtual BOOL OnInitDialog();
124         afx_msg void OnBrowse();
125         virtual void OnOK();
126         //}}AFX_MSG
127         DECLARE_MESSAGE_MAP()
128 };
129 //{{AFX_INSERT_LOCATION}}
130 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
131
132 #endif // !defined(AFX_INFODIALOGS_H__146316CB_C652_4BC3_B237_7154C045B1F2__INCLUDED_)