📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__EDE13FA1_0F30_4678_AEC0_62404F836984__INCLUDED_)
#define AFX_MAINFRM_H__EDE13FA1_0F30_4678_AEC0_62404F836984__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CSvmclsView;
class CLeftView;
const WM_COMPUTATION_FINISH =WM_USER+100;
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
protected:
CSplitterWnd m_wndSplitter;
public:
CWinThread *m_pThread;
int m_nTimer;
CTime m_tmBegin;
int m_nTimeIndex;
int m_nRunning;
bool m_bPaused;
CString m_strModel;
static CString m_strResultDir;
//0 没有打开分类器; 1 平面分类器; 2 层次分类器
int m_nClassifierType;
// Operations
public:
private:
static UINT SeldocsThreadProc(LPVOID pParam);
void BeginComputation();
void CeaseComputation();
void StopComputation();
void Train();
void Test();
bool CheckPath(CString &strPath, bool bCreateDir=false);
static UINT TrainThreadProc(LPVOID pParam);
static UINT TestThreadProc(LPVOID pParam);
static UINT ConvertThreadProc(LPVOID pParam);
static UINT SegDocsThreadProc(LPVOID pParam);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
CSvmclsView* GetRightPane();
CLeftView* GetLeftView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnComputationFinish(WPARAM wParam,LPARAM lParam);
afx_msg void OnClose();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnUpdateMainClassify(CCmdUI* pCmdUI);
afx_msg void OnUpdateMainOpenmodel(CCmdUI* pCmdUI);
afx_msg void OnMainOpenmodel();
afx_msg void OnUpdateMainStoprunning(CCmdUI* pCmdUI);
afx_msg void OnMainStoprunning();
afx_msg void OnUpdateMainPause(CCmdUI* pCmdUI);
afx_msg void OnMainPause();
afx_msg void OnUpdateMainResume(CCmdUI* pCmdUI);
afx_msg void OnMainResume();
afx_msg void OnUpdateMainResults(CCmdUI* pCmdUI);
afx_msg void OnMainResults();
afx_msg void OnUpdateToolsConvert(CCmdUI* pCmdUI);
afx_msg void OnMainTest();
afx_msg void OnUpdateMainTest(CCmdUI* pCmdUI);
afx_msg void OnToolsResults();
afx_msg void OnUpdateToolsResults(CCmdUI* pCmdUI);
afx_msg void OnMainTrainknn();
afx_msg void OnUpdateMainTrainknn(CCmdUI* pCmdUI);
afx_msg void OnMainTrainsvm();
afx_msg void OnUpdateMainTrainsvm(CCmdUI* pCmdUI);
afx_msg void OnMainClassifySinglefile();
afx_msg void OnUpdateMainClassifySinglefile(CCmdUI* pCmdUI);
afx_msg void OnToolsConvert();
afx_msg void OnToolsSeldoc();
afx_msg void OnToolsWordseg();
afx_msg void OnMainReadFeatures();
afx_msg void OnUpdateMainReadFeatures(CCmdUI* pCmdUI);
//}}AFX_MSG
afx_msg void OnUpdateViewStyles(CCmdUI* pCmdUI);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__EDE13FA1_0F30_4678_AEC0_62404F836984__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -