Add rayman2 source files
This commit is contained in:
92
Rayman_X/cpa/tempgrp/TFa/inc/FAinterf.hpp
Normal file
92
Rayman_X/cpa/tempgrp/TFa/inc/FAinterf.hpp
Normal file
@@ -0,0 +1,92 @@
|
||||
//**************************************
|
||||
// This is the base class of your DLL interface
|
||||
// All methods of CPA_ToolDLLBase are
|
||||
// present in that class.
|
||||
//**************************************
|
||||
|
||||
#ifndef __TFamilyINTERF_HPP__
|
||||
#define __TFamilyINTERF_HPP__
|
||||
|
||||
#include "ITF.h"
|
||||
#include "TFA.h"
|
||||
|
||||
// if you want only one instance of your DLL
|
||||
// activate the next line
|
||||
#define DLL_ONLY_ONE_INSTANCE
|
||||
|
||||
//----------------------------------------------------------
|
||||
// CONSTANTS
|
||||
//----------------------------------------------------------
|
||||
|
||||
|
||||
//----------------------------------------------------------
|
||||
// Tool DLL interface class
|
||||
//----------------------------------------------------------
|
||||
class TFamily_Interface : public CPA_ToolDLLBase
|
||||
{
|
||||
private:
|
||||
long m_lNbUnloadedFamilies;
|
||||
BOOL m_bCompleteLoad;
|
||||
public:
|
||||
BOOL m_bLevelLoad;
|
||||
public:
|
||||
TFamily_Interface(void);
|
||||
//~TFamily_Interface(void);
|
||||
|
||||
|
||||
//====================================================================================
|
||||
//========================= COMMON DLL FUNCTIONS OVERLOAD ============================
|
||||
//====================================================================================
|
||||
|
||||
|
||||
// ACP MEssages Functions overload
|
||||
void fn_vConstruct (void);
|
||||
void fn_vJustAfterRegistered (void);
|
||||
void fn_vLevelChanges (void);
|
||||
|
||||
// Windows MEssages Functions overload
|
||||
|
||||
// to update lists of reachable objects
|
||||
|
||||
// for changes
|
||||
|
||||
// editor Modifs
|
||||
|
||||
// insert
|
||||
|
||||
// moves
|
||||
|
||||
//Menus
|
||||
BOOL fn_bDefineSubMenu (EDT_SubMenu *_p_oEDTSubMenu);
|
||||
void _OnSubMenuCommand (EDT_SubMenu *_p_oEDTSubMenu,UINT uiMsgID);
|
||||
|
||||
//Reachable Objects
|
||||
BOOL fn_bLoadBaseObject (CPA_BaseObject *p_oObject);
|
||||
// Current Editor
|
||||
|
||||
//====================================================================================
|
||||
//=========================== TOOL DLL FUNCTIONS OVERLOAD ============================
|
||||
//====================================================================================
|
||||
|
||||
|
||||
// To communicate with that editor
|
||||
long OnQueryAction (CPA_EditorBase *p_oSender, WPARAM, LPARAM);
|
||||
long OnQueryInfos (CPA_EditorBase *p_oSender, WPARAM, LPARAM);
|
||||
//====================================================================================
|
||||
//=========================== FAMILY TOOL DLL SPECIFIC FUNCTIONS =====================
|
||||
//====================================================================================
|
||||
|
||||
protected:
|
||||
void mfn_vLoadAllFamilies(); // find all families and call for each the mfn_p_oLoadAFamily function
|
||||
long mfn_lGetChannel(tdstChannelInfoSearch *_p_stChannelInfo);
|
||||
void mfn_vLoadPreferences();
|
||||
void mfn_vSavePreferences();
|
||||
void mfn_vCreateUnloadedFamilies();
|
||||
void mfn_vCreateLoadedFamilies();
|
||||
void mfn_vLoadFamilies();
|
||||
|
||||
};
|
||||
|
||||
extern tdstDLLIdentity g_stTFamilyIdentity;
|
||||
|
||||
#endif // __TFamilyINTERF_HPP__
|
18
Rayman_X/cpa/tempgrp/TFa/inc/StdAfx.h
Normal file
18
Rayman_X/cpa/tempgrp/TFa/inc/StdAfx.h
Normal file
@@ -0,0 +1,18 @@
|
||||
// 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__
|
||||
|
||||
#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__
|
||||
|
101
Rayman_X/cpa/tempgrp/TFa/inc/TFA.rc
Normal file
101
Rayman_X/cpa/tempgrp/TFa/inc/TFA.rc
Normal file
@@ -0,0 +1,101 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "TFA_Res.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// French (France) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_DLG_LOAD DIALOG DISCARDABLE 0, 0, 142, 222
|
||||
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
|
||||
CAPTION "Load Families"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "Load",IDOK,7,201,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,85,201,50,14
|
||||
LISTBOX IDC_LB_FAMILIES,7,23,126,169,LBS_SORT |
|
||||
LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL |
|
||||
WS_TABSTOP
|
||||
LTEXT "List of not loaded families",IDC_TEXT,7,7,128,8
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO DISCARDABLE
|
||||
BEGIN
|
||||
IDD_DLG_LOAD, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 135
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 215
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"TFA_Res.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
#endif // French (France) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
19
Rayman_X/cpa/tempgrp/TFa/inc/TFA_Res.h
Normal file
19
Rayman_X/cpa/tempgrp/TFa/inc/TFA_Res.h
Normal file
@@ -0,0 +1,19 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by TFA.rc
|
||||
//
|
||||
#define IDD_DLG_LOAD 101
|
||||
#define IDC_LB_FAMILIES 1000
|
||||
#define IDC_TEXT 1001
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_3D_CONTROLS 1
|
||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1002
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
67
Rayman_X/cpa/tempgrp/TFa/inc/dlgload.hpp
Normal file
67
Rayman_X/cpa/tempgrp/TFa/inc/dlgload.hpp
Normal file
@@ -0,0 +1,67 @@
|
||||
#if !defined(AFX_DLGLOAD_HPP__C0AF82E3_C60F_11D0_B17D_0060973673C5__INCLUDED_)
|
||||
#define AFX_DLGLOAD_HPP__C0AF82E3_C60F_11D0_B17D_0060973673C5__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// dlgload.hpp : header file
|
||||
#include "TFA_Res.h"
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDlgLoad dialog
|
||||
|
||||
class CDlgLoad : public CDialog
|
||||
{
|
||||
//CPA2 Stegaru Cristian 98-06
|
||||
private:
|
||||
CPA_EditorBase *m_pActorDLL;
|
||||
//End CPA2 Stegaru Cristian 98-06
|
||||
|
||||
public:
|
||||
CPA_List<CPA_BaseObject> m_oListOfLoadedFamilies;
|
||||
CPA_BaseObjectList *m_p_oListOfFamilies;
|
||||
|
||||
// Construction
|
||||
public:
|
||||
CDlgLoad(CWnd* pParent = NULL); // standard constructor
|
||||
//CPA2 Stegaru Cristian 98-06
|
||||
void mfn_vSetActorDLL (CPA_EditorBase *pActorDLL) { m_pActorDLL = pActorDLL;}
|
||||
//End CPA2 Stegaru Cristian 98-06
|
||||
|
||||
void fn_vSetFamilyList (CPA_BaseObjectList *_p_oListOfFamilies) { m_p_oListOfFamilies = _p_oListOfFamilies; }
|
||||
CPA_List<CPA_BaseObject> *fn_p_oGetListOfSelectedFamilies(void) { return &m_oListOfLoadedFamilies; }
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CDlgLoad)
|
||||
enum { IDD = IDD_DLG_LOAD };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CDlgLoad)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CDlgLoad)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnSize(UINT nType, int cx, int cy);
|
||||
virtual void OnOK();
|
||||
afx_msg void OnSelchangeLbFamilies();
|
||||
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
|
||||
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_DLGLOAD_HPP__C0AF82E3_C60F_11D0_B17D_0060973673C5__INCLUDED_)
|
Reference in New Issue
Block a user