Add rayman2 source files

This commit is contained in:
2024-09-18 02:33:44 +08:00
parent bcc093f8ed
commit fb036c54fd
14339 changed files with 2596224 additions and 0 deletions

View File

@@ -0,0 +1,175 @@
/*/////////////////////////////////////////////////////////////////////////////*/
/**/
/* Public header file Data used by WAW*/
/**/
/*/////////////////////////////////////////////////////////////////////////////*/
/* To avoid unnecessary includes : */
#ifndef __WAW_DATA_HPP
#define __WAW_DATA_HPP
#include <afxtempl.h>
/**************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/**************************************/
/*#ifdef __cplusplus*/
/*extern "C" {*/
/*#endif /* __cplusplus **/
/* For Global declaration in C files : */
#ifdef WAW_GLOBALS
#define __WAW_EXTERN extern
#else /* !WAW_GLOBALS */
#define __WAW_EXTERN
#endif /* !AID_GLOBALS */
/*
-----------------------------------------------------------------------------
INCLUDES FILES :
Include here any other header files of your module you need !
Ex :
#include "toto.h"
Note : Do Not include header files from other Modules (do this in C files
only)
-----------------------------------------------------------------------------
*/
class WAW_DataList;
/*
-----------------------------------------------------------------------------
CONSTANT DECLARATION:
Ex :
#define WAW_C_LMAX 100
-----------------------------------------------------------------------------
*/
/*
-----------------------------------------------------------------------------
TYPES DEFINITION :
Declare here any type you need, and constant you need to do this :
Ex : typedef struct WAW_tdstToto_
{
long aLMAX_lBuffer[WAW_C_LMAX];
...
} WAW_tdst_Toto ;
-----------------------------------------------------------------------------
*/
typedef enum WAW_tdeMessage_
{
WAW_eDeletedData,
WAW_eDeletedNode,
WAW_eUpdateData,
WAW_eHideWindow,
WAW_eShowWindow,
WAW_eNbOfMessage
} WAW_tdeMessage;
typedef void(*WAW_CallBack)( WAW_tdeMessage, void*);
typedef struct WAW_tdstUserInfo_
{
CString m_csUserModuleName;
WAW_CallBack m_pfnCallBack;
} WAW_tdstUserInfo;
typedef WAW_tdstUserInfo * WAW_hUserInfo;
class CPA_EXPORT WAW_Data
{
protected:
WAW_Data( CString, CString, WAW_tdstUserInfo* ,void* _pvData = NULL );
~WAW_Data();
/* members :*/
public:
protected:
private:
CString m_pri_csDataName;
CString m_pri_csDataValue;
void* m_pri_pvUserData;
WAW_tdstUserInfo * m_pri_pstUserInfo;
HTREEITEM m_pri_hTreeItem;
BOOL m_pri_bIsData;
BOOL m_pri_bVisible;
/* functions :*/
public:
WAW_Data* m_pub_fn_pclGetParentData();
CString m_pub_fn_csGetDataName() {return m_pri_csDataName;}
void * m_pub_fn_pvGetUserData() {return m_pri_pvUserData;}
void m_pub_fn_vSetUserData( void * _pvData ) { m_pri_pvUserData = _pvData; }
protected:
private:
/* friends of the class*/
friend extern CPA_EXPORT WAW_Data * WAW_fn_pclAddData( WAW_hUserInfo, WAW_Data* , CString, CString, void* );
friend extern CPA_EXPORT WAW_Data * WAW_fn_pclAddNode( WAW_hUserInfo,WAW_Data* , CString, void* );
friend extern CPA_EXPORT BOOL WAW_fn_bUpdateData( WAW_Data*, CString );
friend extern CPA_EXPORT BOOL WAW_fn_bDeleteData( WAW_Data* );
friend extern CPA_EXPORT BOOL WAW_fn_bSetDataIcon( WAW_Data*, HICON, HICON );
friend extern BOOL WAW_fn_bCheckForEmptyNode( HTREEITEM );
friend class WAW_MainDialog;
friend class WAW_DataList;
/* friend class WAW_DataList;*/
};
/*
-----------------------------------------------------------------------------
GLOBAL VARIABLE DECLARATION :
Ex :
__AID_EXTERN <type> <variable name>
#ifdef AID_GLOBALS
= <initial values>
#endif
;
-----------------------------------------------------------------------------
*/
/*
-----------------------------------------------------------------------------
PUBLIC FUNCTIONS DECLARATION:
Ex :
extern CPA_EXPORT void WAW_fn_vMyPublicFunction(void);
Note : Public functions declaration must be done in PUBLIC HEADER files (.h)
in your Inc directory
-----------------------------------------------------------------------------
*/
/*
-----------------------------------------------------------------------------
PRIVATE FUNCTIONS DECLARATION:
Ex :
extern void WAW_fn_vMyPrivateFunction(void);
Note : Private functions MUST appear ONLY in PRIVATE HEADER files (.h) in
your Src directory with source files (.c)
-----------------------------------------------------------------------------
*/
/*#ifdef __cplusplus*/
/*};*/
/*#endif /* __cplusplus */
#endif /* __WAW_USER_HPP */

