Скачиваний:
12
Добавлен:
01.05.2014
Размер:
2.4 Кб
Скачать
// CompilerDoc.h : interface of the CCompilerDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_COMPILERDOC_H__CB0947D7_2663_407C_B12D_3A3C2BE1A7DD__INCLUDED_)
#define AFX_COMPILERDOC_H__CB0947D7_2663_407C_B12D_3A3C2BE1A7DD__INCLUDED_

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

#include <string>

//-----------------------------------------------------------------------------


class CCompilerDoc : public CDocument
{
    bool m_bWorking;
    bool m_bStopWorking;

protected: // create from serialization only
	CCompilerDoc();
	DECLARE_DYNCREATE(CCompilerDoc)

public:
    bool IsWorking() { return m_bWorking; }
    bool IsStopped() { return m_bStopWorking; }
    void SetWorking( bool bWorking );

    CEditView * GetView();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCompilerDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CCompilerDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CCompilerDoc)
	afx_msg void OnCompile();
	afx_msg void OnCompileStop();
	afx_msg void OnRun();
	afx_msg void OnUpdateCompile(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCompileStop(CCmdUI* pCmdUI);
	afx_msg void OnUpdateRun(CCmdUI* pCmdUI);
  	afx_msg void OnViewtables();
	afx_msg void OnViewTetrads();
	afx_msg void OnUpdateViewFiles(CCmdUI* pCmdUI);
	afx_msg void OnViewAsm();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
    void OpenTextFile(const char * FileName);

    // Возвращает имя открытого исходного файла без расширения
    CString GetFileNameBase();

    CString GetFileNameTables();
    CString GetFileNameTetrads();
    CString GetFileNameAsm();

	void CompileAndLink();

    bool SaveFileIfNotSaved();
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_COMPILERDOC_H__CB0947D7_2663_407C_B12D_3A3C2BE1A7DD__INCLUDED_)
Соседние файлы в папке Курсовая работа2