Add rayman2 source files
This commit is contained in:
111
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/CPA_CtlO.hpp
Normal file
111
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/CPA_CtlO.hpp
Normal file
@@ -0,0 +1,111 @@
|
||||
// Header for the definition of an object list
|
||||
///////////////////////////////////////////////////////////
|
||||
#ifndef _CPACTLO_HPP_
|
||||
#define _CPACTLO_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
//External Modules
|
||||
#include "CTL.h"
|
||||
//End of External Modules
|
||||
|
||||
#include "EDACCust.hpp"
|
||||
|
||||
class CPA_Editor_ComboBox;
|
||||
class CPA_Editor_CheckBox;
|
||||
|
||||
//#########################################################
|
||||
class CPA_Editor_ObjectListControl : public CTL_Editor_Control
|
||||
{
|
||||
//Constructor / Destructor
|
||||
public:
|
||||
CPA_Editor_ObjectListControl(BOOL bReadOnly,
|
||||
BOOL bUserCanChangeAspect,
|
||||
BOOL bNoNames,
|
||||
BOOL bNoAlternateList,
|
||||
CTL_Editor_ControlList *_pclParentList,
|
||||
CString _csControlName,
|
||||
BOOL _bAcceptsToTakeNameOfData, //ANNECY BBB
|
||||
//Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
unsigned char ucInitialCurrentPair
|
||||
//End Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
|
||||
);
|
||||
|
||||
~CPA_Editor_ObjectListControl();
|
||||
|
||||
//Attributes
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
//for models AND instances:
|
||||
//calls the name list edit dialog in model mode,
|
||||
//and the object list editor in instance mode
|
||||
CTL_Editor_Button *m_p_oPushButtonToEdit;
|
||||
CTL_Editor_Button *m_p_oPushButtonToRename; //to rename the current object list (for an instance)
|
||||
|
||||
//the list of list names in model mode
|
||||
//the list of names used in the IA text in instance mode
|
||||
CTL_Editor_ComboBox *m_p_oNamesCombo;
|
||||
CTL_Editor_ComboBox *m_p_oAlternateNamesCombo;
|
||||
|
||||
//for instances only
|
||||
//if TRUE, the user cannot choose a name for an item in the list
|
||||
BOOL m_bNoNames;
|
||||
BOOL m_bNoAlternateList;
|
||||
|
||||
//Member functions
|
||||
public:
|
||||
//Function called to create controls (must be called only once)
|
||||
BOOL m_fn_bCreateControl(CWnd *pclParentWnd);
|
||||
|
||||
//Function called to display the associated control of the char.
|
||||
void m_fn_vDisplay();
|
||||
|
||||
//Function called to update the associated control of the char.
|
||||
void m_fn_vUpdate(CTL_tdeUpdateReason _eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
//Function called to update parent window in case of values changes.
|
||||
void m_fn_vUpdateParent(CTL_tdeUpdateReason eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
//Function called to make control Read Only
|
||||
void m_fn_vMakeReadOnly();
|
||||
|
||||
//Function called to make control Read-Write
|
||||
void m_fn_vMakeReadWrite();
|
||||
|
||||
//overload of the virtual member of CPA_Editor_Enumerable
|
||||
virtual void m_fn_vUpdateCurrentValue(short wAction = 0);
|
||||
//overload of the virtual member of CPA_Editor_Buttonable
|
||||
virtual void m_fn_vSetValue(short wAction);
|
||||
|
||||
static void s_m_fn_vAButtonHasBeenClicked(class CTL_Editor_Button *_pclSenderButton,
|
||||
class CTL_Editor_Control *_pclParentControl,
|
||||
enum CTL_eButtonType _tdeType,
|
||||
long _lUserDefinedType,
|
||||
long _lUserDefinedCode);
|
||||
|
||||
static void s_m_fn_vComboBoxSelChanged(class CTL_Editor_ComboBox *_pclSenderComboBox,
|
||||
class CTL_Editor_Control *_pclParentControl,
|
||||
enum CTL_eComboBoxType _tdeType,
|
||||
long _lUserDefinedType,
|
||||
long _lUserDefinedCode);
|
||||
|
||||
static BOOL s_m_fn_bRenameButtonCanBeDisplayed(class CTL_Editor_BaseControl *_pclSenderBaseControl);
|
||||
static BOOL s_m_fn_bButtonMustBeEnabled(class CTL_Editor_BaseControl *_pclSenderBaseControl);
|
||||
static BOOL s_m_fn_bComboMustBeEnabled(class CTL_Editor_BaseControl *_pclSenderBaseControl);
|
||||
static BOOL s_m_fn_bAlternateComboMustBeDisplayed(class CTL_Editor_BaseControl *_pclSenderBaseControl);
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif //_CPACTLO_HPP_
|
99
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/CPA_CtlS.hpp
Normal file
99
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/CPA_CtlS.hpp
Normal file
@@ -0,0 +1,99 @@
|
||||
// Header for the definition of an enum characteristic
|
||||
///////////////////////////////////////////////////////////
|
||||
#ifndef _CPACSCTL_HPP_
|
||||
#define _CPACSCTL_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
//External Modules
|
||||
#include "CTL.h"
|
||||
//End of External Modules
|
||||
|
||||
class CPA_Editor_StateControl : public CTL_Editor_Control
|
||||
{
|
||||
//Constructor / Destructor
|
||||
public:
|
||||
CPA_Editor_StateControl(BOOL _bReadOnly,
|
||||
CTL_Editor_ControlList *_pclParentList,
|
||||
CString _csControlName,
|
||||
BOOL _bAcceptsToTakeNameOfData, //ANNECY BBB
|
||||
//Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
unsigned char ucInitialCurrentPair
|
||||
//End Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
);
|
||||
|
||||
~CPA_Editor_StateControl();
|
||||
|
||||
//Attributes
|
||||
public:
|
||||
CTL_Editor_EnumDescriptor *m_pclEnumDescriptorForActions;
|
||||
CTL_Editor_EnumDescriptor *m_pclEnumDescriptorForStates;
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
CTL_Editor_ComboBox *m_pclComboBoxForActions;
|
||||
CTL_Editor_Static *m_pclStaticForActions;
|
||||
CTL_Editor_Static *m_pclStaticForStatesName;
|
||||
CTL_Editor_Static *m_pclStaticForStates;
|
||||
CTL_Editor_CheckBox *m_pclCheckBoxForRandom;
|
||||
|
||||
//Member functions
|
||||
public:
|
||||
//Function called to create associated control
|
||||
BOOL m_fn_bCreateControl(CWnd *pclParentWnd);
|
||||
|
||||
//Function called to display the associated control of the char.
|
||||
void m_fn_vDisplay();
|
||||
|
||||
//Function called to update parent window in case of values changes.
|
||||
void m_fn_vUpdateParent(CTL_tdeUpdateReason eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
//Function called to update controls in case of values changes.
|
||||
void m_fn_vUpdate(CTL_tdeUpdateReason _eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
//overload of the virtual member of CPA_Editor_Enumerable
|
||||
void m_fn_vUpdateCurrentValue();
|
||||
|
||||
//Function called to make control Read Only
|
||||
void m_fn_vMakeReadOnly();
|
||||
|
||||
//Function called to make control Read-Write
|
||||
void m_fn_vMakeReadWrite();
|
||||
|
||||
static BOOL s_m_fn_bStaticCanBeDisplayed(class CTL_Editor_BaseControl *_pclSenderBaseControl);
|
||||
static BOOL s_m_fn_bComboBoxCanBeDisplayed(class CTL_Editor_BaseControl *_pclSenderBaseControl);
|
||||
static BOOL s_m_fn_bButtonCanBeDisplayed(class CTL_Editor_BaseControl *_pclSenderBaseControl);
|
||||
|
||||
//When the Check Box is Clicked
|
||||
static void s_m_fn_vCheckBoxHasBeenClicked(class CTL_Editor_CheckBox *_pclSenderCheckBox,
|
||||
class CTL_Editor_Control *_pclParentControl,
|
||||
enum CTL_eCarCheckBoxType _tdeType,
|
||||
long _lUserDefinedType,
|
||||
long _lUserDefinedCode);
|
||||
|
||||
//When selection has been changed in Actions Combo box
|
||||
static void s_m_fn_vComboBoxSelChanged(class CTL_Editor_ComboBox *_pclSenderComboBox,
|
||||
class CTL_Editor_Control *_pclParentControl,
|
||||
enum CTL_eComboBoxType _tdeType,
|
||||
long _lUserDefinedType,
|
||||
long _lUserDefinedCode);
|
||||
|
||||
//When selection has been changed in Actions Combo box
|
||||
static void s_m_fn_vComboBoxDroppedDown(class CTL_Editor_ComboBox *_pclSenderComboBox,
|
||||
class CTL_Editor_Control *_pclParentControl,
|
||||
enum CTL_eComboBoxType _tdeType,
|
||||
long _lUserDefinedType,
|
||||
long _lUserDefinedCode);
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif //_CPACSCTL_HPP_
|
171
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/CPA_DatO.hpp
Normal file
171
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/CPA_DatO.hpp
Normal file
@@ -0,0 +1,171 @@
|
||||
// Header for the definition of an ObjectList characteristic
|
||||
///////////////////////////////////////////////////////////
|
||||
#ifndef _CPACOTYP_HPP_
|
||||
#define _CPACOTYP_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include <afxtempl.h>
|
||||
|
||||
//External Modules
|
||||
#include "CTL.h"
|
||||
#include "ITF.h"
|
||||
//End of External Modules
|
||||
|
||||
class CPA_tdoNameList;
|
||||
class EdtList;
|
||||
class CPA_ZonesActivatingList;
|
||||
|
||||
//#########################################################################################
|
||||
class CPA_Editor_ObjectList : public CPA_BaseObject, public CPA_List<CPA_BaseObject *>
|
||||
{
|
||||
public:
|
||||
//args for the CPA_BaseObject constructor
|
||||
CPA_Editor_ObjectList(CPA_EditorBase *p_oDLL,
|
||||
CString csObjectType,
|
||||
CPA_BaseObject *p_oOwner
|
||||
)
|
||||
: CPA_BaseObject(p_oDLL,
|
||||
csObjectType,
|
||||
p_oOwner
|
||||
)
|
||||
{};
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
//Virtual functions
|
||||
virtual long GetDataType(void);
|
||||
virtual void *GetData(void);
|
||||
};
|
||||
|
||||
//#########################################################################################
|
||||
class CPA_Editor_ObjectListData : public CTL_Editor_Data
|
||||
{
|
||||
public:
|
||||
//Constructor
|
||||
CPA_Editor_ObjectListData( CString,
|
||||
CTL_Editor_DataList *_pclParentList,
|
||||
CTL_Editor_Data *pclCurrentBaseData = NULL);
|
||||
|
||||
// Destructor
|
||||
~CPA_Editor_ObjectListData();
|
||||
|
||||
//Attributes
|
||||
public:
|
||||
//for the instance: the current list of objects
|
||||
//CPA_Editor_ObjectList *m_p_oObjectList;
|
||||
//for the model: the current list of names, also used to fill the instance's objnamecombo
|
||||
CPA_tdoNameList *m_p_oNameList, *m_p_oOldNameList, *m_p_oNameListKeptForUndo;
|
||||
EdtList *m_p_oObjectList, *m_p_oOldObjectList, *m_p_oObjectListKeptForUndo;
|
||||
CPA_ZonesActivatingList *m_p_oZAList, *m_p_oOldZAList, *m_p_oZAListKeptForUndo;
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
//Member functions
|
||||
public:
|
||||
//Function called to get a string representing the value of the data
|
||||
CStringList *m_fn_pcslFormatDataValueString();
|
||||
//Function called to set the value of the data acoording to a string representing it
|
||||
void m_fn_vSetValueWithString(CStringList *);
|
||||
|
||||
//Function called to Init the data
|
||||
void m_fn_vInitData();
|
||||
|
||||
//Function called to read associated motor's data
|
||||
void m_fn_vGetMotorData();
|
||||
|
||||
//Function called to update associated motor's data
|
||||
void m_fn_vUpdateMotorData(CTL_tdeUpdateReason eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
//Function called to update data with another one
|
||||
void m_fn_vUpdateData(CTL_Editor_Data *pclSourceData,
|
||||
CTL_tdeUpdateReason eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
//Function called to look if data has been modified (by motor for example)
|
||||
void m_fn_vLookIfDataHasBeenModified();
|
||||
|
||||
//sets the value and maintains coherence at the same time
|
||||
void m_vSetZAList(CPA_ZonesActivatingList *_p_oZAList);
|
||||
void m_vSetObjectList(EdtList *_p_oObjectList);
|
||||
|
||||
// update engine value
|
||||
void m_vUpdateEngineZAList();
|
||||
void m_vUpdateEngineObjectList();
|
||||
|
||||
//Undo
|
||||
//Function called to save the current Value (for Undo)
|
||||
void m_fn_vKeepCurrentValue();
|
||||
|
||||
//Function called to validate Undo for the current change
|
||||
void m_fn_vRegisterUndoAction();
|
||||
|
||||
//
|
||||
void m_fn_vDataHasBeenReallyModified();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
//##################################################################"
|
||||
//this modification handler is used only when the user changes the current
|
||||
//name list for a model or the current object list for an instance.
|
||||
class CPA_ObjectListDataModif : public CPA_Modif
|
||||
{
|
||||
public:
|
||||
//Constructor
|
||||
CPA_ObjectListDataModif(
|
||||
CPA_Editor_ObjectListData *p_oData,
|
||||
void *pOldList,
|
||||
void *pNewList,
|
||||
void *_pOldAlternateList,
|
||||
void *_pNewAlternateList
|
||||
);
|
||||
|
||||
//Destructor
|
||||
~CPA_ObjectListDataModif();
|
||||
|
||||
BOOL Do();
|
||||
BOOL Undo();
|
||||
|
||||
//Members
|
||||
private:
|
||||
CPA_Editor_ObjectListData *m_p_oData;
|
||||
void *m_pListBeforeDo;
|
||||
void *m_pListAfterDo;
|
||||
void *m_pAlternateListBeforeDo, *m_pAlternateListAfterDo;
|
||||
};
|
||||
|
||||
|
||||
//ROMTEAM correction (Nicu 06-02-98)
|
||||
class OAC_FloatData : public CTL_Editor_DecimalData
|
||||
{
|
||||
public:
|
||||
OAC_FloatData(char size, CString name, CTL_Editor_DataList *list, CTL_Editor_Data *data=NULL) :
|
||||
CTL_Editor_DecimalData(size, name, list, data){};
|
||||
|
||||
//Function called to read associated motor's data
|
||||
void m_fn_vGetMotorData();
|
||||
|
||||
//Function called to update associated motor's data
|
||||
void m_fn_vUpdateMotorData(CTL_tdeUpdateReason eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
//Function called to get a string representing the value of the data
|
||||
CStringList *m_fn_pcslFormatDataValueString();
|
||||
|
||||
//Function called to set the value of the data acoording to a string representing it
|
||||
void m_fn_vSetValueWithString(CStringList *pcslValueStringList);
|
||||
|
||||
};
|
||||
//ENDROMTEAM correction (Nicu)
|
||||
|
||||
#endif //_CPACOTYP_HPP_
|
98
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/CPA_DatS.hpp
Normal file
98
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/CPA_DatS.hpp
Normal file
@@ -0,0 +1,98 @@
|
||||
// Header for the definition of an enum characteristic
|
||||
///////////////////////////////////////////////////////////
|
||||
#ifndef _OAC_DATA_STATE_
|
||||
#define _OAC_DATA_STATE_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
//External Modules
|
||||
#include "TAc.h"
|
||||
#include "CTL.h"
|
||||
//End of External Modules
|
||||
|
||||
class CPA_Editor_StateData : public CTL_Editor_Data
|
||||
{
|
||||
//Constructor / Destructor
|
||||
public:
|
||||
CPA_Editor_StateData(CString,
|
||||
CTL_Editor_DataList *_pclParentList,
|
||||
CTL_Editor_Data *pclCurrentBaseData = NULL);
|
||||
|
||||
~CPA_Editor_StateData();
|
||||
|
||||
//Attributes
|
||||
public:
|
||||
CTL_Editor_EnumElement *m_pclCurrentValueForStates;
|
||||
CTL_Editor_EnumElement *m_pclOldValueForStates;
|
||||
CTL_Editor_EnumElement *m_pclCurrentValueForActions;
|
||||
CTL_Editor_EnumElement *m_pclOldValueForActions;
|
||||
|
||||
CTL_Editor_EnumElement *m_pclKeepedValueForUndoForStates;
|
||||
CTL_Editor_EnumElement *m_pclKeepedValueForUndoForActions;
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
BOOL m_pri_bIsTheInitialState;
|
||||
|
||||
CTL_Editor_EnumDescriptor *m_pclEnumDescriptorForStates;
|
||||
CTL_Editor_EnumDescriptor *m_pclEnumDescriptorForActions;
|
||||
|
||||
//For State, keeps Action
|
||||
CPA_Action *m_pclAction;
|
||||
|
||||
//Member functions
|
||||
public:
|
||||
//Function called to get a string representing the value of the data
|
||||
CStringList *m_fn_pcslFormatDataValueString();
|
||||
//Function called to set the value of the data acoording to a string representing it
|
||||
void m_fn_vSetValueWithString(CStringList *);
|
||||
|
||||
//Function called to Init the data
|
||||
void m_fn_vInitData();
|
||||
|
||||
//Function called to read associated motor's data
|
||||
void m_fn_vGetMotorData();
|
||||
|
||||
//Function called to update associated motor's data
|
||||
void m_fn_vUpdateMotorData(CTL_tdeUpdateReason eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
//Function called to update data with another one
|
||||
void m_fn_vUpdateData(CTL_Editor_Data *pclSourceData,
|
||||
CTL_tdeUpdateReason eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
//Function called to look if data has been modified (by motor for example)
|
||||
void m_fn_vLookIfDataHasBeenModified();
|
||||
|
||||
//Function called when data has been really modified (i.e. value is different from previous one)
|
||||
void m_fn_vDataHasBeenReallyModified();
|
||||
|
||||
//Undo
|
||||
//Function called to save the current Value (for Undo)
|
||||
void m_fn_vKeepCurrentValue();
|
||||
|
||||
//Function called to validate Undo for the current change
|
||||
void m_fn_vRegisterUndoAction();
|
||||
|
||||
//Specific
|
||||
|
||||
CTL_Editor_EnumDescriptor *m_fn_pclGetEnumDescriptorForActions();
|
||||
CTL_Editor_EnumDescriptor *m_fn_pclGetEnumDescriptorForStates();
|
||||
void m_fn_vConstructEnumDescriptors();
|
||||
|
||||
//Called when Action Data has been changed, to update State Data
|
||||
BOOL m_fn_bSetCurrentValueForStateAccordingToAction();
|
||||
|
||||
BOOL m_pub_fn_bIsTheInitialState();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif //_OAC_DATA_STATE_
|
224
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/EDACCust.hpp
Normal file
224
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/EDACCust.hpp
Normal file
@@ -0,0 +1,224 @@
|
||||
// Used for Data and Controls customization
|
||||
//
|
||||
// YB
|
||||
//
|
||||
/////////////////////////////////////////////////////
|
||||
#ifndef _OAC_DATA_AND_CONTROLS_CUSTOMIZATION_
|
||||
#define _OAC_DATA_AND_CONTROLS_CUSTOMIZATION_
|
||||
|
||||
//External Modules
|
||||
#include "CTL.h"
|
||||
#include "WAW.h"
|
||||
//End of External Modules
|
||||
|
||||
//#########################################################
|
||||
typedef enum OAC_eEditorDataType
|
||||
{
|
||||
OAC_DATA_TYPE__OBJECT_LIST = 1,
|
||||
OAC_DATA_TYPE__STATE,
|
||||
|
||||
} OAC_tdeEditorDataType;
|
||||
|
||||
//#########################################################
|
||||
typedef enum OAC_eUpdateReason
|
||||
{
|
||||
OAC_E_ur_NoReasonGiven = 0,
|
||||
OAC_E_ur_InstanceChangedObjectList,
|
||||
OAC_E_ur_ModelChangedNameList,
|
||||
OAC_E_ur_InstanceChangedAlternateList,
|
||||
OAC_E_ur_InstanceRenamedObjectList,
|
||||
OAC_E_ur_ModelEditedNameList,
|
||||
OAC_E_ur_ComboSelChanged,
|
||||
OAC_E_ur_ButtonClicked,
|
||||
OAC_E_ur_InstanciatedFromModel,
|
||||
|
||||
OAC_E_ur_ModelDataChanged,
|
||||
|
||||
} OAC_tdeUpdateReason;
|
||||
|
||||
//#########################################################
|
||||
typedef enum OAC_eDataLinkMode
|
||||
{
|
||||
OAC_LINK_MODE__NOT_LINKED = 0,
|
||||
OAC_LINK_MODE__LINKED,
|
||||
//Those modes are for data whose link mode cannot be changed by the user
|
||||
OAC_LINK_MODE__ALWAYS_LINKED,
|
||||
OAC_LINK_MODE__NEVER_LINKED,
|
||||
|
||||
} OAC_tdeDataLinkMode;
|
||||
|
||||
OAC_tdeDataLinkMode eNot(OAC_tdeDataLinkMode _eMode);
|
||||
|
||||
//#########################################################
|
||||
typedef enum OAC_eDataLevel
|
||||
{
|
||||
OAC_DATA_LEVEL_1 = 1,
|
||||
OAC_DATA_LEVEL_2 = 2,
|
||||
OAC_DATA_LEVEL_3 = 3,
|
||||
|
||||
} OAC_tdeDataLevel;
|
||||
|
||||
//BEGIN ROMTEAM Cristi Petrescu 98-06-
|
||||
typedef enum OAC_eDataQualifier
|
||||
{
|
||||
OAC_DATA_PUBLIC,
|
||||
OAC_DATA_PRIVATE,
|
||||
|
||||
} OAC_tdeDataQualifier;
|
||||
//END ROMTEAM Cristi Petrescu 98-06-
|
||||
|
||||
//#########################################################
|
||||
typedef enum OAC_eStaticType
|
||||
{
|
||||
OAC_STATIC_TYPE__INSTANCE_NAME = 1,
|
||||
OAC_STATIC_TYPE__MODEL_NAME,
|
||||
OAC_STATIC_TYPE__FAMILY_NAME,
|
||||
|
||||
} OAC_tdeStaticType;
|
||||
|
||||
//#########################################################
|
||||
typedef enum OAC_eCheckBoxType
|
||||
{
|
||||
OAC_CHECK_BOX_TYPE__LINK = 1,
|
||||
|
||||
} OAC_tdeCheckBoxType;
|
||||
|
||||
//#########################################################
|
||||
typedef enum OAC_eButtonType
|
||||
{
|
||||
OAC_BUTTON_TYPE__OBJECTS_LIST_BUTTON = 1,
|
||||
|
||||
} OAC_tdeButtonType;
|
||||
|
||||
//#########################################################
|
||||
typedef enum OAC_eButtonReturnCodeValue
|
||||
{
|
||||
OAC_BUTTON_RETURN_CODE_VALUE__OBJECTS_LIST_EDIT = 1,
|
||||
OAC_BUTTON_RETURN_CODE_VALUE__OBJECTS_LIST_RENAME,
|
||||
|
||||
} OAC_tdeButtonReturnCodeValue;
|
||||
|
||||
//#########################################################
|
||||
typedef enum OAC_eComboBoxType
|
||||
{
|
||||
OAC_COMBO_BOX_TYPE__OBJECTS_LIST_COMBO_BOX = 1,
|
||||
|
||||
} OAC_tdeComboBoxType;
|
||||
|
||||
//#########################################################
|
||||
typedef enum OAC_eComboBoxReturnCodeValue
|
||||
{
|
||||
OAC_COMBO_BOX_RETURN_CODE_VALUE__OBJECTS_LIST_NAMES = 1,
|
||||
OAC_COMBO_BOX_RETURN_CODE_VALUE__OBJECTS_LIST_ALTERNATE_NAMES,
|
||||
|
||||
} OAC_tdeComboBoxReturnCodeValue;
|
||||
|
||||
//#########################################################
|
||||
typedef enum OAC_eControlVisibility
|
||||
{
|
||||
EDCAR_DATA_VISI_ONLY_INSTANCES = 0,
|
||||
EDCAR_DATA_VISI_ONLY_MODELS,
|
||||
EDCAR_DATA_VISI_DUAL,
|
||||
|
||||
} OAC_tdeControlVisibility;
|
||||
|
||||
class EdActors_EditorActor;
|
||||
class EdActors_ActorMiniStructure;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//Owner Data Functions
|
||||
/////////////////////
|
||||
//Data
|
||||
///////////
|
||||
void OAC_AddOwnerDataToData(CTL_Editor_Data *_pclData,
|
||||
EdActors_EditorActor *_pclParentActor,
|
||||
EdActors_ActorMiniStructure *_pclParentAMS);
|
||||
|
||||
EdActors_EditorActor *OAC_fn_pclGetParentActorOfData(CTL_Editor_Data *_pclData);
|
||||
|
||||
EdActors_ActorMiniStructure *OAC_fn_pclGetParentAMSOfData(CTL_Editor_Data *_pclData);
|
||||
|
||||
OAC_eDataLinkMode OAC_fn_tdeGetLink(CTL_Editor_Data *_pclData);
|
||||
//Returns the previous Link status
|
||||
OAC_eDataLinkMode OAC_fn_tdeSetLink(CTL_Editor_Data *_pclData,
|
||||
OAC_eDataLinkMode _tdeNewLink);
|
||||
BOOL OAC_fn_bIsLinked(CTL_Editor_Data *_pclData);
|
||||
//CPA2 Stegaru Cristian 98/06/24
|
||||
BOOL OAC_fn_bLinkAllowPropagation (CTL_Editor_Data *pclData);
|
||||
//End CPA2 Stegaru Cristian 98/06/24
|
||||
|
||||
BOOL OAC_fn_bDataIsInWatch(CTL_Editor_Data *_pclData);
|
||||
WAW_Data *OAC_fn_pclGetAssociatedWatchData(CTL_Editor_Data *_pclData);
|
||||
void OAC_fn_vSetDataInWatch(CTL_Editor_Data *_pclData,
|
||||
WAW_Data *_p_clDataInWatch);
|
||||
|
||||
//Controls
|
||||
///////////
|
||||
void OAC_AddOwnerDataToControl(CTL_Editor_Control *_pclControl,
|
||||
OAC_tdeDataLevel _eLevel,
|
||||
OAC_tdeControlVisibility _eVisibility,
|
||||
DWORD dwHelpID);
|
||||
|
||||
OAC_tdeControlVisibility OAC_tdeGetVisibilityOfControl(CTL_Editor_Control *_pclControl);
|
||||
|
||||
OAC_eDataLevel OAC_fn_tdeGetLevelOfControl(CTL_Editor_Control *_pclControl);
|
||||
|
||||
DWORD OAC_fn_tdeGetHelpIDOfControl(CTL_Editor_Control *_pclControl);
|
||||
|
||||
void OAC_fn_vCustomizeControl(CTL_Editor_Control *_pclControl,
|
||||
CWnd *_pclParentWnd);
|
||||
|
||||
BOOL OAC_fn_bControlCanBeDisplayed(class CTL_Editor_Control *_pclSenderControl);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//CallBack functions
|
||||
/////////////////////
|
||||
//Data
|
||||
///////////
|
||||
void OAC_fn_vDataHasBeenChanged(class CTL_Editor_Data *_pclChangedData,
|
||||
enum CTL_eUpdateReason _eReason,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
BOOL OAC_fn_bVectorDataMustBeRead(CTL_Editor_Data *_pclData);
|
||||
BOOL OAC_fn_bVectorDataMustBeWritten(CTL_Editor_Data *_pclData);
|
||||
|
||||
//Controls
|
||||
///////////
|
||||
|
||||
|
||||
//Windows Controls
|
||||
////////////////////
|
||||
void OAC_fn_vFieldNameStaticHasBeenClicked_CallBack(class CTL_Editor_Static *_pclSenderStatic,
|
||||
enum CTL_eClickType _tdeClickType);
|
||||
void OAC_fn_vInstanceNameStaticHasBeenClicked_CallBack(class CTL_Editor_Static *_pclSenderStatic,
|
||||
enum CTL_eClickType _tdeClickType);
|
||||
void OAC_fn_vModelNameStaticHasBeenClicked_CallBack(class CTL_Editor_Static *_pclSenderStatic,
|
||||
enum CTL_eClickType _tdeClickType);
|
||||
void OAC_fn_ColRefGetStaticColor_CallBack(class CTL_Editor_Static *_pclSenderStatic,
|
||||
COLORREF &r_ColRefBackGround,
|
||||
COLORREF &r_ColRefText);
|
||||
void OAC_fn_vCheckBoxHasBeenClicked_CallBack(class CTL_Editor_CheckBox *_pclSenderCheckBox,
|
||||
class CTL_Editor_Control *_pclParentControl,
|
||||
enum CTL_eCarCheckBoxType _tdeType,
|
||||
long _lUserDefinedType,
|
||||
long _lUserDefinedCode);
|
||||
|
||||
BOOL OAC_fn_bLinkCheckBoxCanBeDisplayed_CallBack(class CTL_Editor_BaseControl *_pclSenderBaseControl);
|
||||
BOOL OAC_fn_bLinkCheckBoxMustBeEnabled_CallBack(class CTL_Editor_BaseControl *_pclSenderBaseControl);
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Global
|
||||
////////////
|
||||
CTL_Editor_Data *OAC_fn_pclAddStateData(CTL_Editor_DataList *_pclDataList,
|
||||
CString _csDataName,
|
||||
CTL_Editor_Data *_pclCurrentAssociatedData = NULL);
|
||||
CTL_Editor_Data *OAC_fn_pclAddObjectListData(CTL_Editor_DataList *_pclDataList,
|
||||
CString _csDataName,
|
||||
CTL_Editor_Data *_pclCurrentAssociatedData = NULL);
|
||||
|
||||
BOOL OAC_fn_bBelongsToAnInstance(CTL_Editor_Data *_pclData);
|
||||
BOOL OAC_fn_bIsEditingAnInstance(CTL_Editor_Control *_pclControl);
|
||||
|
||||
|
||||
#endif //_OAC_DATA_AND_CONTROLS_CUSTOMIZATION_
|
7
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/EDACFStr.hpp
Normal file
7
Rayman_X/cpa/tempgrp/OAC/Inc/DatCtrl/EDACFStr.hpp
Normal file
@@ -0,0 +1,7 @@
|
||||
// Actors Editor
|
||||
//
|
||||
// Strings used to describe the controls and data
|
||||
//
|
||||
// Writtent by YB on
|
||||
|
||||
|
Reference in New Issue
Block a user