- Main Page
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

# subresyncDlg.h

    00001 /*
    00002  *      SubResync.  Copyright (C) 2003-2005 Gabest
    00003  *      http://www.gabest.org
    00004  *
    00005  *  This Program is free software; you can redistribute it and/or modify
    00006  *  it under the terms of the GNU General Public License as published by
    00007  *  the Free Software Foundation; either version 2, or (at your option)
    00008  *  any later version.
    00009  *
    00010  *  This Program is distributed in the hope that it will be useful,
    00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    00013  *  GNU General Public License for more details.
    00014  *
    00015  *  You should have received a copy of the GNU General Public License
    00016  *  along with GNU Make; see the file COPYING.  If not, write to
    00017  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
    00018  *  http://www.gnu.org/copyleft/gpl.html
    00019  *
    00020  */
    00021
    00022 // subresyncDlg.h : header file
    00023 //
    00024
    00025 #pragma once
    00026
    00027 class CharImg
    00028 {
    00029 public:
    00030         CString m_str;
    00031
    00032         CSize m_size;
    00033         CAutoVectorPtr<BYTE> m_p;
    00034
    00035         // feature list
    00036         int m_topbottom;
    00037
    00038         CharImg(DWORD* p, int pitch, CRect r, int* left, int* right, int topbottom, CString str = _T(""));
    00039         CharImg(FILE* f);
    00040         ~CharImg();
    00041
    00042         bool Match(CharImg* img);
    00043
    00044         bool Write(FILE* f);
    00045         bool Read(FILE* f);
    00046 };
    00047
    00048 class CharSegment
    00049 {
    00050 public:
    00051         int* left;
    00052         int* right;
    00053         int h, srow, erow;
    00054
    00055         CharSegment(int* left, int* right, int h, int srow, int erow);
    00056         ~CharSegment();
    00057 };
    00058
    00059 // CSubresyncDlg dialog
    00060 class CSubresyncDlg : public CDialog
    00061 {
    00062 // Construction
    00063 public:
    00064         CSubresyncDlg(CString fn, CWnd* pParent = NULL);        // standard constructor
    00065         virtual ~CSubresyncDlg();
    00066
    00067         bool Open(CString fn, int CharSet = DEFAULT_CHARSET, bool fAppend = false, int timeoff = 0);
    00068         bool Save(CString fn, exttype et, CTextFile::enc e, bool fClearImgLetterDb = false, bool fOcrDll = false);
    00069
    00070 // Dialog Data
    00071         enum { IDD = IDD_SUBRESYNC_DIALOG };
    00072         CListCtrl       m_list;
    00073         CButton m_saveasbtn;
    00074         CButton m_resetbtn;
    00075         CButton m_editbtn;
    00076         CButton m_exitbtn;
    00077         BOOL m_fRender;
    00078         CButton m_previewchk;
    00079         BOOL m_fUnlink;
    00080         CButton m_unlinkchk;
    00081         CComboBox m_vslangs;
    00082
    00083         protected:
    00084         virtual void DoDataExchange(CDataExchange* pDX);        // DDX/DDV support
    00085
    00086
    00087 // Implementation
    00088 protected:
    00089         HICON m_hIcon;
    00090
    00091         // Generated message map functions
    00092         virtual BOOL OnInitDialog();
    00093         afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
    00094         afx_msg void OnPaint();
    00095         afx_msg HCURSOR OnQueryDragIcon();
    00096         DECLARE_MESSAGE_MAP()
    00097 };