Click here to Skip to main content
15,895,142 members
Articles / Desktop Programming / ATL

CM_ConfigBuilder 1.2g: Visual Studio 6/Visual Studio 2005/Visual Studio 2008 Code Generator for Application Settings Graphic Management

Rate me:
Please Sign up or sign in to vote.
4.94/5 (126 votes)
12 Feb 2008CPOL17 min read 698K   9.8K   262  
CM_ConfigBuilder generates and compiles the required files to manage your application's settings/preferences and to store/retrieve them in XML format.
// ProjectItemView.h : header file
//
#if !defined(_PROJECTITEMVIEW_H_)
#define _PROJECTITEMVIEW_H_

#include "PropertyEditorDlg.h"
#include "ClassInfoDlg_TreeIcons.h"
#include "TitleStripBmp.h"

/////////////////////////////////////////////////////////////////////////////
// CProjectItemView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

#include <vector>
#include "ClassInfoDlg_Cardinality.h"
#include "ClassInfoDlg_Global.h"
#include "ClassInfoDlg_Gui.h"
#include "MemberInfoDlg_Global.h"
#include "MemberInfoDlg_Validation.h"
#include "MemberInfoDlg_DataFormat.h"
#include "MemberInfoDlg_Gui.h"
#include "EnTabCtrl.h"

using namespace std;

class CProjectDoc;
class CXmlBaseElement;
class CPropertyEditorDlg;

class CProjectItemView : public CView
{
protected:
	CProjectItemView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CProjectItemView)

// Form Data
public:
	//{{AFX_DATA(CProjectItemView)
	
	//}}AFX_DATA

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CProjectItemView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

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

	// Generated message map functions
	//{{AFX_MSG(CProjectItemView)
	afx_msg void OnSelchangeTabProperties(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

protected:
	void DisplayClassInfo();
	void DisplayMemberInfo();
	CProjectDoc* GetDocument();
	void UpdateSelChild();
	void StoreEditors();
	void SetupEditors();
	void UpdateEditors();
	void DrawBackground(CDC* pDC);

	vector<CPropertyEditorDlg*> propertyEditors_;
	
	CClassInfoDlg_Cardinality classCardinalityDlg_;
	CClassInfoDlg_Global classGlobalDlg_;
	CClassInfoDlg_Gui classGuiDlg_;
	CClassInfoDlg_TreeIcons classTreeIconsDlg_;

	CMemberInfoDlg_Global memberGlobalDlg_;
	CMemberInfoDlg_Validation memberValidationDlg_;
	CMemberInfoDlg_DataFormat memberDataFormatDlg_;
	CMemberInfoDlg_Gui memberGuiDlg_;

	int lastClassSelTab_;
	int lastMemberSelTab_;
	CXmlBaseElement* selElement_;
	CPropertyEditorDlg* lastSelChild_;

	friend CPropertyEditorDlg;

	CTitleStripBmp titleStrip_;
	CEnTabCtrl tab_;
	CFont font_;
	bool initialized_;
};

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

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

#endif // !defined(_PROJECTITEMVIEW_H_)

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Italy Italy
For all Stefano's latest code, binaries and tutorials visit www.codemachines.com

Comments and Discussions