⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 genedit.h

📁 3D游戏场景编辑器
💻 H
字号:
/****************************************************************************************/
/*  GenEdit.h                                                                            */
/*                                                                                      */
/*  Author:       Jim Mischel, Ken Baird, Jeff Lomax                                    */
/*  Description:  Genesis world editor header file                                      */
/*                                                                                      */
/*  The contents of this file are subject to the Genesis3D Public License               */
/*  Version 1.01 (the "License"); you may not use this file except in                   */
/*  compliance with the License. You may obtain a copy of the License at                */
/*  http://www.genesis3d.com                                                            */
/*                                                                                      */
/*  Software distributed under the License is distributed on an "AS IS"                 */
/*  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See                */
/*  the License for the specific language governing rights and limitations              */
/*  under the License.                                                                  */
/*                                                                                      */
/*  The Original Code is Genesis3D, released March 25, 1999.                            */
/*  Genesis3D Version 1.1 released November 15, 1999                                 */
/*  Copyright (C) 1999 WildTangent, Inc. All Rights Reserved           */
/*                                                                                      */
/*  Modified by Tom Morris for GenEdit-Classic ver. 0.5, Dec. 15, 2000					*/
/****************************************************************************************/
#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#ifndef GenEdit_H
#define GenEdit_H


#include "MainFrm.h"
#include "activationwatch.h"
#include "prefs.h"
//#include "resource.h"       // main symbols

#include <afxmt.h>	// required for single-instance checking

/////////////////////////////////////////////////////////////////////////////
// CGenEditApp:
// See GenEdit.cpp for the implementation of this class
//
// Define our standard template so we can use these other places
#define TEMPLATE_RESOURCE_ID			IDR_GENEDITTYPE
#define TEMPLATE_DOC_CLASS				RUNTIME_CLASS( CGenEditDoc )
#define TEMPLATE_CHILD_FRAME_CLASS		RUNTIME_CLASS( CChildFrame )
#define TEMPLATE_VIEW_CLASS				RUNTIME_CLASS( CGenEditView )

//#define GenEdit_INIFILE_NAME "Gedit.ini"	//	old gedit
#define GenEdit_INIFILE_NAME "GenEdit.ini"	//	new g3dc


class CGenEditApp : public CWinApp
{
public:
	void InitUserPreferences(CMainFrame* pMainFrame);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	CGenEditApp();
	~CGenEditApp();
	CGenEditDoc * GetActiveGenEditDoc( void ) const ;

	const Prefs * GetPreferences( void ) { return pResolvedPrefs; } ;
	CEvent* pNewInstanceEvent;
	CEvent* pShutdownEvent;

	Prefs *pPrefs;  // moved to public for direct access by Prefs Dialog. g3dc
	Prefs *pResolvedPrefs;	// moved to public for direct access by Prefs Dialog

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGenEditApp)
	public:
	virtual BOOL InitInstance();
	virtual BOOL OnIdle(LONG lCount);
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CGenEditApp)
	afx_msg void OnAppAbout();
	afx_msg void OnFileNew();
	afx_msg void OnFileOpen();
	afx_msg BOOL OnOpenRecentFile (UINT nID);
	afx_msg void OnPreferences();
	afx_msg void OnUpdatePreferences(CCmdUI* pCmdUI);
	afx_msg void OnHelpHowdoi();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
protected:
	afx_msg void OnHelp( );
	afx_msg void OnHelpIndex ();
private:
	void ShowTipAtStartup(void);
	void ShowTipOfTheDay(void);
	CMainFrame* pMainFrame;
	CActivationWatch* pWatcher;

	/*
	  pPrefs points to the preferences that were read from the INI file, and
	  are modified by the preferences dialog.  pResolvedPrefs is a preferences
	  structure in which the relative path names have been resolved.  A pointer
	  to this structure is returned by GetPreferences.  The paths are resolved
	  in this structure when the preferences are read, and whenever they are changed.
	*/
//	Prefs *pPrefs;  // moved to public for direct access by Prefs Dialog
//	Prefs *pResolvedPrefs;	// moved to public for direct access by Prefs Dialog

	void CommandLineExport( CString* pMapFileName );
	BOOL ProcessCommandLine();
	CMultiDocTemplate* pDocTemplate;
	BOOL IsFirstInstance();
	CGenEditDoc* pGenEditDoc;
	void ResolvePreferencesPaths ();
};

/////////////////////////////////////////////////////////////////////////////
#endif // Prevent multiple inclusion

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -