Click here to Skip to main content
15,892,809 members
Articles / Desktop Programming / MFC

A Java Language IDE

Rate me:
Please Sign up or sign in to vote.
4.33/5 (26 votes)
13 May 2004CPOL3 min read 80.6K   3.4K   41  
This is a partially implemented IDE for the Java platform.
#if !defined(AFX_FORMATOPTIONPAGE_H__571762B5_430D_43CF_86AC_938F502AF89D__INCLUDED_)
#define AFX_FORMATOPTIONPAGE_H__571762B5_430D_43CF_86AC_938F502AF89D__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CFormatOptionPage dialog
#include "OwnerDrawnedCombo.h"
#include "CustButton.h"
struct attributeColorMap;
#include "SAPrefsSubDlg.h"

class CFormatOptionPage : public CSAPrefsSubDlg//CPropertyPage
{
	DECLARE_DYNCREATE(CFormatOptionPage)

// Construction
public:
	void SaveSettings();
	void LoadSettings();
	COLORREF getCurFrGrndColor();
	int getCurFontSize();
	CFont* getCurFont();
	COLORREF getCurBackGrndColor();
	CFormatOptionPage();
	~CFormatOptionPage();

// Dialog Data
	//{{AFX_DATA(CFormatOptionPage)
	enum { IDD = IDD_OPTIONS_FORMAT };
	CComboBox	m_wndFontSize;
	CComboBox	m_wndFonts;
	CListBox	m_wndItems;
	CListBox	m_wndWindowList;
	CString	m_szpFont;
	//}}AFX_DATA

	int m_nfont;
	int m_nfontSize;
	int m_nforegrd;
	int m_nbkgrd;


	static LPCTSTR m_szpAllColorItems[];
	static LPCTSTR m_szpSourceColorItems[];
	static LPCTSTR m_szpDebugColorItems[];
	static LPCTSTR m_szpBrowserColorItems[];
	static LPCTSTR m_szpOutPutColorItems[];
	static LPCTSTR m_szpRegColorItems[];
	static LPCTSTR m_szpMemColorItems[];
	static LPCTSTR m_szpCallWndColorItems[];
	static LPCTSTR m_szpVarWndColorItems[];
	static LPCTSTR m_szpWatchWndColorItems[];
	static LPCTSTR m_szpDisAssemColorItems[];
	static LPCTSTR* m_szpWindows[11][2];
	static LPCTSTR* m_pBases[];

	CArray<attributeColorMap*,attributeColorMap*>m_mapAllWindows;
    CArray<attributeColorMap*,attributeColorMap*>m_mapSrcBrowser;
	CArray<attributeColorMap*,attributeColorMap*>m_mapDebugWindow;
    CArray<attributeColorMap*,attributeColorMap*>m_mapSrcWindow;
    CArray<attributeColorMap*,attributeColorMap*>m_mapOutPutWindow;
	CArray<attributeColorMap*,attributeColorMap*>m_mapRegWindow;
	CArray<attributeColorMap*,attributeColorMap*>m_mapMemWindow;
	CArray<attributeColorMap*,attributeColorMap*>m_mapCallstackWindow;
	CArray<attributeColorMap*,attributeColorMap*>m_mapVarWindow;
    CArray<attributeColorMap*,attributeColorMap*>m_mapWatchWindow;
	CArray<attributeColorMap*,attributeColorMap*>m_mapDisAssemWindow;

	CMap<DWORD64,DWORD64,LPCTSTR,LPCTSTR>m_colorTextMap;
// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CFormatOptionPage)
	public:
	virtual void OnOK();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CFormatOptionPage)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeWindowsList();
	afx_msg void OnSelchangeComboForegrnd();
	afx_msg void OnSelchangeComboBackgrnd();
	afx_msg void OnSelchangeFontSizesCombo();
	afx_msg void OnSelchangeFontsCombo();
	afx_msg void OnSelchangeItemsList();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	COwnerDrawnedCombo	m_wndForeGrndColor;
	COwnerDrawnedCombo	m_wndBckGrndColor;
	CCustButton        m_wndSampleDisplay;
    static int CALLBACK FontEnumProc(ENUMLOGFONTEX *lpelfe, NEWTEXTMETRICEX *lpntme, 
        int FontType, CFormatOptionPage* pFormatPage );
};

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

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


Written By
Web Developer
United States United States
biography? I am not that old yet.

Comments and Discussions