subresyncDlg.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:2k
- /*
- * SubResync. Copyright (C) 2003-2005 Gabest
- * http://www.gabest.org
- *
- * This Program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * This Program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GNU Make; see the file COPYING. If not, write to
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
- * http://www.gnu.org/copyleft/gpl.html
- *
- */
- // subresyncDlg.h : header file
- //
- #pragma once
- class CharImg
- {
- public:
- CString m_str;
- CSize m_size;
- CAutoVectorPtr<BYTE> m_p;
-
- // feature list
- int m_topbottom;
- CharImg(DWORD* p, int pitch, CRect r, int* left, int* right, int topbottom, CString str = _T(""));
- CharImg(FILE* f);
- ~CharImg();
- bool Match(CharImg* img);
- bool Write(FILE* f);
- bool Read(FILE* f);
- };
- class CharSegment
- {
- public:
- int* left;
- int* right;
- int h, srow, erow;
- CharSegment(int* left, int* right, int h, int srow, int erow);
- ~CharSegment();
- };
- // CSubresyncDlg dialog
- class CSubresyncDlg : public CDialog
- {
- // Construction
- public:
- CSubresyncDlg(CString fn, CWnd* pParent = NULL); // standard constructor
- virtual ~CSubresyncDlg();
- bool Open(CString fn, int CharSet = DEFAULT_CHARSET, bool fAppend = false, int timeoff = 0);
- bool Save(CString fn, exttype et, CTextFile::enc e, bool fClearImgLetterDb = false, bool fOcrDll = false);
- // Dialog Data
- enum { IDD = IDD_SUBRESYNC_DIALOG };
- CListCtrl m_list;
- CButton m_saveasbtn;
- CButton m_resetbtn;
- CButton m_editbtn;
- CButton m_exitbtn;
- BOOL m_fRender;
- CButton m_previewchk;
- BOOL m_fUnlink;
- CButton m_unlinkchk;
- CComboBox m_vslangs;
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- DECLARE_MESSAGE_MAP()
- };