Click here to Skip to main content
15,893,904 members
Articles / Desktop Programming / MFC

CodePlotter 1.6 - Add and edit diagrams in your code with this 'Visio-like' tool

Rate me:
Please Sign up or sign in to vote.
4.91/5 (160 votes)
27 Sep 200310 min read 365.2K   3.8K   171  
A Visual Studio addin for creating and editing ASCII diagrams in source files
#if !defined(AFX_EDITCONNECTIONDLG_H__871B4004_CD59_4DC5_9DFA_4593F4A8197F__INCLUDED_)
#define AFX_EDITCONNECTIONDLG_H__871B4004_CD59_4DC5_9DFA_4593F4A8197F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// EditConnectionDlg.h : header file
//

#include "..\shared\textdiagram.h"
 
/////////////////////////////////////////////////////////////////////////////
// CEditConnectionDlg dialog

class CEditConnectionDlg : public CDialog
{
// Construction
public:
	CEditConnectionDlg(const CTextDiagram& diagram, int nRectFrom, int nRectTo = -1, CWnd* pParent = NULL);   // standard constructor

	BOOL GetConnection(CTDConnection& conn);

protected:
// Dialog Data
	//{{AFX_DATA(CEditConnectionDlg)
	CComboBox	m_cbRectTo;
	CString	m_sRectFrom;
	int		m_nSideFrom;
	//}}AFX_DATA

	int m_nRectFrom;
	int	m_nRectTo;
	CTextDiagram m_diagram;

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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CEditConnectionDlg)
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_EDITCONNECTIONDLG_H__871B4004_CD59_4DC5_9DFA_4593F4A8197F__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer Maptek
Australia Australia
.dan.g. is a naturalised Australian and has been developing commercial windows software since 1998.

Comments and Discussions