orgtagdlg.h

来自「分词词典软件」· C头文件 代码 · 共 78 行

H
78
字号
// OrgTagDlg.h : header file
//
#include "afxtempl.h"
#include "Annotator.h"
#include "PreProcess.h"

#if !defined(AFX_ORGTAGDLG_H__09080754_AB4D_479A_BB2C_A5A7207A3588__INCLUDED_)
#define AFX_ORGTAGDLG_H__09080754_AB4D_479A_BB2C_A5A7207A3588__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// COrgTagDlg dialog

#define TRAIN		0
#define ANNOTATOR	1

class COrgTagDlg : public CDialog
{
// Construction
public:
	void DisplayResult(CSentenceList* pSenList);

	int m_operation;
	CString m_strInput;
	CString m_fileName;
	int m_nList;
	CSentenceList* m_senList;
	CAnnotator *m_annotator;

	COrgTagDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(COrgTagDlg)
	enum { IDD = IDD_ORGTAG_DIALOG };
	CRichEditCtrl	m_edit;
	CProgressCtrl	m_progress;
	CString	m_label;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(COrgTagDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(COrgTagDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonImport();
	afx_msg void OnButtonTag();
	afx_msg void OnButtonClose();
	afx_msg void OnMenuitemAbout();
	afx_msg void OnMenuitemAnnotator();
	afx_msg void OnMenuitemTrain();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

CODE PosTranlate(CString pos);
void FileToSenList(CSentenceList& senList, CString fileName);
CString SenListToString(CSentenceList senList);


//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ORGTAGDLG_H__09080754_AB4D_479A_BB2C_A5A7207A3588__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?