Add rayman2 source files
This commit is contained in:
81
Rayman_X/cpa/public/CTL/Others/CTL_ClBk.hpp
Normal file
81
Rayman_X/cpa/public/CTL/Others/CTL_ClBk.hpp
Normal file
@@ -0,0 +1,81 @@
|
||||
/* CallBacks types for CTL Module*/
|
||||
/**/
|
||||
/* YB*/
|
||||
/*/////////////////////////////////////*/
|
||||
#ifndef _CTL_CALLBACKS_TYPE_
|
||||
#define _CTL_CALLBACKS_TYPE_
|
||||
|
||||
/*//////////////////////////*/
|
||||
/* CallBacks for Controls //*/
|
||||
/*//////////////////////////*/
|
||||
|
||||
typedef BOOL (*CTL_td_p_fn_bControlCanBeDisplayed)(class CTL_Editor_Control *_pclSenderControl);
|
||||
|
||||
typedef void (*CTL_td_p_fn_vBuildEnumDescriptor)(class CTL_Editor_Control *_pclSenderControl,
|
||||
class CTL_Editor_EnumDescriptor *_pclEnumDescriptor);
|
||||
|
||||
/*///////////////////////////////*/
|
||||
/* CallBacks for Base Controls //*/
|
||||
/*///////////////////////////////*/
|
||||
typedef BOOL (*CTL_td_p_fn_bBaseControlCanBeDisplayed)(class CTL_Editor_BaseControl *_pclSenderBaseControl);
|
||||
|
||||
|
||||
|
||||
/*//////////////////////*/
|
||||
/* CallBacks for Data //*/
|
||||
/*//////////////////////*/
|
||||
|
||||
typedef void (*CTL_td_p_fn_vCallBackWhenDataHasChanged)(class CTL_Editor_Data *_pclChangedData,
|
||||
enum CTL_eUpdateReason _eReason,
|
||||
long _lUserDefinedReason /*= 0*/);
|
||||
|
||||
typedef BOOL (*CTL_td_p_fn_bCallBackWhenDataMustBeReadOrWritten)(class CTL_Editor_Data *_pclSenderData);
|
||||
|
||||
/*For Modification functions*/
|
||||
typedef void (*CTL_tdp_fn_vDataModificationFunction)(class CTL_Editor_Data *_pclData);
|
||||
|
||||
|
||||
/*//////////////////////////////////*/
|
||||
/* CallBacks for Windows Controls //*/
|
||||
/*//////////////////////////////////*/
|
||||
|
||||
/*For color of Statics*/
|
||||
typedef void (*CTL_tdp_fn_vGetColor)(class CTL_Editor_Static *_pclSenderStatic,
|
||||
COLORREF &r_ColRefBackGround,
|
||||
COLORREF &r_ColRefText);
|
||||
|
||||
/*When a static has been clicked*/
|
||||
typedef void (*CTL_td_p_fn_vStaticHasBeenClicked)(class CTL_Editor_Static *_pclSenderStatic,
|
||||
enum CTL_eClickType _tdeClickType);
|
||||
|
||||
/*When a Button is clicked*/
|
||||
typedef void (*CTL_tdp_fn_vButtonHasBeenClicked)(class CTL_Editor_Button *_pclSenderButton,
|
||||
class CTL_Editor_Control *_pclParentControl,
|
||||
enum CTL_eButtonType _tdeType,
|
||||
long _lUserDefinedType,
|
||||
long _lUserDefinedCode);
|
||||
|
||||
/*When selection has been changed in a Combo box*/
|
||||
typedef void (*CTL_tdp_fn_vComboBoxSelChanged)(class CTL_Editor_ComboBox *_pclSenderComboBox,
|
||||
class CTL_Editor_Control *_pclParentControl,
|
||||
enum CTL_eComboBoxType _tdeType,
|
||||
long _lUserDefinedType,
|
||||
long _lUserDefinedCode);
|
||||
|
||||
/*When a Check Box is Clicked*/
|
||||
typedef void (*CTL_tdp_fn_vCheckBoxHasBeenClicked)(class CTL_Editor_CheckBox *_pclSenderCheckBox,
|
||||
class CTL_Editor_Control *_pclParentControl,
|
||||
enum CTL_eCarCheckBoxType _tdeType,
|
||||
long _lUserDefinedType,
|
||||
long _lUserDefinedCode);
|
||||
|
||||
/*To get a size of a Window*/
|
||||
typedef long (*CTL_tdp_fn_lGetSizeOfWindow)(CTL_Editor_BaseControl *_pclSenderBaseControl);
|
||||
|
||||
|
||||
|
||||
/*ROMTEAM Selection (Cristian Stegaru 24/03/98)*/
|
||||
typedef (*CTL_tpf_iCheckString) (class CTL_Editor_Data *_pclData, class CTL_Editor_EnumElement *pNewElement);
|
||||
/*ENDROMTEAM Selection (Cristian Stegaru)*/
|
||||
|
||||
#endif /*_CTL_CALLBACKS_TYPE_*/
|
119
Rayman_X/cpa/public/CTL/Others/CTL_EnLi.hpp
Normal file
119
Rayman_X/cpa/public/CTL/Others/CTL_EnLi.hpp
Normal file
@@ -0,0 +1,119 @@
|
||||
/* Header for the definition of 'enum' type lists in the editor*/
|
||||
/*////////////////////////////////////////////////////////////////*/
|
||||
#ifndef _CTL_ENUM_LISTS_
|
||||
#define _CTL_ENUM_LISTS_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
#include <afxtempl.h>
|
||||
|
||||
#include "ACP_Base.h"
|
||||
|
||||
#define LIST_ENUM_ERROR (-1)
|
||||
|
||||
/*######################################################################################*/
|
||||
|
||||
class CPA_EXPORT CTL_Editor_EnumElement
|
||||
{
|
||||
private:
|
||||
CTL_Editor_EnumElement(CString _csElementName,
|
||||
long _lEnumValue,
|
||||
CString _csAdditionalString,
|
||||
void *_p_vAdditionnalPointer);
|
||||
|
||||
~CTL_Editor_EnumElement();
|
||||
|
||||
/*Attributes*/
|
||||
private:
|
||||
CString m_pri_csElementName;
|
||||
CString m_pri_csAdditionalString;
|
||||
long m_pri_lEnumValue;
|
||||
void *m_pri_p_vAdditionnalPointer;
|
||||
|
||||
/*Functions*/
|
||||
public:
|
||||
/*GetSet functions*/
|
||||
/*//////////////////*/
|
||||
|
||||
/*Value*/
|
||||
void m_pub_fn_vSetValue(long);
|
||||
long m_pub_fn_lGetValue();
|
||||
|
||||
/*Element Name*/
|
||||
void m_pub_fn_vSetElementName(CString _csNewString);
|
||||
CString m_pub_fn_csGetElementName();
|
||||
|
||||
/*Additional String*/
|
||||
void m_pub_fn_vSetAdditionalString(CString _csNewString);
|
||||
CString m_pub_fn_csGetAdditionalString();
|
||||
|
||||
/*Additionnal Pointer*/
|
||||
void m_pub_fn_vSetAdditionnalPointer(void *_p_vAdditionnalPointer);
|
||||
void *m_pub_fn_pvGetAdditionnalPointer();
|
||||
|
||||
friend class CTL_Editor_EnumDescriptor;
|
||||
};
|
||||
|
||||
/*######################################################################################*/
|
||||
|
||||
class CPA_EXPORT CTL_Editor_EnumDescriptor : public CList<CTL_Editor_EnumElement *, CTL_Editor_EnumElement *>
|
||||
{
|
||||
public:
|
||||
CTL_Editor_EnumDescriptor(CString,
|
||||
unsigned char ucSize);
|
||||
~CTL_Editor_EnumDescriptor();
|
||||
|
||||
/*Attributes*/
|
||||
public:
|
||||
CString m_csEnumName;
|
||||
|
||||
private:
|
||||
/*The size of the Enum codage (in bytes)*/
|
||||
unsigned char m_ucEnumSize;
|
||||
|
||||
/*Functions*/
|
||||
public:
|
||||
void m_fn_vEmptyList();
|
||||
CTL_Editor_EnumElement *m_fn_pclAddElement(CString _csElementName,
|
||||
long _lEnumValue = LIST_ENUM_ERROR,
|
||||
CString _csAdditionalString = "",
|
||||
void *_p_vAdditionnalPointer = NULL);
|
||||
|
||||
/*Search functions*/
|
||||
CString m_fn_csGetStringFromEnumIndex(long lEnumIndex);
|
||||
CTL_Editor_EnumElement *m_fn_pclGetElementFromEnumIndex(long lEnumIndex);
|
||||
CTL_Editor_EnumElement *m_fn_pclGetElementFromString(CString _csStringToFind);
|
||||
|
||||
unsigned char m_fn_ucGetEnumSize();
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
/*######################################################################################*/
|
||||
|
||||
class CPA_EXPORT CTL_Editor_EnumDescriptorList : public CList<CTL_Editor_EnumDescriptor *, CTL_Editor_EnumDescriptor *>
|
||||
{
|
||||
public:
|
||||
CTL_Editor_EnumDescriptorList();
|
||||
~CTL_Editor_EnumDescriptorList();
|
||||
|
||||
/*Attributes*/
|
||||
public:
|
||||
|
||||
private:
|
||||
CString m_csEnumName;
|
||||
|
||||
/*Functions*/
|
||||
public:
|
||||
CTL_Editor_EnumDescriptor *m_fn_pclGetEnumDescriptorByName(CString csDescriptorName);
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif /*_CTL_ENUM_LISTS_*/
|
||||
|
30
Rayman_X/cpa/public/CTL/Others/CTL_Enum.hpp
Normal file
30
Rayman_X/cpa/public/CTL/Others/CTL_Enum.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
/* Global enum typedefs for CTL Module*/
|
||||
/**/
|
||||
/* YB*/
|
||||
/*/////////////////////////////////////////*/
|
||||
#ifndef _CTL_ENUM_DEFINES_
|
||||
#define _CTL_ENUM_DEFINES_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
/*############################################################################*/
|
||||
typedef enum CTL_eClickType
|
||||
{
|
||||
CTL_CLICK_TYPE__LEFT_CLICK = 0,
|
||||
CTL_CLICK_TYPE__RIGHT_CLICK,
|
||||
CTL_CLICK_TYPE__LEFT_DOUBLE_CLICK,
|
||||
CTL_CLICK_TYPE__RIGHT_DOUBLE_CLICK,
|
||||
CTL_CLICK_TYPE__LEFT_BUTTON_DOWN,
|
||||
/*CPA2 Stegaru Cristian 98/06/19*/
|
||||
CTL_CLICK_TYPE__SHIFT_RIGHT_CLICK
|
||||
/*End CPA2 Stegaru Cristian 98/06/19*/
|
||||
|
||||
} CTL_tdeClickType;
|
||||
|
||||
|
||||
#endif /*_CTL_ENUM_DEFINES_*/
|
||||
|
||||
|
||||
|
96
Rayman_X/cpa/public/CTL/Others/CTL_Mask.hpp
Normal file
96
Rayman_X/cpa/public/CTL/Others/CTL_Mask.hpp
Normal file
@@ -0,0 +1,96 @@
|
||||
/* Definition for the list of Masks*/
|
||||
/**/
|
||||
/* (used by Masked Data and Controls)*/
|
||||
/**/
|
||||
/* Written by YB*/
|
||||
/*/////////////////////////////////////////*/
|
||||
#ifndef _CTL_EDITORS__MASK_LIST_HPP_
|
||||
#define _CTL_EDITORS__MASK_LIST_HPP_
|
||||
|
||||
#include <afxtempl.h>
|
||||
#include "ACP_Base.h" /*For CPA_EXPORT*/
|
||||
|
||||
/*######################################################################*/
|
||||
class CPA_EXPORT CTL_Editor_Mask
|
||||
{
|
||||
public:
|
||||
CTL_Editor_Mask(CString _csString, unsigned long _ulValue);
|
||||
~CTL_Editor_Mask();
|
||||
|
||||
/*Members*/
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
CString m_pri_csString;
|
||||
unsigned long m_pri_ulMaskValue;
|
||||
|
||||
/*Functions*/
|
||||
public:
|
||||
CString m_pub_fn_csGetString();
|
||||
unsigned long m_pub_fn_ulGetMaskValue();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
/*######################################################################*/
|
||||
class CPA_EXPORT CTL_Editor_MaskDescriptor : public CList<CTL_Editor_Mask *, CTL_Editor_Mask *>
|
||||
{
|
||||
public:
|
||||
CTL_Editor_MaskDescriptor(CString _csName);
|
||||
~CTL_Editor_MaskDescriptor();
|
||||
|
||||
/*Members*/
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
CString m_pri_csName;
|
||||
|
||||
/*Functions*/
|
||||
public:
|
||||
CString m_pub_fn_csGetName();
|
||||
CTL_Editor_Mask *m_pub_fn_pclAddMask(CString _csString, unsigned long _ulValue);
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
void m_pri_fn_vEmptyList();
|
||||
|
||||
};
|
||||
|
||||
/*######################################################################*/
|
||||
class CPA_EXPORT CTL_Editor_MaskList : public CList<CTL_Editor_MaskDescriptor *, CTL_Editor_MaskDescriptor *>
|
||||
{
|
||||
public:
|
||||
CTL_Editor_MaskList();
|
||||
~CTL_Editor_MaskList();
|
||||
|
||||
/*Members*/
|
||||
public:
|
||||
CTL_Editor_MaskDescriptor *m_pub_fn_pclAddMaskDescriptor(CString _csName);
|
||||
void m_pub_fn_vEmptyList();
|
||||
|
||||
CTL_Editor_MaskDescriptor *m_fn_pclGetMaskDescriptorByName(CString _csDescriptorName);
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
/*Functions*/
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif /*_CTL_EDITORS__MASK_LIST_HPP_*/
|
||||
|
98
Rayman_X/cpa/public/CTL/Others/CTL_ODat.hpp
Normal file
98
Rayman_X/cpa/public/CTL/Others/CTL_ODat.hpp
Normal file
@@ -0,0 +1,98 @@
|
||||
/* Definitions for the classes to handle lists of Owner Data*/
|
||||
/**/
|
||||
/* YB*/
|
||||
/*/////////////////////////////////////////////////////////////*/
|
||||
#ifndef _CTL_OWNER_DATA_
|
||||
#define _CTL_OWNER_DATA_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
#include <afxtempl.h>
|
||||
#include "ACP_Base.h"
|
||||
|
||||
/*#############################################################*/
|
||||
typedef enum CTL_eOwnerData_Type
|
||||
{
|
||||
CTL_OWNER_DATA_TYPE_POINTER = 0,
|
||||
CTL_OWNER_DATA_TYPE_LONG,
|
||||
|
||||
} CTL_tdeOwnerData_Type;
|
||||
|
||||
/*#############################################################*/
|
||||
class CPA_EXPORT CTL_OwnerData
|
||||
{
|
||||
public:
|
||||
/*Constructors*/
|
||||
CTL_OwnerData(void *_pvDataPtr,
|
||||
CString _csName);
|
||||
CTL_OwnerData(long _lData,
|
||||
CString _csName);
|
||||
/*Destructor*/
|
||||
~CTL_OwnerData();
|
||||
|
||||
/*Attributes*/
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
CString m_pri_csName;
|
||||
void *m_pri_pvDataPtr;
|
||||
long m_pri_lData;
|
||||
|
||||
CTL_tdeOwnerData_Type m_pri_tdeType;
|
||||
|
||||
/*Functiosn*/
|
||||
public:
|
||||
CString m_pub_fn_csGetName();
|
||||
|
||||
/*Data Pointer*/
|
||||
void *m_pub_fn_pvGetDataPtr();
|
||||
void m_pub_fn_vSetDataPtr(void *_pvDataPtr);
|
||||
|
||||
/*Data*/
|
||||
long m_pub_fn_lGetData();
|
||||
void m_pub_fn_vSetData(long _lData);
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
/*#############################################################*/
|
||||
class CPA_EXPORT CTL_ListOfOwnerData : public CList<CTL_OwnerData *, CTL_OwnerData *>
|
||||
{
|
||||
public:
|
||||
CTL_ListOfOwnerData();
|
||||
~CTL_ListOfOwnerData();
|
||||
|
||||
/*Attributes*/
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
/*Functiosn*/
|
||||
public:
|
||||
void m_pub_fn_vAddOwnerData(CTL_OwnerData *_pclNewOwnerData);
|
||||
CTL_OwnerData *m_pub_fn_pclAddOwnerData(void *_pvDataPtr,
|
||||
CString _csName);
|
||||
CTL_OwnerData *m_pub_fn_pclAddOwnerData(long _lData,
|
||||
CString _csName);
|
||||
|
||||
void m_pub_fn_vEmptyListAndDestroyElements();
|
||||
void m_pub_fn_vEmptyListWithoutDestroyingElements();
|
||||
|
||||
CTL_OwnerData *m_pub_fn_pclFindOwnerDataWithName(CString _csSearchedName);
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif /*_CTL_OWNER_DATA_*/
|
44
Rayman_X/cpa/public/CTL/Others/CTL_Pub.hpp
Normal file
44
Rayman_X/cpa/public/CTL/Others/CTL_Pub.hpp
Normal file
@@ -0,0 +1,44 @@
|
||||
/* Global public functions*/
|
||||
/**/
|
||||
/* YB*/
|
||||
/*////////////////////////////*/
|
||||
#ifndef _CTL_GLOBAL_PUBLIC_FUNCTIONS_
|
||||
#define _CTL_GLOBAL_PUBLIC_FUNCTIONS_
|
||||
|
||||
#include "ACP_Base.h" /*for CPA_EXPORT*/
|
||||
|
||||
#include "CTL\Others\CTL_ClBk.hpp"
|
||||
|
||||
void CPA_EXPORT CTL_fn_vSetDefaultCallBackFunctionWhenControlMustBeDisplayed(CTL_td_p_fn_bControlCanBeDisplayed _p_fnCallBack);
|
||||
void CPA_EXPORT CTL_fn_vSetDefaultCallBackFunctionWhenDataHasChanged(CTL_td_p_fn_vCallBackWhenDataHasChanged _p_fnCallBack);
|
||||
|
||||
void CPA_EXPORT CTL_fn_vSetDefaultCallBackFunctionWhenStaticIsClicked(CTL_td_p_fn_vStaticHasBeenClicked _p_fnDefaultCallBack_StaticHasBeenClicked);
|
||||
void CPA_EXPORT CTL_fn_vSetDefaultCallBackFunctionToGetStaticColor(CTL_tdp_fn_vGetColor _p_fnDefaultCallBack_StaticColor);
|
||||
|
||||
CString CPA_EXPORT CTL_fn_csGetVersion();
|
||||
|
||||
/*For TUT*/
|
||||
void CPA_EXPORT CTL_fn_vSetModuleInfo(CString _csTAG,
|
||||
CString _csSecondaryInfo = "");
|
||||
void CPA_EXPORT CTL_fn_vResetModuleInfo();
|
||||
|
||||
CString CPA_EXPORT CTL_fn_csGetCurrentTAG();
|
||||
CString CPA_EXPORT CTL_fn_csGetCurrentSecondaryInfo();
|
||||
|
||||
/*Get/Set memory functions*/
|
||||
void CPA_EXPORT CTL_fn_vSetMemory(void *pvDest,
|
||||
void *pvSource,
|
||||
char cDataLength);
|
||||
|
||||
void CPA_EXPORT CTL_fn_vGetMemory(void *pvSource,
|
||||
void *pvDest,
|
||||
char cDataLength);
|
||||
|
||||
/*Returns 'CTL_g_lCurrentId', and adds one to it*/
|
||||
/*.... Will be improved ....*/
|
||||
long CPA_EXPORT CTL_fn_lGetNextAvailableIDForControl();
|
||||
|
||||
/*Returns the last returned ID*/
|
||||
long CPA_EXPORT CTL_fn_lGetCurrentIDForControl();
|
||||
|
||||
#endif /*_CTL_GLOBAL_PUBLIC_FUNCTIONS_*/
|
50
Rayman_X/cpa/public/CTL/Others/CTL_TTT.hpp
Normal file
50
Rayman_X/cpa/public/CTL/Others/CTL_TTT.hpp
Normal file
@@ -0,0 +1,50 @@
|
||||
/*bbb 13/03/97 tout*/
|
||||
/* Definitions for the class CMyDocument*/
|
||||
/*///////////////////////////////////////////*/
|
||||
#ifndef _CTL_TOOL_TIP_
|
||||
#define _CTL_TOOL_TIP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "ITF.h"
|
||||
#include "MEC.h"
|
||||
#define D_State_Define
|
||||
#include "IncGAM.h"
|
||||
#undef D_State_Define
|
||||
#include "GLI.h"
|
||||
|
||||
class CPA_EXPORT tdoTTTData
|
||||
{
|
||||
|
||||
public:
|
||||
tdoTTTData();
|
||||
~tdoTTTData();
|
||||
tdoTTTData &m_roSet(char *_pszModelText, char *_pszInstanceText = NULL);
|
||||
unsigned int m_uiId(UINT uiNewId = 0) { return uiNewId ? (m_uiRessourceId = uiNewId) : m_uiRessourceId; }
|
||||
const char *operator [](BOOL bIsAModel);
|
||||
|
||||
private:
|
||||
unsigned int m_uiRessourceId;
|
||||
const char *m_pszModelText;
|
||||
const char *m_pszInstanceText;
|
||||
};
|
||||
|
||||
|
||||
class CPA_EXPORT CTL_ToolTipTextDatabase
|
||||
{
|
||||
public:
|
||||
CTL_ToolTipTextDatabase() {};
|
||||
~CTL_ToolTipTextDatabase();
|
||||
/*returns a reference to an id/text association*/
|
||||
tdoTTTData &operator[](unsigned int uiControlId);
|
||||
|
||||
private:
|
||||
CPA_List<tdoTTTData> m_oDataList;
|
||||
};
|
||||
|
||||
#endif /*_CTL_TOOL_TIP_*/
|
||||
|
||||
|
Reference in New Issue
Block a user