Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
20
Добавлен:
01.05.2014
Размер:
3.4 Кб
Скачать
// DiameterView.h : interface of the CDiameterView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DIAMETERVIEW_H__6493F782_2067_49F8_B6EE_5B0102D8920C__INCLUDED_)
#define AFX_DIAMETERVIEW_H__6493F782_2067_49F8_B6EE_5B0102D8920C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "GenerateDialog.h"
#include "LogView.h"
#include "AlgDialog.h"


class CDiameterView : public CScrollView
{
protected: // create from serialization only
	CDiameterView();
	DECLARE_DYNCREATE(CDiameterView)

// Attributes
public:
	CDiameterDoc* GetDocument();
	CGenerateDialog cd;
	CLogView lDialog;
	CAlgDialog ad;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDiameterView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	virtual BOOL OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDiameterView)
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnAddPosition();
	afx_msg void OnUpdateAddPosition(CCmdUI* pCmdUI);
	afx_msg void OnDeletePosition();
	afx_msg void OnUpdateDeletePosition(CCmdUI* pCmdUI);
	afx_msg void OnBuildCh();
	afx_msg void OnUpdateBuildCh(CCmdUI* pCmdUI);
	afx_msg void OnFileNew();
	afx_msg void OnSaveBmp();
	afx_msg void OnGenerateBtn();
	afx_msg void OnUpdateGenerateBtn(CCmdUI* pCmdUI);
	afx_msg void OnScaleMax();
	afx_msg void OnUpdateScaleMax(CCmdUI* pCmdUI);
	afx_msg void OnScaleMin();
	afx_msg void OnUpdateScaleMin(CCmdUI* pCmdUI);
	afx_msg void OnFileOpen();
	afx_msg void OnFileSave();
	afx_msg void OnAlgoritmNext();
	afx_msg void OnUpdateAlgoritmNext(CCmdUI* pCmdUI);
	afx_msg void OnAlgoritmAll();
	afx_msg void OnUpdateAlgoritmAll(CCmdUI* pCmdUI);
	afx_msg void OnAlgoritmFirst();
	afx_msg void OnUpdateAlgoritmFirst(CCmdUI* pCmdUI);
	afx_msg void OnVertNum();
	afx_msg void OnUpdateVertNum(CCmdUI* pCmdUI);
	afx_msg void OnAlgoritmUser();
	afx_msg void OnUpdateAlgoritmUser(CCmdUI* pCmdUI);
	afx_msg void OnLogShow();
	afx_msg void OnUpdateLogShow(CCmdUI* pCmdUI);
	afx_msg void OnButtonAlg();
	afx_msg void OnDrawLines();
	afx_msg void OnUpdateDrawLines(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void DrawPeer (CDC* pDC, TNode* P, TNode *Q);
	void DrawPosition (CDC* pDC, TNode* node);
	void DrawDiameter (CDC* pDC, int Type);
	void ResetFlags();
	int NextStep(int AutType);
	int Compare(CDiameterDoc* pDoc, TNode* p, TNode* q);
	void WriteToLog(CDiameterDoc* pDoc);

};

#ifndef _DEBUG  // debug version in DiameterView.cpp
inline CDiameterDoc* CDiameterView::GetDocument()
   { return (CDiameterDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_DIAMETERVIEW_H__6493F782_2067_49F8_B6EE_5B0102D8920C__INCLUDED_)
Соседние файлы в папке src