View File

@@ -0,0 +1,143 @@
/*/////////////////////////////////////////////////////////////////////////////*/
/**/
/* Public header file List of Data used by WAW*/
/**/
/*/////////////////////////////////////////////////////////////////////////////*/
/* To avoid unnecessary includes : */
#ifndef __WAW_LIST_HPP
#define __WAW_LIST_HPP
#include <afxtempl.h>
/**************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/**************************************/
/*#ifdef __cplusplus*/
/*extern "C" {*/
/*#endif /* __cplusplus **/
/* For Global declaration in C files : */
#ifdef WAW_GLOBALS
#define __WAW_EXTERN extern
#else /* !WAW_GLOBALS */
#define __WAW_EXTERN
#endif /* !AID_GLOBALS */
/*
-----------------------------------------------------------------------------
INCLUDES FILES :
Include here any other header files of your module you need !
Ex :
#include "toto.h"
Note : Do Not include header files from other Modules (do this in C files
only)
-----------------------------------------------------------------------------
*/
#include "WAW_Data.hpp"
/*
-----------------------------------------------------------------------------
CONSTANT DECLARATION:
Ex :
#define WAW_C_LMAX 100
-----------------------------------------------------------------------------
*/
/*
-----------------------------------------------------------------------------
TYPES DEFINITION :
Declare here any type you need, and constant you need to do this :
Ex : typedef struct WAW_tdstToto_
{
long aLMAX_lBuffer[WAW_C_LMAX];
...
} WAW_tdst_Toto ;
-----------------------------------------------------------------------------
*/
class CPA_EXPORT WAW_DataList : public CList<WAW_Data*,WAW_Data*>
{
public :
WAW_DataList( CString );
WAW_DataList( WAW_hUserInfo );
/* members :*/
public:
protected:
private:
WAW_hUserInfo m_pri_hUserInfo;
/* functions :*/
public:
void m_pub_fn_vGetAll();
void m_pub_fn_vGetData();
void m_pub_fn_vGetNode();
void m_pub_fn_vGetWithName( CString );
void m_pub_fn_vGetChildren( CString );
void m_pub_fn_vGetVisible();
void m_pub_fn_vSelectData();
void m_pub_fn_vSelectNode();
void m_pub_fn_vSelectWithName( CString );
void m_pub_fn_vSelectChildren( CString );
void m_pub_fn_vSelectVisible();
protected:
private:
void m_pri_fn_vFillList( CTreeCtrl*, HTREEITEM );
void m_pri_fn_vUpdateVisible();
};
/*
-----------------------------------------------------------------------------
GLOBAL VARIABLE DECLARATION :
Ex :
__AID_EXTERN <type> <variable name>
#ifdef AID_GLOBALS
= <initial values>
#endif
;
-----------------------------------------------------------------------------
*/
/*
-----------------------------------------------------------------------------
PUBLIC FUNCTIONS DECLARATION:
Ex :
extern CPA_EXPORT void WAW_fn_vMyPublicFunction(void);
Note : Public functions declaration must be done in PUBLIC HEADER files (.h)
in your Inc directory
-----------------------------------------------------------------------------
*/
/*
-----------------------------------------------------------------------------
PRIVATE FUNCTIONS DECLARATION:
Ex :
extern void WAW_fn_vMyPrivateFunction(void);
Note : Private functions MUST appear ONLY in PRIVATE HEADER files (.h) in
your Src directory with source files (.c)
-----------------------------------------------------------------------------
*/
/*#ifdef __cplusplus*/
/*};*/
/*#endif /* __cplusplus */
#endif /* __WAW_LIST_HPP */

View File

