Add rayman2 source files
32
Rayman_X/cpa/tempgrp/OAC/Inc/ActQuery.hpp
Normal file
@@ -0,0 +1,32 @@
|
||||
//*****************************************************************************
|
||||
//* ActQuery.hpp *
|
||||
//*****************************************************************************
|
||||
//* *
|
||||
//* This file contains all the constants used for the OnQueryAction function *
|
||||
//* of the Actor interface *
|
||||
//* *
|
||||
//*****************************************************************************
|
||||
//* Author : Alexis Vaisse *
|
||||
//*****************************************************************************
|
||||
#ifndef __ACTQUERY_HPP__
|
||||
#define __ACTQUERY_HPP__
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
|
||||
//--------------------------------------------
|
||||
// Constants to used with OnQueryAction
|
||||
// to communicate with the dll
|
||||
//--------------------------------------------
|
||||
#define C_uiActor_GetANameList 1
|
||||
#define C_uiActor_CreateANewObjectList 2
|
||||
#define C_uiActor_DeleteAnObjectList 3
|
||||
#define C_uiActor_GetAnObjectList 4
|
||||
#define C_uiActor_SetAnObjectList 5
|
||||
#define C_uiActor_SetAnObjectInObjectList 6
|
||||
#define C_uiActor_GetFirstActorUsingThisList 7
|
||||
#define C_uiActor_LoadNamesList 8
|
||||
|
||||
#endif // __ACTQUERY_HPP__
|
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -0,0 +1,7 @@
|
||||
// Actors Editor
|
||||
//
|
||||
// Strings used to describe the controls and data
|
||||
//
|
||||
// Writtent by YB on
|
||||
|
||||
|
10
Rayman_X/cpa/tempgrp/OAC/Inc/Defines.hpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#define C_wNoNameFound (-1)
|
||||
#define C_wMultipleNamesFound (-2)
|
||||
#define C_wNoNameListFound (-3)
|
||||
#define C_wMultipleNameListsFound (-4)
|
||||
#define C_wNoFamilyFound (-5)
|
||||
#define C_wMultipleFamiliesFound (-6)
|
12
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDAC2Mot.hpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef EDACTORS_2_MOTOR
|
||||
#define EDACTORS_2_MOTOR
|
||||
|
||||
#include "_AInterf.hpp"
|
||||
|
||||
BOOL EDACTORS_fn_b_GetZoneListSectionName(/*ZDX_tdxHandleToZdxList*/void *hHandleToMotorList,
|
||||
BOOL bListOfZone,
|
||||
CString &r_csReturnedName);
|
||||
BOOL EDACTORS_fn_b_GetWayListSectionName(struct WAYLST_tdstFatherListOfWay_ *hHandleToMotorList,
|
||||
CString &r_csReturnedName);
|
||||
|
||||
#endif //EDACTORS_2_MOTOR
|
155
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACActr.hpp
Normal file
@@ -0,0 +1,155 @@
|
||||
// Definition for the class of Editor Actors
|
||||
//////////////////////////////////////////////////
|
||||
#ifndef _CPACACTR_HPP_
|
||||
#define _CPACACTR_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "CPA_DatO.hpp"
|
||||
#include "EDACMStA.hpp"
|
||||
#include "EDACDef.hpp"
|
||||
#include "Defines.hpp"
|
||||
|
||||
class EdActors_EditorActorInstance;
|
||||
class EdActors_EditorActorModel;
|
||||
class CPA_Actor;
|
||||
class EdtList;
|
||||
class CPA_Family;
|
||||
class CPA_ZonesActivatingList;
|
||||
|
||||
class CPA_EdIR_DesignerVariableList;
|
||||
class CTL_Editor_DataList;
|
||||
|
||||
typedef enum eCarActorType
|
||||
{
|
||||
EDCAR_ACTOR_TYPE_INSTANCE = 0,
|
||||
EDCAR_ACTOR_TYPE_MODEL,
|
||||
|
||||
} tdeCarActorType;
|
||||
|
||||
//################################################################
|
||||
class EdActors_EditorActor
|
||||
{
|
||||
public:
|
||||
EdActors_EditorActor(tdeCarActorType tdeType);
|
||||
virtual ~EdActors_EditorActor();
|
||||
|
||||
//Attributes
|
||||
public:
|
||||
//The list of actor's MS
|
||||
EdActors_AMSListList m_clListOfAMSLists;
|
||||
|
||||
//The current MS List
|
||||
EdActors_ActorMiniStructureList *m_pclActorCurrentMSList;
|
||||
|
||||
//Associated Editor Object
|
||||
CPA_Actor *m_pclActor;
|
||||
|
||||
//Undo Manager
|
||||
CPA_EditManager m_clUndoManager;
|
||||
|
||||
//-----------------IR-------------------------
|
||||
CTL_Editor_DataList *m_pclListOfDesignerVariableType;
|
||||
CPA_EdIR_DesignerVariableList *m_pclListOfDesignerVariables;
|
||||
//--------------------------------------------
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
//The pointer on actor structure
|
||||
//For an instance : represents the motor actor
|
||||
//For a model : it's a virtual actor (present only for editor)
|
||||
CAR_EDIT_TDSTACTOR *m_ptdstActor;
|
||||
|
||||
//Editor specific actor's datas
|
||||
////////////////////////////////
|
||||
//The index of the current list of MS in editor
|
||||
unsigned char m_ucCurrentMSListIndex;
|
||||
|
||||
//The type of the Actor (Modl or Instance)
|
||||
tdeCarActorType m_tdeType;
|
||||
|
||||
//
|
||||
CTL_Editor_EnumDescriptor *m_pclEnumDescriptorForObjectsTables;
|
||||
|
||||
//Functions
|
||||
public:
|
||||
CString m_fn_csGetActorName();
|
||||
|
||||
CAR_EDIT_TDSTACTOR *m_fn_ptdstGetMotorActor();
|
||||
void m_fn_vSetMotorActor(CAR_EDIT_TDSTACTOR *);
|
||||
|
||||
unsigned char m_fn_ucGetCurrentMSListIndex();
|
||||
void m_fn_vSetCurrentMSListIndex(unsigned char);
|
||||
|
||||
CTL_Editor_Data *m_fn_p_oFindDataByName(CString csName);
|
||||
CPA_tdoNameList *m_fn_p_oGetNameList(CString csName);
|
||||
EdtList *m_fn_p_oGetObjectList(CString csName);
|
||||
CPA_ZonesActivatingList *m_fn_p_oGetZAList(CString csName);
|
||||
void m_fn_vSetObjectList(CString csName, EdtList *p_oList);
|
||||
BOOL m_fn_bBelongsToAnInstance();
|
||||
|
||||
//Indicates wether the searched Data is owned by the Actor
|
||||
// If not, return -1,
|
||||
// else returns the Index of the list in which this Data has been found
|
||||
char m_fn_cDoesActorOwnData(CTL_Editor_Data *pclDataToSearch);
|
||||
//This version fills "pclAMS" with a pointer on the Actor MS in
|
||||
//which the Data has been found
|
||||
char m_fn_cDoesActorOwnData(CTL_Editor_Data *pclDataToSearch,
|
||||
EdActors_ActorMiniStructure *&pclAMS);
|
||||
|
||||
tdeCarActorType m_fn_tdeGetActorType();
|
||||
BOOL m_fn_bIsAnInstance();
|
||||
|
||||
//Saving & Loading functions
|
||||
virtual void m_fn_vSaveActor(SCR_tdst_File_Description *p_stFile);
|
||||
|
||||
//
|
||||
CTL_Editor_EnumDescriptor *m_pub_fn_pclGetEnumDescriptorForObjectsTables();
|
||||
|
||||
void m_fn_vUpdateDatas( EdActors_EditorActor *pclSourceActor,
|
||||
BOOL _bMustUpdateUnlinkedData = TRUE,
|
||||
CTL_tdeUpdateReason eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
//Pure virtual
|
||||
virtual void m_pub_fn_vSetLink(CTL_Editor_Data *_pclSourceData,
|
||||
BOOL _bMustLink) = 0;
|
||||
|
||||
protected:
|
||||
void m_fn_vCreateActorMSDataList();
|
||||
void m_fn_vSetMSPointersToNULL();
|
||||
void m_fn_vDeleteAllMS();
|
||||
void m_fn_vAllocateMSAsInModel(EdActors_EditorActorModel *pclSourceModel);
|
||||
|
||||
void m_fn_vUpdateDataInList(EdActors_ActorMiniStructureList *pclDestMSList,
|
||||
EdActors_ActorMiniStructureList *pclSourceMSList,
|
||||
BOOL _bMustUpdateUnlinkedData = TRUE,
|
||||
CTL_tdeUpdateReason eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
//Saving
|
||||
BOOL m_fn_bSaveMSList(SCRIPT_tdstSaveFile *,
|
||||
EdActors_ActorMiniStructureList *);
|
||||
|
||||
|
||||
private:
|
||||
void m_fn_vConstructListOfMS();
|
||||
|
||||
BOOL m_fn_bLookForAData(EdActors_ActorMiniStructureList *pclActorMSList,
|
||||
CTL_Editor_Data *pclDataToSearch,
|
||||
EdActors_ActorMiniStructure *&pclAMS);
|
||||
|
||||
void m_fn_vSetCurrentMSList(EdActors_ActorMiniStructureList *pclActorNewCurrentMSList);
|
||||
|
||||
|
||||
friend class EdActors_ListOfActors;
|
||||
};
|
||||
|
||||
//a macro to quickly access the named namelist of the specified actor
|
||||
#define M_p_oGetNameListOfActor(p_oCarEditorActor, csName) ((CPA_Editor_ObjectListData *) (p_oCarEditorActor->m_fn_p_oFindDataByName(csName))->m_p_oNameList)
|
||||
|
||||
#endif //_CPACACTR_HPP_
|
||||
|
63
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACBuM.hpp
Normal file
@@ -0,0 +1,63 @@
|
||||
// CPACMSBu.hpp : header file
|
||||
//
|
||||
#ifndef _CPACMSBU_HPP_
|
||||
#define _CPACMSBU_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
class EdActors_MiniStructure;
|
||||
|
||||
typedef enum eCarMSButtonType
|
||||
{
|
||||
ECAR_MS_BUTTON_TYPE_ALLOC = 0,
|
||||
ECAR_MS_BUTTON_TYPE_OPEN,
|
||||
|
||||
} tdeCarMSButtonType;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPA_Editor_MiniStructureButton window
|
||||
|
||||
class CPA_Editor_MiniStructureButton : public CButton
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CPA_Editor_MiniStructureButton( EdActors_MiniStructure *pclMS,
|
||||
CString csText,
|
||||
tdeCarMSButtonType tdeType);
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
private:
|
||||
EdActors_MiniStructure *m_pclMS;
|
||||
CString m_csBaseText;
|
||||
tdeCarMSButtonType m_tdeType;
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CPA_Editor_MiniStructureButton)
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~CPA_Editor_MiniStructureButton();
|
||||
|
||||
void m_fn_vUpdateMSButton();
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(CPA_Editor_MiniStructureButton)
|
||||
afx_msg void OnClicked();
|
||||
//}}AFX_MSG
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif //_CPACMSBU_HPP_
|
||||
|
28
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACClBk.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
// The CallBack Functions called by controls when a Data has changed //
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
#ifndef ED_ACTORS_CALLBACK_FUNCTIONS
|
||||
#define ED_ACTORS_CALLBACK_FUNCTIONS
|
||||
|
||||
void OAC_fn_vCurrentObjectTableHasChanged(class CTL_Editor_Data *_pclChangedData,
|
||||
enum CTL_eUpdateReason _eReason,
|
||||
long _lUserDefinedReason /*= 0*/);
|
||||
void OAC_fn_vInitialObjectTableHasChanged(class CTL_Editor_Data *_pclChangedData,
|
||||
enum CTL_eUpdateReason _eReason,
|
||||
long _lUserDefinedReason /*= 0*/);
|
||||
void OAC_fn_vCurrentActionHasChanged(class CTL_Editor_Data *_pclChangedData,
|
||||
enum CTL_eUpdateReason _eReason,
|
||||
long _lUserDefinedReason /*= 0*/);
|
||||
void OAC_fn_vInitialActionHasChanged(class CTL_Editor_Data *_pclChangedData,
|
||||
enum CTL_eUpdateReason _eReason,
|
||||
long _lUserDefinedReason /*= 0*/);
|
||||
void OAC_fn_vCallBackDynamicsObjectTypeHasChanged(class CTL_Editor_Data *_pclChangedData,
|
||||
enum CTL_eUpdateReason _eReason,
|
||||
long _lUserDefinedReason /*= 0*/);
|
||||
|
||||
//ANNECY CT 13/01/98 {
|
||||
void EDACTORS_fn_vCallBackInitialLocalLightHasChanged(CTL_Editor_Data *pclChangedData, enum CTL_eUpdateReason _eReason, long _lUserDefinedReason /*= 0*/);
|
||||
void EDACTORS_fn_vCallBackInitialOnlyLocalLightHasChanged(CTL_Editor_Data *pclChangedData, enum CTL_eUpdateReason _eReason, long _lUserDefinedReason /*= 0*/);
|
||||
//ENDANNECY CT }
|
||||
|
||||
#endif //ED_ACTORS_CALLBACK_FUNCTIONS
|
82
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACCnst.hpp
Normal file
@@ -0,0 +1,82 @@
|
||||
// Constants definition for the Charactersitics Editor
|
||||
////////////////////////////////////////////////////////
|
||||
#ifndef _EDCAR_CONST_HPP_
|
||||
#define _EDCAR_CONST_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
//Definitions for Editor
|
||||
#define C_EDITOR_SUBSTRACTED_HEIGHT 0
|
||||
#define C_EDITOR_WIDTH 250
|
||||
#define C_SCROLLBAR_WIDTH 7
|
||||
|
||||
//Definitions for MS placing
|
||||
#define C_SPACE_FOR_BORDER 2
|
||||
#define C_MS_LINE_HEIGHT 20
|
||||
#define C_MS_SPACING 3
|
||||
|
||||
//Definitions for MS internal controls
|
||||
#define C_TABULATION 0
|
||||
#define C_ALLOC_BUTTON_PERCENT_WIDTH 20
|
||||
|
||||
//Definitions for special tool tips windows
|
||||
#define C_TTIPS_SPACING 4
|
||||
|
||||
//Definitions for Actors' View
|
||||
//Defines for next/prev buttons display
|
||||
#define C_BUTTON_SIZE_H 32
|
||||
#define C_BUTTON_SIZE_V 20
|
||||
|
||||
//Definitions for Main View
|
||||
#define C_MAIN_VIEW_SPACING 2
|
||||
|
||||
//Definitions for Buttons
|
||||
#define C_BUTTON_MARGIN 3
|
||||
|
||||
//Definitions for Spin Buttons
|
||||
#define C_SPIN_PRECISION 3
|
||||
#define C_ACCEL_NB 5
|
||||
|
||||
//Global definitions for control
|
||||
#define C_SPACE_BETWEEN_CONTROLS 2
|
||||
#define C_EDIT_HEIGHT 16
|
||||
|
||||
//Definitions for ObjectList control
|
||||
#define C_OLIST_BOX_TOTAL_HEIGHT 80
|
||||
#define C_OLIST_COMBO_BOX_HEIGHT 20
|
||||
#define C_OLIST_BOX_PERCENT_WIDTH 55
|
||||
#define C_OLIST_BOX_MIN_WIDTH 60
|
||||
#define C_OLIST_NAME_PERCENT_WIDTH 20
|
||||
#define C_OLIST_BUTTON_PERCENT_WIDTH 22
|
||||
#define C_OLIST_BUTTON_MIN_WIDTH 25
|
||||
#define C_OLIST_BUTTON_HEIGHT 19
|
||||
|
||||
//Definitions for Actions/States control
|
||||
#define C_STATE_NAME_PERCENT_WIDTH 50
|
||||
#define C_STATE_NAME_MIN_WIDTH 40
|
||||
#define C_STATE_COMBO_BOX_PERCENT_WIDTH 50
|
||||
#define C_STATE_COMBO_BOX_MIN_WIDTH 40
|
||||
#define C_STATE_COMBO_BOX_HEIGHT 20
|
||||
#define C_STATE_STATIC_NAME_PERCENT_WIDTH 30
|
||||
#define C_STATE_STATIC_PERCENT_WIDTH 50
|
||||
#define C_STATE_STATIC_MIN_WIDTH 30
|
||||
#define C_STATE_STATIC_HEIGHT 20
|
||||
#define C_STATE_BUTTON_PERCENT_WIDTH 20
|
||||
#define C_STATE_BUTTON_MIN_WIDTH 20
|
||||
#define C_STATE_BUTTON_HEIGHT 20
|
||||
|
||||
//For Dialog Lists
|
||||
#define EDAC_C_szFamiliesList "Families"
|
||||
#define EDAC_C_szModelsList "Models"
|
||||
#define EDAC_C_szInstancesList "Instances"
|
||||
//CPA2 Stegaru Cristian 98-05
|
||||
#define EDAC_C_szAlwaysList "Loaded Always"
|
||||
//End CPA2 Stegaru Cristian 98-05
|
||||
#define EDAC_C_szTreeView "Tree View"
|
||||
//CPA2 Stegaru Cristian 98-05
|
||||
#define EDAC_C_szUnloadedAlwaysList "Unloaded Always"
|
||||
//End CPA2 Stegaru Cristian 98-05
|
||||
|
||||
#endif //_EDCAR_CONST_HPP_
|
49
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDatW.hpp
Normal file
@@ -0,0 +1,49 @@
|
||||
// Header for the definition of a characteristic type
|
||||
////////////////////////////////////////////////////////
|
||||
// A characteristic type is an abstract class which defines
|
||||
// some common functions of specific characteristic (like Booleans,
|
||||
// numerical values, aso)
|
||||
// Every specific type of characteristic will inherit of this class
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACWDAT_HPP_
|
||||
#define _CPACWDAT_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
class CTL_Editor_Data;
|
||||
|
||||
//#########################################################
|
||||
class EdActors_WatchData
|
||||
{
|
||||
public:
|
||||
//Constructor
|
||||
EdActors_WatchData(CTL_Editor_Data *pclData);
|
||||
|
||||
// Destructor
|
||||
~EdActors_WatchData();
|
||||
|
||||
//Attributes
|
||||
public:
|
||||
CTL_Editor_Data *m_pclData;
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
CString m_csActorName;
|
||||
CString m_csCharacName;
|
||||
|
||||
//Member functions
|
||||
public:
|
||||
CString m_fn_csGetActorName();
|
||||
CString m_fn_csGetFieldName();
|
||||
CString m_fn_csGetDataValue();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif //_CPACWDAT_HPP_
|
97
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDef.hpp
Normal file
@@ -0,0 +1,97 @@
|
||||
// Constants and defines for the definition of ths list of MS
|
||||
///////////////////////////////////////////////////////////////
|
||||
#ifndef _EDITDEF_HPP_
|
||||
#define _EDITDEF_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
//Include here the header where is defined the motor actor structure
|
||||
#include "ACP_Base.h"
|
||||
#include "IncITF.h"
|
||||
#include "IncMEC.h"
|
||||
#define D_State_Define
|
||||
#include "IncGAM.h"
|
||||
#undef D_State_Define
|
||||
#include "IncGLI.h"
|
||||
#include "PRT.h"
|
||||
|
||||
#include "CTL.h"
|
||||
|
||||
#undef extern
|
||||
////////////////////////////////////////////////
|
||||
|
||||
//Eventually add here the other motor useful headers
|
||||
//...
|
||||
|
||||
//define here the name of the actor's structure
|
||||
#define CAR_EDIT_TDSTACTOR tdstEngineObject
|
||||
|
||||
class EdActors_EditorActor;
|
||||
class EdActors_ActorMiniStructure;
|
||||
|
||||
//Declare here the filling functions for the MS you have created
|
||||
void fn_vFillMS1(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS2(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS3(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS5(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS6(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS7(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS8(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS9(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS10(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS11(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS12(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS13(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS14(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS15(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS16(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
void fn_vFillMS17(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
//ANNECY BBB 17/10/97 {
|
||||
void fn_vFillMS18(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
//ENDANNECY BBB 17/10/97 }
|
||||
// CHINA QZY (MT) 26/02/98 {
|
||||
void fn_vFillMS19(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
// ENDCHINA QZY }
|
||||
// Shaitan FastC {
|
||||
void fn_vFillMS20(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
//End Shaitan FastC }
|
||||
|
||||
//*********************************************************************
|
||||
//Other defines to simplify MS and pointers definitions
|
||||
#define READ_ONLY TRUE
|
||||
#define READ_WRITE FALSE
|
||||
|
||||
//Controls Spacing
|
||||
#define AUTO_SPACE CTL_SPACING_TYPE__AUTO
|
||||
#define SINGLE_LINE CTL_SPACING_TYPE__SINGLE_LINE
|
||||
#define FIXED_SIZE CTL_SPACING_TYPE__FIXED_SIZE
|
||||
|
||||
//Constants for integers declarations
|
||||
#define SIGNED_INT TRUE
|
||||
#define UNSIGNED_INT FALSE
|
||||
|
||||
#define CHAR_INT 1
|
||||
#define SHORT_INT 2
|
||||
#define LONG_INT 4
|
||||
|
||||
//Constants for decimal declarations
|
||||
#define FLOAT 4
|
||||
//#define DOUBLE 8
|
||||
//#define LONG_DOUBLE 10
|
||||
|
||||
//Constants for data level declarations
|
||||
#define LEVEL_1 OAC_DATA_LEVEL_1
|
||||
#define LEVEL_2 OAC_DATA_LEVEL_2
|
||||
#define LEVEL_3 OAC_DATA_LEVEL_3
|
||||
|
||||
//Constants for data Visibility declarations
|
||||
#define EDAC_ONLY_INSTANCES EDCAR_DATA_VISI_ONLY_INSTANCES
|
||||
#define EDAC_ONLY_MODELS EDCAR_DATA_VISI_ONLY_MODELS
|
||||
#define EDAC_DUAL EDCAR_DATA_VISI_DUAL
|
||||
|
||||
//Constant for Angles
|
||||
#define EDAC_PI 3.14159265359
|
||||
|
||||
#endif //_EDITDEF_HPP_
|
82
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgAc.hpp
Normal file
@@ -0,0 +1,82 @@
|
||||
// EDACDgIL.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#if !defined(AFX_EDACDGIL_HPP__98F53447_EB9D_11D0_B553_006097828C2B__INCLUDED_)
|
||||
#define AFX_EDACDGIL_HPP__98F53447_EB9D_11D0_B553_006097828C2B__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
//
|
||||
#include "EDAcIRes.h"
|
||||
|
||||
class EdActors_EditorActor;
|
||||
class CPA_Actor;
|
||||
class CPA_Family;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_Dialog_ActorChoice dialog
|
||||
|
||||
class EdActors_Dialog_ActorChoice : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
// standard constructors
|
||||
EdActors_Dialog_ActorChoice(CPA_Actor *,
|
||||
CPoint cpPoint,
|
||||
CWnd* pParent = NULL);
|
||||
EdActors_Dialog_ActorChoice(CPA_Family *,
|
||||
CPoint cpPoint,
|
||||
CWnd* pParent = NULL);
|
||||
|
||||
~EdActors_Dialog_ActorChoice();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_Dialog_ActorChoice)
|
||||
enum { IDD = IDD_CAR_D_ACTOR_CHOICE };
|
||||
int m_iSelectedItem;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_Dialog_ActorChoice)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
public:
|
||||
EdActors_EditorActor *m_pclSelectedActor;
|
||||
|
||||
private:
|
||||
HINSTANCE m_hOldInstance;
|
||||
CPoint m_cpRefPoint;
|
||||
|
||||
CPA_Actor *m_pclModel;
|
||||
CPA_Family *m_pri_pclFamily;
|
||||
|
||||
short m_wCurrentWidth;
|
||||
short m_wCurrentHeight;
|
||||
short m_wFinalWidth;
|
||||
short m_wFinalHeight;
|
||||
short m_wInitialTop;
|
||||
short m_wInitialLeft;
|
||||
char m_cCurrentPercentage;
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_Dialog_ActorChoice)
|
||||
virtual BOOL OnInitDialog();
|
||||
virtual void OnOK();
|
||||
afx_msg void OnDblclkListInstancesOfModel();
|
||||
afx_msg void OnTimer(UINT nIDEvent);
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_EDACDGIL_HPP__98F53447_EB9D_11D0_B553_006097828C2B__INCLUDED_)
|
61
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgCp.hpp
Normal file
@@ -0,0 +1,61 @@
|
||||
// EDACDgCp.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACCPYD_HPP_
|
||||
#define _CPACCPYD_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
|
||||
class CPA_Actor;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_CopyDialog dialog
|
||||
|
||||
class EdActors_CopyDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
// standard constructor
|
||||
EdActors_CopyDialog(CPA_Actor *_pclSourceActor, CWnd* _pParent = NULL);
|
||||
//Destructor
|
||||
~EdActors_CopyDialog();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_CopyDialog)
|
||||
enum { IDD = IDD_CAR_D_ACTOR_COPY };
|
||||
long m_lCopiesNumber;
|
||||
CString m_csNewName;
|
||||
BOOL m_bNameAuto;
|
||||
BOOL m_bAutoName;
|
||||
//}}AFX_DATA
|
||||
|
||||
private:
|
||||
HINSTANCE m_hOldInstance;
|
||||
|
||||
CPA_Actor *m_pclSourceActor;
|
||||
CBitmap m_cbBitmap;
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_CopyDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_CopyDialog)
|
||||
virtual void OnOK();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnChangeEditCopiesNumber();
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
#endif //_CPACCPYD_HPP_
|
||||
|
62
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgIA.hpp
Normal file
@@ -0,0 +1,62 @@
|
||||
// EdActors_Dialog_InconsistentAllocations dialog
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _ED_ACTORS_DIALOG_INCONSISTENT_ALLOCATION_
|
||||
#define _ED_ACTORS_DIALOG_INCONSISTENT_ALLOCATION_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EDACIRes.h"
|
||||
|
||||
class CPA_Actor;
|
||||
class EdActors_ActorMiniStructure;
|
||||
|
||||
class EdActors_Dialog_InconsistentAllocations : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
// standard constructor
|
||||
EdActors_Dialog_InconsistentAllocations(CPA_Actor *_pclModel,
|
||||
CPA_Actor *_pclInstance,
|
||||
BOOL _bAllocatedInModel,
|
||||
EdActors_ActorMiniStructure *_pclModelAMS,
|
||||
EdActors_ActorMiniStructure *_pclInstanceAMS,
|
||||
CWnd* pParent = NULL);
|
||||
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_Dialog_InconsistentAllocations)
|
||||
enum { IDD = IDD_CAR_PB_ALLOCATION };
|
||||
int m_iRadioValue;
|
||||
CString m_csText;
|
||||
//}}AFX_DATA
|
||||
|
||||
private:
|
||||
BOOL m_pri_bAllocatedInModel;
|
||||
|
||||
EdActors_ActorMiniStructure *m_pri_pclInstanceAMS;
|
||||
EdActors_ActorMiniStructure *m_pri_pclModelAMS;
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_Dialog_InconsistentAllocations)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_Dialog_InconsistentAllocations)
|
||||
virtual BOOL OnInitDialog();
|
||||
virtual void OnOK();
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif //_ED_ACTORS_DIALOG_INCONSISTENT_ALLOCATION_
|
60
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgIC.hpp
Normal file
@@ -0,0 +1,60 @@
|
||||
#ifndef _OAC_DIALOG_INSTANCE_CREATION_
|
||||
#define _OAC_DIALOG_INSTANCE_CREATION_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// EDACDgIC.hpp : header file
|
||||
//
|
||||
|
||||
#include "EDACIRes.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_InstanceCreationDialog dialog
|
||||
|
||||
class EdActors_InstanceCreationDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
//Standard constructor
|
||||
EdActors_InstanceCreationDialog(CString _csModelName,
|
||||
CString _csDefaultName,
|
||||
CWnd* _pParent = NULL);
|
||||
|
||||
private:
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_InstanceCreationDialog)
|
||||
enum { IDD = IDD_CAR_D_INSTANCE_CREATION };
|
||||
CString m_pri_csNewInstanceName;
|
||||
//}}AFX_DATA
|
||||
|
||||
private:
|
||||
CString m_pri_csModelName;
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_InstanceCreationDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
public:
|
||||
CString m_fn_csGetNewInstanceName();
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_InstanceCreationDialog)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif //_OAC_DIALOG_INSTANCE_CREATION_
|
59
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgIf.hpp
Normal file
@@ -0,0 +1,59 @@
|
||||
// cpacqudg.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACINFODG_HPP_
|
||||
#define _CPACINFODG_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
|
||||
#define C_NUMBER_OF_BITMAPS 5
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_InformationDialog dialog
|
||||
|
||||
class EdActors_InformationDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
// standard constructor
|
||||
EdActors_InformationDialog(CWnd* pParent, CString);
|
||||
~EdActors_InformationDialog();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_InformationDialog)
|
||||
enum { IDD = IDD_CAR_D_INFO };
|
||||
CString m_csMessage;
|
||||
//}}AFX_DATA
|
||||
|
||||
private:
|
||||
HINSTANCE m_hOldInstance;
|
||||
CBitmap m_a_cbBitmaps[C_NUMBER_OF_BITMAPS];
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_InformationDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_InformationDialog)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnTimer(UINT nIDEvent);
|
||||
//}}AFX_MSG
|
||||
|
||||
void OnOK();
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif //_CPACINFODG_HPP_
|
||||
|
122
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgMC.hpp
Normal file
@@ -0,0 +1,122 @@
|
||||
// CPACMNDg.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACMCDG_HPP_
|
||||
#define _CPACMCDG_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
|
||||
//For Families
|
||||
class CPA_Family;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_ModelCreationDialog dialog
|
||||
|
||||
class EdActors_ModelCreationDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
// standard constructor
|
||||
EdActors_ModelCreationDialog(CWnd* pParent = NULL);
|
||||
|
||||
//Destructor
|
||||
~EdActors_ModelCreationDialog();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_ModelCreationDialog)
|
||||
enum { IDD = IDD_CAR_D_MODEL_CREATION };
|
||||
CString m_csNewModelName;
|
||||
BOOL m_bQuickView;
|
||||
int m_iFilterChoice;
|
||||
BOOL m_bIsAGenDoor;
|
||||
CString m_csStartWith;
|
||||
CString m_csContaining;
|
||||
//}}AFX_DATA
|
||||
|
||||
private:
|
||||
HINSTANCE hOldInstance;
|
||||
|
||||
//Background color
|
||||
COLORREF m_colrefBackGroundColor;
|
||||
|
||||
//The current list of Families
|
||||
// CPA_List<CPA_BaseObject> m_clFamilyList;
|
||||
CPA_BaseObjectList *m_pclFamilyList;
|
||||
|
||||
//Bitmap
|
||||
struct m_stBitmapDescription
|
||||
{
|
||||
CString csFileName;
|
||||
HBITMAP hBitmap;
|
||||
CSize csSize;
|
||||
BOOL bLoaded;
|
||||
};
|
||||
|
||||
CPA_List<struct m_stBitmapDescription> m_clListOfBitmapsForActors;
|
||||
CPA_List<struct m_stBitmapDescription> m_clListOfBitmapsForGenDoors;
|
||||
|
||||
HBITMAP m_hBitmap;
|
||||
HBITMAP m_hNoBitmap;
|
||||
CSize m_csBitmapSize;
|
||||
CBitmap m_clBitmapNoImage;
|
||||
|
||||
//Families
|
||||
struct m_stFamilyDescription
|
||||
{
|
||||
CPA_Family *pclFamily;
|
||||
BOOL bIsAGenDoorFamily;
|
||||
};
|
||||
|
||||
CPA_List<struct m_stFamilyDescription> m_clListOfFamilies;
|
||||
|
||||
CPA_Family *m_pclSelectedFamily;
|
||||
CPA_SuperObject *m_pclCreatedModel;
|
||||
|
||||
CString m_csBitmapName;
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_ModelCreationDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
CPA_SuperObject *m_fn_pclGetNewModel();
|
||||
CString m_fn_csGetBitmapName();
|
||||
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_ModelCreationDialog)
|
||||
virtual void OnOK();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnDblclkListFamilies();
|
||||
afx_msg void OnSelchangeListFamilies();
|
||||
afx_msg void OnSelchangeListBitmaps();
|
||||
afx_msg void OnRadioAllFamilies();
|
||||
afx_msg void OnRadioLoadedFamilies();
|
||||
afx_msg void OnRadioUnloadedFamilies();
|
||||
afx_msg void OnDrawItem( int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct );
|
||||
afx_msg void OnCheckGenDoor();
|
||||
afx_msg void OnChangeEditContaining();
|
||||
afx_msg void OnChangeEditStartWith();
|
||||
afx_msg void OnCheckAspect();
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
|
||||
private:
|
||||
BOOL m_pri_fn_bIsAGenDoorFamily(CPA_Family *_pclFamily);
|
||||
BOOL m_fn_bGetBitmapSize(CString csFileName, CSize *sz);
|
||||
void m_fn_vDisplayFilteredFamilies();
|
||||
void m_fn_vFillListBoxWithBitmapNames(CPA_List<struct m_stBitmapDescription> *);
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif //_CPACMCDG_HPP_
|
||||
|
75
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgMI.hpp
Normal file
@@ -0,0 +1,75 @@
|
||||
// CPACDGMI.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACMIDG_HPP_
|
||||
#define _CPACMIDG_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_ModelIconDialog dialog
|
||||
|
||||
class EdActors_ModelIconDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
// standard constructor
|
||||
EdActors_ModelIconDialog(CWnd* pParent = NULL, CPA_SuperObject *pclModel = NULL);
|
||||
|
||||
//Destructor
|
||||
~EdActors_ModelIconDialog();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_ModelIconDialog)
|
||||
enum { IDD = IDD_CAR_D_CHOOSEBITMAP };
|
||||
//}}AFX_DATA
|
||||
|
||||
private:
|
||||
HINSTANCE hOldInstance;
|
||||
|
||||
//Bitmap
|
||||
struct m_stBitmapDescription
|
||||
{
|
||||
CString csFileName;
|
||||
HBITMAP hBitmap;
|
||||
CSize csSize;
|
||||
BOOL bLoaded;
|
||||
};
|
||||
CPA_List<struct m_stBitmapDescription> m_clListOfBitmapsForActors;
|
||||
|
||||
CPA_SuperObject *m_pModel;
|
||||
CString m_csBitmapName;
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_ModelIconDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
CString m_fn_csGetBitmapName();
|
||||
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_ModelIconDialog)
|
||||
virtual void OnOK();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnSelchangeListBitmaps();
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
|
||||
private:
|
||||
void m_fn_vFillListBoxWithBitmapNames(CPA_List<struct m_stBitmapDescription> *lstBitmapList);
|
||||
BOOL m_fn_bGetBitmapSize(CString csFileName, CSize *sz);
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif //_CPACMCDG_HPP_
|
||||
|
61
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgML.hpp
Normal file
@@ -0,0 +1,61 @@
|
||||
// EDACDgML.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _ED_ACTORS_DIALOG_LOAD_MODELS_
|
||||
#define _ED_ACTORS_DIALOG_LOAD_MODELS_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EDACIRes.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_Dialog_LoadModels dialog
|
||||
|
||||
class EdActors_Dialog_LoadModels : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
EdActors_Dialog_LoadModels(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_Dialog_LoadModels)
|
||||
enum { IDD = IDD_CAR_DG_MODEL_LOAD };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
private:
|
||||
//For tree
|
||||
CImageList m_pri_clImageListForTree;
|
||||
int m_pri_iIndexInImageListForFamilies;
|
||||
int m_pri_iIndexInImageListForUnloadedFamilies;
|
||||
int m_pri_iIndexInImageListForModels;
|
||||
int m_pri_iIndexInImageListForUnloadedModels;
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_Dialog_LoadModels)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_Dialog_LoadModels)
|
||||
afx_msg void OnRadioLoadAllModels();
|
||||
afx_msg void OnRadioLoadSelectModels();
|
||||
virtual void OnOK();
|
||||
afx_msg void OnSelchangedTreeModels(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
virtual BOOL OnInitDialog();
|
||||
//}}AFX_MSG
|
||||
|
||||
private:
|
||||
void m_pri_fn_vScanDirectoryForUnloadedModels(CString csDirectory);
|
||||
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif // _ED_ACTORS_DIALOG_LOAD_MODELS_
|
49
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgMN.hpp
Normal file
@@ -0,0 +1,49 @@
|
||||
// CPACMNDg.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _CPACDLGMN_HPP_
|
||||
#define _CPACDLGMN_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_ActorNameChangeDialog dialog
|
||||
|
||||
class EdActors_ActorNameChangeDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
EdActors_ActorNameChangeDialog(CString csProposedName, CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_ActorNameChangeDialog)
|
||||
enum { IDD = IDD_CAR_D_ACTOR_SET_NAME };
|
||||
CString m_csNewName;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_ActorNameChangeDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_ActorNameChangeDialog)
|
||||
virtual void OnOK();
|
||||
afx_msg void OnDestroy();
|
||||
virtual BOOL OnInitDialog();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif //_CPACDLGMN_HPP_
|
59
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgMg.hpp
Normal file
@@ -0,0 +1,59 @@
|
||||
// EDACDgMg.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _ED_ACTORS_DIALOG_MESSAGE_
|
||||
#define _ED_ACTORS_DIALOG_MESSAGE_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_Dialog_Message dialog
|
||||
|
||||
class EdActors_Dialog_Message : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
// standard constructor
|
||||
EdActors_Dialog_Message(CString _csMessage,
|
||||
CWnd* pParent = NULL);
|
||||
~EdActors_Dialog_Message();
|
||||
|
||||
void m_pub_fn_vDestroy();
|
||||
BOOL m_pub_fn_bCreate();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_Dialog_Message)
|
||||
enum { IDD = IDD_CAR_D_MESSAGE };
|
||||
CString m_csMessage;
|
||||
//}}AFX_DATA
|
||||
|
||||
private:
|
||||
HINSTANCE hOldInstance;
|
||||
|
||||
unsigned short m_pri_uwMaxNumberOfSpaces;
|
||||
unsigned short m_pri_uwCurrentNumberOfSpaces;
|
||||
char m_pri_cDelta;
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_Dialog_Message)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_Dialog_Message)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnTimer(UINT nIDEvent);
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif //_ED_ACTORS_DIALOG_MESSAGE_
|
236
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgNL.hpp
Normal file
@@ -0,0 +1,236 @@
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
// CPACDgNL.hpp : header file
|
||||
//
|
||||
|
||||
#if !defined (__EDACDGNL_HPP__)
|
||||
#define __EDACDGNL_HPP__
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
//#include "acp_base.h"
|
||||
//#include "cpadllb.hpp"
|
||||
#include "EdAcDef.hpp"
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_EditNameListsDialog dialog
|
||||
|
||||
class EdActors_EditorActor;
|
||||
class CPA_tdoNameList;
|
||||
class tdoObjectName;
|
||||
class EdActors_EditNameListsDialog;
|
||||
|
||||
|
||||
//=======================================================================================
|
||||
|
||||
typedef struct tdstToolTipData_
|
||||
{
|
||||
UINT uiControlId;
|
||||
CWnd *p_oMfcControl;
|
||||
const char *pszTipText;
|
||||
} tdstToolTipData;
|
||||
|
||||
//=======================================================================================
|
||||
#define M_vFillToolTipData(stTTD, uiCI, pCtrl, pszText) \
|
||||
(stTTD).uiControlId = uiCI; \
|
||||
(stTTD).p_oMfcControl = pCtrl; \
|
||||
(stTTD).pszTipText = pszText
|
||||
|
||||
//=======================================================================================
|
||||
typedef struct tdstListSpecificActions_
|
||||
{
|
||||
void (*fn_vWhenNameAdded)(short, CPA_tdoNameList *);
|
||||
void (*fn_vWhenNameRemoved)(short, CPA_tdoNameList *);
|
||||
} tdstListSpecificActions;
|
||||
|
||||
//=======================================================================================
|
||||
typedef struct tdstCarEditNameListsDialogArgs_
|
||||
{
|
||||
struct
|
||||
{
|
||||
EdActors_EditorActor *p_oEditorActor;
|
||||
CPA_tdoNameList *p_oCurrentNameList;
|
||||
const char *p_c_szNameListType;
|
||||
const char *p_c_szScriptName;
|
||||
BOOL bModelCanSelectANameList;
|
||||
BOOL bNoNames;
|
||||
} stIn;
|
||||
struct
|
||||
{
|
||||
CPA_tdoNameList *p_oNameListSelectedForModel;
|
||||
} stOut;
|
||||
} tdstCarEditNameListsDialogArgs;
|
||||
|
||||
//=======================================================================================
|
||||
class tdoDummyName
|
||||
{
|
||||
public:
|
||||
tdoDummyName(tdoObjectName *_p_oObjectName, short _wIndex);
|
||||
tdoDummyName(CString _csName, tdeShareMode _eShareMode);
|
||||
void m_vSetName(CString _csName) { m_csName = _csName; }
|
||||
CString m_csGetName(void) { return m_csName; }
|
||||
CString m_csGetInitName(void) { return m_p_oAssociatedName ? m_p_oAssociatedName->GetName() : m_csName; }
|
||||
tdeShareMode m_eGetShareMode() { return m_eShareMode; }
|
||||
tdeShareMode m_eGetInitShareMode() { return m_p_oAssociatedName ? m_p_oAssociatedName->m_eGetShareMode() : m_eShareMode; }
|
||||
void m_vSetShareMode(tdeShareMode _eShareMode) { m_eShareMode = _eShareMode; }
|
||||
BOOL m_bWasHereOnInit() { return m_p_oAssociatedName != NULL; }
|
||||
tdoObjectName *m_p_oGetAssociatedName() { return m_p_oAssociatedName; }
|
||||
short m_wGetInitIndex() { return m_wInitIndex; }
|
||||
BOOL m_bNameChanged() { return m_csName != m_csGetInitName(); }
|
||||
BOOL m_bShareModeChanged() { return m_eShareMode != m_eGetInitShareMode(); }
|
||||
|
||||
private:
|
||||
tdeShareMode m_eShareMode;
|
||||
short m_wInitIndex;
|
||||
CString m_csName;
|
||||
tdoObjectName *m_p_oAssociatedName;
|
||||
};
|
||||
|
||||
//=======================================================================================
|
||||
//this is a fake name list
|
||||
class tdoDummyNameList
|
||||
{
|
||||
public:
|
||||
tdoDummyNameList(CPA_tdoNameList *_p_oNameList);
|
||||
tdoDummyNameList(CString _csName);
|
||||
~tdoDummyNameList();
|
||||
tdoDummyName *m_p_oAddName(CString _csName, tdeShareMode _eShareMode);
|
||||
BOOL m_bRemoveName(CString _csName);
|
||||
BOOL m_bRestoreName(CString _csName);
|
||||
BOOL m_bRenameName(CString _csOldName, CString _csNewName);
|
||||
BOOL m_bReshareName(CString _csName, tdeShareMode _eShareMode);
|
||||
void m_vSetName(CString _csName) { m_csName = _csName; }
|
||||
CString m_csGetName(void) { return m_csName; }
|
||||
CString m_csGetInitName(void) { return m_p_oAssociatedList ? m_p_oAssociatedList->GetName() : m_csName; }
|
||||
BOOL m_bNameExists(CString _csName);
|
||||
BOOL m_bWasHereOnInit() { return m_p_oAssociatedList != NULL; }
|
||||
void m_vInvalidateDeletedNames();
|
||||
void m_vValidateActiveNames(EdActors_EditNameListsDialog *_p_oDialog);
|
||||
CPA_tdoNameList *m_p_oGetAssociatedList() { return m_p_oAssociatedList; }
|
||||
void m_vFillControls(CListBox *_p_oListBox, CEdit *_p_oCurEdit);
|
||||
BOOL m_bNameChanged() { return m_csName != m_csGetInitName(); }
|
||||
void m_vSetAssociatedList(CPA_tdoNameList *_p_oNameList, BOOL _bAreYouSure = FALSE);
|
||||
|
||||
private:
|
||||
BOOL m_bAddName(tdoObjectName *_p_oObjectName);
|
||||
tdoDummyName *m_p_oFindActiveName(CString _csName);
|
||||
tdoDummyName *m_p_oFindDeletedName(CString _csName);
|
||||
CString m_csName;
|
||||
CPA_tdoNameList *m_p_oAssociatedList;
|
||||
CPA_List<tdoDummyName> m_clNames, m_clDeletedNames;
|
||||
};
|
||||
|
||||
//=======================================================================================
|
||||
class tdoListModifHandler
|
||||
{
|
||||
public:
|
||||
tdoListModifHandler(CString _csNameListType, CPA_Family *_p_oFamily);
|
||||
~tdoListModifHandler();
|
||||
tdoDummyNameList *m_p_oAcceptListAdd(CString _csName);
|
||||
BOOL m_bAcceptListDelete(CString _csName);
|
||||
BOOL m_bAcceptListRename(CString _csOldName, CString _csNewName);
|
||||
tdoDummyName *m_p_oAcceptNameAdd(CString _csListName, CString _csName, tdeShareMode _eShareMode);
|
||||
BOOL m_bAcceptNameDelete(CString _csListName, CString _csName);
|
||||
BOOL m_bAcceptNameRename(CString _csListName, CString _csOldName, CString _csNewName);
|
||||
BOOL m_bAcceptNameReshare(CString _csListName, CString _csName, tdeShareMode _eShareMode);
|
||||
void m_vPerformAllModifs();
|
||||
void m_vModifsAreAccepted(EdActors_EditNameListsDialog *_p_oDialog) { m_p_oDialog = _p_oDialog; }
|
||||
BOOL m_bModifsAreAccepted() { return m_p_oDialog != NULL; }
|
||||
BOOL m_bListExists(CString _csName);
|
||||
BOOL m_bNameExists(CString _csName);
|
||||
void m_vFillControls(CListBox *_p_oListBox, CEdit *_p_oCurEdit, tdoDummyNameList *_p_oCurrentSelectedList);
|
||||
tdoDummyNameList *m_p_oGetListforNameList(CPA_tdoNameList *_p_oNameList);
|
||||
|
||||
private:
|
||||
CString m_csNameListType;
|
||||
CPA_Family *m_p_oFamily;
|
||||
tdoDummyNameList *m_p_oFindActiveNameList(CString _csName);
|
||||
tdoDummyNameList *m_p_oFindDeletedNameList(CString _csName);
|
||||
CPA_List<tdoDummyNameList> m_clLists, m_clDeletedLists;
|
||||
EdActors_EditNameListsDialog *m_p_oDialog;
|
||||
BOOL m_bModelCanSelectAnotherList;
|
||||
};
|
||||
|
||||
//=======================================================================================
|
||||
//=======================================================================================
|
||||
class EdActors_EditNameListsDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
~EdActors_EditNameListsDialog();
|
||||
EdActors_EditNameListsDialog(tdstCarEditNameListsDialogArgs *, CWnd *pParent = NULL); // standard constructor
|
||||
tdstCarEditNameListsDialogArgs *m_p_stArgs;
|
||||
tdoDummyNameList *m_p_oCurrentSelectedList, *m_p_oListSelectedForModel;
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_EditNameListsDialog)
|
||||
enum { IDD = IDD_CAR_DIALOG_EDIT_NAMELISTS };
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_EditNameListsDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
virtual void OnDestroy();
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
private:
|
||||
enum
|
||||
{
|
||||
E_em_None,
|
||||
E_em_NameListSelect,
|
||||
E_em_NameListEdit
|
||||
} m_eEditMode;
|
||||
//if this is set, the message comes from an internal modification...
|
||||
BOOL m_bAutodispatch;
|
||||
BOOL m_bUserEditedAList;
|
||||
CToolTipCtrl *m_poToolTip;
|
||||
HICON m_hIconCommon, m_hIconShared, m_hIconVirge, m_hIconChecked;
|
||||
BOOL m_bIconClickedInListBox(CPoint oPoint);
|
||||
tdoListModifHandler *m_p_oListModifHandler;
|
||||
CWnd *m_p_oDefaultButton;
|
||||
// Implementation
|
||||
protected:
|
||||
tdstToolTipData m_a13_stToopTipData[13];
|
||||
CEdit *m_p_oNameEdit;
|
||||
CStatic *m_p_oEditGroupTitle, *m_p_oItemListTitle;
|
||||
CButton *m_p_oAddButton, *m_p_oRenameButton, *m_p_oDeleteButton;
|
||||
CButton *m_p_oCommonRadioButton, *m_p_oSharedRadioButton, *m_p_oVirgeRadioButton;
|
||||
CButton *m_p_oSwapEditModeButton, *m_p_oOkButton, *m_p_oCancelButton;
|
||||
CListBox *m_p_oItemListBox;
|
||||
|
||||
void m_vSelectNameList(CPA_tdoNameList *_p_oNameList);
|
||||
void m_vSetRadioShareMode(tdeShareMode _eShareMode);
|
||||
tdeShareMode m_eGetRadioShareMode();
|
||||
void m_vSetDefaultButton(CButton *_p_oButton);
|
||||
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_EditNameListsDialog)
|
||||
afx_msg BOOL m_bGetToolTipText(UINT, NMHDR *, LRESULT *);
|
||||
afx_msg void OnEnlSwapEditModeButtonClicked();
|
||||
afx_msg void OnEnlShareModeRadioButtonClicked();
|
||||
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
|
||||
afx_msg void OnEnlListBoxSelChange();
|
||||
afx_msg void OnEnlNameEditChange();
|
||||
afx_msg void OnEnlAddButtonClicked();
|
||||
afx_msg void OnEnlDeleteButtonClicked();
|
||||
afx_msg void OnEnlRenameButtonClicked();
|
||||
afx_msg void OnEnlDefaultButtonClicked();
|
||||
//}}AFX_MSG
|
||||
virtual BOOL OnInitDialog();
|
||||
virtual void OnOK();
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#define M_vRegisterControl(memberpointer, type, id, tooltiprank, tooltiptext) \
|
||||
memberpointer = (type) GetDlgItem(id); \
|
||||
m_poToolTip->AddTool(memberpointer, LPSTR_TEXTCALLBACK); \
|
||||
M_vFillToolTipData(m_a13_stToopTipData[tooltiprank], id, memberpointer, tooltiptext)
|
||||
|
||||
#define M_vFakeMessage(message) ((void) ( m_bAutodispatch = FALSE, (message)(), m_bAutodispatch = TRUE ))
|
||||
|
||||
#endif /* __EDACDGNL_HPP__ */ //bbb 03/04/97
|
||||
//bbb 02/04/97 }
|
76
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgOL.hpp
Normal file
@@ -0,0 +1,76 @@
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
// cpacdgol.hpp : header file
|
||||
#include "EdAcIRes.h"
|
||||
#include "acp_base.h"
|
||||
//#include "cpadllb.hpp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_EditObjectListsDialog dialog
|
||||
|
||||
class EdActors_EditorActorInstance;
|
||||
class EdtList;
|
||||
|
||||
typedef struct tdstCarEditObjectListsDialogArgs_
|
||||
{
|
||||
struct
|
||||
{
|
||||
EdActors_EditorActorInstance *p_oEditorActor;
|
||||
EdtList *p_oCurrentObjectList;
|
||||
EdtList *p_oDefaultSelectedObjectList;
|
||||
const char *p_c_szObjectListType;
|
||||
} stIn;
|
||||
struct
|
||||
{
|
||||
EdtList *p_oLastSelectedObjectList;
|
||||
EdtList *p_oDefaultSelectedObjectList;
|
||||
} stOut;
|
||||
} tdstCarEditObjectListsDialogArgs;
|
||||
|
||||
|
||||
class EdActors_EditObjectListsDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
EdActors_EditObjectListsDialog(tdstCarEditObjectListsDialogArgs *p_stArgs, CWnd* pParent = NULL); // standard constructor
|
||||
~EdActors_EditObjectListsDialog(); //bbb 25/03/97
|
||||
tdstCarEditObjectListsDialogArgs *m_p_stArgs;
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_EditObjectListsDialog)
|
||||
enum { IDD = IDD_CAR_DIALOG_OBJECTLIST_CHOICE };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_EditObjectListsDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
CEdit *m_p_oListNameEdit;
|
||||
CComboBox *m_p_oListNameCombo;
|
||||
//bbb 25/03/97 {
|
||||
CButton *m_p_oListRenameButton, *m_p_oListSetDefaultButton, *m_p_oButtonMessage;
|
||||
CStatic *m_p_oStaticTitle;
|
||||
CFont m_oBoldFont;
|
||||
//bbb 25/03/97 }
|
||||
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_EditObjectListsDialog)
|
||||
afx_msg void OnOlcSetDefaultButtonClicked();
|
||||
afx_msg void OnOlcRenameButtonClicked();
|
||||
afx_msg void OnOlcObjListsComboSelChange();
|
||||
afx_msg void OnOlcEditNameChange();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct); //bbb 25/03/97
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
54
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgPI.hpp
Normal file
@@ -0,0 +1,54 @@
|
||||
// CPACDgPI.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _AD_ACTORS_PROGRESS_INFO_DIALOG_
|
||||
#define _AD_ACTORS_PROGRESS_INFO_DIALOG_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_ProgressInfoDialog dialog
|
||||
|
||||
class EdActors_ProgressInfoDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
//Standard constructor
|
||||
EdActors_ProgressInfoDialog( CString,
|
||||
CWnd* pParent = NULL);
|
||||
|
||||
~EdActors_ProgressInfoDialog();
|
||||
|
||||
void m_fn_vSetProgress(unsigned char ucProgessValue);
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_ProgressInfoDialog)
|
||||
enum { IDD = IDD_CAR_D_PROGRESS };
|
||||
CString m_csMessage;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_ProgressInfoDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
private:
|
||||
HINSTANCE hOldInstance;
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_ProgressInfoDialog)
|
||||
virtual BOOL OnInitDialog();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif //_AD_ACTORS_PROGRESS_INFO_DIALOG_
|
||||
|
58
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgQu.hpp
Normal file
@@ -0,0 +1,58 @@
|
||||
// cpacqudg.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACQUDG_HPP_
|
||||
#define _CPACQUDG_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_QuestionDialog dialog
|
||||
|
||||
class EdActors_QuestionDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
// standard constructor
|
||||
EdActors_QuestionDialog(CWnd* pParent, CString);
|
||||
~EdActors_QuestionDialog();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_QuestionDialog)
|
||||
enum { IDD = IDD_CAR_D_QUESTION };
|
||||
CString m_csMessage;
|
||||
//}}AFX_DATA
|
||||
|
||||
private:
|
||||
HINSTANCE m_hOldInstance;
|
||||
CBitmap m_cbBitmap;
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_QuestionDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_QuestionDialog)
|
||||
afx_msg void OnNo();
|
||||
afx_msg void OnYes();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnTimer(UINT nIDEvent);
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif //_CPACQUDG_HPP_
|
||||
|
92
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgSp.hpp
Normal file
@@ -0,0 +1,92 @@
|
||||
// CPACSetp.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CAPCSETP_HPP_
|
||||
#define _CAPCSETP_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
#include <afxtempl.h>
|
||||
|
||||
typedef CList<UINT *, UINT *> td_ListOfID;
|
||||
|
||||
typedef struct OAC_stSetupTreeItem
|
||||
{
|
||||
CString csTreeString;
|
||||
td_ListOfID ListOfID;
|
||||
|
||||
} OAC_tdstSetupTreeItem;
|
||||
|
||||
typedef CList<OAC_tdstSetupTreeItem *, OAC_tdstSetupTreeItem *> td_ListOfListOfID;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_EditorSetupDialog dialog
|
||||
|
||||
class EdActors_EditorSetupDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
// standard constructor
|
||||
EdActors_EditorSetupDialog(CWnd* pParent = NULL);
|
||||
|
||||
//Destructor
|
||||
~EdActors_EditorSetupDialog();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_EditorSetupDialog)
|
||||
enum { IDD = IDD_CAR_D_SETUP };
|
||||
BOOL m_bMustDisplayModelFieldsInInstance;
|
||||
BOOL m_bMustConfirmSuppressionInWatch;
|
||||
BOOL m_bKeepPreviousReference;
|
||||
BOOL m_bMustDisplayUnallocatedMS;
|
||||
BOOL m_bMustConfirmUnallocation;
|
||||
BOOL m_bMustConfirmAllocation;
|
||||
int m_iHelpRadioValue;
|
||||
BOOL m_bSynchronizeDialogListWithEdition;
|
||||
BOOL m_bWatchAlwaysVisible;
|
||||
BOOL m_bProposeUnloadedModels;
|
||||
BOOL m_bRestoreGroup;
|
||||
BOOL m_bAskForNewInstanceName;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_EditorSetupDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
private:
|
||||
HINSTANCE m_hOldInstance;
|
||||
|
||||
td_ListOfListOfID m_clListOfListOfID;
|
||||
OAC_tdstSetupTreeItem *m_pri_p_tdstCurrentTreeItem;
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_EditorSetupDialog)
|
||||
afx_msg void OnPaint();
|
||||
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
||||
virtual void OnOK();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnSelchangedTreeSubSetup(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
afx_msg long OnMyHelp(UINT, long);
|
||||
|
||||
private:
|
||||
void m_pri_fn_vDisplayControlsForType(OAC_tdstSetupTreeItem *_p_tdstTreeItem);
|
||||
BOOL m_fn_bEditColor(COLORREF &r_Color);
|
||||
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif //_CAPCSETP_HPP_
|
120
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgUL.hpp
Normal file
@@ -0,0 +1,120 @@
|
||||
// CPACUnLt.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _ED_ACTOR_UNDO_LIST_DIALOG_
|
||||
#define _ED_ACTOR_UNDO_LIST_DIALOG_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
|
||||
class EdActors_EditorActor;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_UndoListBox window
|
||||
|
||||
class EdActors_UndoListBox : public CListBox
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
EdActors_UndoListBox();
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
BOOL m_bMustUndo;
|
||||
|
||||
private:
|
||||
CRect m_crWindowRect;
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_UndoListBox)
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~EdActors_UndoListBox();
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(EdActors_UndoListBox)
|
||||
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
||||
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
||||
//}}AFX_MSG
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
friend class EdActors_UndoRedoListDialog;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_UndoRedoListDialog dialog
|
||||
|
||||
class EdActors_UndoRedoListDialog : public CDialog
|
||||
{
|
||||
public:
|
||||
|
||||
enum m_eUndoRedoListType
|
||||
{
|
||||
EDCAR_UNDOREDO_LIST_TYPE_UNDO = 0,
|
||||
EDCAR_UNDOREDO_LIST_TYPE_REDO,
|
||||
};
|
||||
|
||||
// Construction
|
||||
public:
|
||||
// standard constructor
|
||||
EdActors_UndoRedoListDialog(CPoint clUpAndLeftPoint,
|
||||
m_eUndoRedoListType eType,
|
||||
CWnd* pParent = NULL);
|
||||
|
||||
~EdActors_UndoRedoListDialog();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_UndoRedoListDialog)
|
||||
enum { IDD = IDD_CAR_D_UNDO_LIST };
|
||||
EdActors_UndoListBox m_clListBox;
|
||||
//}}AFX_DATA
|
||||
|
||||
private:
|
||||
CPoint m_clUpAndLeftPoint;
|
||||
|
||||
HINSTANCE m_hOldInstance;
|
||||
|
||||
EdActors_EditorActor *m_pclEditorActor;
|
||||
|
||||
m_eUndoRedoListType m_eType;
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_UndoRedoListDialog)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_UndoRedoListDialog)
|
||||
afx_msg void OnSelchangeListUndo();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
||||
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
||||
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
|
||||
// void OnOK();
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
friend class EdActors_UndoListBox;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif //_ED_ACTOR_UNDO_LIST_DIALOG_
|
106
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDgWa.hpp
Normal file
@@ -0,0 +1,106 @@
|
||||
// CPACWDlg.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACWDLG_HPP_
|
||||
#define _CPACWDLG_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include <afxtempl.h>
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
|
||||
#include "EDACDatW.hpp"
|
||||
|
||||
class CTL_Editor_Data;
|
||||
|
||||
int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_WatchDialog dialog
|
||||
|
||||
class EdActors_WatchDialog : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
EdActors_WatchDialog(CWnd* pParent = NULL); // standard constructor
|
||||
~EdActors_WatchDialog(); // denstructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(EdActors_WatchDialog)
|
||||
enum { IDD = IDD_CAR_D_WATCH_WINDOW };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_WatchDialog)
|
||||
//}}AFX_VIRTUAL
|
||||
//Attributes
|
||||
public:
|
||||
BOOL m_bIsVisible;
|
||||
|
||||
private:
|
||||
//The list of data in the watch window
|
||||
CList<EdActors_WatchData *, EdActors_WatchData *> m_clWatchDataList;
|
||||
|
||||
//Indicates the current mode : Tree or List
|
||||
BOOL m_bTreeMode;
|
||||
|
||||
//For Caption bar
|
||||
CFont m_clFont;
|
||||
CRect m_crHideButtonRect;
|
||||
|
||||
BOOL m_bIsActive;
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
void m_fn_vAddValue(CTL_Editor_Data *pclData);
|
||||
void m_fn_vRemoveValue(CTL_Editor_Data *pclData);
|
||||
void m_fn_vUpdateValue(CTL_Editor_Data *pclData);
|
||||
void m_fn_vUpdateAllDatas();
|
||||
void m_fn_vLookForModifiedDatas();
|
||||
|
||||
// BOOL m_pub_fn_bIsActive();
|
||||
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_WatchDialog)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnSize(UINT nType, int cx, int cy);
|
||||
afx_msg void OnColumnclickListValues(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
afx_msg void OnKeydownListValues(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
afx_msg void OnDblclkListValues(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
afx_msg void OnKeydownTreeActors(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
afx_msg void OnDblclkTreeActors(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
|
||||
afx_msg void OnPaint();
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
afx_msg void OnNcLButtonDblClk( UINT nHitTest, CPoint point );
|
||||
afx_msg void OnNcRButtonDown( UINT nHitTest, CPoint point );
|
||||
afx_msg void OnWatchList();
|
||||
afx_msg void OnWatchTree();
|
||||
|
||||
// afx_msg BOOL OnNcCreate( LPCREATESTRUCT lpCreateStruct );
|
||||
afx_msg BOOL OnNcActivate(BOOL bActive);
|
||||
afx_msg void OnNcLButtonDown(UINT, CPoint);
|
||||
|
||||
void OnOK();
|
||||
void OnCancel();
|
||||
|
||||
private:
|
||||
CTreeCtrl *m_fn_pclGetTreeCtrl();
|
||||
CListCtrl *m_fn_pclGetListCtrl();
|
||||
void m_fn_vRefreshWatch();
|
||||
void m_fn_vDrawCaptionBar();
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
friend class EdActors_MyDocument;
|
||||
};
|
||||
#endif //_CPACWDLG_HPP_
|
||||
|
556
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACDoc.hpp
Normal file
@@ -0,0 +1,556 @@
|
||||
// Definitions for the class CMyDocument
|
||||
/////////////////////////////////////////////
|
||||
#ifndef _ED_ACTORS_DOCUMENT_
|
||||
#define _ED_ACTORS_DOCUMENT_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EDACMStr.hpp"
|
||||
#include "EDACDef.hpp"
|
||||
#include "Defines.hpp"
|
||||
#include "EDACCust.hpp"
|
||||
|
||||
//External Modules
|
||||
//For Families
|
||||
#include "ITF.h"
|
||||
#include "CTL.h"
|
||||
//End of External Modules
|
||||
|
||||
class EdActors_ActorsView;
|
||||
//-----------------IR-------------------------
|
||||
class CPA_EdIR_DesignerVariablesView;
|
||||
//--------------------------------------------
|
||||
class EdActors_MiniStrucView;
|
||||
class EdActors_EditorActor;
|
||||
class EdActors_ActorMiniStructureList;
|
||||
class EdActors_EditorActorInstance;
|
||||
class EdActors_EditorActorModel;
|
||||
class EdActors_ListOfActors;
|
||||
class CPA_Actor;
|
||||
class CPA_DialogList;
|
||||
class CPA_Family;
|
||||
class CTL_Editor_Control;
|
||||
class CPA_Action;
|
||||
class EditorObjectTable;
|
||||
//CPA2 Stegaru Cristian 98/07/16
|
||||
class CPA_Actor_Editor_Interface;
|
||||
//End CPA2 Stegaru Cristian 98/07/16
|
||||
|
||||
|
||||
//###############################################################
|
||||
typedef enum ED_ACTORS_eDisplayMode
|
||||
{
|
||||
ED_ACTORS_eDisplayMode_Model = 0,
|
||||
ED_ACTORS_eDisplayMode_Instance,
|
||||
ED_ACTORS_eDisplayMode_AlwaysModel,
|
||||
|
||||
} ED_ACTORS_tdeDisplayMode;
|
||||
|
||||
//###############################################################
|
||||
typedef enum ED_ACTORS_eModeOfActorSelection
|
||||
{
|
||||
ED_ACTORS_eModeOfActorSelection_Unknown = 0,
|
||||
ED_ACTORS_eModeOfActorSelection_InHierarchy,
|
||||
ED_ACTORS_eModeOfActorSelection_InTreeView,
|
||||
ED_ACTORS_eModeOfActorSelection_InListDialog,
|
||||
ED_ACTORS_eModeOfActorSelection_InActorsView,
|
||||
|
||||
} ED_ACTORS_tdeModeOfActorSelection;
|
||||
|
||||
//CPA2 Stegaru Cristian 98-05
|
||||
struct AlwEntry
|
||||
{
|
||||
CString m_csAlwaysName;
|
||||
CString m_csAlwFile;
|
||||
AlwEntry (CString csAlwaysName, CString csAlwFile)
|
||||
{
|
||||
m_csAlwaysName = csAlwaysName;
|
||||
m_csAlwFile = csAlwFile;
|
||||
}
|
||||
};
|
||||
|
||||
class CPA_UnloadedAlways : public CPA_BaseObject
|
||||
{
|
||||
private:
|
||||
CString m_csUnloadedAlwaysName;
|
||||
CString m_csAlwFile;
|
||||
BOOL m_bLoaded;
|
||||
public:
|
||||
BOOL m_bOnceDblClk;
|
||||
CPA_UnloadedAlways (CPA_EditorBase * pEditor, const CString csType, CString csName = "");
|
||||
void mfn_vSetAlwFile (CString csAlwFile) { m_csAlwFile = csAlwFile;}
|
||||
CString mfn_csGetAlwFile () { return m_csAlwFile;}
|
||||
void mfn_vSetUAlwaysName (CString csUAlwaysName) { m_csUnloadedAlwaysName = csUAlwaysName;}
|
||||
CString mfn_csGetUAlwaysName () { return m_csUnloadedAlwaysName;}
|
||||
void mfn_vSetLoaded (BOOL bLoaded = TRUE) { m_bLoaded = bLoaded;}
|
||||
BOOL mfn_bIsLoaded () { return m_bLoaded;}
|
||||
//virtual
|
||||
virtual long GetDataType (void) { return 0;}
|
||||
virtual void * GetData (void) { return NULL;}
|
||||
virtual CString GetNameToDraw (void) { return mfn_csGetUAlwaysName ();}
|
||||
};
|
||||
//End CPA2 Stegaru Cristian 98-05
|
||||
|
||||
//CPA2 Stegaru Cristian 98/06/24
|
||||
struct MS_Field
|
||||
{
|
||||
CString m_csModelName;
|
||||
CTL_Editor_Data *m_pModifiedData;
|
||||
MS_Field () { m_pModifiedData = NULL;}
|
||||
};
|
||||
//End CPA2 Stegaru Cristian 98/06/24
|
||||
|
||||
|
||||
//CPA2 Stegaru Cristian 98/07/16
|
||||
#define UPDATE_ALW_FILE 21
|
||||
class ModifUpdateAlwFile : public CPA_Modif
|
||||
{
|
||||
protected:
|
||||
CPA_Actor_Editor_Interface *m_pInterface;
|
||||
CStringList m_lstAlwObjects;
|
||||
public:
|
||||
ModifUpdateAlwFile (CPA_Actor_Editor_Interface *pInterface, CStringList &rlstAlwObjects, BOOL pBlock = FALSE);
|
||||
|
||||
BOOL Do (void);
|
||||
BOOL Undo (void);
|
||||
|
||||
};
|
||||
//End CPA2 Stegaru Cristian 98/07/16
|
||||
|
||||
//###############################################################
|
||||
class EdActors_MyDocument
|
||||
{
|
||||
public:
|
||||
EdActors_MyDocument();
|
||||
~EdActors_MyDocument();
|
||||
|
||||
//Attributes
|
||||
public:
|
||||
//////////
|
||||
// TEMP //
|
||||
//////////
|
||||
CStringList m_clListOfFilesToDelete;
|
||||
|
||||
//The list of enum descriptors
|
||||
CTL_Editor_EnumDescriptorList m_clListOfEnumDescriptors;
|
||||
|
||||
//The list of Masks descriptors
|
||||
CTL_Editor_MaskList m_clListOfMasksDescriptors;
|
||||
|
||||
//The lists of mini-structures (controls)
|
||||
EdActors_MSListsList m_clListOfMSLists;
|
||||
|
||||
//The current MS list
|
||||
EdActors_MiniStructureList *m_pclCurrentMiniStructureList;
|
||||
|
||||
//Pointers on the views
|
||||
CPA_DialogList *m_pclDialogList;
|
||||
EdActors_ActorsView *m_pclActorsView;
|
||||
EdActors_MiniStrucView *m_pclMiniStrucView;
|
||||
//-----------------IR-------------------------
|
||||
CPA_EdIR_DesignerVariablesView *m_pclDesignerVariablesView;
|
||||
int m_iMSEditorOldHeight;
|
||||
BOOL m_bDesignerVarEditorIsVisible;
|
||||
//--------------------------------------------
|
||||
|
||||
//The currently selected actor
|
||||
EdActors_EditorActor *m_pclSelectedActor;
|
||||
|
||||
//The current Instance
|
||||
EdActors_EditorActorInstance *m_pclCurrentInstance;
|
||||
|
||||
//The current Model
|
||||
EdActors_EditorActorModel *m_pclCurrentModel;
|
||||
|
||||
CPA_BaseObject *m_pclCurrentFamily;
|
||||
|
||||
//Indicates the current display mode
|
||||
ED_ACTORS_tdeDisplayMode m_eCurrentDisplayMode;
|
||||
|
||||
//Indicates wether currently edited datas must be refreshed or not
|
||||
BOOL m_bMustRefreshDatas;
|
||||
|
||||
//Members for Dialog List
|
||||
//-----------------------
|
||||
//The list of Models
|
||||
CPA_BaseObjectList m_clModelsList;
|
||||
//The list of Instances
|
||||
CPA_BaseObjectList m_clInstancesList;
|
||||
//The list of Always
|
||||
CPA_BaseObjectList m_clAlwaysList;
|
||||
//CPA2 Stegaru Cristian 98-05
|
||||
//The list of Unloaded Always
|
||||
CPA_BaseObjectList m_clUnloadedAlwaysList;
|
||||
CPA_BaseObjectList m_clInitializedAlwaysList;
|
||||
//End CPA2 Stegaru Cristian 98-05
|
||||
|
||||
//Pointer on the current list to treat
|
||||
CPA_BaseObjectList *m_pclCurrentActorsList;
|
||||
|
||||
//Saving & Restoring
|
||||
//------------------
|
||||
CString m_csModelsBitmapsPath;
|
||||
CString m_csModelsBitmapsCompletePath;
|
||||
CString m_csModelsBitmapsPathForGenDoors;
|
||||
CString m_csModelsBitmapsCompletePathForGenDoors;
|
||||
|
||||
//Editor's setup variables
|
||||
//------------------------
|
||||
//Internal Setup
|
||||
CString m_csIniFileName;
|
||||
BOOL m_bMustConfirmUnallocation;
|
||||
BOOL m_bMustConfirmAllocation;
|
||||
BOOL m_bMustConfirmWatchSuppression;
|
||||
BOOL m_bMustDisplayModelFieldsInInstance;
|
||||
BOOL m_bMustDisplayUnallocatedMS;
|
||||
BOOL m_bMustDisplayHelpOnActiveView;
|
||||
BOOL m_bMustSynchronizeDialogListWithEdition;
|
||||
BOOL m_bWatchAlwaysVisible;
|
||||
BOOL m_bProposeUnloadedModels;
|
||||
BOOL m_bRestoreGroup;
|
||||
BOOL m_bAskForNewInstanceName;
|
||||
|
||||
//Colors for the name's (model or instance) static
|
||||
COLORREF m_pub_colref_NameTextColor;
|
||||
COLORREF m_pub_colref_NameBackgroundColor;
|
||||
|
||||
//Colors for the model's static
|
||||
COLORREF m_pub_colref_ModelTextColor;
|
||||
COLORREF m_pub_colref_ModelBackgroundColor;
|
||||
|
||||
//Colors for the family's static
|
||||
COLORREF m_pub_colref_FamilyTextColor;
|
||||
COLORREF m_pub_colref_FamilyBackgroundColor;
|
||||
|
||||
//Colors for the fields' static
|
||||
COLORREF m_pub_colref_FieldInstanceTextColor;
|
||||
COLORREF m_pub_colref_FieldInstanceBackgroundColor;
|
||||
COLORREF m_pub_colref_FieldInitialTextColor;
|
||||
COLORREF m_pub_colref_FieldInitialBackgroundColor;
|
||||
COLORREF m_pub_colref_FieldCurrentTextColor;
|
||||
COLORREF m_pub_colref_FieldCurrentBackgroundColor;
|
||||
COLORREF m_pub_colref_InWatchFieldTextColor;
|
||||
COLORREF m_pub_colref_InWatchFieldBackgroundColor;
|
||||
COLORREF m_pub_colref_FieldModelTextColor;
|
||||
COLORREF m_pub_colref_FieldModelBackgroundColor;
|
||||
|
||||
//Menu preferences
|
||||
unsigned long m_ulListViewHeight;
|
||||
unsigned long m_ulControlViewHeight;
|
||||
unsigned long m_ulMSViewHeight;
|
||||
unsigned long m_ulModelViewHeight;
|
||||
unsigned long m_ulAIViewHeight;
|
||||
unsigned long m_ulCharacEditorWidth;
|
||||
// unsigned char m_ucCurrentDataLevel;
|
||||
BOOL m_bIAActivated;
|
||||
BOOL m_bWatchActivated;
|
||||
BOOL m_bVariablesActivated;
|
||||
BOOL m_bDisplayCurrentValue;
|
||||
BOOL m_bDisplayInitialValue;
|
||||
BOOL m_bAIFirstTime;
|
||||
BOOL m_bModelFirstTime;
|
||||
CString m_csInitDialogListType;
|
||||
|
||||
BOOL m_pri_bTreeMustShowUnloadedObjects;
|
||||
BOOL m_pri_bTreeMustOnlyShowFamiliesWithModels;
|
||||
|
||||
|
||||
//Editor's Help variables
|
||||
//------------------------
|
||||
CString m_csHelpFileNameAndPath;
|
||||
//-----------------IR-------------------------
|
||||
CString m_csBrainHelpFileNameAndPath;
|
||||
//--------------------------------------------
|
||||
|
||||
//Data path
|
||||
CString m_pub_csCommonDataPath;
|
||||
CString m_pub_csLevelDataPath;
|
||||
|
||||
//For help display on fields
|
||||
BOOL m_pub_bMustDisplayHelpOnFields;
|
||||
HCURSOR m_hPreviousCursorForHelpOnFields;
|
||||
HCURSOR m_hHelpCursor;
|
||||
HCURSOR m_hHelpDisabledCursor;
|
||||
|
||||
//
|
||||
BOOL m_pub_bUnloadedModelsArePrepared;
|
||||
|
||||
//
|
||||
BOOL m_pub_bMustShowLinks;
|
||||
|
||||
//
|
||||
BOOL m_pub_bWatchWindowIsVisible;
|
||||
|
||||
//
|
||||
HICON m_pub_hWatchIcon_Field;
|
||||
HICON m_pub_hWatchIcon_Actor;
|
||||
HICON m_pub_hWatchIcon_MS;
|
||||
|
||||
//
|
||||
BOOL m_bDisplayActor;
|
||||
|
||||
CPA_Actor *m_pLoadedModel;
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
//CPA2 Stegaru Cristian 98/06/24
|
||||
MS_Field m_stLastModifiedField;
|
||||
//End CPA2 Stegaru Cristian 98/06/24
|
||||
|
||||
//Functions
|
||||
public:
|
||||
///////////////////////////////////
|
||||
// Models and Instances handling //
|
||||
///////////////////////////////////
|
||||
void m_fn_vCreateCopiesOfActor(CPA_Actor *_pclSourceActor);
|
||||
|
||||
/////////////////////
|
||||
// Models handling //
|
||||
/////////////////////
|
||||
|
||||
//Called to create a model and add it in the list of models
|
||||
CPA_SuperObject *m_fn_pclCreateModel(CString &r_csModelBitmapName);
|
||||
//Called to create a model for Loading
|
||||
CPA_SuperObject *m_fn_pclCreateModelForLoad(CString,
|
||||
CPA_Actor *pclEditorActor = NULL);
|
||||
//Called to add a Model in the list of models
|
||||
void m_fn_vAddLoadedModelInList(EdActors_EditorActorModel *pclModel,
|
||||
BOOL bMustAddInGlobalList = TRUE);
|
||||
//Called to create an INstance for Loading
|
||||
CPA_SuperObject *m_fn_pclCreateInstanceForLoad( CString csName,
|
||||
CAR_EDIT_TDSTACTOR *pclActor = NULL);
|
||||
|
||||
//Called to create single or multiple copy of a model
|
||||
void m_fn_vCreateCopiesOfModel( CPA_Actor *_pclModelToCopy,
|
||||
long _lCopiesNumber,
|
||||
CString _csNewName);
|
||||
|
||||
//Called to remove a model from the list, and delete it
|
||||
void m_fn_vDeleteModel(CPA_Actor *_pclModelToDelete);
|
||||
|
||||
//Loads unloaded Models
|
||||
void m_fn_vLoadUnloadedModels();
|
||||
|
||||
////////////////////////
|
||||
// Instances handling //
|
||||
////////////////////////
|
||||
|
||||
//Called to create single or multiple instances from a model
|
||||
BOOL m_fn_bCanInstantiateModel( CString csSourceModelName,
|
||||
CString &r_csInstanceName);
|
||||
|
||||
//Called to create single or multiple copy of an existing instance
|
||||
void m_fn_vCreateCopiesOfInstance( CPA_Actor *_pclInstanceToCopy,
|
||||
long _lCopiesNumber,
|
||||
CString _csNewName);
|
||||
|
||||
//Called to remove an Instance from the lists ( <--> DO for Delete)
|
||||
void m_fn_vDeleteInstance(CPA_Actor *pclInstanceToDelete);
|
||||
//Called to re-put an Instance in the lists (<--> UNDO for Delete)
|
||||
void m_fn_vUndeleteInstance(CPA_Actor *pclInstanceToDelete);
|
||||
|
||||
//Called to set inital position of an actor as its actual's one
|
||||
void m_fn_vSetCurrentActorPositionAsInitial(CPA_Actor *_pclActor);
|
||||
|
||||
/////////////////////
|
||||
// Editor's aspect //
|
||||
/////////////////////
|
||||
|
||||
//To refresh editor when a new actor (Instance or Model) is selected
|
||||
void m_fn_vDisplayActor(EdActors_EditorActor *pclNewSelectedActor,
|
||||
ED_ACTORS_tdeModeOfActorSelection _tdeSelectionType);
|
||||
|
||||
//-----------------IR-------------------------
|
||||
void m_fn_vDisplayActorIA();
|
||||
//--------------------------------------------
|
||||
|
||||
//Indicates the current display mode
|
||||
ED_ACTORS_tdeDisplayMode m_pub_fn_tdeGetCurrentDisplayMode();
|
||||
BOOL m_pub_fn_bCurrentModeIsInstance();
|
||||
BOOL m_pub_fn_bCurrentModeIsModel();
|
||||
BOOL m_pub_fn_bCurrentModeIsAlwaysModel();
|
||||
|
||||
//Called to update editor (and watch) currently edited values
|
||||
void m_fn_vUpdateEditedValues();
|
||||
|
||||
//Called to set the current MS List
|
||||
void m_fn_vSetCurrentList(char cChoice,
|
||||
BOOL bMustRepaint = TRUE);
|
||||
|
||||
//Called to update controls when current actor's name has changed
|
||||
void m_fn_vUpdateName();
|
||||
|
||||
//Updates controls of the editor for the currently edited Instance
|
||||
void m_fn_vUpdateControlsForInstance();
|
||||
|
||||
//Updates controls of the editor for the currently edited Model
|
||||
void m_fn_vUpdateControlsForModel();
|
||||
|
||||
//Sets the data pointers of the controls in tree to the actor's ones
|
||||
void m_fn_vSetPointersForSelectedActor();
|
||||
void m_fn_vSetPointers( EdActors_MiniStructureList *pclMSList,
|
||||
EdActors_ActorMiniStructureList *pclActorMSList);
|
||||
|
||||
//Displays the given Actor, then shows the given Data
|
||||
void m_fn_vShowData(EdActors_EditorActor *pclActor,
|
||||
CTL_Editor_Data *pclData);
|
||||
|
||||
//Re-init. the MS with init. values
|
||||
void m_fn_vReInitMiniStructure(EdActors_ActorMiniStructure *pclActorMS);
|
||||
//Re-init. all MS with init. values
|
||||
void m_fn_vReInitAllMiniStructures(EdActors_EditorActor *pclActor);
|
||||
|
||||
//To show or hide the Gen Doors
|
||||
void m_fn_vHideGenDoors();
|
||||
void m_fn_vShowGenDoors();
|
||||
|
||||
//
|
||||
void m_fn_vLoadObjectTables();
|
||||
|
||||
//To Display or Hide the IA Editor
|
||||
void m_fn_vActivateIAEditor(BOOL bActivate = TRUE);
|
||||
|
||||
//Saving & Loading
|
||||
void m_fn_vSaveMotorLevel(SCR_tdst_File_Description *p_tdstFile,
|
||||
CString csSectionName,
|
||||
SCR_tde_Ntfy_Action _eAction);
|
||||
void m_fn_vSaveMotorInstance( SCR_tdst_File_Description *p_tdstFile,
|
||||
CPA_Actor *p_clActor);
|
||||
void m_fn_vSaveAllMSOfMotorInstance(SCR_tdst_File_Description *p_tdstFile,
|
||||
CPA_Actor *p_clActor);
|
||||
void m_fn_vNotifyLevel( CPA_Actor *pclCauseActor,
|
||||
BOOL bAddSection = TRUE,
|
||||
CString csActorsName = "");
|
||||
void m_fn_vNotifyFixFile();
|
||||
|
||||
//Data Paths
|
||||
void m_fn_vComputeDataPaths();
|
||||
CString m_fn_csGetLevelName();
|
||||
|
||||
//
|
||||
void m_pub_fn_vCheckAllInstancesForActionChange(CPA_Action *);
|
||||
void m_pub_fn_vCheckAllActorsForObjectTableChange(EditorObjectTable *);
|
||||
|
||||
//To fill special Enum Descriptors
|
||||
void m_pub_fn_vUpdateActorsEnumDescriptor();
|
||||
void m_pub_fn_vUpdatePartGenEnumDescriptor();
|
||||
void m_pub_fn_vUpdateGameMaterialsEnumDescriptor();
|
||||
void m_pub_fn_vUpdateSectorsEnumDescriptor();
|
||||
void m_pub_fn_vUpdateGraphEnumDescriptor();
|
||||
//
|
||||
void m_pub_fn_vConstructListOfAlways();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
//Called to update editor' mode (Models or Instances or Always Model)
|
||||
void m_fn_vSetMode(ED_ACTORS_tdeDisplayMode _eNewMode, CPA_Actor *_pclNewActor = NULL);
|
||||
|
||||
void m_fn_vInitialize();
|
||||
void m_fn_vChangeSize();
|
||||
void m_fn_vFillMiniStructureList();
|
||||
void m_fn_vConstructListOfEnumDescriptors();
|
||||
void m_fn_vConstructListOfMaskDescriptors();
|
||||
void m_fn_vSetPointersForActor(EdActors_EditorActor *pclActor);
|
||||
|
||||
void m_fn_vScanDirectoryForUnloadedModels(CString,int Level);
|
||||
BOOL m_fn_bScanDirectoryForUnloadedModels(CString,int Level);
|
||||
|
||||
BOOL m_fn_bReadIniFile();
|
||||
BOOL m_fn_bWriteIniFile();
|
||||
|
||||
BOOL m_pri_fn_bSaveDimensions();
|
||||
BOOL m_pri_fn_bLoadDimensions();
|
||||
|
||||
//To save fields in Watch
|
||||
BOOL m_pri_fn_bSaveFieldsInWatch();
|
||||
BOOL m_pri_fn_bLoadFieldsInWatch();
|
||||
CString m_pri_fn_csGetEditorLevelFileName();
|
||||
|
||||
void m_pri_fn_vGetEditorCurrentSettings();
|
||||
//CPA2 Stegaru Cristian 98-06
|
||||
void m_fn_vLoadFamilyModels (CString csFamilyName);
|
||||
//End CPA2 Stegaru Cristian 98-06
|
||||
//Saving & Loading
|
||||
CPA_Actor *m_fn_pclLoadModel( CString csModelName = "",
|
||||
CPA_Actor *pclModel = NULL);
|
||||
|
||||
|
||||
//CPA2 Stegaru Cristian 98/07/16
|
||||
void mfn_vExtractAlwaysModelsFromBehaviour (CString &rcsAIText, CStringList &rlstOfAlways);
|
||||
CString GetFunctionArgument (CString &rText, int iFunctionInx);
|
||||
//End CPA2 Stegaru Cristian 98/07/16
|
||||
|
||||
public:
|
||||
static SCR_tde_Anl_ReturnValue m_fn_tdeCallBackLoadModel( SCR_tdst_File_Description *_p_stFile,
|
||||
char *_p_szName,
|
||||
char *_ap_szParams[],
|
||||
SCR_tde_Anl_Action _eAction);
|
||||
|
||||
static SCR_tde_Anl_ReturnValue m_fn_tdeCallBackLoadFieldsInWatch( SCR_tdst_File_Description *_p_stFile,
|
||||
char *_p_szName,
|
||||
char *_ap_szParams[],
|
||||
SCR_tde_Anl_Action _eAction);
|
||||
//Save Functions
|
||||
static void s_m_fn_vCallBackSaveFixFile(SCR_tdst_File_Description *_p_stFile,
|
||||
char *_p_szSectionName,
|
||||
void *_p_vData,
|
||||
SCR_tde_Ntfy_Action _eAction);
|
||||
|
||||
// Shaitan => state list in the level
|
||||
static void s_m_fn_vCallBackSaveStateList (SCR_tdst_File_Description *_p_stFile,
|
||||
char *_p_szSectionName,
|
||||
void *_p_vData,
|
||||
SCR_tde_Ntfy_Action _eAction);
|
||||
|
||||
void m_fn_vUpdateReferencesForAllActions (void);
|
||||
|
||||
void m_fn_vUpdateListOfUsedActionsForFamily (CPA_Family *pFamily);
|
||||
// End Shaitan => state list in the level
|
||||
|
||||
// Shaitan => module list in the level
|
||||
static void s_m_fn_vCallBackSavePOList (SCR_tdst_File_Description *_p_stFile,
|
||||
char *_p_szSectionName,
|
||||
void *_p_vData,
|
||||
SCR_tde_Ntfy_Action _eAction);
|
||||
|
||||
void m_fn_vUpdateListOfUsedObjectTablesForFamily (CPA_Family *pFamily);
|
||||
|
||||
void m_fn_vUpdateListOfUsedPOsForFamily (CPA_Family *pFamily);
|
||||
// End Shaitan => module list in the level
|
||||
|
||||
void m_pri_fn_vSaveAllActorsInFixFile(SCR_tdst_File_Description *_p_stFile,
|
||||
CPA_BaseObjectList *_pclList,
|
||||
CString _csEntryName);
|
||||
|
||||
//CPA2 Stegaru Cristian 98-04
|
||||
void m_fnUpdateWithExternData ();
|
||||
//End CPA2 Stegaru Cristian 98-04
|
||||
//CPA2 Stegaru Cristian 98-05
|
||||
void m_fn_ConstructListOfUnloadedAlways ();
|
||||
void mfn_vGetAlwaysNamesFromAlwFile (CString csFileName, CStringList &rlstOfAlwaysName);
|
||||
void mfn_vFillAlwaysObjectsFromDirectory (CString csDirectoryName, int iRelativePathInx, CStringList &rlstOfCurrentLevelAlwaysName);
|
||||
void mfn_vSearchDirForAlways (CString csDirectoryName, int iRelativePathInx, CTypedPtrList <CPtrList, AlwEntry*> &rlstOfAlwEntry);
|
||||
void mfn_vGetAlwaysFromCharactDirectory (CString csDirectoryName, int iRelativePathInx, CTypedPtrList <CPtrList, AlwEntry*> &rlstOfAlwEntry);
|
||||
//End CPA2 Stegaru Cristian 98-05
|
||||
//CPA2 Stegaru Cristian 98/06/24
|
||||
void mfn_vSetLastModifiedField (MS_Field stField) { m_stLastModifiedField = stField;}
|
||||
MS_Field mfn_stGetLastModifiedField () { return m_stLastModifiedField;}
|
||||
//End CPA2 Stegaru Cristian 98/06/24
|
||||
//CPA2 Stegaru Cristian 98/07/16
|
||||
void mfn_vFillRefAlwaysForModel (CPA_Actor *pModel, CStringList &rlstOfRefAlways);
|
||||
void mfn_vCheckModelToUpdateAlwFile (CPA_Actor *pModel);
|
||||
//End CPA2 Stegaru Cristian 98/07/16
|
||||
friend class EdActors_ActorsView;
|
||||
friend class CPA_Actor_Editor_Interface;
|
||||
friend class EdActors_DialogModelLoad;
|
||||
friend class CPA_Actor;
|
||||
friend class EdActors_EditorSetupDialog;
|
||||
};
|
||||
|
||||
#endif //_ED_ACTORS_DOCUMENT_
|
||||
|
||||
|
70
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACFmMn.hpp
Normal file
@@ -0,0 +1,70 @@
|
||||
// MainFrm.h : interface of the CMainFrame class
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _MAINFRM_H_
|
||||
#define _MAINFRM_H_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "Defines.hpp"
|
||||
|
||||
//--------------------------------------------
|
||||
#define C_ROW_INDEX_LISTS 0
|
||||
#define C_ROW_INDEX_CONTROL 1
|
||||
#define C_ROW_INDEX_MINI_STRUC 2
|
||||
|
||||
//-----------------IR-------------------------
|
||||
#define C_ROW_INDEX_DES_VAR 3
|
||||
#define C_NUMBER_OF_PANES 4
|
||||
//--------------------------------------------
|
||||
|
||||
class CMainFrame : public CSplitFrame
|
||||
{
|
||||
public:
|
||||
CMainFrame();
|
||||
|
||||
protected: // create from serialization only
|
||||
DECLARE_DYNCREATE(CMainFrame)
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
private:
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CMainFrame)
|
||||
protected:
|
||||
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~CMainFrame();
|
||||
#ifdef _DEBUG
|
||||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
//Attributes
|
||||
public:
|
||||
|
||||
protected: // control bar embedded members
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(CMainFrame)
|
||||
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
|
||||
afx_msg void OnPaint();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif //_MAINFRM_H_
|
||||
|
20
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACGlob.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
// Global functions
|
||||
///////////////////////////
|
||||
#ifndef _ED_ACTORS_GLOBAL_HPP_
|
||||
#define _ED_ACTORS_GLOBAL_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
class CPA_Actor;
|
||||
|
||||
void fn_vCheckAndChangeName(CString &r_csName);
|
||||
|
||||
void EDACTORS_fn_vGiveProgressInfo(CString csMessage, char cPercentage = -1);
|
||||
|
||||
BOOL EDACTORS_fn_bIsFileInCommon(CString _csFileName);
|
||||
|
||||
short m_wGetIndexOfName(CString,CPA_Actor *&,CString &);
|
||||
|
||||
#endif //_ED_ACTORS_GLOBAL_HPP_
|
57
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACGrBt.hpp
Normal file
@@ -0,0 +1,57 @@
|
||||
// EDACGrBt.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _ED_ACTORS_MS_GROUP_BUTTONS_
|
||||
#define _ED_ACTORS_MS_GROUP_BUTTONS_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_MSGroupButton window
|
||||
|
||||
class EdActors_MSGroupButton : public CButton
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
EdActors_MSGroupButton( unsigned char ucListIndex,
|
||||
CString csText,
|
||||
short wXPos,
|
||||
short wYPos,
|
||||
short wWidth,
|
||||
CWnd *pclParentWnd);
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
private:
|
||||
unsigned char m_ucListIndex;
|
||||
|
||||
// Operations
|
||||
public:
|
||||
unsigned char m_fn_ucGetListIndex();
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_MSGroupButton)
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~EdActors_MSGroupButton();
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(EdActors_MSGroupButton)
|
||||
afx_msg void OnClicked();
|
||||
//}}AFX_MSG
|
||||
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif //_ED_ACTORS_MS_GROUP_BUTTONS_
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
21
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACIRes.hm
Normal file
@@ -0,0 +1,21 @@
|
||||
// Microsoft Developer Studio generated Help ID include file.
|
||||
// Used by EdActors.rc
|
||||
//
|
||||
#define HIDC_CHECK_CONFIRM_ALLOCATION 0x80a2043c // IDD_CAR_D_SETUP
|
||||
#define HIDC_CHECK_CONFIRM_UNALLOCATION \
|
||||
0x80a2043d // IDD_CAR_D_SETUP
|
||||
#define HIDC_CHECK_DISPLAY_MODEL_FIELDS \
|
||||
0x80a20438 // IDD_CAR_D_SETUP
|
||||
#define HIDC_CHECK_DISPLAY_UNALLOCATED_MS \
|
||||
0x80a2043a // IDD_CAR_D_SETUP
|
||||
#define HIDC_CHECK_PROPOSE_UNLOADED_MODELS \
|
||||
0x80a20440 // IDD_CAR_D_SETUP
|
||||
#define HIDC_CHECK_RESTORE_GROUP 0x80a20497 // IDD_CAR_D_SETUP
|
||||
#define HIDC_CHECK_SYNCHRONIZE_DIALOG_LIST \
|
||||
0x80a2043e // IDD_CAR_D_SETUP
|
||||
#define HIDC_CHECK_WATCH_ALWAYS_VISIBLE \
|
||||
0x80a2043b // IDD_CAR_D_SETUP
|
||||
#define HIDC_CHECK_WATCH_SUPPRESS_CONFIRM \
|
||||
0x80a20439 // IDD_CAR_D_SETUP
|
||||
#define HIDC_RADIO_HELP_ACTIVE 0x80a20452 // IDD_CAR_D_SETUP
|
||||
#define HIDC_RADIO_HELP_MOUSE 0x80a20453 // IDD_CAR_D_SETUP
|
74
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACInst.hpp
Normal file
@@ -0,0 +1,74 @@
|
||||
// Definition for the class of Editor Actors
|
||||
//////////////////////////////////////////////////
|
||||
#ifndef _CPACINST_HPP_
|
||||
#define _CPACINST_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "ITF.h"
|
||||
#include "IncMEC.h"
|
||||
#define D_State_Define
|
||||
#include "IncGAM.h"
|
||||
#undef D_State_Define
|
||||
#include "GLI.h"
|
||||
|
||||
#include "EDACDef.hpp"
|
||||
#include "EDACActr.hpp"
|
||||
#include "Defines.hpp"
|
||||
#include "EDACWatc.hpp"
|
||||
|
||||
class EdActors_EditorActorModel;
|
||||
class CPA_Actor;
|
||||
|
||||
//################################################################
|
||||
class EdActors_EditorActorInstance : public EdActors_EditorActor
|
||||
{
|
||||
public:
|
||||
//Constructors
|
||||
EdActors_EditorActorInstance( CAR_EDIT_TDSTACTOR *ptdstActor);
|
||||
EdActors_EditorActorInstance( CPA_Actor *pclBaseModel,
|
||||
CPA_Actor *pclActor,
|
||||
CAR_EDIT_TDSTACTOR *p_tdstMotorActor = NULL,
|
||||
CPA_SuperObject *p_oSuperObject = NULL);
|
||||
|
||||
//Destructor
|
||||
~EdActors_EditorActorInstance();
|
||||
|
||||
//Attributes
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
CPA_Actor *m_pclActorModel;
|
||||
EdActors_EditorActorModel *m_pclModel;
|
||||
|
||||
OAC_tdstWatchField m_pri_tdstWatchField;
|
||||
|
||||
//Functions
|
||||
public:
|
||||
void m_fn_vLookForModifiedDatas();
|
||||
void m_fn_vSetModel(CPA_Actor *pclNewModel);
|
||||
CPA_Actor *m_fn_pclGetModel();
|
||||
|
||||
//When Actor is loaded from a file
|
||||
BOOL m_pub_fn_bCheckAllMSWithModel();
|
||||
|
||||
void m_pub_fn_vSetLink(CTL_Editor_Data *_pclSourceData,
|
||||
BOOL _bMustLink);
|
||||
|
||||
OAC_tdstWatchField *m_pub_fn_p_tdstGetWatchField();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
void m_fn_vCallSpecialFunctions();
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif //_CPACINST_HPP_
|
||||
|
37
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACMISv.hpp
Normal file
@@ -0,0 +1,37 @@
|
||||
// Motor Instances saving functions
|
||||
////////////////////////////////////////
|
||||
// Created by YB, 12/05/97
|
||||
////////////////////////////////////////////////
|
||||
#ifndef _ED_ACTORS_MOTOR_INSTANCES_SAVE_
|
||||
#define _ED_ACTORS_MOTOR_INSTANCES_SAVE_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "_AInterf.hpp"
|
||||
|
||||
class CPA_Actor;
|
||||
|
||||
void ED_ACTORS_fn_vStdGameSaveMiniStructure(SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
void ED_ACTORS_fn_vSectInfoSaveMiniStructure(SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
void ED_ACTORS_fn_vMSWaySaveMiniStructure(SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
void ED_ACTORS_fn_vLightSaveMiniStructure(SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
void ED_ACTORS_fn_vMicroSaveMiniStructure(SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
void ED_ACTORS_fn_vDynamSaveMiniStructure(SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
void ED_ACTORS_fn_vCollSetSaveMiniStructure(SCRIPT_tdstSaveFile *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
void ED_ACTORS_fn_vCineinfoSaveMiniStructure(SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
void ED_ACTORS_fn_vBrainSaveMiniStructure(CPA_Actor *,SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
void ED_ACTORS_fn_v3dDataSaveMiniStructure(SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
void ED_ACTORS_fn_vPrtSourceSaveMiniStructure(SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
void ED_ACTORS_fn_vSoundSaveMiniStructure(SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
|
||||
//ANNECY BBB 20/10/97 {
|
||||
void ED_ACTORS_fn_vAnimEffectSaveMiniStructure(SCR_tdst_File_Description *p_stFile, struct tdstEngineObject_ *p_stObject);
|
||||
//ENDANNECY BBB 20/10/97 }
|
||||
|
||||
// CHINA QZY (MT) 26/02/98 {
|
||||
void ED_ACTORS_fn_vMagnetSaveMiniStructure(SCR_tdst_File_Description *p_stFile,struct tdstEngineObject_ *p_stObject);
|
||||
// ENDCHINA QZY }
|
||||
|
||||
#endif //_ED_ACTORS_MOTOR_INSTANCES_SAVE_
|
214
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACMStA.hpp
Normal file
@@ -0,0 +1,214 @@
|
||||
// Header for the definition of the class representing a mini-structure
|
||||
// (Base class) (actors datas)
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACMSTA_HPP_
|
||||
#define _CPACMSTA_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EDACMStr.hpp" //for tdeMiniStructureState
|
||||
#include "EDACDef.hpp" //for CAR_EDIT_TDSTACTOR
|
||||
#include "EDACWatc.hpp"
|
||||
|
||||
class EdActors_EditorActor;
|
||||
|
||||
//#####################################################################
|
||||
|
||||
class EdActors_ActorMiniStructure
|
||||
{
|
||||
public:
|
||||
EdActors_ActorMiniStructure(CString);
|
||||
~EdActors_ActorMiniStructure();
|
||||
|
||||
//---------------------------------------
|
||||
//Attributes
|
||||
public:
|
||||
//The current state of the MS
|
||||
tdeMiniStructureState m_tdeState;
|
||||
|
||||
//The list of data
|
||||
CTL_Editor_DataList *m_pclDataList;
|
||||
|
||||
//Indicates if datas have been created or not
|
||||
BOOL m_bDataCreated;
|
||||
|
||||
//Indicates if datas have been initialized or not
|
||||
BOOL m_bDataInitialized;
|
||||
|
||||
//Pointer on Allocation function (motor function)
|
||||
void (*m_td_pfn_vAllocationFunction)(CAR_EDIT_TDSTACTOR *pclMotorActor);
|
||||
|
||||
//Pointer on Unallocation function (motor function)
|
||||
void (*m_td_pfn_vUnallocationFunction)(CAR_EDIT_TDSTACTOR *pclMotorActor);
|
||||
|
||||
//Pointer on Allocation function (motor function)
|
||||
void (*m_td_pfn_vFillFunction)(EdActors_EditorActor *, EdActors_ActorMiniStructure *);
|
||||
|
||||
//Special function, called at Instanciation when the corresponding
|
||||
//MS is allocated in base Model
|
||||
void (*m_td_pfn_vInstanciationSpecialFunction)(EdActors_ActorMiniStructure *);
|
||||
|
||||
//Special Function, called before Allocation
|
||||
void (*m_td_pfn_vBeforeAllocationSpecialFunction)(EdActors_ActorMiniStructure *);
|
||||
|
||||
//Special Function, called after Allocation
|
||||
void (*m_td_pfn_vAfterAllocationSpecialFunction)(EdActors_ActorMiniStructure *);
|
||||
|
||||
//Parent Actor
|
||||
EdActors_EditorActor *m_pclParentActor;
|
||||
|
||||
//Parent (Control) MS
|
||||
EdActors_MiniStructure *m_pclParentMS;
|
||||
|
||||
//For Undo / Redo
|
||||
BOOL m_bIsReallyAllocated;
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
//Saving (Scripts)
|
||||
CString m_csScriptName;
|
||||
|
||||
//Pointer on the base Address of the MS
|
||||
void *m_pvBaseAddress;
|
||||
|
||||
//For Undo / Redo
|
||||
void *m_pvKeptAddress;
|
||||
|
||||
OAC_tdstWatchField m_pri_tdstWatchField;
|
||||
|
||||
//---------------------------------------
|
||||
//Functions
|
||||
public:
|
||||
BOOL m_fn_bAllocate(BOOL bCanBeUndone = FALSE);
|
||||
BOOL m_fn_bUnallocate(BOOL bCanBeUndone = FALSE);
|
||||
|
||||
BOOL m_fn_bIsAllocated();
|
||||
BOOL m_fn_bCanBeUnallocated();
|
||||
BOOL m_fn_bIsOpen();
|
||||
BOOL m_fn_bCallSpecialFunction();
|
||||
|
||||
//Saving (Scripts)
|
||||
CString m_fn_csGetScriptName();
|
||||
void m_fn_vSetScriptName(CString);
|
||||
|
||||
//Pointer on the base Address of the MS
|
||||
void *m_fn_pvGetBaseAddress();
|
||||
void m_fn_vSetBaseAddress(void *);
|
||||
|
||||
//To init all data in the AMS
|
||||
void m_pub_fn_vInitializeAllData();
|
||||
|
||||
//To get all motor Data
|
||||
void m_pub_fn_vGetAllMotorData();
|
||||
|
||||
OAC_tdstWatchField *m_pub_fn_p_tdstGetWatchField();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
BOOL m_fn_bRealAllocate();
|
||||
|
||||
//For Undo / Redo
|
||||
void m_fn_vUnrealUnallocate();
|
||||
void m_fn_vUnrealAllocate();
|
||||
|
||||
public:
|
||||
//Saving
|
||||
BOOL m_fn_bSaveMS(SCRIPT_tdstSaveFile *, CString);
|
||||
static SCR_tde_Anl_ReturnValue m_fn_tdeCallBackLoad(SCR_tdst_File_Description *_p_stFile,
|
||||
char *_p_szName,
|
||||
char *_ap_szParams[],
|
||||
SCR_tde_Anl_Action _eAction);
|
||||
|
||||
friend class EdActors_ActorMSAllocateModif;
|
||||
friend class EdActors_ActorMSUnallocateModif;
|
||||
friend class EdActors_EditorActorModel;
|
||||
};
|
||||
|
||||
//##################################################################"
|
||||
class EdActors_ActorMSAllocateModif : public CPA_Modif
|
||||
{
|
||||
public:
|
||||
//Constructor
|
||||
EdActors_ActorMSAllocateModif(EdActors_ActorMiniStructure *pclAMS);
|
||||
|
||||
//Destructor
|
||||
~EdActors_ActorMSAllocateModif();
|
||||
|
||||
BOOL Do();
|
||||
BOOL Undo();
|
||||
|
||||
//Members
|
||||
private:
|
||||
EdActors_ActorMiniStructure *m_pclAMS;
|
||||
|
||||
};
|
||||
|
||||
//##################################################################"
|
||||
class EdActors_ActorMSUnallocateModif : public CPA_Modif
|
||||
{
|
||||
public:
|
||||
//Constructor
|
||||
EdActors_ActorMSUnallocateModif(EdActors_ActorMiniStructure *pclAMS);
|
||||
|
||||
//Destructor
|
||||
~EdActors_ActorMSUnallocateModif();
|
||||
|
||||
BOOL Do();
|
||||
BOOL Undo();
|
||||
|
||||
//Members
|
||||
private:
|
||||
EdActors_ActorMiniStructure *m_pclAMS;
|
||||
|
||||
};
|
||||
|
||||
//#####################################################################
|
||||
|
||||
// Definition of the class for the list of mini-structures
|
||||
class EdActors_ActorMiniStructureList : public CList<EdActors_ActorMiniStructure *, EdActors_ActorMiniStructure *>
|
||||
{
|
||||
public:
|
||||
EdActors_ActorMiniStructureList(CString csScriptName);
|
||||
~EdActors_ActorMiniStructureList();
|
||||
|
||||
EdActors_ActorMiniStructure* m_fn_pclAddElement(CString csScriptName);
|
||||
|
||||
void m_fn_vEmptyList();
|
||||
|
||||
private:
|
||||
CString m_csGroupScriptName;
|
||||
|
||||
public:
|
||||
CString m_fn_csGetGroupScriptName();
|
||||
|
||||
EdActors_ActorMiniStructure *m_fn_pclGetAMSFromName(CString);
|
||||
|
||||
void m_pub_fn_vGetAllMotorData();
|
||||
};
|
||||
|
||||
//#####################################################################
|
||||
|
||||
// Definition of the class for the list of mini-structures lists (!!!)
|
||||
class EdActors_AMSListList : public CList<EdActors_ActorMiniStructureList *, EdActors_ActorMiniStructureList *>
|
||||
{
|
||||
public:
|
||||
EdActors_AMSListList();
|
||||
~EdActors_AMSListList();
|
||||
|
||||
EdActors_ActorMiniStructureList* m_fn_pclAddList(CString csScriptName);
|
||||
|
||||
EdActors_ActorMiniStructureList *m_fn_pclGetListFromIndex(unsigned char ucIndex);
|
||||
char m_fn_cGetIndexFromList(EdActors_ActorMiniStructureList *);
|
||||
char m_fn_cGetIndexFromAMS(EdActors_ActorMiniStructure *);
|
||||
|
||||
EdActors_ActorMiniStructure *m_fn_pclGetAMSFromName(CString);
|
||||
CTL_Editor_Data *m_fn_pclGetDataFromName(CString _csName);
|
||||
};
|
||||
|
||||
|
||||
#endif //_CPACMSTA_HPP_
|
||||
|
271
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACMStr.hpp
Normal file
@@ -0,0 +1,271 @@
|
||||
// Header for the definition of the class representing a mini-structure
|
||||
// (Base class) (Controls)
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACMSTR_HPP_
|
||||
#define _CPACMSTR_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include <afxtempl.h>
|
||||
|
||||
#include "Help_Def.h"
|
||||
#include "EDACCust.hpp"
|
||||
|
||||
//External Modules
|
||||
#include "CTL.h"
|
||||
//End of External Modules
|
||||
|
||||
|
||||
class CPA_Editor_MiniStructureButton;
|
||||
class EdActors_ActorMiniStructure;
|
||||
class EdActors_MiniStrucView;
|
||||
|
||||
//#####################################################################
|
||||
|
||||
typedef enum eMiniStructureState
|
||||
{
|
||||
MS_STATE_UNALLOCATED = 0,
|
||||
MS_STATE_CLOSED,
|
||||
MS_STATE_DEVELOPPED,
|
||||
|
||||
} tdeMiniStructureState;
|
||||
|
||||
typedef enum eMiniStructureManiability
|
||||
{
|
||||
MS_MANIABILITY_NORMAL = 0,
|
||||
MS_MANIABILITY_ALWAYS_ALLOCATED,
|
||||
MS_MANIABILITY_ALLOCATED_ONLY_ONCE,
|
||||
|
||||
} tdeMiniStructureManiability;
|
||||
|
||||
//#####################################################################
|
||||
|
||||
class EdActors_MiniStructure
|
||||
{
|
||||
public:
|
||||
EdActors_MiniStructure( CString csName,
|
||||
tdeMiniStructureManiability tdeManiability);
|
||||
|
||||
~EdActors_MiniStructure();
|
||||
|
||||
//---------------------------------------
|
||||
//Attributes
|
||||
public:
|
||||
//The name of the mini-structure (in the Tree)
|
||||
CString m_csName;
|
||||
|
||||
//The list of data
|
||||
CTL_Editor_ControlList m_clControlList;
|
||||
|
||||
//A rectangle specifying teh zone where control are drown
|
||||
CRect m_crControlZone;
|
||||
|
||||
//Pointer on the actor MS object
|
||||
EdActors_ActorMiniStructure *m_pclActorMS;
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
CPA_Editor_MiniStructureButton *m_pclAllocButton;
|
||||
CPA_Editor_MiniStructureButton *m_pclOpenButton;
|
||||
CRect m_crDisplayRect;
|
||||
EdActors_MiniStrucView *m_pclParent;
|
||||
|
||||
//Maniability
|
||||
tdeMiniStructureManiability m_tdeManiability;
|
||||
BOOL m_bIsAlreadyAllocated;
|
||||
|
||||
//---------------------------------------
|
||||
//Functions
|
||||
public:
|
||||
CTL_Editor_Control *m_fn_pclAddIntegerControl(long,
|
||||
long,
|
||||
char,
|
||||
BOOL,
|
||||
OAC_tdeDataLevel,
|
||||
BOOL,
|
||||
CTL_tdeControlSpacingType,
|
||||
OAC_tdeControlVisibility,
|
||||
BOOL,
|
||||
CString _csControlName,
|
||||
//Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
unsigned char ucInitialCurrentPair = 0,
|
||||
//End Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
BOOL _bAcceptsToTakeNameOfData = TRUE, //ANNECY BBB
|
||||
DWORD _ulHelpID = IDH_FIELD_UNKNOWN
|
||||
);
|
||||
CTL_Editor_Control *m_fn_pclAddDecimalControl(long double,
|
||||
long double,
|
||||
char,
|
||||
OAC_tdeDataLevel,
|
||||
BOOL,
|
||||
CTL_tdeControlSpacingType,
|
||||
OAC_tdeControlVisibility,
|
||||
BOOL,
|
||||
CString _csControlName,
|
||||
//Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
unsigned char ucInitialCurrentPair = 0,
|
||||
//End Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
|
||||
BOOL _bAcceptsToTakeNameOfData = TRUE, //ANNECY BBB
|
||||
DWORD _ulHelpID = IDH_FIELD_UNKNOWN
|
||||
);
|
||||
|
||||
CTL_Editor_Control *m_fn_pclAddBooleanControl(OAC_tdeDataLevel,
|
||||
BOOL,
|
||||
CTL_tdeControlSpacingType,
|
||||
OAC_tdeControlVisibility,
|
||||
BOOL,
|
||||
CString _csControlName,
|
||||
//Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
unsigned char ucInitialCurrentPair = 0,
|
||||
//End Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
|
||||
BOOL _bAcceptsToTakeNameOfData = TRUE, //ANNECY BBB
|
||||
DWORD _ulHelpID = IDH_FIELD_UNKNOWN
|
||||
);
|
||||
CTL_Editor_Control *m_fn_pclAddMaskedControl( OAC_tdeDataLevel,
|
||||
BOOL,
|
||||
CTL_tdeControlSpacingType,
|
||||
OAC_tdeControlVisibility,
|
||||
BOOL,
|
||||
CString _csControlName,
|
||||
//Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
unsigned char ucInitialCurrentPair = 0,
|
||||
//End Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
BOOL _bAcceptsToTakeNameOfData = TRUE, //ANNECY BBB
|
||||
DWORD _ulHelpID = IDH_FIELD_UNKNOWN
|
||||
);
|
||||
CTL_Editor_Control *m_fn_pclAddEnumControl( OAC_tdeDataLevel,
|
||||
OAC_tdeControlVisibility,
|
||||
BOOL,
|
||||
CString _csControlName,
|
||||
//Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
unsigned char ucInitialCurrentPair = 0,
|
||||
//End Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
BOOL _bAcceptsToTakeNameOfData = TRUE, //ANNECY BBB
|
||||
DWORD _ulHelpID = IDH_FIELD_UNKNOWN
|
||||
);
|
||||
CTL_Editor_Control *m_fn_pclAddStateControl(OAC_tdeDataLevel,
|
||||
OAC_tdeControlVisibility,
|
||||
BOOL,
|
||||
CString _csControlName,
|
||||
//Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
unsigned char ucInitialCurrentPair = 0,
|
||||
//End Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
BOOL _bAcceptsToTakeNameOfData = TRUE, //ANNECY BBB
|
||||
DWORD _ulHelpID = IDH_FIELD_UNKNOWN
|
||||
);
|
||||
CTL_Editor_Control *m_fn_pclAddTextControl( OAC_tdeDataLevel,
|
||||
BOOL,
|
||||
CTL_tdeControlSpacingType,
|
||||
OAC_tdeControlVisibility,
|
||||
BOOL,
|
||||
CString _csControlName,
|
||||
//Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
unsigned char ucInitialCurrentPair = 0,
|
||||
//End Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
BOOL _bAcceptsToTakeNameOfData = TRUE, //ANNECY BBB
|
||||
DWORD _ulHelpID = IDH_FIELD_UNKNOWN
|
||||
);
|
||||
CTL_Editor_Control *m_fn_pclAddVectorControl( long double,
|
||||
long double,
|
||||
char,
|
||||
OAC_tdeDataLevel,
|
||||
BOOL,
|
||||
OAC_tdeControlVisibility,
|
||||
CString _csControlName,
|
||||
//Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
unsigned char ucInitialCurrentPair = 0,
|
||||
//End Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
BOOL _bAcceptsToTakeNameOfData = TRUE, //ANNECY BBB
|
||||
DWORD _ulHelpID = IDH_FIELD_UNKNOWN
|
||||
);
|
||||
CTL_Editor_Control *m_fn_pclAddObjectListControl( OAC_tdeDataLevel,
|
||||
BOOL,
|
||||
OAC_tdeControlVisibility,
|
||||
BOOL,
|
||||
BOOL,
|
||||
BOOL,
|
||||
CString _csControlName,
|
||||
//Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
unsigned char ucInitialCurrentPair = 0,
|
||||
//End Stefan Dumitrean 20-07-98 ( OAC buttons )
|
||||
BOOL _bAcceptsToTakeNameOfData = TRUE, //ANNECY BBB
|
||||
DWORD _ulHelpID = IDH_FIELD_UNKNOWN
|
||||
);
|
||||
|
||||
//Creates all controls
|
||||
virtual long m_fn_lCreateMSControls(CWnd *, CRect);
|
||||
//Hides all controls
|
||||
virtual void m_fn_vHideAllControls();
|
||||
//Shows all controls
|
||||
virtual void m_fn_vShowAllControls();
|
||||
|
||||
//Reaction to buttons
|
||||
void m_fn_vOnButtonAlloc();
|
||||
void m_fn_vOnButtonOpen();
|
||||
|
||||
long m_fn_lMove(CRect crRect);
|
||||
long m_fn_lOpen(CRect crRect);
|
||||
void m_fn_vClose();
|
||||
void m_fn_vOffsetZone(long lOffset);
|
||||
void m_fn_vGetMotorDatas();
|
||||
void m_fn_vUpdateMSButton();
|
||||
|
||||
//Called when mode is Instance
|
||||
void m_fn_vUpdateControlsForInstance();
|
||||
//Called when mode is Model
|
||||
void m_fn_vUpdateControlsForModel();
|
||||
|
||||
//Maniability
|
||||
tdeMiniStructureManiability m_fn_tdeGetManiability();
|
||||
BOOL m_fn_bCanBeUnallocated();
|
||||
BOOL m_fn_bCanBeAllocated();
|
||||
void m_fn_vHasBeenAllocated();
|
||||
void m_fn_vHasBeenUnallocated();
|
||||
BOOL m_fn_bIsAlreadyAllocated();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
//#####################################################################
|
||||
|
||||
// Definition of the class for the list of mini-structures
|
||||
class EdActors_MiniStructureList : public CList<EdActors_MiniStructure *, EdActors_MiniStructure *>
|
||||
{
|
||||
public:
|
||||
EdActors_MiniStructureList();
|
||||
~EdActors_MiniStructureList();
|
||||
|
||||
EdActors_MiniStructure* m_fn_pclAddElement(CString, tdeMiniStructureManiability);
|
||||
void m_fn_vEmptyList();
|
||||
|
||||
void m_fn_vUpdateControlsForInstance();
|
||||
void m_fn_vUpdateControlsForModel();
|
||||
void m_fn_vHighliteData(CTL_Editor_Data *pclData);
|
||||
};
|
||||
|
||||
//#####################################################################
|
||||
|
||||
// Definition of the class for the list of lists of mini-structures
|
||||
class EdActors_MSListsList : public CList<EdActors_MiniStructureList *, EdActors_MiniStructureList *>
|
||||
{
|
||||
public:
|
||||
EdActors_MSListsList();
|
||||
~EdActors_MSListsList();
|
||||
|
||||
EdActors_MiniStructureList* m_fn_pclAddElement();
|
||||
|
||||
EdActors_MiniStructureList *m_fn_pclGetListFromIndex(unsigned char ucIndex);
|
||||
|
||||
// void m_fn_vEmptyList();
|
||||
};
|
||||
|
||||
#endif //_CPACMSTR_HPP_
|
||||
|
134
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACModl.hpp
Normal file
@@ -0,0 +1,134 @@
|
||||
// Definition for the class of Editor Actors Models
|
||||
/////////////////////////////////////////////////////
|
||||
#ifndef _CPACMODL_HPP_
|
||||
#define _CPACMODL_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include <afxtempl.h>
|
||||
|
||||
#include "EDACActr.hpp"
|
||||
#include "EDACInst.hpp"
|
||||
#include "_Ainterf.hpp"
|
||||
#include "Defines.hpp"
|
||||
|
||||
//CPA2 Stegaru Cristian 98/06/22
|
||||
#define REASON_ALL_INSTANCES 0
|
||||
#define REASON_STANDARD_INSTANCES 1
|
||||
#define REASON_INSTANCES_IN_THE_LIST 2
|
||||
//End CPA2 Stegaru Cristian 98/06/22
|
||||
|
||||
//-----------------IR-------------------------
|
||||
class CPA_EdIR_Brain;
|
||||
//--------------------------------------------
|
||||
|
||||
//################################################################
|
||||
//define this if you want models with unspecified name lists to fail their instanciation
|
||||
//#define D_DoNotInstanciateIncompleteModels
|
||||
|
||||
//################################################################
|
||||
class EdActors_EditorActorModel : public EdActors_EditorActor
|
||||
{
|
||||
public:
|
||||
//Normal constructor
|
||||
EdActors_EditorActorModel(CPA_Family *pclFamily,CPA_Actor *pclActor);
|
||||
|
||||
//"Empty" constructor (for loading)
|
||||
EdActors_EditorActorModel(CPA_Actor *pclActor);
|
||||
|
||||
//Copy constructor
|
||||
EdActors_EditorActorModel(EdActors_EditorActorModel *_pclSourceModel, CPA_Actor *_pclActor);
|
||||
|
||||
//Destructor
|
||||
~EdActors_EditorActorModel();
|
||||
|
||||
//CPA2 Stegaru Cristian 98/06/22
|
||||
void mfn_vUpdateInstances (CTL_Editor_Data *_pclSourceData, int nReason = REASON_ALL_INSTANCES, CStringList *pInstanceNames = NULL);
|
||||
void mfn_vGetStandardInstances (CTL_Editor_Data *pSourceData, CTL_Editor_Data *pModifiedData, CStringList &rlstStandardInstances);
|
||||
BOOL mfn_bIsAStandardInstance (EdActors_EditorActorInstance *pclInstance, CTL_Editor_Data *pSourceData, CTL_Editor_Data *pModifiedData);
|
||||
void mfn_vGetAllInstances (CStringList &rlstAllInstances);
|
||||
//End CPA2 Stegaru Cristian 98/06/22
|
||||
|
||||
//Attributes
|
||||
public:
|
||||
//The List of Instances
|
||||
CPA_List<EdActors_EditorActorInstance> m_clInstancesList;
|
||||
|
||||
//-----------------IR-------------------------
|
||||
CPA_EdIR_Brain *m_pclBrain;
|
||||
CTL_Editor_ControlList m_clListOfDesignerVariableControl;
|
||||
//--------------------------------------------
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
CString m_csBitmapName;
|
||||
|
||||
//Functions
|
||||
public:
|
||||
#if defined ( D_DoNotInstanciateIncompleteModels )
|
||||
BOOL m_bAllListsAreSpecified();
|
||||
#endif /* D_DoNotInstanciateIncompleteModels */
|
||||
|
||||
CString m_fn_csGetBitmapName();
|
||||
void m_fn_vSetBitmapName(CString);
|
||||
|
||||
short m_fn_wGetRelatedInstancesCount();
|
||||
|
||||
void m_fn_vUpdateAllInstances(CTL_Editor_Data *_pclSourceData,
|
||||
CTL_tdeUpdateReason _eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
long _lUserDefinedReason = 0);
|
||||
|
||||
BOOL m_fn_bUpdateList(EdActors_ActorMiniStructureList *_pclDestList,
|
||||
EdActors_ActorMiniStructureList *_pclSourceList,
|
||||
CTL_Editor_Data *_pclSourceData,
|
||||
CTL_tdeUpdateReason _eReason = CTL_UPDATE_REASON__NO_REASON_GIVEN,
|
||||
//CPA2 Stegaru Cristian 98/06/24
|
||||
long _lUserDefinedReason = 0,
|
||||
BOOL bUsePropagate = FALSE);
|
||||
//End CPA2 Stegaru Cristian 98/06/24
|
||||
|
||||
//Allocates MS and all corresponding MS in existing Instances
|
||||
BOOL m_fn_bAllocateMS(EdActors_ActorMiniStructure *pclAMS);
|
||||
|
||||
void m_fn_vAllocateMSInInstances(EdActors_ActorMiniStructure *pclAMS);
|
||||
void m_fn_vUnallocateMSInInstances(EdActors_ActorMiniStructure *pclAMS);
|
||||
|
||||
//Unallocates MS and all corresponding MS in existing Instances
|
||||
BOOL m_fn_bUnallocateMS(EdActors_ActorMiniStructure *pclAMS);
|
||||
|
||||
//Saving & Loading functions
|
||||
void m_fn_vSaveActor(SCR_tdst_File_Description *p_stFile);
|
||||
|
||||
void m_fn_vRemoveFromInstancesList(EdActors_EditorActorInstance *pclInstanceToRemove);
|
||||
void m_fn_vAddToInstancesList(EdActors_EditorActorInstance *pclInstanceToAdd);
|
||||
|
||||
//Returns TRUE only if Data exists and belongs to an allocated MS
|
||||
BOOL m_fn_bDataBelongsToAnAllocatedMS(CString csDataName);
|
||||
|
||||
//Updates all linked Data in given Instance, according to Model
|
||||
void m_pub_fn_vUpdateLinkedDataInInstance(CPA_Actor *_pclInstanceToUpdate);
|
||||
|
||||
void m_pub_fn_vSetLink(CTL_Editor_Data *_pclSourceData,
|
||||
BOOL _bMustLink);
|
||||
|
||||
// Shaitan FastC {
|
||||
void m_pub_fn_vNotifyBrain (void);
|
||||
static void m_fn_vSaveEngineAI(SCR_tdst_File_Description *,char *,void *,SCR_tde_Ntfy_Action);
|
||||
//End Shaitan FastC }
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
//This function allocates the MS which must always be Allocated
|
||||
void m_fn_vMinimalAllocation();
|
||||
|
||||
//Links the Data to Instances
|
||||
void m_pri_fn_vLinkData(CTL_Editor_Data *pclData);
|
||||
|
||||
};
|
||||
|
||||
#endif //_CPACMODL_HPP_
|
||||
|
45
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACQuer.hpp
Normal file
@@ -0,0 +1,45 @@
|
||||
#ifndef EDACQUERY_HPP
|
||||
#define EDACQUERY_HPP
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
class CPA_EdIR_DesignerVariableList;
|
||||
class CPA_EdIR_DesignerVariablesView;
|
||||
class CTL_Editor_DataList;
|
||||
class CTL_Editor_ControlList;
|
||||
class CPA_EdIR_Brain;
|
||||
class CPA_Actor;
|
||||
|
||||
//Designer Variable List
|
||||
CPA_EdIR_DesignerVariableList *EDAC_fn_pclGetNewDesignerVariableList();
|
||||
void EDAC_fn_vDeleteDesignerVariableList(CPA_EdIR_DesignerVariableList *pclListOfDesignerVariables);
|
||||
|
||||
//Designer Variable View
|
||||
void EDAC_fn_vDesignerVariableView_UpdateDisplayWithValues(CPA_EdIR_DesignerVariablesView *,CTL_Editor_DataList *);
|
||||
void EDAC_fn_vDesignerVariableView_UpdateDisplay(CPA_EdIR_DesignerVariablesView *);
|
||||
void EDAC_fn_vDesignerVariableView_UpdateState(CPA_EdIR_DesignerVariablesView *, BOOL);
|
||||
void EDAC_fn_vDesignerVariableView_UpdateControls(CPA_EdIR_DesignerVariablesView *,CTL_Editor_ControlList *);
|
||||
long EDAC_fn_lDesignerVariableView_GetOldHeight(CPA_EdIR_DesignerVariablesView *);
|
||||
void EDAC_fn_vDesignerVariableView_SetOldHeight(CPA_EdIR_DesignerVariablesView *,long);
|
||||
CRuntimeClass *EDAC_fn_pclDesignerVariableView_GetRuntimeClass();
|
||||
|
||||
//Brain
|
||||
CPA_EdIR_Brain *EDAC_fn_pclGetNewBrain(CPA_Actor *);
|
||||
CPA_EdIR_Brain *EDAC_fn_pclGetNewCopyOfBrain(CPA_Actor *,CPA_EdIR_Brain *);
|
||||
void EDAC_fn_vDeleteBrain(CPA_EdIR_Brain *);
|
||||
void EDAC_fn_vShowBrain(CPA_EdIR_Brain *);
|
||||
void EDAC_fn_vLoadBrain(CPA_Actor *,CString);
|
||||
// Shaitan => optimisation lists in the level
|
||||
void EDAC_fn_vProcessBrain(CPA_Actor *,CPA_Actor *,BOOL);
|
||||
// End Shaitan => optimisation lists in the level
|
||||
void EDAC_fn_vSaveInitValuesInBrainMS(CPA_Actor *,struct SCR_tdst_File_Description_ *);
|
||||
BOOL EDAC_fn_bMustSaveAIEntryInModel(CPA_EdIR_Brain *);
|
||||
|
||||
//AI Editor
|
||||
void EDAC_fn_vShowAIEditor();
|
||||
void EDAC_fn_vHideAIEditor();
|
||||
void EDAC_fn_vOnLostFocusAIEditor();
|
||||
|
||||
#endif //EDACQUERY_HPP
|
21
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACSpec.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
// The Special functions called on Instanciation,
|
||||
// when a particular MS is allocated
|
||||
///////////////////////////////////////////////////////
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
class EdActors_ActorMiniStructure;
|
||||
class CTL_Editor_Data;
|
||||
|
||||
void EDACT_fn_vCineinfoAfterAllocation(EdActors_ActorMiniStructure *);
|
||||
void EDACT_fn_vLightAfterAllocation(EdActors_ActorMiniStructure *);
|
||||
void EDACT_fn_vStdGameAfterAllocation(EdActors_ActorMiniStructure *);
|
||||
void EDACT_fn_v3dDataAfterAllocation(EdActors_ActorMiniStructure *);
|
||||
void EDACT_fn_vDynamicsAfterAllocation(EdActors_ActorMiniStructure *);
|
||||
// Shaitan FastC {
|
||||
void EDACT_fn_vBrainAfterAllocation(EdActors_ActorMiniStructure *);
|
||||
//End Shaitan FastC }
|
||||
|
||||
|
95
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACStrg.hpp
Normal file
@@ -0,0 +1,95 @@
|
||||
// Constant string definitions
|
||||
////////////////////////////////
|
||||
#ifndef _CPA_CAR_STRING_DEF_
|
||||
#define _CPA_CAR_STRING_DEF_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "IncGAM.h"
|
||||
#include "x:\cpa\Main\Inc\_EditID.h"
|
||||
|
||||
#undef extern
|
||||
|
||||
//Ini file
|
||||
#define C_szActorsIniFileName "Actors.ini"
|
||||
|
||||
//Used for Errors
|
||||
const CString g_c_csActorModuleNameForErrors = "Actors Editor";
|
||||
|
||||
|
||||
const CString g_c_csActorDLLName = C_szDLLActorName;
|
||||
const CString g_c_csActorType = C_szActorInstanceTypeName;
|
||||
const CString g_c_csActorModelType = C_szActorModelTypeName;
|
||||
//CPA2 Stegaru Cristian 98-05
|
||||
const CString g_c_csUnloadedAlwaysType = "UnloadedAlwaysType";
|
||||
//End CPA2 Stegaru Cristian 98-05
|
||||
|
||||
const CString g_c_csGenericNameListType = C_szGenericNameListType;
|
||||
const CString g_c_csObjectNameType = C_szObjectNameType;
|
||||
const CString g_c_csZDeNameListType = C_szZDeNameListType;
|
||||
const CString g_c_csZDmNameListType = C_szZDmNameListType;
|
||||
const CString g_c_csZDdNameListType = C_szZDdNameListType;
|
||||
const CString g_c_csZDrNameListType = C_szZDrNameListType;
|
||||
const CString g_c_csWayNameListType = C_szWayNameListType;
|
||||
|
||||
const CString g_c_csActorsEnumDescriptorName = "__Actors__";
|
||||
const CString g_c_csObjectTablesEnumDescriptorName = "__Object_Tables__";
|
||||
const CString g_c_csBoxSetEnumDescriptorName = "__Box_Set__";
|
||||
const CString g_c_csInstanciatedItemEnumDescriptorName = "__Instanciated_Item__";
|
||||
const CString g_c_csGameMaterialEnumDescriptorName = "__Game_Material__";
|
||||
const CString g_c_csSectorsEnumDescriptorName = "__Sectors__";
|
||||
const CString g_c_csPartGenEnumDescriptorName = "__Particle_Generators__";
|
||||
const CString g_c_csGraphEnumDescriptorName = "__Reseau__";
|
||||
//////////////////////
|
||||
// Used for Scripts //
|
||||
//////////////////////
|
||||
//Global (scripts)
|
||||
const CString g_c_csActorScriptModelSectionName = "CreateEditorActorModel";
|
||||
const CString g_c_csActorScriptLevelSectionName = "CreateEditorActorLevel";
|
||||
const CString g_c_csActorScriptNamesListSectionName = "CreateNamesList";
|
||||
const CString g_c_csActorScriptZoneListSectionName = "CreateNewArrayOfZdx";
|
||||
const CString g_c_csActorScriptWayListSectionName = "WayLst";
|
||||
|
||||
const CString g_csModelExtension = ".ema";
|
||||
const CString g_csInstanceExtension = CString(".") + C_ScriptCharacterSuffixe;
|
||||
const CString g_csNamesListExtension = ".enl";
|
||||
const CString g_csZoneListExtension = ".zdx";
|
||||
const CString g_csWayListExtension = ".way";
|
||||
|
||||
//Used for both Models and Instances
|
||||
const CString g_c_csActorFamily = "Family";
|
||||
|
||||
//Used for Models
|
||||
const CString g_c_csModelType = "Type";
|
||||
const CString g_c_csModelTypeGenDoor = "GenDoorType";
|
||||
const CString g_c_csModelTypeActor = "ActorType";
|
||||
const CString g_c_csBitmapName = "Bitmap";
|
||||
const CString g_c_csModelNamePrefix = "";
|
||||
|
||||
//Used for MS
|
||||
const CString g_c_csMSSection = "MiniStructure";
|
||||
const CString g_c_csAllocatedMS = "Allocated";
|
||||
const CString g_c_csNotAllocatedMS = "Not_Allocated";
|
||||
const CString g_c_csGroupName = "Group_";
|
||||
|
||||
//Used for Data
|
||||
const CString g_c_csLinkedField = "Linked";
|
||||
const CString g_c_csNotLinkedField = "Not_Linked";
|
||||
const CString g_c_csNeverLinkedField = "Never_Linked";
|
||||
const CString g_c_csAlwaysLinkedField = "Always_Linked";
|
||||
const CString g_c_csFieldInWatch = "In_Watch";
|
||||
const CString g_c_csFieldNotInWatch = "Not_In_Watch";
|
||||
|
||||
//Used for Fields in Watch
|
||||
const CString g_c_csEdActors_EditorLevelExtension = "elv";
|
||||
const CString g_c_csEdActors_ActorInWatchSectionName = "ActorInWatch";
|
||||
const CString g_c_csEdActors_ActorInWatchSectionNameParamValue_Open = "ActorIsOpen";
|
||||
const CString g_c_csEdActors_ActorInWatchSectionNameParamValue_Closed = "ActorIsClosed";
|
||||
const CString g_c_csEdActors_FieldInWatchEntryName = "FieldInWatch";
|
||||
|
||||
|
||||
#define M_MAKECHAR(a) ((char *)(LPCTSTR(a)))
|
||||
|
||||
#endif //_CPA_CAR_STRING_DEF_
|
53
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACTTip.hpp
Normal file
@@ -0,0 +1,53 @@
|
||||
// CPACTTip.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACTTIP_HPP_
|
||||
#define _CPACTTIP_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_SpecialToolTip window
|
||||
|
||||
class EdActors_SpecialToolTip : public CWnd
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
EdActors_SpecialToolTip(CString csText,
|
||||
CFont *pclFont);
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
private:
|
||||
CString m_csToolTipText;
|
||||
CFont *m_pclFont;
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_SpecialToolTip)
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~EdActors_SpecialToolTip();
|
||||
|
||||
BOOL m_fn_bCreate(CWnd *pclParentWnd);
|
||||
void m_fn_vMove(CPoint point);
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(EdActors_SpecialToolTip)
|
||||
afx_msg void OnPaint();
|
||||
//}}AFX_MSG
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif //_CPACTTIP_HPP_
|
||||
|
8
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACUndD.hpp
Normal file
@@ -0,0 +1,8 @@
|
||||
// Defines for Undo / Redo identification
|
||||
//
|
||||
// ACTORS EDITOR
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
#define EDACT_UNDO_NORMAL 0
|
||||
#define EDACT_UNDO_CREATE 1
|
||||
#define EDACT_UNDO_DE
|
184
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACVwAc.hpp
Normal file
@@ -0,0 +1,184 @@
|
||||
// EDACVwAc.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACACVW_HPP_
|
||||
#define _CPACACVW_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
#include "EDACGrBt.hpp"
|
||||
|
||||
#include "Defines.hpp"
|
||||
|
||||
//External Modules
|
||||
#include "CTL.h"
|
||||
//End of External Modules
|
||||
|
||||
#ifndef __AFXEXT_H__
|
||||
#include <afxext.h>
|
||||
#endif
|
||||
|
||||
//CPA2 Stegaru Cristian 98/07/15
|
||||
#define CLEAN_ALW_FILE 20
|
||||
//End CPA2 Stegaru Cristian 98/07/15
|
||||
|
||||
class EdActors_EditorActor;
|
||||
class EdActors_MyDocument;
|
||||
class CPA_Editor_Static;
|
||||
class CPA_Actor;
|
||||
//CPA2 Stegaru Cristian 98/07/15
|
||||
class CPA_Actor_Editor_Interface;
|
||||
//End CPA2 Stegaru Cristian 98/07/15
|
||||
|
||||
// EdActors_ActorsView form view
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//CPA2 Stegaru Cristian 98/07/15
|
||||
class ModifCleanAlwFile : public CPA_Modif
|
||||
{
|
||||
protected:
|
||||
CPA_Actor_Editor_Interface *m_pInterface;
|
||||
CStringList m_lstAlwObjects;
|
||||
public:
|
||||
ModifCleanAlwFile (CPA_Actor_Editor_Interface *pInterface, CStringList &rlstAlwObjects, BOOL pBlock = FALSE);
|
||||
|
||||
BOOL Do (void);
|
||||
BOOL Undo (void);
|
||||
|
||||
};
|
||||
//End CPA2 Stegaru Cristian 98/07/15
|
||||
|
||||
class EdActors_ActorsView : public CFormView
|
||||
{
|
||||
public:
|
||||
// protected constructor used by dynamic creation
|
||||
EdActors_ActorsView();
|
||||
|
||||
DECLARE_DYNCREATE(EdActors_ActorsView)
|
||||
|
||||
// Form Data
|
||||
public:
|
||||
//{{AFX_DATA(EdActors_ActorsView)
|
||||
enum { IDD = IDD_CAR_D_VIEW_CONTROL };
|
||||
//}}AFX_DATA
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
UINT m_nNextButtonId;
|
||||
UINT m_nPreviousButtonId;
|
||||
|
||||
private:
|
||||
CTL_Editor_Static *m_pclActorNameStatic;
|
||||
CTL_Editor_Static *m_pclModelNameStatic;
|
||||
CTL_Editor_Static *m_pclFamilyNameStatic;
|
||||
|
||||
//Scroll sizes
|
||||
short m_wMinYScrollSize;
|
||||
short m_wXScrollSize;
|
||||
|
||||
CToolTipCtrl *m_pclToolTip;
|
||||
|
||||
CPA_List<EdActors_MSGroupButton> m_clListOfGroupButtons;
|
||||
|
||||
//
|
||||
BOOL m_pri_bControlsAreEnabled;
|
||||
|
||||
// Operations
|
||||
public:
|
||||
void m_fn_vDisplayActor(EdActors_EditorActor *pclNewSelectedActor);
|
||||
|
||||
void m_fn_vUpdatePagesButtons(char cPage);
|
||||
void m_fn_vUpdateActorName();
|
||||
void m_fn_vUpdateUndoRedoButtons();
|
||||
void m_fn_vRefreshNavigationButtons();
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_ActorsView)
|
||||
public:
|
||||
virtual void OnInitialUpdate();
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
private:
|
||||
EdActors_MyDocument *m_fn_pclGetDocument();
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
void m_pub_fn_vEnableAllControls(BOOL _bEnable);
|
||||
//Refreshes Model and Instance Buttons
|
||||
void m_fn_vRefreshModelInstanceButtons();
|
||||
|
||||
//
|
||||
void m_pub_fn_vUpdateActorNameForModif(CPA_Actor *_pclSendingActor);
|
||||
BOOL mfn_bIsAlwaysActiveEnabled (void);
|
||||
BOOL mfn_bIsInAllSubMapsEnabled (void);
|
||||
|
||||
protected:
|
||||
virtual ~EdActors_ActorsView();
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_ActorsView)
|
||||
/*
|
||||
afx_msg void OnButtonLevel1();
|
||||
afx_msg void OnButtonLevel2();
|
||||
afx_msg void OnButtonLevel3();
|
||||
afx_msg void OnCheckLevelExclusive();
|
||||
*/
|
||||
afx_msg void OnButtonWatch();
|
||||
afx_msg void OnCheckModels();
|
||||
afx_msg void OnCheckVariables();
|
||||
afx_msg void OnCheckCurrent();
|
||||
afx_msg void OnCheckInitial();
|
||||
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
|
||||
afx_msg void OnButtonRedo();
|
||||
afx_msg void OnButtonUndo();
|
||||
afx_msg void OnButtonUndoArrow();
|
||||
afx_msg void OnButtonRedoArrow();
|
||||
afx_msg void OnButtonShowModels();
|
||||
afx_msg void OnButtonEditModel();
|
||||
afx_msg void OnButtonShowInstances();
|
||||
afx_msg void OnButtonActions();
|
||||
afx_msg void OnButtonCopy();
|
||||
// Shaitan => state list in the level
|
||||
afx_msg void OnButtonStateList();
|
||||
// End Shaitan => state list in the level
|
||||
afx_msg void OnButtonHelp();
|
||||
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
||||
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
||||
afx_msg void OnCheckShowLinks();
|
||||
afx_msg void m_fn_vOnMenuAlways();
|
||||
afx_msg void m_fn_vOnMenuCommon();
|
||||
afx_msg void m_fn_vOnMenuIntoFix();
|
||||
afx_msg void m_fn_vRenameModel();
|
||||
afx_msg void m_fn_vRemoveModel();
|
||||
afx_msg void m_fn_vRenameInstance();
|
||||
afx_msg void m_fn_vSetInstancePositionAsInitial();
|
||||
afx_msg void OnAlwaysActive();
|
||||
afx_msg void OnDestroy();
|
||||
afx_msg void OnCheckAlwaysActive();
|
||||
afx_msg void OnCleanAlwFile();
|
||||
afx_msg void OnInAllSubMaps();
|
||||
afx_msg void OnCheckInAllSubMaps();
|
||||
afx_msg BOOL OnToolTipNotify( UINT id, NMHDR * pNMHDR, LRESULT * pResult );
|
||||
//}}AFX_MSG
|
||||
|
||||
|
||||
void OnButtonSetup();
|
||||
|
||||
#ifdef _DEBUG
|
||||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
friend class EdActors_MyDocument;
|
||||
friend class EdActors_WatchDialog;
|
||||
friend class CPA_Actor_Editor_Interface;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif //_CPACACVW_HPP_
|
||||
|
122
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACVwMS.hpp
Normal file
@@ -0,0 +1,122 @@
|
||||
// cpacvwms.hpp : header file
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef _CPACVWMS_HPP_
|
||||
#define _CPACVWMS_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "EdAcIRes.h"
|
||||
|
||||
//External Modules
|
||||
#include "CTL.h"
|
||||
//End of External Modules
|
||||
|
||||
class EdActors_MiniStructure;
|
||||
class EdActors_MiniStructureList;
|
||||
class EdActors_EditorActor;
|
||||
class EdActors_ActorMiniStructureList;
|
||||
class EdActors_MyDocument;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// EdActors_MiniStrucView form view
|
||||
|
||||
#ifndef __AFXEXT_H__
|
||||
#include <afxext.h>
|
||||
#endif
|
||||
|
||||
class EdActors_MiniStrucView : public CTL_Editor_BaseFormView
|
||||
{
|
||||
public:
|
||||
// protected constructor used by dynamic creation
|
||||
EdActors_MiniStrucView();
|
||||
|
||||
|
||||
protected:
|
||||
DECLARE_DYNCREATE(EdActors_MiniStrucView)
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
CRect m_crEditionRect;
|
||||
|
||||
BOOL m_bMustDragData;
|
||||
CTL_Editor_Data *m_pri_pclDataToDrop;
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
//Timer var.
|
||||
unsigned char m_ucTimerCounter;
|
||||
CTL_Editor_Control *m_pclControlTimerSender;
|
||||
CToolTipCtrl *m_pclToolTip;
|
||||
|
||||
HCURSOR m_pri_hDragCursor;
|
||||
HCURSOR m_pri_hDisabledDragCursor;
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
void m_fn_vDisplayActor(EdActors_EditorActor *pclNewSelectedActor);
|
||||
void m_fn_vUpdateTree(EdActors_MiniStructure *pclMS = NULL);
|
||||
|
||||
void m_fn_vUpdateAllDatas();
|
||||
|
||||
EdActors_MyDocument *m_fn_pclGetDocument();
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
void m_fn_vCreateAllMS();
|
||||
void m_fn_vCreateMS(EdActors_MiniStructureList *pclList);
|
||||
|
||||
void m_fn_vUpdateMSListDatas( EdActors_MiniStructureList *pclEditorMSList,
|
||||
EdActors_ActorMiniStructureList *pclActorMSList);
|
||||
|
||||
void m_fn_vUnhighliteControl();
|
||||
void m_fn_vHighliteControl();
|
||||
|
||||
// Form Data
|
||||
public:
|
||||
//{{AFX_DATA(EdActors_MiniStrucView)
|
||||
enum { IDD = IDD_CAR_D_VIEW_MS };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(EdActors_MiniStrucView)
|
||||
public:
|
||||
// virtual void OnDraw(CDC* pDC); // overridden to draw this view
|
||||
virtual void OnInitialUpdate();
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
virtual ~EdActors_MiniStrucView();
|
||||
#ifdef _DEBUG
|
||||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(EdActors_MiniStrucView)
|
||||
afx_msg void OnTimer(UINT nIDEvent);
|
||||
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
|
||||
afx_msg void OnSize(UINT nType, int cx, int cy);
|
||||
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
||||
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
||||
//}}AFX_MSG
|
||||
afx_msg BOOL OnToolTipNotify(UINT id, NMHDR * pTTTStruct, LRESULT * pResult);
|
||||
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
friend class CTL_Editor_Control;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif //_CPACVWMS_HPP_
|
||||
|
47
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACWatc.hpp
Normal file
@@ -0,0 +1,47 @@
|
||||
// To handle Watch Window messages
|
||||
//
|
||||
// Written by YB on 19 / 01 / 1998
|
||||
///////////////////////////////////////
|
||||
#ifndef _OAC_USE_OF_WATCH_WINDOW_
|
||||
#define _OAC_USE_OF_WATCH_WINDOW_
|
||||
|
||||
#include "WAW.h"
|
||||
|
||||
//###################################################################
|
||||
typedef enum OAC_eWatchFieldtype
|
||||
{
|
||||
OAC_WATCH_FIELD_TYPE__NONE = 0,
|
||||
|
||||
OAC_WATCH_FIELD_TYPE__DATA,
|
||||
OAC_WATCH_FIELD_TYPE__ACTOR,
|
||||
OAC_WATCH_FIELD_TYPE__MS,
|
||||
|
||||
} OAC_tdeWatchFieldtype;
|
||||
|
||||
//###################################################################
|
||||
typedef struct OAC_stWatchField
|
||||
{
|
||||
OAC_tdeWatchFieldtype eType;
|
||||
void *p_vData;
|
||||
WAW_Data *pclWatchData;
|
||||
|
||||
} OAC_tdstWatchField;
|
||||
|
||||
//###################################################################
|
||||
class CTL_Editor_Data;
|
||||
|
||||
|
||||
void OAC_CallBackForWatchWindow(WAW_tdeMessage, void *);
|
||||
|
||||
void OAC_AddFieldInWatchWindow(CTL_Editor_Data *_pclData);
|
||||
void OAC_RemoveFieldFromWatchWindow(CTL_Editor_Data *_pclData);
|
||||
|
||||
CString OAC_fn_csComputeTotalValueString(CTL_Editor_Data *_pclData);
|
||||
|
||||
void OAC_fn_vDeleteDataFromWatch(WAW_Data *_pclWatchData);
|
||||
void OAC_fn_vDeleteNodeFromWatch(WAW_Data *_pclWatchData);
|
||||
|
||||
void OAC_fn_vUpdateDataInWatchWindow(CTL_Editor_Data *_pclData);
|
||||
void OAC_fn_vUpdateAllDataInWatchWindow();
|
||||
|
||||
#endif _OAC_USE_OF_WATCH_WINDOW_
|
13
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EDACtors.rc2
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// EDCARAC.RC2 - resources Microsoft Visual C++ does not edit directly
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#error this file is not editable by Microsoft Visual C++
|
||||
#endif //APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Add manually edited resources here...
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
257
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EdAcIRes.h
Normal file
@@ -0,0 +1,257 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by EdActors.rc
|
||||
//
|
||||
#define IDD_CAR_D_WATCH_WINDOW 145
|
||||
#define IDD_CAR_D_VIEW_CONTROL 149
|
||||
#define IDR_MENU_CONTEXT 153
|
||||
#define IDD_CAR_D_MODEL_CREATION 154
|
||||
#define IDC_CURSOR_HELP 155
|
||||
#define IDC_CURSOR_DISABLED_HELP 156
|
||||
#define IDC_CURSOR_DRAG_2 158
|
||||
#define IDC_CURSOR_DRAG_DISABLED 159
|
||||
#define IDD_CAR_D_ACTOR_SET_NAME 160
|
||||
#define IDC_CURSOR_DRAG 160
|
||||
#define IDD_CAR_D_SETUP 162
|
||||
#define IDB_BITMAP_QUESTION 168
|
||||
#define IDI_CAR_BUTTON_LEVEL_1 173
|
||||
#define IDB_BITMAP_INFO1 178
|
||||
#define IDI_CAR_BUTTON_LEVEL_2 178
|
||||
#define IDB_BITMAP_INFO2 179
|
||||
#define IDI_CAR_BUTTON_LEVEL_3 179
|
||||
#define IDB_BITMAP_INFO3 180
|
||||
#define IDB_BITMAP_INFO4 181
|
||||
#define IDI_CAR_BUTTON_WATCH 181
|
||||
#define IDB_BITMAP_INFO5 182
|
||||
#define IDI_CAR_BUTTON_MODELS_WINDOW 182
|
||||
#define IDI_CAR_BUTTON_EXCLUSIVE_LEVEL 183
|
||||
#define IDD_CAR_DIALOG_EDIT_NAMELISTS 191
|
||||
#define IDD_CAR_D_PROGRESS 195
|
||||
#define IDD_CAR_D_UNDO_LIST 196
|
||||
#define IDB_BITMAP_HIDE_BUTTON 197
|
||||
#define IDB_BITMAP_NO_IMAGE 200
|
||||
#define IDD_CAR_D_ACTOR_CHOICE 203
|
||||
#define IDI_CAR_BUTTON_UNDO 204
|
||||
#define IDI_CAR_BUTTON_REDO 205
|
||||
#define IDB_BITMAP_MODEL 206
|
||||
#define IDI_CAR_BUTTON_UNDO_ARROW_DOWN 206
|
||||
#define IDB_BITMAP_INSTANCE 207
|
||||
#define IDD_CAR_D_MESSAGE 207
|
||||
#define IDI_CAR_BUTTON_UNDO_ARROW_UP 207
|
||||
#define IDB_BITMAP_SAVE_WARNING 208
|
||||
#define IDI_CAR_BUTTON_EDIT_FAMILY 209
|
||||
#define IDI_CAR_BUTTON_SHOW_INSTANCES 210
|
||||
#define IDI_CAR_BUTTON_EDIT_MODEL 211
|
||||
#define IDI_ICON_BOOLCHECK 212
|
||||
#define IDI_ICON_COMMON_MODE 213
|
||||
#define IDI_ICON_SHARED_MODE 214
|
||||
#define IDI_ICON_VIRGE_MODE 215
|
||||
#define IDI_CAR_BUTTON_ACTIONS 216
|
||||
#define IDI_CAR_BUTTON_COPY_MODEL 217
|
||||
#define IDI_CAR_TREE_FAMILIES 218
|
||||
#define IDI_CAR_TREE_MODELS 219
|
||||
#define IDI_CAR_TREE_INSTANCES 220
|
||||
#define IDD_CAR_D_HELP 220
|
||||
#define IDI_CAR_TREE_LOADED 221
|
||||
#define IDD_CAR_DG_MODEL_LOAD 221
|
||||
#define IDI_CAR_TREE_UNLOADED 222
|
||||
#define IDD_CAR_PB_ALLOCATION 222
|
||||
#define IDI_CAR_TREE_ALWAYS 223
|
||||
#define IDI_CAR_BUTTON_HELP 224
|
||||
#define IDI_CAR_TREE_SELECTED 225
|
||||
#define IDI_CAR_TREE_FAMILIES_UNSELECTED 226
|
||||
#define IDB_BITMAP_SETUP_TITLE 226
|
||||
#define IDI_CAR_TREE_MODELS_UNSELECTED 227
|
||||
#define IDD_CAR_D_INSTANCE_CREATION 227
|
||||
#define IDI_CAR_BUTTON_LINKS 228
|
||||
#define IDD_OAC_LOAD_AI 228
|
||||
#define IDI_CAR_WATCH_ACTOR 229
|
||||
#define IDD_CHARACTER_INFO 229
|
||||
#define IDI_CAR_WATCH_MS 230
|
||||
#define IDD_MODULE_INFO 230
|
||||
#define IDI_CAR_WATCH_FIELD 231
|
||||
#define IDI_CAR_ALWAYS_ACTIVE 232
|
||||
#define IDD_PROPAGATE_INSTANCES 233
|
||||
#define IDI_CAR_CLEAN_ALW_FILE 234
|
||||
#define IDD_CLEAN_ALW_FILE 235
|
||||
#define IDI_CAR_BUTTON_VARIABLES_WINDOW 235
|
||||
#define IDI_OAC_DLGBAR_ICON 236
|
||||
#define IDD_CAR_D_CHOOSEBITMAP 237
|
||||
#define IDI_CAR_IN_ALL_SUBMAPS 237
|
||||
#define IDI_CAR_BUTTON_GENERATE_STATELIST 238
|
||||
#define IDD_CAR_D_VIEW_MS 311
|
||||
#define IDC_LIST_VALUES 1004
|
||||
#define IDC_EDIT_FOR_NAME 1014
|
||||
#define IDC_EDIT_COPIES_NUMBER 1016
|
||||
#define IDC_SPIN 1017
|
||||
#define IDC_RADIO_LEVEL_1 1022
|
||||
#define IDC_CHECK_CURRENT 1022
|
||||
#define IDC_RADIO_LEVEL_2 1023
|
||||
#define IDC_CHECK_VAR 1023
|
||||
#define IDC_RADIO_LEVEL_3 1024
|
||||
#define IDC_CHECK_INIT 1024
|
||||
#define IDC_CHECK_WATCH 1027
|
||||
#define IDC_CHECK_IA 1029
|
||||
#define IDC_CHECK_SHOW_LINKS 1031
|
||||
#define IDC_CHECK_LEVEL_EXCLUSIVE 1033
|
||||
#define IDC_STATIC_FAMILY 1034
|
||||
#define IDC_STATIC_MODEL 1035
|
||||
#define IDC_BUTTON_EDIT_MODEL 1036
|
||||
#define IDC_BUTTON_SHOW_INSTANCES 1037
|
||||
#define IDC_BUTTON_SHOW_MODELS 1038
|
||||
#define IDC_BUTTON_ACTIONS 1039
|
||||
#define IDC_BUTTON_COPY_MODEL 1040
|
||||
#define IDC_BUTTON_HELP 1041
|
||||
#define IDC_CLEAN_ALW_FILE 1042
|
||||
#define IDC_BUTTON_GENERATE_STATELIST 1043
|
||||
#define IDC_RECT_TEXT_NAME 1058
|
||||
#define IDC_RECT_BG_NAME 1059
|
||||
#define IDC_RECT_TEXT_MODEL 1060
|
||||
#define IDC_RECT_BG_MODEL 1061
|
||||
#define IDC_LIST_FAMILIES 1061
|
||||
#define IDC_RECT_TEXT_FIELD_INST 1062
|
||||
#define IDC_CHECK_NAME_AUTO 1062
|
||||
#define IDC_LIST_BITMAPS 1062
|
||||
#define IDC_RECT_BG_FIELD_INST 1063
|
||||
#define IDC_RECT_TEXT_FIELD_MODEL 1064
|
||||
#define IDC_RECT_BG_FIELD_MODEL 1065
|
||||
#define IDC_RECT_TEXT_FIELD_INITIAL 1066
|
||||
#define IDC_RECT_BG_FIELD_INITIAL 1067
|
||||
#define IDC_RECT_TEXT_FIELD_WATCH 1068
|
||||
#define IDC_RECT_BG_FIELD_WATCH 1069
|
||||
#define IDC_RECT_TEXT_FAMILY 1070
|
||||
#define IDC_RECT_BG_FAMILY 1071
|
||||
#define IDC_RECT_TEXT_FIELD_CURRENT 1072
|
||||
#define IDC_RECT_BG_FIELD_CURRENT 1073
|
||||
#define IDC_CHECK_DISPLAY_MODEL_FIELDS 1080
|
||||
#define IDC_CHECK_WATCH_SUPPRESS_CONFIRM 1081
|
||||
#define IDC_CHECK_DISPLAY_UNALLOCATED_MS 1082
|
||||
#define IDC_CHECK_WATCH_ALWAYS_VISIBLE 1083
|
||||
#define IDC_CHECK_CONFIRM_ALLOCATION 1084
|
||||
#define IDC_CHECK_CONFIRM_UNALLOCATION 1085
|
||||
#define IDC_CHECK_SYNCHRONIZE_DIALOG_LIST 1086
|
||||
#define IDC_CHECK_ASK_FOR_NEW_INSTANCE_NAME 1087
|
||||
#define IDC_CHECK_PROPOSE_UNLOADED_MODELS 1088
|
||||
#define IDC_STATIC_QUESTION 1091
|
||||
#define IDD_CAR_D_QUESTION 1091
|
||||
#define IDD_CAR_D_INFO 1092
|
||||
#define IDD_CAR_D_ACTOR_COPY 1093
|
||||
#define IDD_CAR_DIALOG_OBJECTLIST_RENAME 1095
|
||||
#define IDC_STATIC_IMAGE 1097
|
||||
#define IDC_TREE_ACTORS 1099
|
||||
#define IDC_STATIC_TEXT 1100
|
||||
#define IDC_EDIT_BIDON 1102
|
||||
#define IDC_RADIO_HELP_ACTIVE 1106
|
||||
#define IDC_RADIO_HELP_MOUSE 1107
|
||||
#define IDC_BUTTON_UNDO 1111
|
||||
#define IDC_BUTTON_REDO 1112
|
||||
#define IDC_BUTTON_UNDO_ARROW 1113
|
||||
#define IDC_BUTTON_REDO_ARROW 1114
|
||||
#define IDC_STATIC_LINE 1115
|
||||
#define IDC_STATIC_LINE_MS 1116
|
||||
#define IDC_STATIC_OLR_RENAMELIST 1117
|
||||
#define IDC_PROGRESS 1118
|
||||
#define IDC_BUTTON_ENL_ADD 1118
|
||||
#define IDC_STATIC_MESSAGE 1119
|
||||
#define IDC_EDIT_ENL_NAME 1119
|
||||
#define IDC_EDIT_OLR_NAME 1119
|
||||
#define IDC_STATIC_ENL_ITEMLIST 1120
|
||||
#define IDC_LIST_UNDO 1121
|
||||
#define IDC_BUTTON_ENL_DELETE 1125
|
||||
#define IDC_STATIC_STATUS 1126
|
||||
#define IDC_CHECK_ASPECT 1129
|
||||
#define IDC_STATIC_ENL_GROUP 1129
|
||||
#define IDC_PICTURES 1130
|
||||
#define IDC_PICTURE_SIZE 1131
|
||||
#define IDC_BUTTON_ENL_RENAME 1131
|
||||
#define IDC_CHECK_GEN_DOOR 1132
|
||||
#define IDC_RADIO_ENL_COMMON 1135
|
||||
#define IDC_RADIO_ENL_SHARED 1136
|
||||
#define IDC_RADIO_ENL_SPECIFIC 1137
|
||||
#define IDC_RADIO_ALL_FAMILIES 1138
|
||||
#define IDC_LIST_ENL_ITEMLIST 1138
|
||||
#define IDC_RADIO_UNLOADED_FAMILIES 1139
|
||||
#define IDC_BUTTON_ENL_CURRENTMODE 1139
|
||||
#define IDC_RADIO_LOADED_FAMILIES 1140
|
||||
#define IDC_STATIC_INSTANCE 1150
|
||||
#define IDC_LIST_INSTANCES_OF_MODEL 1151
|
||||
#define IDC_EDIT_START_WITH 1153
|
||||
#define IDC_EDIT_CONTAINING 1154
|
||||
#define IDC_DEFAULTBUTTON 1159
|
||||
#define IDC_IMAGE_MODE 1162
|
||||
#define IDC_STATIC_TEXT_OF_MESSAGE 1163
|
||||
#define IDC_STATIC_FIELD_NAME 1169
|
||||
#define IDC_STATIC_HELP_TEXT 1170
|
||||
#define IDC_RADIO_LOAD_ALL_MODELS 1171
|
||||
#define IDC_RADIO_LOAD_SELECT_MODELS 1172
|
||||
#define IDC_TREE_MODELS 1173
|
||||
#define IDC_RADIO_ALLOCATE 1174
|
||||
#define IDC_RADIO_UNALLOCATE 1175
|
||||
#define IDC_CHECK_RESTORE_GROUP 1175
|
||||
#define IDC_RADIO_DO_NOTHING 1176
|
||||
#define IDC_TREE_SUB_SETUP 1177
|
||||
#define IDC_IMAGE_TITLE 1178
|
||||
#define IDC_EDIT_NAME 1179
|
||||
#define IDC_STATIC_BG 1180
|
||||
#define IDC_STATIC_IN 1181
|
||||
#define IDC_STATIC_NF 1182
|
||||
#define IDC_STATIC_NM 1183
|
||||
#define IDC_STATIC_NFIELD 1184
|
||||
#define IDC_STATIC_WATCH_FIELDS 1185
|
||||
#define IDC_OAC_LOAD_AI 1186
|
||||
#define IDC_OAC_SHOW_MODELS 1187
|
||||
#define IDC_LIST__MODULES 1188
|
||||
#define IDC_X_SIZE 1189
|
||||
#define IDC_Y_SIZE 1190
|
||||
#define IDC_Z_SIZE 1191
|
||||
#define IDC_FAMILY 1192
|
||||
#define IDC_MODEL 1193
|
||||
#define IDC_INSTANCE 1194
|
||||
#define IDC_MODULES_NB 1195
|
||||
#define IDC_FACES_NUMBER 1196
|
||||
#define IDC_SIZE_X 1197
|
||||
#define IDC_SIZE_Y 1198
|
||||
#define IDC_SIZE_Z 1199
|
||||
#define IDC_MODULE_NAME 1200
|
||||
#define IDC_CHECK_ALWAYS_ACTIVE 1203
|
||||
#define IDC_LIST_INSTANCES 1204
|
||||
#define IDC_CHECK_ALL 1205
|
||||
#define IDC_CHECK_IN_ALL_SUBMAPS 1205
|
||||
#define IDC_CHECK_STANDARD 1206
|
||||
#define IDC_LOADED_ALWAYS 1207
|
||||
#define IDC_ALWAYS_TO_BE_REMOVED 1208
|
||||
#define IDC_RIGHT_ALL 1209
|
||||
#define IDC_RIGHT 1210
|
||||
#define IDC_LEFT 1211
|
||||
#define IDC_STATIC_LEFT 1212
|
||||
#define IDC_STATIC_RIGHT 1214
|
||||
#define IDC_STATIC_INST 1217
|
||||
#define IDC_STATIC_INITIAL 1218
|
||||
#define IDC_STATIC_CURRENT 1219
|
||||
#define IDC_BITMAP_LIST 1220
|
||||
#define IDC_SHOW_BITMAP 1221
|
||||
#define ID_COPy_MODEL 32775
|
||||
#define ID_RENAME_MODEL 32779
|
||||
#define ID_REMOVE_MODEL 32780
|
||||
#define ID_WATCH_LIST 32783
|
||||
#define ID_WATCH_TREE 32784
|
||||
#define ID_RENAME_INSTANCE 32794
|
||||
#define ID_SET_INSTANCE_POSITION_AS_INITIAL 32795
|
||||
#define ID_ALWAYS 32796
|
||||
#define ID_GENDOOR 32797
|
||||
#define ID_COMMON 32798
|
||||
#define ID_INTO_FIX 32799
|
||||
#define ID_ALWAYS_ACTIVE 32800
|
||||
#define ID_IN_ALL_SUBMAPS 32801
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_3D_CONTROLS 1
|
||||
#define _APS_NEXT_RESOURCE_VALUE 238
|
||||
#define _APS_NEXT_COMMAND_VALUE 32801
|
||||
#define _APS_NEXT_CONTROL_VALUE 1222
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
BIN
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EdActors.aps
Normal file
481
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EdActors.clw
Normal file
@@ -0,0 +1,481 @@
|
||||
; CLW file contains information for the MFC ClassWizard
|
||||
|
||||
[General Info]
|
||||
Version=1
|
||||
LastClass=EdActors_InformationDialog
|
||||
LastTemplate=CDialog
|
||||
NewFileInclude1=#include "stdafx.h"
|
||||
NewFileInclude2=#include "edactors.h"
|
||||
LastPage=0
|
||||
|
||||
ClassCount=23
|
||||
Class1=CPA_Editor_MiniStructureButton
|
||||
Class2=EdActors_Dialog_ActorChoice
|
||||
Class3=EdActors_CopyDialog
|
||||
Class4=EdActors_Dialog_InconsistentAllocations
|
||||
Class5=EdActors_InformationDialog
|
||||
Class6=EdActors_ModelCreationDialog
|
||||
Class7=EdActors_Dialog_Message
|
||||
Class8=EdActors_Dialog_LoadModels
|
||||
Class9=EdActors_ActorNameChangeDialog
|
||||
Class10=EdActors_EditNameListsDialog
|
||||
Class11=EdActors_EditObjectListsDialog
|
||||
Class12=EdActors_ProgressInfoDialog
|
||||
Class13=EdActors_QuestionDialog
|
||||
Class14=EdActors_EditorSetupDialog
|
||||
Class15=EdActors_UndoListBox
|
||||
Class16=EdActors_UndoRedoListDialog
|
||||
Class17=EdActors_WatchDialog
|
||||
Class18=CMainFrame
|
||||
Class19=EdActors_MSGroupButton
|
||||
Class20=EdActors_SpecialToolTip
|
||||
Class21=EdActors_ActorsView
|
||||
Class22=EdActors_MiniStrucView
|
||||
|
||||
ResourceCount=20
|
||||
Resource1=IDD_CAR_DG_MODEL_LOAD
|
||||
Resource2=IDD_CAR_PB_ALLOCATION
|
||||
Resource3=IDR_MENU_CONTEXT
|
||||
Resource4=IDD_CAR_D_HELP
|
||||
Resource5=IDD_CAR_D_VIEW_CONTROL
|
||||
Resource6=IDD_CAR_D_MODEL_CREATION
|
||||
Resource7=IDD_CAR_D_ACTOR_SET_NAME
|
||||
Resource8=IDD_CAR_D_QUESTION
|
||||
Resource9=IDD_CAR_D_INSTANCE_CREATION
|
||||
Resource10=IDD_CAR_D_VIEW_MS
|
||||
Resource11=IDD_CAR_D_INFO
|
||||
Resource12=IDD_CAR_D_ACTOR_COPY
|
||||
Resource13=IDD_CAR_D_PROGRESS
|
||||
Resource14=IDD_CAR_D_WATCH_WINDOW
|
||||
Resource15=IDD_CAR_D_ACTOR_CHOICE
|
||||
Resource16=IDD_CAR_DIALOG_EDIT_NAMELISTS
|
||||
Resource17=IDD_CAR_DIALOG_OBJECTLIST_RENAME
|
||||
Resource18=IDD_CAR_D_MESSAGE
|
||||
Resource19=IDD_CAR_D_UNDO_LIST
|
||||
Class23=EdActors_InstanceCreationDialog
|
||||
Resource20=IDD_CAR_D_SETUP
|
||||
|
||||
[CLS:CPA_Editor_MiniStructureButton]
|
||||
Type=0
|
||||
BaseClass=CButton
|
||||
HeaderFile=EDACBuM.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACBuM.cpp
|
||||
|
||||
[CLS:EdActors_Dialog_ActorChoice]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgAc.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgAc.cpp
|
||||
|
||||
[CLS:EdActors_CopyDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgCp.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgCp.cpp
|
||||
|
||||
[CLS:EdActors_Dialog_InconsistentAllocations]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgIA.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgIA.cpp
|
||||
|
||||
[CLS:EdActors_InformationDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgIf.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgIf.cpp
|
||||
Filter=D
|
||||
VirtualFilter=dWC
|
||||
LastObject=EdActors_InformationDialog
|
||||
|
||||
[CLS:EdActors_ModelCreationDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgMC.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgMC.cpp
|
||||
Filter=D
|
||||
VirtualFilter=dWC
|
||||
LastObject=EdActors_ModelCreationDialog
|
||||
|
||||
[CLS:EdActors_Dialog_Message]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgMg.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgMg.cpp
|
||||
|
||||
[CLS:EdActors_Dialog_LoadModels]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgML.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgML.cpp
|
||||
|
||||
[CLS:EdActors_ActorNameChangeDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgMN.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgMN.cpp
|
||||
Filter=D
|
||||
VirtualFilter=dWC
|
||||
LastObject=EdActors_ActorNameChangeDialog
|
||||
|
||||
[CLS:EdActors_EditNameListsDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgNL.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgNL.cpp
|
||||
|
||||
[CLS:EdActors_EditObjectListsDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgOL.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgOL.cpp
|
||||
|
||||
[CLS:EdActors_ProgressInfoDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgPI.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgPI.cpp
|
||||
|
||||
[CLS:EdActors_QuestionDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgQu.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgQu.cpp
|
||||
|
||||
[CLS:EdActors_EditorSetupDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgSp.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgSp.cpp
|
||||
Filter=D
|
||||
VirtualFilter=dWC
|
||||
|
||||
[CLS:EdActors_UndoListBox]
|
||||
Type=0
|
||||
BaseClass=CListBox
|
||||
HeaderFile=EDACDgUL.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgUL.cpp
|
||||
|
||||
[CLS:EdActors_UndoRedoListDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgUL.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgUL.cpp
|
||||
|
||||
[CLS:EdActors_WatchDialog]
|
||||
Type=0
|
||||
BaseClass=CDialog
|
||||
HeaderFile=EDACDgWa.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACDgWa.cpp
|
||||
|
||||
[CLS:CMainFrame]
|
||||
Type=0
|
||||
BaseClass=CSplitFrame
|
||||
HeaderFile=EDACFmMn.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACFmMn.cpp
|
||||
LastObject=CMainFrame
|
||||
|
||||
[CLS:EdActors_MSGroupButton]
|
||||
Type=0
|
||||
BaseClass=CButton
|
||||
HeaderFile=EDACGrBt.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACGrBt.cpp
|
||||
|
||||
[CLS:EdActors_SpecialToolTip]
|
||||
Type=0
|
||||
BaseClass=CWnd
|
||||
HeaderFile=EDACTTip.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACTTip.cpp
|
||||
|
||||
[CLS:EdActors_ActorsView]
|
||||
Type=0
|
||||
BaseClass=CFormView
|
||||
HeaderFile=EDACVwAc.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACVwAc.cpp
|
||||
|
||||
[CLS:EdActors_MiniStrucView]
|
||||
Type=0
|
||||
BaseClass=CTL_Editor_BaseFormView
|
||||
HeaderFile=EDACVwMS.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\Src\EdActors\EDACVwMS.cpp
|
||||
Filter=D
|
||||
VirtualFilter=VWC
|
||||
LastObject=EdActors_MiniStrucView
|
||||
|
||||
[DLG:IDD_CAR_D_ACTOR_CHOICE]
|
||||
Type=1
|
||||
Class=EdActors_Dialog_ActorChoice
|
||||
ControlCount=3
|
||||
Control1=IDOK,button,1342242817
|
||||
Control2=IDCANCEL,button,1342242816
|
||||
Control3=IDC_LIST_INSTANCES_OF_MODEL,listbox,1352728833
|
||||
|
||||
[DLG:IDD_CAR_D_ACTOR_COPY]
|
||||
Type=1
|
||||
Class=EdActors_CopyDialog
|
||||
ControlCount=10
|
||||
Control1=IDOK,button,1342242817
|
||||
Control2=IDCANCEL,button,1342242816
|
||||
Control3=IDC_STATIC,static,1342308352
|
||||
Control4=IDC_EDIT_FOR_NAME,edit,1350631552
|
||||
Control5=IDC_STATIC,static,1342308352
|
||||
Control6=IDC_EDIT_COPIES_NUMBER,edit,1350631552
|
||||
Control7=IDC_SPIN,msctls_updown32,1342177330
|
||||
Control8=IDC_CHECK_NAME_AUTO,button,1342242851
|
||||
Control9=IDC_STATIC,button,1342177287
|
||||
Control10=IDC_IMAGE_MODE,static,1342177294
|
||||
|
||||
[DLG:IDD_CAR_PB_ALLOCATION]
|
||||
Type=1
|
||||
Class=EdActors_Dialog_InconsistentAllocations
|
||||
ControlCount=7
|
||||
Control1=IDOK,button,1342242817
|
||||
Control2=IDC_STATIC_TEXT,static,1342312449
|
||||
Control3=IDC_RADIO_ALLOCATE,button,1342308361
|
||||
Control4=IDC_RADIO_UNALLOCATE,button,1476395017
|
||||
Control5=IDC_RADIO_DO_NOTHING,button,1342177289
|
||||
Control6=IDC_STATIC,button,1342177287
|
||||
Control7=IDC_STATIC,static,1342177294
|
||||
|
||||
[DLG:IDD_CAR_D_INFO]
|
||||
Type=1
|
||||
Class=EdActors_InformationDialog
|
||||
ControlCount=3
|
||||
Control1=IDOK,button,1342242817
|
||||
Control2=IDC_STATIC_TEXT,static,1342312449
|
||||
Control3=IDC_STATIC_IMAGE,static,1342177294
|
||||
|
||||
[DLG:IDD_CAR_D_MODEL_CREATION]
|
||||
Type=1
|
||||
Class=EdActors_ModelCreationDialog
|
||||
ControlCount=21
|
||||
Control1=IDC_EDIT_FOR_NAME,edit,1350631552
|
||||
Control2=IDC_LIST_FAMILIES,listbox,1352728913
|
||||
Control3=IDC_LIST_BITMAPS,listbox,1352728833
|
||||
Control4=IDOK,button,1342242817
|
||||
Control5=IDCANCEL,button,1342242816
|
||||
Control6=IDC_RADIO_ALL_FAMILIES,button,1342312457
|
||||
Control7=IDC_RADIO_LOADED_FAMILIES,button,1342181385
|
||||
Control8=IDC_RADIO_UNLOADED_FAMILIES,button,1342181385
|
||||
Control9=IDC_CHECK_ASPECT,button,1342377987
|
||||
Control10=IDC_STATIC,static,1342312448
|
||||
Control11=IDC_STATIC,static,1342312448
|
||||
Control12=IDC_STATIC,static,1342312448
|
||||
Control13=IDC_PICTURES,static,1342177806
|
||||
Control14=IDC_PICTURE_SIZE,static,1342312449
|
||||
Control15=IDC_CHECK_GEN_DOOR,button,1476595715
|
||||
Control16=IDC_STATIC,button,1342177287
|
||||
Control17=IDC_STATIC,button,1342177287
|
||||
Control18=IDC_STATIC,static,1342308352
|
||||
Control19=IDC_EDIT_START_WITH,edit,1350631552
|
||||
Control20=IDC_STATIC,static,1342308352
|
||||
Control21=IDC_EDIT_CONTAINING,edit,1350631552
|
||||
|
||||
[DLG:IDD_CAR_D_MESSAGE]
|
||||
Type=1
|
||||
Class=EdActors_Dialog_Message
|
||||
ControlCount=1
|
||||
Control1=IDC_STATIC_TEXT_OF_MESSAGE,static,1342312449
|
||||
|
||||
[DLG:IDD_CAR_DG_MODEL_LOAD]
|
||||
Type=1
|
||||
Class=EdActors_Dialog_LoadModels
|
||||
ControlCount=6
|
||||
Control1=IDC_RADIO_LOAD_SELECT_MODELS,button,1342177289
|
||||
Control2=IDC_RADIO_LOAD_ALL_MODELS,button,1342177289
|
||||
Control3=IDOK,button,1342242817
|
||||
Control4=IDCANCEL,button,1342242816
|
||||
Control5=IDC_STATIC,button,1342177287
|
||||
Control6=IDC_TREE_MODELS,SysTreeView32,1342242871
|
||||
|
||||
[DLG:IDD_CAR_D_ACTOR_SET_NAME]
|
||||
Type=1
|
||||
Class=EdActors_ActorNameChangeDialog
|
||||
ControlCount=4
|
||||
Control1=IDC_EDIT_FOR_NAME,edit,1350631552
|
||||
Control2=IDOK,button,1342242817
|
||||
Control3=IDCANCEL,button,1342242816
|
||||
Control4=65535,static,1342308352
|
||||
|
||||
[DLG:IDD_CAR_DIALOG_EDIT_NAMELISTS]
|
||||
Type=1
|
||||
Class=EdActors_EditNameListsDialog
|
||||
ControlCount=14
|
||||
Control1=IDOK,button,1342242816
|
||||
Control2=IDC_BUTTON_ENL_ADD,button,1476460544
|
||||
Control3=IDC_EDIT_ENL_NAME,edit,1350631552
|
||||
Control4=IDC_STATIC_ENL_GROUP,button,1342177287
|
||||
Control5=IDC_BUTTON_ENL_RENAME,button,1476460544
|
||||
Control6=IDC_BUTTON_ENL_DELETE,button,1476460544
|
||||
Control7=IDCANCEL,button,1342242816
|
||||
Control8=IDC_RADIO_ENL_COMMON,button,1342373897
|
||||
Control9=IDC_RADIO_ENL_SHARED,button,1342242825
|
||||
Control10=IDC_RADIO_ENL_SPECIFIC,button,1342242825
|
||||
Control11=IDC_LIST_ENL_ITEMLIST,listbox,1352728913
|
||||
Control12=IDC_STATIC_ENL_ITEMLIST,static,1342177281
|
||||
Control13=IDC_BUTTON_ENL_CURRENTMODE,button,1342242816
|
||||
Control14=IDC_DEFAULTBUTTON,button,1073741825
|
||||
|
||||
[DLG:IDD_CAR_DIALOG_OBJECTLIST_CHOICE]
|
||||
Type=1
|
||||
Class=EdActors_EditObjectListsDialog
|
||||
|
||||
[DLG:IDD_CAR_D_PROGRESS]
|
||||
Type=1
|
||||
Class=EdActors_ProgressInfoDialog
|
||||
ControlCount=2
|
||||
Control1=IDC_STATIC_MESSAGE,static,1342308353
|
||||
Control2=IDC_PROGRESS,msctls_progress32,1350565888
|
||||
|
||||
[DLG:IDD_CAR_D_QUESTION]
|
||||
Type=1
|
||||
Class=EdActors_QuestionDialog
|
||||
ControlCount=4
|
||||
Control1=IDYES,button,1342242817
|
||||
Control2=IDNO,button,1342242816
|
||||
Control3=IDC_STATIC_QUESTION,static,1342312449
|
||||
Control4=IDC_EDIT_BIDON,edit,1350631552
|
||||
|
||||
[DLG:IDD_CAR_D_SETUP]
|
||||
Type=1
|
||||
Class=EdActors_EditorSetupDialog
|
||||
ControlCount=37
|
||||
Control1=IDC_CHECK_CONFIRM_ALLOCATION,button,1073811459
|
||||
Control2=IDC_CHECK_CONFIRM_UNALLOCATION,button,1073827843
|
||||
Control3=IDC_CHECK_DISPLAY_MODEL_FIELDS,button,1073827843
|
||||
Control4=IDC_CHECK_DISPLAY_UNALLOCATED_MS,button,1073827843
|
||||
Control5=IDC_CHECK_WATCH_SUPPRESS_CONFIRM,button,1073827843
|
||||
Control6=IDC_RADIO_HELP_ACTIVE,button,1073872905
|
||||
Control7=IDC_RADIO_HELP_MOUSE,button,1073741833
|
||||
Control8=IDOK,button,1342242817
|
||||
Control9=IDCANCEL,button,1342242816
|
||||
Control10=IDC_STATIC_TEXT,static,1073872896
|
||||
Control11=IDC_STATIC_BG,static,1073872896
|
||||
Control12=IDC_RECT_TEXT_NAME,static,1073872914
|
||||
Control13=IDC_RECT_BG_NAME,static,1073741842
|
||||
Control14=IDC_RECT_TEXT_FAMILY,static,1073741842
|
||||
Control15=IDC_RECT_BG_FAMILY,static,1073741842
|
||||
Control16=IDC_RECT_TEXT_MODEL,static,1073741842
|
||||
Control17=IDC_RECT_BG_MODEL,static,1073741842
|
||||
Control18=IDC_RECT_TEXT_FIELD_INST,static,1073741842
|
||||
Control19=IDC_RECT_BG_FIELD_INST,static,1073741842
|
||||
Control20=IDC_RECT_TEXT_FIELD_MODEL,static,1073741842
|
||||
Control21=IDC_RECT_BG_FIELD_MODEL,static,1073741842
|
||||
Control22=IDC_STATIC_IN,static,1073872898
|
||||
Control23=IDC_STATIC,static,1073872898
|
||||
Control24=IDC_STATIC_NM,static,1073872898
|
||||
Control25=IDC_STATIC_NFIELD,static,1073872898
|
||||
Control26=IDC_STATIC_WATCH_FIELDS,static,1073872898
|
||||
Control27=IDC_RECT_TEXT_FIELD_WATCH,static,1073741842
|
||||
Control28=IDC_RECT_BG_FIELD_WATCH,static,1073741842
|
||||
Control29=IDC_STATIC_NF,static,1073872898
|
||||
Control30=IDC_CHECK_SYNCHRONIZE_DIALOG_LIST,button,1073827843
|
||||
Control31=IDC_CHECK_WATCH_ALWAYS_VISIBLE,button,1073827843
|
||||
Control32=IDC_CHECK_PROPOSE_UNLOADED_MODELS,button,1073827843
|
||||
Control33=IDC_CHECK_RESTORE_GROUP,button,1073827843
|
||||
Control34=IDC_TREE_SUB_SETUP,SysTreeView32,1342242871
|
||||
Control35=IDC_STATIC,static,1342177284
|
||||
Control36=IDC_IMAGE_TITLE,static,1342179342
|
||||
Control37=IDC_CHECK_ASK_FOR_NEW_INSTANCE_NAME,button,1073827843
|
||||
|
||||
[DLG:IDD_CAR_D_UNDO_LIST]
|
||||
Type=1
|
||||
Class=EdActors_UndoRedoListDialog
|
||||
ControlCount=2
|
||||
Control1=IDC_LIST_UNDO,listbox,1342243081
|
||||
Control2=IDC_STATIC_STATUS,static,1342312449
|
||||
|
||||
[DLG:IDD_CAR_D_WATCH_WINDOW]
|
||||
Type=1
|
||||
Class=EdActors_WatchDialog
|
||||
ControlCount=2
|
||||
Control1=IDC_LIST_VALUES,SysListView32,1350631553
|
||||
Control2=IDC_TREE_ACTORS,SysTreeView32,1350631479
|
||||
|
||||
[DLG:IDD_CAR_D_VIEW_CONTROL]
|
||||
Type=1
|
||||
Class=EdActors_ActorsView
|
||||
ControlCount=23
|
||||
Control1=IDC_CHECK_WATCH,button,1342246979
|
||||
Control2=IDC_CHECK_IA,button,1342246979
|
||||
Control3=IDC_RADIO_LEVEL_1,button,1342312521
|
||||
Control4=IDC_RADIO_LEVEL_2,button,1342181449
|
||||
Control5=IDC_RADIO_LEVEL_3,button,1342181449
|
||||
Control6=IDC_CHECK_LEVEL_EXCLUSIVE,button,1342246979
|
||||
Control7=IDC_STATIC_LINE,static,1342181383
|
||||
Control8=IDC_STATIC_FAMILY,static,1342308354
|
||||
Control9=IDC_STATIC_MODEL,static,1342308354
|
||||
Control10=IDC_STATIC_INSTANCE,static,1342308354
|
||||
Control11=IDC_BUTTON_UNDO,button,1342242880
|
||||
Control12=IDC_BUTTON_UNDO_ARROW,button,1342242880
|
||||
Control13=IDC_BUTTON_REDO,button,1342242880
|
||||
Control14=IDC_BUTTON_REDO_ARROW,button,1342242880
|
||||
Control15=IDC_BUTTON_EDIT_MODEL,button,1342242880
|
||||
Control16=IDC_BUTTON_SHOW_INSTANCES,button,1342242816
|
||||
Control17=IDC_BUTTON_SHOW_MODELS,button,1342242816
|
||||
Control18=IDC_STATIC_LINE_MS,static,1342181380
|
||||
Control19=IDC_STATIC,static,1342181383
|
||||
Control20=IDC_BUTTON_ACTIONS,button,1342242880
|
||||
Control21=IDC_BUTTON_COPY_MODEL,button,1342242880
|
||||
Control22=IDC_BUTTON_HELP,button,1342242880
|
||||
Control23=IDC_CHECK_SHOW_LINKS,button,1476464707
|
||||
|
||||
[DLG:IDD_CAR_D_VIEW_MS]
|
||||
Type=1
|
||||
Class=EdActors_MiniStrucView
|
||||
ControlCount=0
|
||||
|
||||
[MNU:IDR_MENU_CONTEXT]
|
||||
Type=1
|
||||
Class=?
|
||||
Command1=ID_RENAME_MODEL
|
||||
Command2=ID_REMOVE_MODEL
|
||||
Command3=ID_COPy_MODEL
|
||||
Command4=ID_WATCH_LIST
|
||||
Command5=ID_WATCH_TREE
|
||||
Command6=ID_RENAME_INSTANCE
|
||||
Command7=ID_SET_INSTANCE_POSITION_AS_INITIAL
|
||||
Command8=ID_ALWAYS
|
||||
Command9=ID_GENDOOR
|
||||
Command10=ID_COMMON
|
||||
Command11=ID_INTO_FIX
|
||||
Command12=ID_ALWAYS_ACTIVE
|
||||
CommandCount=12
|
||||
|
||||
[DLG:IDD_CAR_DIALOG_OBJECTLIST_RENAME]
|
||||
Type=1
|
||||
Class=?
|
||||
ControlCount=4
|
||||
Control1=IDOK,button,1342242817
|
||||
Control2=IDC_STATIC_OLR_RENAMELIST,static,1342308353
|
||||
Control3=IDC_EDIT_OLR_NAME,edit,1350631552
|
||||
Control4=IDCANCEL,button,1342242816
|
||||
|
||||
[DLG:IDD_CAR_D_HELP]
|
||||
Type=1
|
||||
Class=?
|
||||
ControlCount=4
|
||||
Control1=IDCANCEL,button,1342242816
|
||||
Control2=IDC_STATIC_HELP_TEXT,static,1342312448
|
||||
Control3=IDC_STATIC,static,1342308352
|
||||
Control4=IDC_STATIC_FIELD_NAME,static,1342308353
|
||||
|
||||
[DLG:IDD_CAR_D_INSTANCE_CREATION]
|
||||
Type=1
|
||||
Class=EdActors_InstanceCreationDialog
|
||||
ControlCount=5
|
||||
Control1=IDC_EDIT_NAME,edit,1350631552
|
||||
Control2=IDOK,button,1342242817
|
||||
Control3=IDCANCEL,button,1342242816
|
||||
Control4=IDC_STATIC_TEXT,static,1342308352
|
||||
Control5=IDC_STATIC,static,1342308352
|
||||
|
||||
[CLS:EdActors_InstanceCreationDialog]
|
||||
Type=0
|
||||
HeaderFile=EDACDgIC.hpp
|
||||
ImplementationFile=\Cpa\TempGrp\OAC\src\edactors\EDACDgIC.cpp
|
||||
BaseClass=CDialog
|
||||
Filter=D
|
||||
LastObject=EdActors_InstanceCreationDialog
|
||||
VirtualFilter=dWC
|
||||
|
1010
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EdActors.rc
Normal file
81
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/EdAllAct.hpp
Normal file
@@ -0,0 +1,81 @@
|
||||
// Use only in Actors Editor
|
||||
//////////////////////////////
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
|
||||
#ifdef _ED_CAR_MUST_UNDEF_HEADERS_
|
||||
#undef __ALLACTS_H__
|
||||
#undef __StdGame_H__
|
||||
#undef __SectInfo_H__
|
||||
#undef __MSWay_H__
|
||||
#undef __MSLIGHT_H__
|
||||
#undef __Dynam_H__
|
||||
#undef __CollSet_H__
|
||||
#undef __CINEINFO_H__
|
||||
#undef __Brain_H__
|
||||
#undef __3dData_H__
|
||||
#undef __AimData_H__
|
||||
#undef __MS_Micro_H__
|
||||
#undef __World_H__
|
||||
#undef __MSSTREAM_H__
|
||||
// CHINA QZY (MT) 26/02/98 {
|
||||
#undef __MSMagnet_H__
|
||||
// ENDCHINA QZY }
|
||||
#undef __MSPrtSrc_H__
|
||||
#undef __MSSound_H__
|
||||
//ANNECY BBB 17/10/97 {
|
||||
#undef __AnimEffect_H__
|
||||
//ENDANNECY BBB 17/10/97 }
|
||||
#endif
|
||||
|
||||
#ifdef _ED_CAR_MUST_DEFINE_STRUCT_
|
||||
#define D_StdGame_StructureDefine
|
||||
#define D_SectInfo_StructureDefine
|
||||
#define D_MSWay_StructureDefine
|
||||
#define D_MSLight_StructureDefine
|
||||
#define D_Dynam_StructureDefine
|
||||
#define D_CollSet_StructureDefine
|
||||
#define D_CineInfo_StructureDefine
|
||||
#define D_Brain_StructureDefine
|
||||
#define D_3dData_StructureDefine
|
||||
#define D_AimData_StructureDefine
|
||||
#define D_Micro_StructureDefine
|
||||
#define D_World_StructureDefine
|
||||
#define D_MSStream_StructureDefine
|
||||
// CHINA QZY (MT) 26/02/98 {
|
||||
#define D_MSMagnet_StructureDefine
|
||||
// ENDCHINA QZY }
|
||||
#define D_MSPrtSrc_StructureDefine
|
||||
#define D_MSSound_StructureDefine
|
||||
//ANNECY BBB 17/10/97 {
|
||||
#define D_AnimEffect_StructureDefine
|
||||
//ENDANNECY BBB 17/10/97 }
|
||||
#endif
|
||||
|
||||
#ifdef _ED_CAR_MUST_UNDEF_STRUCT_
|
||||
#undef D_StdGame_StructureDefine
|
||||
#undef D_SectInfo_StructureDefine
|
||||
#undef D_MSWay_StructureDefine
|
||||
#undef D_MSLight_StructureDefine
|
||||
#undef D_Dynam_StructureDefine
|
||||
#undef D_CollSet_StructureDefine
|
||||
#undef D_CineInfo_StructureDefine
|
||||
#undef D_Brain_StructureDefine
|
||||
#undef D_3dData_StructureDefine
|
||||
#undef D_AimData_StructureDefine
|
||||
#undef D_Micro_StructureDefine
|
||||
#undef D_World_StructureDefine
|
||||
#undef D_MSStream_StructureDefine
|
||||
// CHINA QZY (MT) 26/02/98 {
|
||||
#undef D_MSMagnet_StructureDefine
|
||||
// ENDCHINA QZY }
|
||||
#undef D_MSPrtSrc_StructureDefine
|
||||
#undef D_MSSound_StructureDefine
|
||||
//ANNECY BBB 17/10/97 {
|
||||
#undef D_AnimEffect_StructureDefine
|
||||
//ENDANNECY BBB 17/10/97 }
|
||||
#endif
|
||||
|
63
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/dlgcleanalwfile.h
Normal file
@@ -0,0 +1,63 @@
|
||||
#if !defined(AFX_DLGCLEANALWFILE_H__8DE5049D_10B9_11D2_B421_00A0244F34C3__INCLUDED_)
|
||||
#define AFX_DLGCLEANALWFILE_H__8DE5049D_10B9_11D2_B421_00A0244F34C3__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// dlgcleanalwfile.h : header file
|
||||
//
|
||||
|
||||
#define LEFT 0
|
||||
#define RIGHT 1
|
||||
#define COLUMNS 2
|
||||
|
||||
#define TASK_CLEAN_ALW_FILE 0
|
||||
#define TASK_UPDATE_ALW_FILE 1
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDlgCleanAlwFile dialog
|
||||
|
||||
class CDlgCleanAlwFile : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CDlgCleanAlwFile(CStringList &rlstOfAlways, int nCurrentTask = TASK_CLEAN_ALW_FILE, CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CDlgCleanAlwFile)
|
||||
enum { IDD = IDD_CLEAN_ALW_FILE };
|
||||
CListBox m_lstAlways;
|
||||
CListBox m_lstAlwaysToBeRemoved;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CDlgCleanAlwFile)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
CStringList &m_rlstOfAlways;
|
||||
int m_nCurrentTask;
|
||||
const static CString m_aColumnHeaders [][COLUMNS];
|
||||
const static CString m_aDlgTitle [];
|
||||
const static CString m_aOKText [];
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CDlgCleanAlwFile)
|
||||
afx_msg void OnLeft();
|
||||
afx_msg void OnRight();
|
||||
afx_msg void OnRightAll();
|
||||
virtual void OnOK();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnDblclkLoadedAlways();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_DLGCLEANALWFILE_H__8DE5049D_10B9_11D2_B421_00A0244F34C3__INCLUDED_)
|
46
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/dlgldai.hpp
Normal file
@@ -0,0 +1,46 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
// File : dlgladai.hpp
|
||||
// Author : Cristi Petrescu
|
||||
// Date : 98.03
|
||||
// Description : header for simple dialog class to display two labeled buttonds in the
|
||||
// center of the main view
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// DlgLoadAI dialog
|
||||
|
||||
class DlgLoadAI : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
DlgLoadAI(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(DlgLoadAI)
|
||||
enum { IDD = IDD_OAC_LOAD_AI };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(DlgLoadAI)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(DlgLoadAI)
|
||||
afx_msg void OnOacLoadAi();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnOacShowModels();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
91
Rayman_X/cpa/tempgrp/OAC/Inc/EdActors/dlgselectinstances.h
Normal file
@@ -0,0 +1,91 @@
|
||||
#if !defined(AFX_DLGSELECTINSTANCES_H__5967B56D_0C08_11D2_B41C_00A0244F34C3__INCLUDED_)
|
||||
#define AFX_DLGSELECTINSTANCES_H__5967B56D_0C08_11D2_B41C_00A0244F34C3__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// dlgselectinstances.h : header file
|
||||
//
|
||||
|
||||
#define REGULAR_INSTANCE 1
|
||||
#define STANDARD_INSTANCE 2
|
||||
#define TEXT_LENGTH 256
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDlgSelectInstances dialog
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Class : CSimpleCheckListBox
|
||||
// Date : 98/06/25
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Description :
|
||||
// Author : Stegaru Cristian - CPA
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Modification :
|
||||
// Date :
|
||||
// By :
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
class CSimpleCheckListBox : public CCheckListBox
|
||||
{
|
||||
DECLARE_DYNAMIC (CSimpleCheckListBox)
|
||||
public:
|
||||
CSimpleCheckListBox ();
|
||||
virtual void DrawItem (LPDRAWITEMSTRUCT pDrawItemStruct);
|
||||
};
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Class : CDlgSelectInstances
|
||||
// Date : 98/06/25
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Description :
|
||||
// Author : Stegaru Cristian - CPA
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Modification :
|
||||
// Date :
|
||||
// By :
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
class CDlgSelectInstances : public CDialog
|
||||
{
|
||||
private:
|
||||
CStringList &m_rlstAllInstances;
|
||||
CStringList &m_rlstStandardInstances;
|
||||
|
||||
BOOL m_bAllInstances;
|
||||
|
||||
mfn_bIsAStandardInstance (CString csInstanceName);
|
||||
// Construction
|
||||
public:
|
||||
CDlgSelectInstances(CStringList &rlstAllInstances, CStringList &rlstStandardInstances, CWnd* pParent = NULL); // standard constructor
|
||||
BOOL mfn_bProcessAllInstances () { return m_bAllInstances;}
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CDlgSelectInstances)
|
||||
enum { IDD = IDD_PROPAGATE_INSTANCES };
|
||||
CSimpleCheckListBox m_lstInstances;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CDlgSelectInstances)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CDlgSelectInstances)
|
||||
afx_msg void OnCheckAll();
|
||||
afx_msg void OnCheckStandard();
|
||||
virtual void OnOK();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnSelchangeListInstances();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_DLGSELECTINSTANCES_H__5967B56D_0C08_11D2_B41C_00A0244F34C3__INCLUDED_)
|
22
Rayman_X/cpa/tempgrp/OAC/Inc/StdAfx.h
Normal file
@@ -0,0 +1,22 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently, but
|
||||
// are changed infrequently
|
||||
//
|
||||
#ifndef __STDAAFX_H__
|
||||
#define __STDAAFX_H__
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||||
|
||||
#include <afxwin.h> // MFC core and standard components
|
||||
#include <afxext.h> // MFC extensions
|
||||
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
||||
#include <afxcmn.h> // MFC support for Windows 95 Common Controls
|
||||
#endif // _AFX_NO_AFXCMN_SUPPORT
|
||||
|
||||
|
||||
#endif //__STDAAFX_H__
|
||||
|
434
Rayman_X/cpa/tempgrp/OAC/Inc/_Ainterf.hpp
Normal file
@@ -0,0 +1,434 @@
|
||||
//**************************************
|
||||
// This is the base class of your DLL interface
|
||||
// All methods of CPA_ObjectDLLBase are
|
||||
// present in that class.
|
||||
//**************************************
|
||||
#ifndef __ACTOR_INTERF_HPP__
|
||||
#define __ACTOR_INTERF_HPP__
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "ITF.h"
|
||||
#include "IncMEC.h"
|
||||
#define D_ZdxStuff_StructureDefine
|
||||
#define D_State_Define
|
||||
#include "IncGAM.h"
|
||||
#undef D_State_Define
|
||||
#include "GLI.h"
|
||||
|
||||
// if you want only one instance of your DLL
|
||||
// activate the next line
|
||||
//#define DLL_ONLY_ONE_INSTANCE
|
||||
|
||||
////////////////////////////////////////////////
|
||||
// EdCarac specific //YB
|
||||
|
||||
// Specific Includes
|
||||
#include "Defines.hpp"
|
||||
|
||||
#include "EDACFmMn.hpp"
|
||||
#include "EDACDoc.hpp"
|
||||
|
||||
//End EdCarac specific
|
||||
////////////////////////////////////////////////
|
||||
|
||||
struct stIndexOfNameInfo
|
||||
{
|
||||
CString csNameOfObject;
|
||||
CPA_Actor *pclModel;
|
||||
CString csObjectType;
|
||||
};
|
||||
|
||||
//----------------------------------------------------------
|
||||
// Object DLL interface class
|
||||
//----------------------------------------------------------
|
||||
class CPA_Actor_Editor_Interface : public CPA_ObjectDLLBase
|
||||
{
|
||||
private:
|
||||
CPA_List<CPA_SuperObject> m_stListModels;
|
||||
CPA_KeyActionConfiguration * m_p_oKeyboard;
|
||||
|
||||
public:
|
||||
|
||||
CPA_Actor_Editor_Interface(void);
|
||||
~CPA_Actor_Editor_Interface(void);
|
||||
|
||||
/*===========================================================================
|
||||
Virtual Functions
|
||||
=========================================================================*/
|
||||
public:
|
||||
|
||||
// To pre translate all messages
|
||||
// virtual BOOL fn_bPreTranslateMessage(MSG * /*p_stMsg*/) { return FALSE; };
|
||||
// Called just after editor has been inserted in list of all editors
|
||||
virtual void fn_vJustAfterRegistered(void);
|
||||
// Called just before windows main loop processing
|
||||
virtual void fn_vConstruct(void);
|
||||
// Called to refresh datas of DLL if "fn_vCanBeRefresh" returns TRUE
|
||||
virtual void fn_vRefreshDatas(void);
|
||||
//
|
||||
virtual void fn_vLevelChanges(void);
|
||||
// Called when level has changed
|
||||
virtual void fn_vLevelHasChanged(void);
|
||||
|
||||
virtual BOOL fn_bLoadBaseObject(CPA_BaseObject *p_oObject);
|
||||
|
||||
/*===========================================================================
|
||||
Current Editor
|
||||
=========================================================================*/
|
||||
|
||||
virtual tdePermission fn_eAcceptNewEditor(CPA_EditorBase *pNewEditor);
|
||||
|
||||
virtual BOOL fn_bCanActivateEditor(CPA_List<CPA_SaveObject> *pParams);
|
||||
virtual void fn_vOnActivateEditor (CPA_List<CPA_BaseObject> *pParams, BOOL bBackActivated=FALSE);
|
||||
|
||||
virtual BOOL fn_bCanCloseEditor(void);
|
||||
virtual void fn_vOnCloseEditor(void);
|
||||
|
||||
public:
|
||||
/*===========================================================================
|
||||
Messages from Evt_Editor
|
||||
=========================================================================*/
|
||||
|
||||
// for changes
|
||||
// virtual void fn_vOnChangeDevice (void) { }
|
||||
|
||||
// Editor Modifs
|
||||
virtual void fn_vOnModifDelete(CPA_List<EDT_SaveParents> *pListObjects, tdeTypeModif eType, tdeStatus eStatus);
|
||||
// virtual void fn_vOnModifParent(CPA_List<EDT_SaveParents> *pListObjects, tdeTypeModif eType, tdeStatus eStatus) { }
|
||||
// virtual void fn_vOnModifCopy(CPA_List<EDT_SaveParents> *pListObjects, tdeTypeModif eType, tdeStatus eStatus) { }
|
||||
virtual void fn_vOnModifName(CPA_SuperObject *pEdObj, CString csInitialName, CString csFinalName, tdeTypeModif eType, tdeStatus eStatus);
|
||||
virtual void fn_vOnSelect(CPA_SuperObject *pEdObj, tdeTypeModif eType, tdeStatus eStatus);
|
||||
|
||||
//ANNECY Shaitan SPOFlags 19/02/98
|
||||
virtual void fn_vOnModifFlag (CPA_SuperObject *pEdObj, unsigned long ulOldFlag, unsigned long ulNewFlag);
|
||||
//ENDANNECY Shaitan SPOFlags
|
||||
//ANNECY Shaitan Transparency (26/03/98) {
|
||||
virtual void fn_vOnModifTransparency (CPA_SuperObject *pEdObj, float fNewLevel);
|
||||
//ENDANNECY Shaitan Transparency }
|
||||
|
||||
virtual void fn_vOnModifInsert( CPA_SuperObject *pEdObj, CPA_SuperObject *pParent,
|
||||
tdstPosition *p_stPosition, tdeTypeModif eType, tdeStatus eStatus);
|
||||
|
||||
// Moves
|
||||
virtual void fn_vOnModifMove(CPA_List<EDT_SavePos> *pListObjects, CPA_List<EDT_SaveGlobalPos> *pListConcerned, tdeTypeModif eType, tdeStatus eStatus);
|
||||
// virtual void fn_vOnBeginMove(CPA_List<CPA_SuperObject> *pListObjects, CPA_List<CPA_SuperObject> *pListConcerned, tdeStatus eStatus) { }
|
||||
// virtual void fn_vOnMoving(CPA_List<CPA_SuperObject> *pListObjects, CPA_List<CPA_SuperObject> *pListConcerned, tdeStatus eStatus) { }
|
||||
|
||||
// Models
|
||||
virtual void fn_vOnAddModelToList(CPA_ObjectDLLBase *pOwnerDLL, CString csListName, CString csModelName, tdeTypeModif eType);
|
||||
virtual BOOL fn_bCanDeleteThisModel (CString csListName, CString csModelType, CString csModelName);
|
||||
|
||||
// permission
|
||||
virtual BOOL fn_bAcceptModifDelete(CPA_List<CPA_SuperObject> *pListObjects, tdeStatus eStatus);
|
||||
// virtual BOOL fn_bAcceptModifParent(CPA_List<CPA_SuperObject> *pListObjects, tdeStatus eStatus) { return TRUE; }
|
||||
virtual BOOL fn_bAcceptModifCopy(CPA_List<CPA_SuperObject> *pListObjects, tdeStatus eStatus);
|
||||
virtual BOOL fn_bAcceptModifTranslate(CPA_List<CPA_SuperObject> *pListObjects, tdeStatus eStatus);
|
||||
virtual BOOL fn_bAcceptModifRotate(CPA_List<CPA_SuperObject> *pListObjects, tdeStatus eStatus);
|
||||
virtual BOOL fn_bAcceptModifScale(CPA_SuperObject *pEdObj, tdeStatus eStatus);
|
||||
// virtual BOOL fn_bAcceptModifInsert(CPA_SuperObject *pEdObj, CPA_SuperObject *pParent, tdeStatus eStatus) { return TRUE; }
|
||||
virtual BOOL fn_bAcceptModifName(CPA_SuperObject *pEdObj, tdeStatus eStatus);
|
||||
// virtual BOOL fn_bAcceptMultiSelect(void) { return TRUE; }
|
||||
|
||||
//ANNECY Shaitan SPOFlags 19/02/98
|
||||
virtual BOOL fn_bAcceptModifFlag (CPA_SuperObject *pEdObj, unsigned long ulFlag);
|
||||
//ENDANNECY Shaitan SPOFlags
|
||||
|
||||
// Begin Silviu Simen 18 August 1998 Cut/Paste Mechanism
|
||||
virtual BOOL fn_bAcceptModifCut (CPA_List<CPA_SuperObject> *pListObjects, tdeStatus eStatus);
|
||||
// End Silviu Simen 18 August 1998 Cut/Paste Mechanism
|
||||
// Begin Silviu Simen List by Sector and type
|
||||
void fn_AddDialogBySector (void);
|
||||
// Begin Silviu Simen List by Sector and type
|
||||
|
||||
// to precise selection
|
||||
virtual tdeTypeAnswer fn_bAcceptSelect(CPA_SuperObject *pEdObj, ACP_tdxIndex xIndex, HIE_tdstPickInfo *pPicking, tdeStatus eStatus);
|
||||
|
||||
/*===========================================================================
|
||||
Dialog List
|
||||
=========================================================================*/
|
||||
|
||||
// virtual BOOL fn_bSetCustomTest (CPA_DialogList *pDialog) { return FALSE; }
|
||||
// virtual BOOL fn_bCustomTestFunction (CString csCurrentType, CString csTestName, CPA_SaveObject *pEdObj) { return TRUE; }
|
||||
|
||||
/*===========================================================================
|
||||
General Purpose
|
||||
=========================================================================*/
|
||||
|
||||
virtual long OnQueryAction (CPA_EditorBase * /*p_oSender*/, WPARAM, LPARAM);
|
||||
// virtual long OnQueryInfos (CPA_DLLBase * /*p_oSender*/, WPARAM, LPARAM) { return 0; };
|
||||
// virtual long OnQueryOpen (CPA_DLLBase * /*p_oSender*/, WPARAM, LPARAM) { return 0; };
|
||||
// virtual long OnQueryClose (CPA_DLLBase * /*p_oSender*/, WPARAM, LPARAM) { return 0; };
|
||||
|
||||
/*===========================================================================
|
||||
Coherence
|
||||
=========================================================================*/
|
||||
virtual BOOL fn_bOnInvalidateLink (CPA_BaseObject *pOwner, CPA_BaseObject *pReferencedObject, BOOL bDestroyed);
|
||||
virtual void fn_vOnRestoreLink (CPA_BaseObject *pOwner, CPA_BaseObject *pReferencedObject);
|
||||
virtual void fn_vOnModifyChild (CPA_BaseObject *pOwner, CPA_BaseObject *pReferencedObject, unsigned long _ulData);
|
||||
|
||||
/*===========================================================================
|
||||
Messages
|
||||
=========================================================================*/
|
||||
// focus
|
||||
virtual void fn_vHasLostFocus (void);
|
||||
virtual BOOL fn_bHasGainedFocus (void);
|
||||
// engine - editor
|
||||
virtual void fn_vBeforeEngine (void);
|
||||
virtual void fn_vBeforeEditor (void);
|
||||
// engine
|
||||
virtual BOOL fn_bAcceptToRunEngine(void);
|
||||
// virtual BOOL fn_bAcceptToRunTimerEngine (void) { return TRUE; };
|
||||
// end appli
|
||||
// virtual void fn_vJustBeforeClosing (void) { };
|
||||
// virtual BOOL fn_bAcceptToExit (void) { return TRUE; };
|
||||
// save
|
||||
virtual void fn_vBeforeSaveAll(void);
|
||||
virtual void fn_vAfterSaveAll(void);
|
||||
virtual BOOL fn_bAcceptToSave(void);
|
||||
|
||||
// keys
|
||||
virtual BOOL _OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags);
|
||||
// virtual BOOL _OnKeyUp (UINT nChar, UINT nRepCnt, UINT nFlags) { return FALSE; };
|
||||
// mouse
|
||||
// virtual BOOL _OnMouseMove (UINT nFlags, tdstMousePos *p_stPos, MTH3D_tdstVector *p_stVect) { return FALSE; };
|
||||
// virtual BOOL _OnLButtonDblClk (UINT nFlags, tdstMousePos *p_stPos, ACP_tdxIndex xIndex, HIE_tdstPickInfo *p_stPickInfo) { return FALSE; };
|
||||
// virtual BOOL _OnRButtonDblClk (UINT nFlags, tdstMousePos *p_stPos, ACP_tdxIndex xIndex, HIE_tdstPickInfo *p_stPickInfo) { return FALSE; };
|
||||
// virtual BOOL _OnLButtonDown (UINT nFlags, tdstMousePos *p_stPos, ACP_tdxIndex xIndex, HIE_tdstPickInfo *p_stPickInfo) { return FALSE; };
|
||||
// virtual BOOL _OnRButtonDown (UINT nFlags, tdstMousePos *p_stPos, ACP_tdxIndex xIndex, HIE_tdstPickInfo *p_stPickInfo) { return FALSE; };
|
||||
// virtual BOOL _OnLButtonUp (UINT nFlags, tdstMousePos *p_stPos) { return FALSE; };
|
||||
// virtual BOOL _OnRButtonUp (UINT nFlags, tdstMousePos *p_stPos) { return FALSE; };
|
||||
// command
|
||||
// virtual BOOL _OnCommand (UINT IDCmdMsg) { return FALSE; };
|
||||
// virtual BOOL _OnUpdateCommandUI (UINT uiID, CCmdUI *pCmdUI) { return FALSE; };
|
||||
// dragdrop
|
||||
// virtual BOOL _OnDragDropEnd (WPARAM wParam, LPARAM lParam) { return FALSE; };
|
||||
// virtual BOOL _OnDragDropMove (WPARAM wParam, LPARAM lParam) { return FALSE; };
|
||||
// virtual BOOL _OnDragDropLooseFocus (WPARAM wParam, LPARAM lParam) { return FALSE; };
|
||||
// virtual BOOL _OnDragDropGainFocus (WPARAM wParam, LPARAM lParam) { return FALSE; };
|
||||
// add objects to draw
|
||||
// virtual void fn_vAddObjectsToDraw (GLD_tdstViewportAttributes *p1, GLI_tdxHandleToLight p2) { };
|
||||
// virtual void fn_vAddObjectsToDraw2 (GLD_tdstViewportAttributes *p1, GLI_tdxHandleToLight p2) { };
|
||||
|
||||
/*===========================================================================
|
||||
Reinit
|
||||
=========================================================================*/
|
||||
|
||||
// virtual void fn_vOnChangeRoot (void) { };
|
||||
// virtual void fn_vOnChangeWorld (void) { };
|
||||
|
||||
/*===========================================================================
|
||||
for Dialog List
|
||||
=========================================================================*/
|
||||
|
||||
//List control
|
||||
virtual CPA_BaseObject * GetDialogSelection (CPA_DialogList *pDialog, CString csTypeName, tdeListDrawMode eDrawMode);
|
||||
virtual void GetListsForDialog (CPA_DialogList *pDialog);
|
||||
|
||||
virtual BOOL fn_bOnSelChangeListObjects(CPA_DialogList *pDialog, CString csTypeName, CPA_BaseObject *pSelectedObject, BOOL bUnselect);
|
||||
virtual BOOL fn_bOnDblClkListObjects(CPA_DialogList *pDialog, CString csTypeName, CPA_BaseObject *pSelectedObject);
|
||||
virtual BOOL fn_bOnSelChangeComboList(CPA_DialogList *pDialog, CString csTypeName);
|
||||
virtual BOOL fn_bOnButtonTest(CPA_DialogList *pDialog, CString csTypeName, tdeListDrawMode eDraw);
|
||||
|
||||
virtual BOOL fn_bOnKeyDownInDialog (CPA_DialogList *pDialog, CString csListName, tdeListDrawMode eDraw,
|
||||
CPA_BaseObject *pSelectedObject, UINT nChar, UINT nRepCnt, UINT nFlags);
|
||||
|
||||
virtual void fn_vInitDefaultParameters(CPA_DialogList *pDialog);
|
||||
|
||||
virtual void fn_vSetANewTest(CPA_DialogList *pDialog, CString csCurrentList);
|
||||
virtual BOOL fn_bTestFunction(CString csCurrentType, CString csTestName, CPA_BaseObject *pEdObj);
|
||||
|
||||
//Tree control
|
||||
virtual BOOL fn_bOnSelChangeHierarchyTree(CPA_DialogList *pDialog, CString csListName, CPA_BaseObject *pSelectedObject, CPA_BaseObject *pSelectedParent);
|
||||
virtual BOOL fn_bOnDblClkHierarchyTree(CPA_DialogList *pDialog, CString csListName, CPA_BaseObject *pSelectedObject, CPA_BaseObject *pSelectedParent);
|
||||
|
||||
virtual BOOL fn_bCanDragItemInHierarchyTree(CPA_DialogList *pDialog, CString csListName, CPA_BaseObject *pObjectToDrag);
|
||||
virtual BOOL fn_bCanDropItemInHierarchyTree(CPA_DialogList *pDialog, CString csListName, CPA_BaseObject *pObjectToDrop, CPA_BaseObject *pTarget);
|
||||
virtual BOOL fn_bOnDragDropInHierarchyTree(CPA_DialogList *pDialog, CString csListName, CPA_BaseObject *pObject, CPA_BaseObject *pTarget);
|
||||
|
||||
virtual CPA_BaseObject *GetTreeNodeNextChild(CPA_DialogList *pDialog, CString csListName, CPA_BaseObject *pParent, CPA_BaseObject *pCurrentChild);
|
||||
virtual void *GetInfoForTreeItem(CPA_DialogList *pDialog, CString csListName, CPA_BaseObject *pObject, CPA_BaseObject *pParent);
|
||||
virtual int GetIconForTreeItem(CPA_DialogList *pDialog, CString csListName, CPA_BaseObject *pObject);
|
||||
virtual int GetStateForTreeItem(CPA_DialogList *pDialog, CString csListName, CPA_BaseObject *pObject);
|
||||
|
||||
virtual BOOL fn_bAddEntriesToTreePopup(CPA_DialogList *pDialog, CString csListName, CMenu *pMenu, UINT uiCustomEntriesStart);
|
||||
virtual void fn_vOnCommandInTreePopup(CPA_DialogList *pDialog, CString csListName, UINT uiCustomEntry);
|
||||
virtual BOOL fn_bAddEntriesToListPopup(CPA_DialogList *pDialog, CString csListName, CMenu *pMenu, UINT uiCustomEntriesStart);
|
||||
virtual void fn_vOnCommandInListPopup(CPA_DialogList *pDialog, CString csListName, UINT uiCustomEntry);
|
||||
|
||||
/*===========================================================================
|
||||
Dialog Bar - Mircea Dunka 31 Aug. 1998
|
||||
=========================================================================*/
|
||||
void fn_vDefineDlgBarBtnIcon (tde_DlgBarCategory wCategory, tds_DlgBarBtn *_pDlgBarBtn);
|
||||
|
||||
/*===========================================================================
|
||||
SubMenus and PopupMenu
|
||||
=========================================================================*/
|
||||
|
||||
virtual BOOL fn_bDefineSubMenu(EDT_SubMenu *_p_oEDTSubMenu);
|
||||
virtual void _OnSubMenuCommand(EDT_SubMenu *_p_oEDTSubMenu,UINT uiMsgID);
|
||||
|
||||
virtual BOOL fn_bDefinePopupMenu(EDT_PopUpMenu *pPopup, CPA_List<CPA_SuperObject> *pSelection, BOOL bAsCurrentEditor);
|
||||
virtual void _OnPopUpMenuCommand(UINT m_IDCmdMsg);
|
||||
|
||||
// Hierarchy
|
||||
virtual CPA_SuperObject *GetNewEditorInstance(HIE_tdxHandleToSuperObject pEngineInstance);
|
||||
virtual void fn_vUpdateEditorInstance(CPA_SuperObject *pEditorInstance, HIE_tdxHandleToSuperObject pEngineInstance);
|
||||
virtual BOOL fn_bCanHandleThisType(long lEngineType);
|
||||
|
||||
// Models & Instances
|
||||
virtual void fn_vInitListByType(CPA_World *pWorld);
|
||||
virtual void fn_vInitListsOfModels(void);
|
||||
virtual void fn_vSaveListModels(CString csListName, CPA_List<EDT_Model> *pListModels);
|
||||
virtual CString fn_csLoadListModels(void);
|
||||
virtual EDT_Model *GetNewModel(CString csListName);
|
||||
virtual BOOL fn_bCanLoadNewModel(CString csListName);
|
||||
virtual BOOL fn_bCanDeleteModel(CString csListName);
|
||||
virtual BOOL fn_bCanChangeModelIcon(CString csListName);
|
||||
virtual BOOL fn_bCanSaveListModels(CString csListName);
|
||||
virtual BOOL fn_bCanLoadListModels(void);
|
||||
// virtual void fn_vOnLoadNewModel(CString csListName, EDT_Model *pNewModel);
|
||||
virtual CString fn_csChangeModelIcon (CString csListName, CString csModelName);
|
||||
|
||||
virtual CPA_SuperObject *GetNewInstance(CString csTypeName, CString csModelName, CPA_SuperObject *pParent);
|
||||
virtual tdeTypeSO GetTypeInstance(CString csTypeName, CString csModelName);
|
||||
//ANNECY Shaitan EmptySectors 25/02/98
|
||||
virtual tdeSaveStatus GetStatusInstance(CString csTypeName, CString csModelName);
|
||||
//ENDANNECY Shaitan EmptySectors
|
||||
|
||||
// virtual CPA_SuperObject * GetParentForInsertion (CString csTypeName, CString csModelName, tdstPosition *p_stPosition) { return NULL; }
|
||||
virtual BOOL fn_bChooseInsertPosition(CPA_SuperObject *pNewInstance, CPA_SuperObject *pParent, tdstPosition *p_stPosition);
|
||||
|
||||
// objects
|
||||
// virtual CPA_Object * GetNewObject (CString csObjectFile, CString csObjectName, FILE *p_fFile, CPA_MainWorld *p_oMainWorld) { return NULL; }
|
||||
virtual CPA_Object *Duplicate(CPA_Object *pObject, CPA_SuperObject *pNewSuperObject);
|
||||
|
||||
virtual CPA_SuperObject *GetCopyOfProtectedChild (CPA_SuperObject *pInitialChild, CPA_SuperObject *pNewOwner);
|
||||
|
||||
// permissions for EvtEditor
|
||||
// virtual BOOL fn_bAcceptAsParent(CPA_Object *pChild, CPA_Object *pParent);
|
||||
// virtual BOOL fn_bAcceptAsChild(CPA_Object *pParent, CPA_Object *pChild);
|
||||
|
||||
// when insertion is canceled
|
||||
virtual void fn_vOnCancelInsertion(CPA_SuperObject *pInstance);
|
||||
|
||||
// Bounding Volume
|
||||
virtual void fn_vComputeBoundingVolume(CPA_BaseObject *pObject);
|
||||
virtual ACP_tdxHandleOfObject fn_hGetBoundingVolume(CPA_BaseObject *_pObj);
|
||||
|
||||
////////
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------------
|
||||
//(YB) Editor's specific members
|
||||
|
||||
//Attributes
|
||||
public:
|
||||
//The (one and only) document
|
||||
EdActors_MyDocument m_clDocument;
|
||||
|
||||
//The main frame
|
||||
class CMainFrame *m_pclCaracMainFrame;
|
||||
|
||||
// Shaitan => module list in the level
|
||||
BOOL m_bCanGenerateOptimizedLevel;
|
||||
// End Shaitan => module list in the level
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
//For List Dialog
|
||||
CPA_Family *m_pclFamilyFilter;
|
||||
CPA_Actor *m_pclModelFilter;
|
||||
CPA_Actor *m_pclSelectedInstance;
|
||||
CPA_Actor *m_pclSelectedActorForTreeView; //Model or Instance
|
||||
//CPA2 Stegaru Cristian 98-05
|
||||
CPA_UnloadedAlways *m_pSelectedUnloadedAlways;
|
||||
//End CPA2 Stegaru Cristian 98-05
|
||||
|
||||
EdActors_EditorActor *m_pcl3DSelectedActor;
|
||||
|
||||
//For tree
|
||||
CImageList m_clImageListForTree;
|
||||
|
||||
//Empty SuperObject
|
||||
CPA_SuperObject *m_pclTreeRoot;
|
||||
|
||||
BOOL m_pri_bTreeMustShowUnloadedObjects;
|
||||
BOOL m_pri_bTreeMustOnlyShowFamiliesWithModels;
|
||||
|
||||
//For Undo / Redo handling
|
||||
CString m_csEditorVersion;
|
||||
|
||||
// For Anim Player
|
||||
CPA_Actor *m_pTempActorModel;
|
||||
CPA_Actor *m_pTempActorModelInstance;
|
||||
CPA_SuperObject *m_pTempInstanceSO;
|
||||
CPA_SuperObject *m_pTempModelSO;
|
||||
|
||||
// For display
|
||||
BOOL m_bShowActors;
|
||||
void *m_pEngineModule;
|
||||
|
||||
|
||||
//Functions
|
||||
public:
|
||||
//For list Handling
|
||||
void m_fn_vSetListWithAFamily(CPA_Family *);
|
||||
void m_fn_vSetListWithAModel(EdActors_EditorActorModel *);
|
||||
|
||||
CString m_fn_csGetEditorVersion();
|
||||
|
||||
//For List Dialog
|
||||
void m_pub_fn_vSetSelectionInDialogList(CPA_Actor *_pclNewSelection);
|
||||
//CPA2 Stegaru Cristian 98/07/01
|
||||
BOOL mfn_bUnloadAlwaysFromLevel (CPA_Actor *pActor);
|
||||
//End CPA2 Stegaru Cristian 98/07/01
|
||||
//CPA2 Gabi Dumitrascu 98/07/15
|
||||
void mfn_vLoadAlways (CPA_UnloadedAlways *pUAlways);
|
||||
//End CPA2 Gabi Dumitrascu 98/07/15
|
||||
protected:
|
||||
|
||||
private:
|
||||
void m_fn_vLookForModifiedDatas();
|
||||
void m_fn_vShowEditor();
|
||||
void m_fn_vHideEditor();
|
||||
|
||||
void m_fn_vPrepareMotorActor(CPA_Actor *pclEdActor);
|
||||
|
||||
//CPA2 Stegaru Cristian 98-04
|
||||
void m_fn_vCheckFamilyBoundingVolume (CPA_Actor *pclEdActor);
|
||||
BOOL mfn_bDisplayInfo (UINT uID);
|
||||
//End CPA2 Stegaru Cristian 98-04
|
||||
|
||||
// For Anim player
|
||||
CPA_SuperObject* m_fn_pGetAnActorInstance (CPA_BaseObject *p_oFamily);
|
||||
void m_fn_vDeleteTempActorInstance();
|
||||
|
||||
// For Watch data
|
||||
void m_fn_LoadWatchData();
|
||||
|
||||
// For display
|
||||
void mfn_vUpdateDisplayOfAllActors (BOOL bShowInactive);
|
||||
|
||||
friend class EdActors_ActorsView;
|
||||
friend class EdActors_MyDocument;
|
||||
|
||||
//(YB) End of Editor's specific members
|
||||
//--------------------------------------------------------------------------
|
||||
};
|
||||
|
||||
// YB //
|
||||
#undef extern
|
||||
|
||||
extern CPA_Actor_Editor_Interface *g_pclInterface;
|
||||
// End YB //
|
||||
|
||||
extern tdstDLLIdentity g_stActorEditorIdentity;
|
||||
|
||||
|
||||
#endif // __ACTOR_INTER
|
26
Rayman_X/cpa/tempgrp/OAC/Inc/_zQuery.hpp
Normal file
@@ -0,0 +1,26 @@
|
||||
//*****************************************************************************
|
||||
//* _zQuery.hpp *
|
||||
//*****************************************************************************
|
||||
//* *
|
||||
//* This file contains the constants and structures used to communicate with *
|
||||
//* the dll (OnQueryAction) *
|
||||
//* *
|
||||
//*****************************************************************************
|
||||
//* Author : Alexis Vaisse *
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
#ifndef __ZQUERY_HPP__
|
||||
#define __ZQUERY_HPP__
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
|
||||
#define C_uiQueryEditAnObject 1
|
||||
#define C_uiQueryEditAnObjectList 2
|
||||
#define C_uiQueryAnObjectHasBeenChanged 3
|
||||
|
||||
|
||||
#endif // __ZQUERY_HPP__
|
58
Rayman_X/cpa/tempgrp/OAC/Inc/characterinfodlg.h
Normal file
@@ -0,0 +1,58 @@
|
||||
#if !defined(AFX_CHARACTERINFODLG_H__F8257D3B_E4B5_11D1_A14B_00A0244F34C3__INCLUDED_)
|
||||
#define AFX_CHARACTERINFODLG_H__F8257D3B_E4B5_11D1_A14B_00A0244F34C3__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// CharacterInfoDlg.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CCharacterInfoDlg dialog
|
||||
class CPA_SuperObject;
|
||||
class CCharacterInfoDlg : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CCharacterInfoDlg(CPA_SuperObject *pSuperObject, CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CCharacterInfoDlg)
|
||||
enum { IDD = IDD_CHARACTER_INFO };
|
||||
CString m_csFamily;
|
||||
CString m_csInstance;
|
||||
CString m_csModel;
|
||||
CString m_csNumberOfModules;
|
||||
CString m_csXSize;
|
||||
CString m_csYSize;
|
||||
CString m_csZSize;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CCharacterInfoDlg)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
CPA_SuperObject *m_pSuperObject;
|
||||
void ComputeVariables ();
|
||||
int mfn_iGetModulesNumber (CPA_SuperObject *pSuperObject);
|
||||
void mfn_vGetModulesNumber (CPA_SuperObject *pSuperObject, int &riModulesNumber);
|
||||
MTH3D_tdstVector mfn_GetSize (CPA_SuperObject *pSuperObject);
|
||||
void mfn_vGetMinMaxCoordinates (CPA_SuperObject *pSuperObject, MTH3D_tdstVector &rtdstMinCoordinates, MTH3D_tdstVector &rtdstMaxCoordinates);
|
||||
void mfn_vFillModulesList (CPA_SuperObject *pSuperObject, CStringList &rlstOfModules);
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CCharacterInfoDlg)
|
||||
virtual BOOL OnInitDialog();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_CHARACTERINFODLG_H__F8257D3B_E4B5_11D1_A14B_00A0244F34C3__INCLUDED_)
|
9
Rayman_X/cpa/tempgrp/OAC/Inc/help_def.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#define IDH_GENERAL 10000
|
||||
#define IDH_ACTORS_VIEW 10001
|
||||
#define IDH_MS_VIEW 10002
|
||||
|
||||
//For fields
|
||||
// Re-defined in "Hlp_Flds.h"
|
||||
#define IDH_FIELD_UNKNOWN 10100
|
||||
|
||||
|
76
Rayman_X/cpa/tempgrp/OAC/Inc/hlp_flds.h
Normal file
@@ -0,0 +1,76 @@
|
||||
// Help constant definitions for fields
|
||||
//
|
||||
// By YB
|
||||
//
|
||||
////////////////////////////////////////////
|
||||
|
||||
//This fields is "also defined" in "help_def.h"
|
||||
#define IDH_FIELD_UNKNOWN_BIS 10100
|
||||
|
||||
|
||||
//Fields of MS StdGame
|
||||
//////////////////////////
|
||||
#define IDH_FIELD_STDGAME_INITIAL_ACTION 10200
|
||||
#define IDH_FIELD_STDGAME_SPECIAL_POS_FLAG 10201
|
||||
#define IDH_FIELD_STDGAME_PLATFORM_TYPE 10202
|
||||
#define IDH_FIELD_STDGAME_LINKED_TO_SECTOR 10203
|
||||
//ANNECY Bart#02 20/04/98 {
|
||||
#define IDH_FIELD_STDGAME_CAPABILITIES 10204
|
||||
//ENDANNECY Bart#02 }
|
||||
|
||||
//Fields of MS 3dData
|
||||
//////////////////////////
|
||||
#define IDH_FIELD_3DDATA_DRAWMASK 10300
|
||||
#define IDH_FIELD_3DDATA_SHADOW_SCALE 10301
|
||||
#define IDH_FIELD_3DDATA_SHADOW_MATERIAL 10302
|
||||
#define IDH_FIELD_3DDATA_SHADOW_QUALITY 10303
|
||||
#define IDH_FIELD_3DDATA_SHADOW_HEIGHT 10304
|
||||
//Fields of MS Light
|
||||
//////////////////////////
|
||||
#define IDH_FIELD_LIGHT_COLOR 10400
|
||||
#define IDH_FIELD_LIGHT_LITTLE_ALPHA 10401
|
||||
#define IDH_FIELD_LIGHT_BIG_ALPHA 10402
|
||||
#define IDH_FIELD_LIGHT_NEAR 10403
|
||||
#define IDH_FIELD_LIGHT_FAR 10404
|
||||
#define IDH_FIELD_LIGHT_ON_OFF 10405
|
||||
#define IDH_FIELD_LIGHT_ANGLE_GYRO 10406
|
||||
#define IDH_FIELD_LIGHT_STEP_GYRO 10407
|
||||
#define IDH_FIELD_LIGHT_GYROPHARE 10408
|
||||
#define IDH_FIELD_LIGHT_TYPE 10409
|
||||
#define IDH_FIELD_LIGHT_PULSE 10410
|
||||
#define IDH_FIELD_LIGHT_MAX_RANGE_PULSE 10411
|
||||
#define IDH_FIELD_LIGHT_STEP_PULSE 10412
|
||||
//ANNECY CT 13/01/98 {
|
||||
#define IDH_FIELD_LIGHT_LOCAL_LIGHT 10413
|
||||
#define IDH_FIELD_LIGHT_ONLY_LOCAL_LIGHT 10414
|
||||
//ENDANNECY CT }
|
||||
|
||||
|
||||
//Fields of MS Stream
|
||||
//////////////////////////
|
||||
#define IDH_FIELD_STREAM_ON 10600
|
||||
#define IDH_FIELD_STREAM_TYPE 10601
|
||||
#define IDH_FIELD_STREAM_ENV_KIND 10602
|
||||
#define IDH_FIELD_STREAM_REVERSE 10603
|
||||
#define IDH_FIELD_STREAM_BEG_DEC_FIRST_PARAM 10604
|
||||
#define IDH_FIELD_STREAM_BEG_DEC_SECOND_PARAM 10605
|
||||
#define IDH_FIELD_STREAM_SPEED_WITHOUT_FIRST_PARAM 10606
|
||||
#define IDH_FIELD_STREAM_SPEED_WITHOUT_SECOND_PARAM 10607
|
||||
#define IDH_FIELD_STREAM_FIRST_PARAM_NULL_SPEED 10608
|
||||
#define IDH_FIELD_STREAM_SECOND_PARAM_NULL_SPEED 10609
|
||||
|
||||
//Fields of MS Dynam
|
||||
//////////////////////////
|
||||
#define IDH_FIELD_DYNAM_STABLE_ENV 10700
|
||||
|
||||
//Fields of MS CollSet
|
||||
//////////////////////////
|
||||
#define IDH_FIELD_COLLSET_CHAR_PRIORITY 10800
|
||||
// ANNECY AV {
|
||||
//#define IDH_FIELD_COLLSET_COLLISION_FLAG 10801
|
||||
#define IDH_FIELD_COLLSET_NO_COLLISION_WITH_MAP 10801
|
||||
#define IDH_FIELD_COLLSET_NO_COLLISION_WITH_PROJECTILE 10802
|
||||
#define IDH_FIELD_COLLSET_NO_COLLISION_WITH_SECONDARY_CHARACTER 10803
|
||||
#define IDH_FIELD_COLLSET_NO_COLLISION_WITH_MAIN_CHARACTER 10804
|
||||
#define IDH_FIELD_COLLSET_FORCE_COLLISION_WHEN_NOT_MOVING 10805
|
||||
// END ANNECY AV }
|
56
Rayman_X/cpa/tempgrp/OAC/Inc/moduleinfodlg.h
Normal file
@@ -0,0 +1,56 @@
|
||||
#if !defined(AFX_MODULEINFODLG_H__06E3E579_E57E_11D1_A14C_00A0244F34C3__INCLUDED_)
|
||||
#define AFX_MODULEINFODLG_H__06E3E579_E57E_11D1_A14C_00A0244F34C3__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// moduleinfodlg.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CModuleInfoDlg dialog
|
||||
|
||||
class CPA_SuperObject;
|
||||
class EditorPO;
|
||||
class CModuleInfoDlg : public CDialog
|
||||
{
|
||||
private:
|
||||
CPA_SuperObject *m_pSuperObject;
|
||||
// Construction
|
||||
public:
|
||||
CModuleInfoDlg(CPA_SuperObject *pSuperObject, CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CModuleInfoDlg)
|
||||
enum { IDD = IDD_MODULE_INFO };
|
||||
CString m_csFacesNumber;
|
||||
CString m_csSizeX;
|
||||
CString m_csSizeY;
|
||||
CString m_csSizeZ;
|
||||
CString m_csModuleName;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CModuleInfoDlg)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
void ComputeVariables ();
|
||||
MTH3D_tdstVector mfn_GetSize (EditorPO *pPO);
|
||||
int mfn_iGetFacesNumber (EditorPO *pPO);
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CModuleInfoDlg)
|
||||
virtual BOOL OnInitDialog();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_MODULEINFODLG_H__06E3E579_E57E_11D1_A14C_00A0244F34C3__INCLUDED_)
|
1511
Rayman_X/cpa/tempgrp/OAC/Make/OAc.dsp
Normal file
2971
Rayman_X/cpa/tempgrp/OAC/Make/OAc.vcproj
Normal file
5
Rayman_X/cpa/tempgrp/OAC/Make/mssccprj.scc
Normal file
@@ -0,0 +1,5 @@
|
||||
SCC = This is a source code control file
|
||||
|
||||
[OAc.vcproj]
|
||||
SCC_Aux_Path = "P4SCC#srvperforce-ma:1666##raymandata##Editor"
|
||||
SCC_Project_Name = Perforce Project
|
BIN
Rayman_X/cpa/tempgrp/OAC/Res/Common.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/EdCarac.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/Shared.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/Virge.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/boolcheck.ico
Normal file
After Width: | Height: | Size: 766 B |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/car_alwa.ico
Normal file
After Width: | Height: | Size: 766 B |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/car_butt.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/car_clea.ico
Normal file
After Width: | Height: | Size: 766 B |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/car_in_a.ico
Normal file
After Width: | Height: | Size: 766 B |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/car_tree.ico
Normal file
After Width: | Height: | Size: 318 B |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/car_watc.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/cur00001.cur
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/cur00002.cur
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/cur00003.cur
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/cursor_d.cur
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/cursor_h.cur
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00001.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00002.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00003.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00004.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00005.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00006.ico
Normal file
After Width: | Height: | Size: 318 B |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00007.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00008.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00009.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00010.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00011.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00012.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00013.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00014.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Rayman_X/cpa/tempgrp/OAC/Res/ico00015.ico
Normal file
After Width: | Height: | Size: 2.2 KiB |