// FingerAnalyserDlg.h : header file
//
#pragma once
#include "AbsFing.h"
#include "RelFing.h"
#include "FingPicture.h"
#include "AnalysePicture.h"
#include "Info.h"
#include <list>
using namespace std;
// Пока не понятно откуда их брать
#define MIN_SIZE 100
#define MAX_SIZE 1000
typedef list<CInfo> listCInfo;
// CFingerAnalyserDlg dialog
class CFingerAnalyserDlg : public CDialog
{
// Construction
public:
CFingerAnalyserDlg(CWnd* pParent = NULL); // standard constructor
~CFingerAnalyserDlg();
// Dialog Data
enum { IDD = IDD_FINGERANALYSER_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
private:
CString m_WorkFile;
BOOL m_ShowBase;
CProgressCtrl m_ProgressSave;
CProgressCtrl m_ProgressCompare;
CPoint mousePos;
int mouseX;
int mouseY;
int m_DotsCount;
long m_ScanTime;
private:
CString pathToSAV;
CString dbFile;
CAbsFing fingA;
CRelFing fingR;
CAnalysePicture* picture;
CDC memDC;
CBitmap bm;
BITMAP bmp;
UINT timer;
CFingPicture *fp;
listCInfo *LoadDB(CString dbFile);
list<CCompareFing>::iterator showIter;
list<CCompareFing> *CompareWithBase();
list<CCompareFing> *compareResult;
private:
void ShowBase(bool key, bool next = true);
void PrintReport(CString file, CString report);
CString GetSAV(CString srcName); //получение пути к sav файлу
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBnClickedOpen();
afx_msg void OnBnClickedAnalyse();
afx_msg void OnBnClickedCompare();
afx_msg void OnBnClickedSave();
afx_msg void OnBnClickedBack();
afx_msg void OnBnClickedNext();
afx_msg void OnBnClickedShowBase();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnTimer(UINT_PTR nIDEvent);
DECLARE_MESSAGE_MAP()
};