@@ -0,0 +1,135 @@
/*/////////////////////////////////////////////////////////////////////////////*/
/**/
/* Public header file to use WAW*/
/**/
/*/////////////////////////////////////////////////////////////////////////////*/
/* To avoid unnecessary includes : */
#ifndef __WAW_USER_HPP
#define __WAW_USER_HPP
/**************************************/
#if !defined(CPA_EXPORT)
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif /*CPA_WANTS_IMPORT || CPA_WANTS_EXPORT*/
#endif /*CPA_EXPORT*/
/**************************************/
/*
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus *
*/
/* For Global declaration in C files : */
#ifdef WAW_GLOBALS
#define __WAW_EXTERN extern
#else /* !WAW_GLOBALS */
#define __WAW_EXTERN
#endif /* !AID_GLOBALS */
/*
-----------------------------------------------------------------------------
INCLUDES FILES :
Include here any other header files of your module you need !
Ex :
#include "toto.h"
Note : Do Not include header files from other Modules (do this in C files
only)
-----------------------------------------------------------------------------
*/
#include "WAW_Data.hpp"
/*
-----------------------------------------------------------------------------
CONSTANT DECLARATION:
Ex :
#define WAW_C_LMAX 100
-----------------------------------------------------------------------------
*/
/*
-----------------------------------------------------------------------------
TYPES DEFINITION :
Declare here any type you need, and constant you need to do this :
Ex : typedef struct WAW_tdstToto_
{
long aLMAX_lBuffer[WAW_C_LMAX];
...
} WAW_tdst_Toto ;
-----------------------------------------------------------------------------
*/
/*
-----------------------------------------------------------------------------
GLOBAL VARIABLE DECLARATION :
Ex :
__AID_EXTERN <type> <variable name>
#ifdef AID_GLOBALS
= <initial values>
#endif
;
-----------------------------------------------------------------------------
*/
/*
-----------------------------------------------------------------------------
PUBLIC FUNCTIONS DECLARATION:
Ex :
extern CPA_EXPORT void WAW_fn_vMyPublicFunction(void);
Note : Public functions declaration must be done in PUBLIC HEADER files (.h)
in your Inc directory
-----------------------------------------------------------------------------
*/
extern CPA_EXPORT void WAW_fn_vInitWatchWindow();
extern CPA_EXPORT void WAW_fn_vRefreshWatchWindow();
extern CPA_EXPORT CWnd* WAW_fn_pclGetWatchWindowDialog();
extern CPA_EXPORT CWnd* WAW_fn_pclGetWatchWindowTree();
extern CPA_EXPORT void WAW_fn_vDisplayWatchWindow();
extern CPA_EXPORT void WAW_fn_vHideWatchWindow();
extern CPA_EXPORT void WAW_fn_vSetWatchWindowTopMost( BOOL );
extern CPA_EXPORT WAW_hUserInfo WAW_fn_hUserRegister( CString, WAW_CallBack );
extern CPA_EXPORT WAW_Data * WAW_fn_pclAddData( WAW_hUserInfo, WAW_Data*, CString, CString, void * _pvUserData = NULL );
extern CPA_EXPORT WAW_Data * WAW_fn_pclAddData( CString, WAW_Data*, CString, CString, void * _pvUserData = NULL );
extern CPA_EXPORT WAW_Data * WAW_fn_pclAddNode( WAW_hUserInfo, WAW_Data*, CString, void * _pvUserData = NULL );
extern CPA_EXPORT WAW_Data * WAW_fn_pclAddNode( CString, WAW_Data*, CString, void * _pvUserData = NULL );
extern CPA_EXPORT BOOL WAW_fn_bUpdateData( WAW_Data*, CString /*data value*/ );
extern CPA_EXPORT BOOL WAW_fn_bDeleteData( WAW_Data* );
extern CPA_EXPORT BOOL WAW_fn_bSetDataIcon( WAW_Data*, HICON, HICON _hSeclectIcon = NULL );
/*
-----------------------------------------------------------------------------
PRIVATE FUNCTIONS DECLARATION:
Ex :
extern void WAW_fn_vMyPrivateFunction(void);
Note : Private functions MUST appear ONLY in PRIVATE HEADER files (.h) in
your Src directory with source files (.c)
-----------------------------------------------------------------------------
*/
WAW_hUserInfo WAW_fn_hFindInfo( CString );
void WAW_fn_vSendMessage( WAW_tdeMessage, void* );
BOOL WAW_fn_bCheckForEmptyNode( HTREEITEM );
/*
#ifdef __cplusplus
};
#endif // __cplusplus
*/
#endif /* __WAW_USER_HPP */