Add rayman2 source files

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

View File

@@ -0,0 +1,123 @@
//#################################################################################
//
// BASE DEFINITION CLASS OF DLL interface Modification
//
//#################################################################################
//
//
#ifndef __ACMODIF_HPP__
#define __ACMODIF_HPP__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
class CPA_Family;
class CPA_Anim;
class CPA_Action;
class CPA_State;
class TAction_Interface;
#include "TAC.h"
///////////////////////////////////////////////////////////////////////////////
// class Action_New
class Action_New : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Family *m_p_oFamily;
CPA_Action *m_p_oAction;
char *m_szName;
public:
Action_New(TAction_Interface *_p_oParentDLL, CPA_Family *_p_oFamily, char *_szNewName);
~Action_New();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class Action_Copy
class Action_Copy : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Family *m_p_oFamily;
CPA_Action *m_p_oActionSource;
CPA_Action *m_p_oActionTarget;
CPA_List<CPA_State> m_oListOfStates;
public:
Action_Copy(TAction_Interface *_p_oParentDLL, CPA_Family *_p_oFamily,
CPA_Action *_p_oAction);
~Action_Copy();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class Action_Rename
class Action_Rename : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Action *m_p_oAction;
char *m_szNewName;
public:
Action_Rename(TAction_Interface *_p_oParentDLL, CPA_Action *_p_oAction, char *_szNewName);
~Action_Rename();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class Action_Delete
class Action_Delete : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Family *m_p_oFamily;
CPA_Action *m_p_oAction;
CPA_List<CPA_State> m_oListOfStates;
CPA_List<tdstTSIState> m_oListOfTransitionalStates;
CPA_EditorBase *m_p_oOACDLL;
CPA_State *m_p_oDefaultState;
public:
Action_Delete(TAction_Interface *_p_oParentDLL, CPA_Family *_p_oFamily, CPA_Action *_p_oAction);
~Action_Delete();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class Action_DelAllStates
class Action_DelAllStates : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Family *m_p_oFamily;
CPA_Action *m_p_oAction;
CPA_State *m_p_oDefaultState;
CPA_List<CPA_State> m_oListOfStates;
public:
Action_DelAllStates(TAction_Interface *_p_oParentDLL, CPA_Family *_p_oFamily, CPA_Action *_p_oAction);
~Action_DelAllStates();
// actions
BOOL Do();
BOOL Undo();
};
#endif //__ACMODIF_HPP__

View File

@@ -0,0 +1,255 @@
/*=============================================================================
*
* Filename: ACInterf.hpp
* Version: 1.0
* Date: 30/12/96
* Author: Marc Trabucato
*
* Description: description of TAction_Interface class, which is the
* base class of action DLL (inherit CPA_ToolDLLBase
*
*===========================================================================*/
#ifndef __TActionINTERF_HPP__
#define __TActionINTERF_HPP__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
#ifdef ACTIVE_EDITOR
//3dos
//ACP
#include "TAC.h"
class CPA_DialogList;
class CPA_Family;
class CPA_Action;
class CPA_State;
class CDlgActionContents;
class CDlgActionList;
class CDlgState;
class CDlgAction;
class CDlgAnimList;
class CDlgNameList;
class CDlgZonesActivation;
class CDlgZAList;
class CDlgZAL;
class CPA_ZonesActivating;
class CPA_ZonesActivatingList;
class CPA_tdoNameList;
// if you want only one instance of your DLL
// activate the next line
#define DLL_ONLY_ONE_INSTANCE
//----------------------------------------------------------
// Tool DLL interface class
//----------------------------------------------------------
class TAction_Interface : public CPA_ToolDLLBase
{
protected:
BOOL m_bStateMode;
//
CSplitFrame *m_p_oSplitterLeftSTM;
CPA_DialogList *m_p_oDialogListSTM;
CDlgActionList *m_p_oDlgActionList;
CDlgActionContents *m_p_oDlgActionContents;
//
CSplitFrame *m_p_oSplitterBottomSTM;
CDlgState *m_p_oDlgState;
CDlgAnimList *m_p_oDlgAnimList;
//
CSplitFrame *m_p_oSplitterLeftZAM;
CPA_DialogList *m_p_oDialogListZAM;
CDlgNameList *m_p_oDlgNameList;
CDlgZAL *m_p_oDlgZAList;
CDlgAction *m_p_oDlgActions;
//
CSplitFrame *m_p_oSplitterBottomZAM;
CDlgZAList *m_p_oDlgZAListContent;
CDlgZonesActivation *m_p_oDlgZA;
//
long m_lEditorState;
// current values
CPA_Family *m_p_oCurrentFamily;
CPA_Action *m_p_oCurrentAction;
CPA_State *m_p_oCurrentState;
CPA_tdoNameList *m_p_oCurrentNameList;
CPA_ZonesActivatingList *m_p_oCurrentZAList;
CPA_ZonesActivating *m_p_oCurrentZA;
//
BOOL m_bAllFamilies;
CPA_Family *m_p_oCurrentAnimFamily;
// CPA_Ed_1 Mihaela Tancu begin
int m_iIndexListBox; //the index in the list box used for drag&drop of animations in the list box with states
HWND m_hDlgActionContentsHwnd; //the HWND of the action contents
// CPA_Ed_1 Mihaela Tancu end
private:
public:
TAction_Interface(void);
//~TAction_Interface(void);
// CPA_Ed_1 Mihaela Tancu begin
int mfn_iGetIndexListBox ( void) { return m_iIndexListBox; }
void mfn_iSetIndexListBox ( int iIndex) { m_iIndexListBox = iIndex; }
HWND mfn_hGetDlgActionContentsHwnd ( void) { return m_hDlgActionContentsHwnd; }
void mfn_hSetDlgActionContentsHwnd ( HWND hDlgActionContentsHwnd){ m_hDlgActionContentsHwnd = hDlgActionContentsHwnd; }
// CPA_Ed_1 Mihaela Tancu end
// get functions
CPA_Family *mfn_p_oGetCurrentFamily ( void ) { return m_p_oCurrentFamily; }
CPA_Action *mfn_p_oGetCurrentAction ( void ) { return m_p_oCurrentAction; }
CPA_State *mfn_p_oGetCurrentState ( void ) { return m_p_oCurrentState; }
CPA_tdoNameList *mfn_p_oGetCurrentNamesList ( void ) { return m_p_oCurrentNameList; }
CPA_ZonesActivatingList *mfn_p_oGetCurrentZAList ( void ) { return m_p_oCurrentZAList; }
CPA_ZonesActivating *mfn_p_oGetCurrentZA ( void ) { return m_p_oCurrentZA; }
void mfn_vSetEditMode ( BOOL _bStateMode = TRUE, BOOL _bActive = TRUE );
// select functions
void mfn_vChangeFamily ( CPA_Family *_p_oNewFamily );
void mfn_vChangeAction ( CPA_Action *_p_oAction );
void mfn_vChangeState ( CPA_State *_p_oState );
void mfn_vChangeNameList( CPA_tdoNameList *_p_oNameList );
// new functions for modif
// update display
void mfn_vSetCurrentFamily ( CPA_Family *_p_oNewFamily );
void mfn_vSetCurrentAction ( CPA_Action *_p_oAction );
void mfn_vSetCurrentState ( CPA_State *_p_oState );
void mfn_vSetCurrentNameList ( CPA_tdoNameList *_p_oList );
void mfn_vSetCurrentActionList ( int *_a_ItemList, long _lNumberOfItems );
void mfn_vSetCurrentZAList ( CPA_ZonesActivatingList *_p_oZAList );
void mfn_vSetCurrentZA ( CPA_ZonesActivating *_p_oZA );
void mfn_vAllActionsDeleted ( CPA_Family *_p_oFamily ) ;
void mfn_vActionCreated ( CPA_Family *_p_oFamily , CPA_Action *_p_oAction );
void mfn_vActionDeleted ( CPA_Family *_p_oFamily );
void mfn_vStateCreated ( CPA_Action *_p_oAction , CPA_State *_p_oState );
void mfn_vStateDeleted ( CPA_Action *_p_oAction );
void mfn_vStateChanged ( CPA_State *_p_oState , tdeChangingState _eChange) ;
void mfn_vZAListCreated ( CPA_ZonesActivatingList *_p_oZAList );
void mfn_vZAListDeleted ( CPA_tdoNameList *_p_oNameList );
void mfn_vZAToStateChanged ( CPA_List<CPA_State> *_p_oListOfStates );
void mfn_vZACreated ( CPA_ZonesActivating *_p_oZA );
void mfn_vZAChanged ( CPA_ZonesActivating *_p_oZA, int _iIndex );
void mfn_vZADeleted ( CPA_ZonesActivating *_p_oZA );
void mfn_vNotifyAllZAList ( CPA_Family *_p_oFamily, BOOL _bUpdateList = TRUE );
//====================================================================================
//========================= COMMON DLL FUNCTIONS OVERLOAD ============================
//====================================================================================
//void fn_vOnModifDrawFlag(class CPA_SuperObject *) {};
// ACP MEssages Functions overload
void fn_vJustAfterRegistered (void);
void fn_vConstruct (void);
void fn_vBeforeEngine (void);
void fn_vBeforeEditor (void);
BOOL fn_bAcceptToRunEngine (void);
BOOL fn_bAcceptToSave (void);
// Windows MEssages Functions overload
// to update lists of reachable objects
// for changes
// editor Modifs
void fn_vOnSelect (CPA_SuperObject *pEdObj, tdeTypeModif eType, tdeStatus eStatus);
// insert
// moves
// Dialog List
CPA_BaseObject *GetDialogSelection (CPA_DialogList *pDialog, CString csTypeName, tdeListDrawMode eDrawMode);
void GetListsForDialog (CPA_DialogList *pDialog);
BOOL fn_bOnSelChangeListObjects (CPA_DialogList *pDialog, CString csTypeName, CPA_BaseObject *pSelectedObject, BOOL _bUnselect);
BOOL fn_bOnDblClkListObjects (CPA_DialogList *pDialog, CString csListName, CPA_BaseObject *pSelectedObject);
void fn_vInitDefaultParameters (CPA_DialogList *pDialog);
BOOL fn_bAddEntriesToListPopup (CPA_DialogList *pDialog, CString csListName, CMenu *pMenu, UINT uiCustomEntriesStart);
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);
//Menus
BOOL fn_bDefineSubMenu (EDT_SubMenu *_p_oEDTSubMenu);
void _OnSubMenuCommand (EDT_SubMenu *_p_oEDTSubMenu,UINT uiMsgID);
BOOL fn_bDefinePopupMenu (EDT_PopUpMenu *pPopup, CPA_List<CPA_SuperObject> *pSelection, BOOL bAsCurrentEditor);
void _OnPopUpMenuCommand (UINT m_IDCmdMsg);
// Current Editor
tdePermission fn_eAcceptNewEditor (CPA_EditorBase *pNewEditor) { return C_CloseBefore; }
BOOL fn_bCanActivateEditor (CPA_List<CPA_BaseObject> *pParams);
BOOL fn_bCanCloseEditor (void);
void fn_vOnActivateEditor (CPA_List<CPA_BaseObject> *pParams, BOOL bBackActivated = FALSE);
void fn_vOnCloseEditor (void);
// To communicate with that editor
long OnQueryAction (CPA_EditorBase *p_oSender, WPARAM, LPARAM);
long OnQueryOpen (CPA_EditorBase *p_oSender, WPARAM, LPARAM);
long OnQueryClose (CPA_EditorBase *p_oSender, WPARAM, LPARAM) { return 0; }
protected:
//Check functions
BOOL mfn_bCheckStatesTransitions( CPA_Family *_p_oFamily );
BOOL mfn_bCheckFamiliesZA ( void );
BOOL mfn_bCheckFamiliesZAList ( void );
//load functions
BOOL mfn_bLoadStatesMechanics ( CPA_Family *_p_oFamily );
BOOL mfn_bLoadStatesAnimations ( CPA_Family *_p_oFamily );
// test functions
BOOL mfn_bUpdateStateBeforeRunningEngine ( CPA_Family *_p_oFamily );
BOOL mfn_bUpdateStateBeforeSaving ( CPA_Family *_p_oFamily );
BOOL mfn_bUpdateCsaListBeforeRunningEngine ( void );
BOOL mfn_bUpdateCsaListBeforeSaving ( void );
void mfn_vWriteErrorOnFile (long _lErrorType,void *_p_void);
//load function
void mfn_vLoadActions ( CPA_Family *_p_oFamily );
void mfn_vInitStateAfterLoading ( CPA_Family *_p_oFamily );
// new load functions
void mfn_vCreateEditorObjects ( CPA_Family *_p_oFamily );
void mfn_vLoadAllActions ( CPA_Family *_p_oFamily );
void mfn_vUpdateMechanics ( void );
void mfn_vUpdateAllStates ( CPA_Family *_p_oFamily );
// Shaitan => state list in the level
// update list of used actions
void mfn_vUpdateListOfUsedActions ( CPA_Family *_p_oFamily);
static SCR_tde_Anl_ReturnValue m_fn_tdeCallBackLoadUsedActions(SCR_tdst_File_Description *pfFile, char *szAction, char *szPars[], SCR_tde_Anl_Action eType);
// End Shaitan => state list in the level
// ZA changes NOTIFICATION
void mfn_vRemoveZoneFromNamesList ( CPA_tdoNameList *_p_oNameList, unsigned short _usIndex );
void mfn_vInsertZoneToNamesList ( CPA_tdoNameList *_p_oNameList, unsigned short _usIndex );
//
CPA_BaseObject *mfn_p_oCreateNewZA ( CPA_tdoNameList *_p_oName, char *_szName );
CPA_BaseObject *mfn_p_oCreateNewZAList ( CPA_tdoNameList *_p_oName, char *_szName );
void mfn_vSavePreferences ( void );
void mfn_vRestorePreferences ( void );
};
#undef extern
extern tdstDLLIdentity g_stTActionIdentity;
#endif // ACTIVE_EDITOR
#endif // __TActionINTERF_HPP__

View File

@@ -0,0 +1,85 @@
#if !defined(AFX_DLGACT_HPP__C7833E82_CCF7_11D0_B183_0060973673C5__INCLUDED_)
#define AFX_DLGACT_HPP__C7833E82_CCF7_11D0_B183_0060973673C5__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// DlgAct.hpp : header file
//
#include "TACT_Res.h"
class TAction_Interface;
class CDlgZAList;
/////////////////////////////////////////////////////////////////////////////
// CDlgAction form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
class CDlgAction : public CFormView
{
private:
TAction_Interface *m_p_oDLL;
CDlgZAList *m_p_oDlgZAList;
int *m_a_iNewSelection;
int *m_a_iLastSelection;
long m_lLastNbSelected;
long m_lNewNbSelected;
protected:
CDlgAction(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDlgAction)
// Form Data
public:
//{{AFX_DATA(CDlgAction)
enum { IDD = IDD_DLG_ACTION };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Attributes
public:
BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName,
DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext);
// Operations
public:
void mfn_vSetCurrentFamily ( CPA_Family *_p_oFamily );
void mfn_vSetParentDLL ( TAction_Interface *_p_oDLL ) { m_p_oDLL = _p_oDLL; }
void mfn_vSetDlgZAList ( CDlgZAList *_p_oDlgZAList ) { m_p_oDlgZAList = _p_oDlgZAList; }
void mfn_vSetCurrentActionList ( int *_a_ItemList, long _lNumberOfItems );
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgAction)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void mfn_vFillLBActions(CPA_Family *_p_oFamily);
virtual ~CDlgAction();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CDlgAction)
afx_msg void OnDestroy();
afx_msg void OnBtSelectall();
afx_msg void OnSelchangeListAction();
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGACT_HPP__C7833E82_CCF7_11D0_B183_0060973673C5__INCLUDED_)

View File

@@ -0,0 +1,117 @@
/*=============================================================================
*
* Filename: DlgActCt.hpp : header file
* Version: 1.0
* Date: 02/01/97
* Author: V.L.
*
* Description: description of Form view class for action content
*
*===========================================================================*/
#ifndef __DLGACTCT_HPP_
#define __DLGACTCT_HPP_
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "TAct_res.h"
class TAction_Interface;
class CPA_Action;
class CPA_State;
/*=============================================================================
* CDlgActionContents class
=============================================================================*/
class CDlgActionContents : public CFormView
{
protected:
TAction_Interface* m_p_oParentDLL;
BOOL m_bFirstShow;
CFont m_oBoldFont;
CFont m_oItalicFont;
CPA_State *m_p_oStateUnderCursor;
// CPA_Ed_1 Mihaela Tancu begin
int m_iIndexListBox; //the index in the list box with states used for drag&drop the states
BOOL m_bStateDrag; //used for testing if we can drag or not the selected state
// CPA_Ed_1 Mihaela Tancu end
protected:
CDlgActionContents(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDlgActionContents)
// Form Data
public:
//{{AFX_DATA(CDlgActionContents)
enum { IDD = IDD_DLG_ACTIONCONTENTS };
//}}AFX_DATA
// Attributes
public:
BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName,
DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext);
// Operations
public:
void fn_vSetAction( CPA_Action *_p_oAction );
void fn_vSetParentDLL( TAction_Interface *_p_oDLL) { m_p_oParentDLL = _p_oDLL; }
void fn_vSetAsNextState( CPA_State *_p_oNextState);
void fn_vFillSequentialStateMenu( CMenu* _p_oMenu, CPA_Action *_p_oCurrentAction, CPA_State *_p_oFirstState);
void fn_vSetState( CPA_State *_p_oState );
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgActionContents)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CDlgActionContents (void);
void fn_vUpdateButtons (CPA_State *_p_oState);
void OnRButtonDownStatesList(MSG *pMsg);
void OnKeyDownStatesList (MSG *pMsg);
// CPA_Ed_1 Mihaela Tancu begin
BOOL OnLButtonDownStatesList(MSG *pMsg);
BOOL OnLButtonUpStatesList(MSG *pMsg);
BOOL OnMouseMoveStatesList(MSG *pMsg);
// CPA_Ed_1 Mihaela Tancu end
void OnBtCreateState (BOOL _bNormal = TRUE);
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CDlgActionContents)
afx_msg void OnDestroy();
afx_msg void OnBtDelstate();
afx_msg void OnSelchangeListStates();
afx_msg void OnBtNewstate();
afx_msg void OnBtCopystate();
afx_msg void OnBtDefaultstate();
afx_msg void OnBtDelallstates();
afx_msg void OnBtRenstate();
// CPA_Ed_1 Mihaela Tancu begin
afx_msg void OnBtUp();
afx_msg void OnBtDown();
// CPA_Ed_1 Mihaela Tancu end
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif //__DLGACTCT_HPP_
/////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,101 @@
/*=============================================================================
*
* Filename: DlgActLs.hpp : header file
* Version: 1.0
* Date: 02/01/97
* Author: V.L.
*
* Description: description of Form view class for action list
*
*===========================================================================*/
#ifndef __DLGACTLS_HPP__
#define __DLGACTLS_HPP__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "TAct_res.h"
class TAction_Interface;
class CPA_Action;
/*=============================================================================
* CDlgActionList class
=============================================================================*/
class CDlgActionList : public CFormView
{
protected:
TAction_Interface* m_p_oParentDLL;
CFont m_oBoldFont;
protected:
CDlgActionList(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDlgActionList)
// Form Data
public:
//{{AFX_DATA(CDlgActionList)
enum { IDD = IDD_DLG_ACTION_LIST };
//CListBox m_CTRL_ListAction;
//}}AFX_DATA
// Attributes
public:
BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName,
DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext);
// Operations
public:
void fn_vSetActionList ( CPA_List<CPA_Action> *_p_oListOfActions );
void fn_vSetParentDLL ( TAction_Interface *_p_oDLL ) { m_p_oParentDLL = _p_oDLL; }
void fn_vSetAction ( CPA_Action *_p_oAction );
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgActionList)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CDlgActionList();
void fn_vUpdateButtons (BOOL _bEnabled);
void OnRButtonDownActionList(MSG *pMsg);
void OnKeyDownActionList (MSG *pMsg);
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CDlgActionList)
afx_msg void OnDestroy();
afx_msg void OnSelchangeListAction();
afx_msg void OnBtCopyaction();
afx_msg void OnBtDelaction();
afx_msg void OnBtDelallaction();
afx_msg void OnBtNewaction();
afx_msg void OnBtRenameaction();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnBtEditza();
afx_msg void OnBtInitaction();
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif //__DLGACTLS_HPP__
/////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,92 @@
/*=============================================================================
*
* Filename: DlgActLs.hpp : header file
* Version: 1.0
* Date: 27/05/97
* Author: M.T.
*
* Description: description of Form view class for Actions & States Tree
*
*===========================================================================*/
#if !defined(AFX_DLGACTTR_HPP__D4ACC88E_D6A8_11D0_B18F_0060973673C5__INCLUDED_)
#define AFX_DLGACTTR_HPP__D4ACC88E_D6A8_11D0_B18F_0060973673C5__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// DlgActTr.hpp : header file
//
#include "TAct_Res.h"
/////////////////////////////////////////////////////////////////////////////
// CDlgActionTree form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
class TAction_Interface;
class CPA_Action;
class CPA_State;
class CDlgActionTree : public CFormView
{
protected:
TAction_Interface* m_p_oParentDLL;
protected:
CDlgActionTree(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDlgActionTree)
// Form Data
public:
//{{AFX_DATA(CDlgActionTree)
enum { IDD = IDD_DLG_ACTION_TREE };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Attributes
public:
// Operations
public:
void mfn_vSetCurrentState(CPA_State *_p_oState);
void mfn_vSetCurrentAction(CPA_Action *_p_oAction);
void mfn_vSetCurrentFamily(CPA_Family *_p_oFamily);
void fn_vSetParentDLL ( TAction_Interface *_p_oDLL ) { m_p_oParentDLL = _p_oDLL; }
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgActionTree)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void mfn_vFillTree(CPA_Family *_p_oFamily);
virtual ~CDlgActionTree();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CDlgActionTree)
afx_msg void OnBtCopyaction();
afx_msg void OnBtDelaction();
afx_msg void OnBtEditza();
afx_msg void OnBtNewaction();
afx_msg void OnBtRenameaction();
afx_msg void OnRclickTreeAct(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSelchangedTreeAct(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGACTTR_HPP__D4ACC88E_D6A8_11D0_B18F_0060973673C5__INCLUDED_)

View File

@@ -0,0 +1,101 @@
#if !defined(AFX_DLGANIM_HPP__C7833E83_CCF7_11D0_B183_0060973673C5__INCLUDED_)
#define AFX_DLGANIM_HPP__C7833E83_CCF7_11D0_B183_0060973673C5__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// DlgAnim.hpp : header file
//
#include "TAct_Res.h"
class TAction_Interface;
/////////////////////////////////////////////////////////////////////////////
// CDlgAnimList form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
class CDlgAnimList : public CFormView
{
private:
TAction_Interface *m_p_oParentDLL;
BOOL m_bAllFamilies;
// CPA_Ed_1 Mihaela Tancu begin
CPA_State *m_p_oStatePrevious; //the previous state of the state to move (in the list)
CPA_State *m_p_oStateTarget; //the target state before which we have to insert
// CPA_Ed_1 Mihaela Tancu end
protected:
CDlgAnimList(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDlgAnimList)
// Form Data
public:
//{{AFX_DATA(CDlgAnimList)
enum { IDD = IDD_DLG_ANIM };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Attributes
public:
BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName,
DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext);
// Operations
public:
void mfn_vSetFamily (CPA_Family *_p_oFamily);
void mfn_vSetParentDLL (TAction_Interface *_p_oDLL);
void mfn_vFillCBFamilies (void);
void mfn_vOnDrawItemListBoxAnimation(LPDRAWITEMSTRUCT lpDIS);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgAnimList)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
BOOL OnLButtonDownLbAnim (MSG* pMsg);
BOOL OnRButtonDownLbAnim (MSG* pMsg);
// CPA_Ed_1 Mihaela Tancu begin
BOOL OnLButtonUpLbAnim(MSG* pMsg);
void mfn_vCreateStatesMove(BOOL _bNormal);
// CPA_Ed_1 Mihaela Tancu end
void mfn_vFillLBAnimations (CPA_Family *_p_oFamily);
void mfn_vCreateStates (BOOL _bNormal);
virtual ~CDlgAnimList ();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CDlgAnimList)
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnBtCreatestates();
afx_msg void OnSelchangeLbAnim();
afx_msg void OnBtMore();
afx_msg void OnSelchangeComboFamily();
// CPA_Ed_1 Mihaela Tancu begin
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
// CPA_Ed_1 Mihaela Tancu end
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGANIM_HPP__C7833E83_CCF7_11D0_B183_0060973673C5__INCLUDED_)

View File

@@ -0,0 +1,62 @@
// DlgInput.hpp : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgInputText dialog
#ifndef __DLGINPUT_H__
#define __DLGINPUT_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
#include "TAct_res.h"
class CDlgInputText : public CDialog
{
// Construction
public:
CDlgInputText(CWnd* pParent = NULL); // standard constructor
// set methods
void SetTitle (char *_szTitle);
void SetMessage (char *_szMessage);
void SetPos (POINT *_pPoint);
void SetSelect (BOOL _bSelect = TRUE );
void SetDefaultValue (char *_szValue);
// get methods
char * GetInputText (void);
// Dialog Data
//{{AFX_DATA(CDlgInputText)
enum { IDD = IDD_DLG_INPUTTEXT };
CString m_Data_EditText;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgInputText)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CString m_oCstMessage;
CString m_oCstTitle;
POINT m_xPoint;
BOOL m_bSelect;
CString m_csDefaultValue;
// Generated message map functions
//{{AFX_MSG(CDlgInputText)
afx_msg void OnDestroy();
virtual void OnOK();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif //__DLGINPUT_H__

View File

@@ -0,0 +1,85 @@
#if !defined(AFX_DLGNMLST_HPP__C7833E81_CCF7_11D0_B183_0060973673C5__INCLUDED_)
#define AFX_DLGNMLST_HPP__C7833E81_CCF7_11D0_B183_0060973673C5__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// DlgNmLst.hpp : header file
//
#include "TACT_Res.h"
#include "TAC.h"
class TAction_Interface;
class CPA_Family;
/////////////////////////////////////////////////////////////////////////////
// CDlgNameList form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
class CDlgNameList : public CFormView
{
protected:
TAction_Interface *m_p_oDLL;
CPA_Family *m_p_oCurrentFamily;
BOOL m_bFirstShow;
protected:
CDlgNameList(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDlgNameList)
// Form Data
public:
//{{AFX_DATA(CDlgNameList)
enum { IDD = IDD_DLG_NAMESLIST };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Attributes
public:
BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName,
DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext);
// Operations
public:
void mfn_vSetFamily (CPA_Family *_p_oFamily);
void mfn_vSetParentDLL (TAction_Interface *_p_oDLL) { m_p_oDLL = _p_oDLL ; }
void mfn_vSetCurrentNamesList (CPA_tdoNameList *_p_oNamesList);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgNameList)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void mfn_vFillLBNames(CPA_Family *_p_oFamily, tde_ZoneType _eZone);
tde_ZoneType mfn_vGetZoneType();
void mfn_vSetZoneType(tde_ZoneType _eType);
virtual ~CDlgNameList();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CDlgNameList)
afx_msg void OnDestroy();
afx_msg void OnRadioZdx();
afx_msg void OnBtEditstate();
afx_msg void OnSelchangeLbNames();
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGNMLST_HPP__C7833E81_CCF7_11D0_B183_0060973673C5__INCLUDED_)

View File

@@ -0,0 +1,57 @@
// DlgNwSt.hpp : header file
//
#ifndef __DLGNWST_HPP__
#define __DLGNWST_HPP__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
#include "TAct_Res.h"
/////////////////////////////////////////////////////////////////////////////
// CDlgNewState dialog
class CDlgNewState : public CDialog
{
protected:
CPoint m_xPoint;
public:
CString csName;
BOOL bNormal;
// Construction
public:
CDlgNewState(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDlgNewState)
enum { IDD = IDD_DLG_NEWSTATE };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgNewState)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgNewState)
virtual void OnOK();
afx_msg void OnDestroy();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
void SetPos(POINT *_pPoint);
};
#endif //__DLGNWST_HPP__

View File

@@ -0,0 +1,63 @@
#if !defined(AFX_DLGSELECT_HPP__361ABEF2_1B06_11D1_B214_0060973673C5__INCLUDED_)
#define AFX_DLGSELECT_HPP__361ABEF2_1B06_11D1_B214_0060973673C5__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// DlgSelect.hpp : header file
//
#include "Tact_Res.h"
/////////////////////////////////////////////////////////////////////////////
// CDlgSelection dialog
class CDlgSelection : public CDialog
{
// Construction
public:
CDlgSelection(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDlgSelection)
enum { IDD = IDD_DLG_SELECTION };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
private:
CPA_Family *m_p_oFamily;
public:
CPA_List<CPA_BaseObject> m_oListOfSelectedObjects;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgSelection)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
public:
void mfn_vSetFamily(CPA_Family *_p_oFamily);
protected:
// Generated message map functions
//{{AFX_MSG(CDlgSelection)
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg void OnDestroy();
virtual BOOL OnInitDialog();
virtual void OnCancel();
virtual void OnOK();
afx_msg void OnDblclkLbox();
//}}AFX_MSG
void OnDrawItemListBox(LPDRAWITEMSTRUCT lpDrawItemStruct);
void mfn_vFillListWithSelectedObjects(void);
void mfn_vFillListBox(void);
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGSELECT_HPP__361ABEF2_1B06_11D1_B214_0060973673C5__INCLUDED_)

View File

@@ -0,0 +1,141 @@
/*=============================================================================
*
* Filename: DlgState.hpp : implementation file
* Version: 1.0
* Date: 02/01/97
* Author: Marc Trabucato & V.L.
*
* Description: Definition of a FormView Dialog class for animaction
* parameters
*
*===========================================================================*/
#ifndef __DLGSTATE_HPP__
#define __DLGSTATE_HPP__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
#include "TAct_res.h"
class TAction_Interface;
class CPA_State;
class CPA_Family;
class CPA_Action;
class State_ModifTransitionExtended;
typedef enum tdeDisplayType_
{
E_dt_All,
E_dt_Prohibited,
E_dt_Allowed
} tdeDisplayType;
/*=============================================================================
* CDlgstate class
=============================================================================*/
class CDlgState : public CFormView
{
protected:
TAction_Interface* m_p_oParentDLL;
BOOL m_bFirstShow;
CDC m_oAllowedDC;
CDC m_oProhibitedDC;
CBitmap m_oAllowedBitmap;
CBitmap m_oProhibitedBitmap;
//ANNECY CT 11/02/98{
CDC m_oFluidDC;
CBitmap m_oFluidBitmap;
//ENDANNECY CT}
CFont m_oBoldFont;
BOOL m_bAllFamilies;
tdeDisplayType m_eTransitionTypeDisplay;
protected:
CDlgState(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDlgState)
// Form Data
public:
//{{AFX_DATA(CDlgState)
enum { IDD = IDD_DLG_STATE };
//}}AFX_DATA
// Attributes
public:
BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName,
DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext);
// Operations
public:
void fn_vSetCurrentState ( CPA_State *_p_oState );
void mfn_vSetCurrentFamily ( CPA_Family *_p_oFamily );
void mfn_vFillFamilyList ( void );
void mfn_vFillStateList (CPA_State *_p_oState);
void mfn_vFillAnimationList (CPA_Family *_p_oFamily);
void mfn_vFillMecaList ( void );
void fn_vSetParentDLL ( TAction_Interface *_p_oDLL) { m_p_oParentDLL = _p_oDLL; }
void mfn_vStateChanged ( CPA_State *_p_oState , tdeChangingState _eChange);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgState)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
~CDlgState();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
void OnBtExtendfamily ( void );
void OnBtExtendaction ( void );
void OnBtExtendselection ( void );
void mfn_vOnDrawItemComboBoxNextState ( LPDRAWITEMSTRUCT lpDIS );
void mfn_vOnDrawItemListBoxAction ( LPDRAWITEMSTRUCT lpDIS );
void mfn_vOnDrawItemComboBoxInterruptState ( LPDRAWITEMSTRUCT lpDIS );
BOOL mfn_bOnLButtonDownListBoxAction ( MSG *pMsg );
BOOL mfn_bOnRButtonDownListBoxAction ( MSG *pMsg );
void mfn_vFillInterruptActionList ( void );
BOOL mfn_bOnChangeTransitions ( int _iIndex );
void mfn_vSetTransitions ( tdeTransitionState _eState );
int SelectStringExact ( CComboBox *_pCB, const CString _csEntry );
void mfn_vSetDisplayTransition ( tdeDisplayType _eDisplay );
BOOL mfn_bGetTSIAndActionFromIndex ( int _iIndex, tdstTransitionStateInfo **_pp_stTSI, CPA_Action **_pp_oAction);
void fn_vExtendTransitions ( State_ModifTransitionExtended *_p_oModif );
void mfn_vDisplayCustomBits ( CPA_State *_p_oState );
// Generated message map functions
//{{AFX_MSG(CDlgState)
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDIS);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnDestroy();
afx_msg void OnDeltaposSpinReplay(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDeltaposSpinSpeed(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnChangeReplay();
afx_msg void OnChangeSpeed();
afx_msg void OnCheckDefault();
afx_msg void OnCheckDisplay();
afx_msg void OnSelchangeComboAnimation();
afx_msg void OnSelchangeComboInterruptstate();
afx_msg void OnSelchangeComboNextstate();
afx_msg void OnSelchangeComboMechanic();
afx_msg void OnSelchangeListInterruptaction();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnBtMore();
afx_msg void OnSelchangeComboFamily();
afx_msg void OnCBClicked(UINT nID);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif // __DLGSTATE_HPP__

View File

@@ -0,0 +1,113 @@
// DlgZA.hpp : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgZonesActivation form view
#ifndef __DLGZA_HPP__
#define __DLGZA_HPP__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
class TAction_Interface;
class CPA_State;
class CDlgZAList;
#include "TAct_res.h"
class CDlgZonesActivation : public CFormView
{
protected:
CDlgZonesActivation(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDlgZonesActivation)
// Form Data
public:
//{{AFX_DATA(CDlgZonesActivation)
enum { IDD = IDD_DLG_ZA };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Attributes
protected:
TAction_Interface *m_p_oDLL;
CDlgZAList *m_p_oDlgZAList;
CPA_tdoNameList *m_p_oCurrentNamesList;
CPA_ZonesActivating *m_p_oCurrentZA;
CDC m_oCrossDC;
CBitmap m_oCrossBitmap;
BOOL m_bFirstShow;
CFont m_oItalicFont;
CFont m_oBoldFont;
// Attributes
protected:
BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName,
DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext);
// Operations
public:
void mfn_vSetParentDLL (TAction_Interface *_p_oDLL) { m_p_oDLL = _p_oDLL ; }
void mfn_vSetDlgZAList (CDlgZAList *_p_oDlgZAList) { m_p_oDlgZAList = _p_oDlgZAList; }
void mfn_vSetCurrentNamesList (CPA_tdoNameList *_p_oNamesList);
void mfn_vUpdateDisplay (CPA_ZonesActivating *_p_oZA, int _iIndex);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgZonesActivation)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CDlgZonesActivation();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CDlgZonesActivation)
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnDestroy();
afx_msg void OnSelchangeZAList();
afx_msg void OnBtAdd();
afx_msg void OnBtRename();
afx_msg void OnBtCopy();
afx_msg void OnBtDelete();
afx_msg void OnBtDefault();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDblclkListZa();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
void OnDrawZonesListItem (LPDRAWITEMSTRUCT lpDIS);
void OnDrawZAListItem (LPDRAWITEMSTRUCT lpDIS);
BOOL mfn_bOnLButtonDownLBZones (MSG *pMsg);
BOOL mfn_bOnKeyDownLBZones (MSG *pMsg);
BOOL mfn_bOnRButtonDownLBZA (MSG *pMsg);
void mfn_vFillLBZA (CPA_tdoNameList *_p_oNamesList);
void mfn_vFillLBZones (CPA_tdoNameList *_p_oNamesList);
void mfn_vUpdateFlags (CPA_ZonesActivating *_p_oZA);
void mfn_vUpdateButtons (void);
int mfn_iSelectStringExact (CListBox *_pLB, CString _csEntry);
BOOL mfn_bVerifyNamesListCoherence (BOOL _bUpdateDisplay = TRUE);
};
#endif //__DLGZA_HPP__
/////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,93 @@
#if !defined(AFX_DLGZAL_HPP__0521A7CF_DB1A_11D0_B19B_0060973673C5__INCLUDED_)
#define AFX_DLGZAL_HPP__0521A7CF_DB1A_11D0_B19B_0060973673C5__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// DlgZAL.hpp : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgZAL form view
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "TAct_Res.h"
class TAction_Interface;
class CPA_tdoNameList;
class CPA_ZonesActivatingList;
class CDlgZAL : public CFormView
{
protected:
TAction_Interface *m_p_oDLL;
CPA_tdoNameList *m_p_oCurrentNamesList;
CPA_ZonesActivatingList *m_p_oCurrentZAList;
BOOL m_bFirstShow;
protected:
CDlgZAL(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDlgZAL)
// Form Data
public:
//{{AFX_DATA(CDlgZAL)
enum { IDD = IDD_DLG_ZA_LIST };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Attributes
public:
BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName,
DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext);
// Operations
public:
void mfn_vSetParentDLL ( TAction_Interface *_p_oDLL) { m_p_oDLL = _p_oDLL ; }
void mfn_vSetCurrentZAList ( CPA_ZonesActivatingList *_p_oZAList );
void mfn_vSetCurrentNameList ( CPA_tdoNameList *_p_oNameList );
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgZAL)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
int mfn_iSelectStringExact( CListBox *_pLB, CString _csName);
void mfn_vUpdateButtons();
void mfn_vFillLBZAList(CPA_tdoNameList *_p_oNameList);
virtual ~CDlgZAL();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CDlgZAL)
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnBtCopy();
afx_msg void OnBtDelete();
afx_msg void OnBtNew();
afx_msg void OnBtRename();
afx_msg void OnSelchangeLbZalist();
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGZAL_HPP__0521A7CF_DB1A_11D0_B19B_0060973673C5__INCLUDED_)

View File

@@ -0,0 +1,101 @@
// DlgZALst.hpp : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgZAList dialog
#ifndef __DLGZALST_HPP__
#define __DLGZALST_HPP__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "TAct_Res.h"
#include "TAC.h"
class CPA_Family;
class CPA_State;
class CPA_Action;
class TAction_Interface;
class CPA_tdoNameList;
class CPA_ZonesActivatingList;
class CPA_ZonesActivating;
class CDlgZonesActivation;
class CDlgZAList : public CFormView
{
protected:
TAction_Interface *m_p_oDLL;
CPA_ZonesActivatingList *m_p_oCurrentZAList;
CPA_ZonesActivating *m_p_oCurrentZA;
CPA_List<CPA_State> m_oListOfSelectedStates;
CPA_List<CPA_BaseObject> m_oListOfZA;
CPA_Action *m_p_oCurrentAction;
BOOL m_bFirstShow;
CDlgZonesActivation *m_p_oDlgZA;
// Construction
protected:
CDlgZAList(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDlgZAList)
// Attributes
public:
BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName,
DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext);
public:
void mfn_vSetZA (CPA_ZonesActivating *_p_oZA, BOOL _bApply = TRUE );
void mfn_vSetParentDLL ( TAction_Interface *_p_oDLL) { m_p_oDLL = _p_oDLL ; }
void mfn_vSetDlgZA ( CDlgZonesActivation *_p_oDlgZA ) { m_p_oDlgZA = _p_oDlgZA; }
void mfn_vSetCurrentNamesList( CPA_tdoNameList *_p_oNameList);
void mfn_vSetCurrentZAList ( CPA_ZonesActivatingList *_p_oZAList );
void mfn_vAddAction ( CPA_Action *_p_oAction, BOOL _bReplace = FALSE );
void mfn_vUpdateStates ( CPA_List<CPA_State> *_p_oListOfState );
// Dialog Data
//{{AFX_DATA(CDlgZAList)
enum { IDD = IDD_DLG_ZALIST };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgZAList)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgZAList)
//afx_msg void OnBtAction();
afx_msg void OnDestroy();
afx_msg void OnBtExtendaction();
afx_msg void OnBtExtendfamily();
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg void OnSelchangeLbStates();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
BOOL OnRButtonDownLbStates ( MSG* pMsg );
void mfn_vFillLBStates ( CPA_Action *_p_oAction, BOOL _bReplace = FALSE );
void OnDrawListItem ( LPDRAWITEMSTRUCT lpDIS );
void mfn_vUpdateButtons ( void );
int mfn_iSelectStringExact ( CListBox *_pLB, CString _csEntry );
};
#endif //__DLGZALST_HPP__

View File

@@ -0,0 +1,104 @@
//#################################################################################
//
// BASE DEFINITION CLASS OF DLL interface Modification
//
//#################################################################################
//
//
#ifndef __FAMODIF_HPP__
#define __FAMODIF_HPP__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
class CPA_Family;
class CPA_Action;
class CPA_State;
class TAction_Interface;
typedef enum
{
C_eNone,
C_eMode,
C_eFamily,
C_eAction,
C_eActionList,
C_eState,
C_eNameList,
C_eZAList,
C_eZA
} tde_Change;
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// class Family_DelAllActions
class Family_DelAllActions : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Family *m_p_oFamily;
CPA_List<CPA_Action> m_oListOfActionsDeleted;
CPA_List<CPA_State> m_oListOfStates;
CPA_List<CPA_State> m_oListOfInitialStates;
CPA_Action *m_p_oInitialAction;
public:
Family_DelAllActions(TAction_Interface *_p_oParentDLL, CPA_Family *_p_oFamily);
~Family_DelAllActions();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// class Family_StateChange
class Family_StateChange : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
long m_lTypeOfChange;
void *m_p_vBefore;
void *m_p_vAfter;
long m_lBefore;
long m_lAfter;
//statement
public:
Family_StateChange(TAction_Interface *_p_oParentDLL, long _lTypeOfChange,
void *_p_vAfter, void *_p_vBefore,
long _lAfter = 0, long _lBefore = 0);
~Family_StateChange();
// actions
BOOL Do();
BOOL Undo();
protected:
BOOL mfn_bSomethingToDo(void);
BOOL mfn_vMakeChange(void *_p_vValue, long _lValue);
};
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// class Family_ModifInitialAction
class Family_ModifInitialAction : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Family *m_p_oFamily;
CPA_Action *m_p_oNewInitialAction;
CPA_Action *m_p_oPreviousInitialAction;
//Actionment
public:
Family_ModifInitialAction(TAction_Interface *_p_oParentDLL, CPA_Family *_p_oFamily, CPA_Action *_p_oNewInitialAction);
~Family_ModifInitialAction();
// actions
BOOL Do();
BOOL Undo();
};
#endif // __FAMODIF_HPP__

View File

@@ -0,0 +1,435 @@
//#################################################################################
//
// BASE DEFINITION CLASS OF DLL interface Modification
//
//#################################################################################
//
//
#ifndef __STMODIF_HPP__
#define __STMODIF_HPP__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
class CPA_Family;
class CPA_Animation;
class CPA_Action;
class CPA_State;
class TAction_Interface;
tdstTransitionStateInfo;
#include "TAC.h"
///////////////////////////////////////////////////////////////////////////////
// typedef
typedef struct tdstIAInfo_
{
CPA_State *p_oOwnerState;
CPA_Action *p_oActionThatInterrupt;
CPA_State *p_oTransitionalState;
BOOL bActive;
} tdstIAInfo;
///////////////////////////////////////////////////////////////////////////////
// class State_New
class State_New : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Action *m_p_oAction;
CPA_State *m_p_oState;
CPA_Animation *m_p_oAnim;
char *m_szName;
BOOL m_bNormalState;
CPA_SaveObject *m_p_oMeca;
public:
State_New(TAction_Interface *_p_oParentDLL, CPA_Action *_p_oAction,
CPA_Animation *_p_oAnim, char *_szNewName, BOOL _bNormalState, CPA_SaveObject *_p_oMeca);
~State_New();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class State_CreateFromAnims
class State_CreateFromAnims : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Action *m_p_oAction;
CPA_List<CPA_State> m_oListOfCreatedStates;
CPA_List<CPA_Animation> m_oListOfAnimations;
BOOL m_bNormalState;
CPA_SaveObject *m_p_oMeca;
public:
State_CreateFromAnims(TAction_Interface *_p_oParentDLL, CPA_Action *_p_oAction);
~State_CreateFromAnims();
// init
void mfn_vAddAnim (CPA_Animation *_p_oAnim);
void mfn_vSetNormalState (BOOL _bNormalState);
void mfn_vSetMecaCard (CPA_SaveObject *_p_oMeca);
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class State_Copy
class State_Copy : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Action *m_p_oAction;
CPA_State *m_p_oStateSource;
CPA_State *m_p_oStateTarget;
public:
State_Copy(TAction_Interface *_p_oParentDLL, CPA_Action *_p_oAction,
CPA_State *_p_oState);
~State_Copy();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class State_Rename
class State_Rename : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Action *m_p_oAction;
CPA_State *m_p_oState;
char *m_szNewName;
public:
State_Rename(TAction_Interface *_p_oParentDLL, CPA_Action *_p_oAction,
CPA_State *_p_oState, char *_szNewName);
~State_Rename();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class State_Delete
class State_Delete : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Action *m_p_oAction;
CPA_State *m_p_oState;
BOOL m_bIsDefault;
// CPA_Ed_1 Mihaela Tancu begin
CPA_State *m_p_oStateNext; // the next state of the state be delete
CPA_State *m_p_Previous; //the previous state of the state to delete (in the list)
CPA_State *m_p_PreviousNext; //the next state of its previous state
BOOL m_bDefault; //true if the state to delete is default
// CPA_Ed_1 Mihaela Tancu end
public:
State_Delete(TAction_Interface *_p_oParentDLL, CPA_Action *_p_oAction,
CPA_State *_p_oState);
~State_Delete();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class State_Default
class State_Default : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Action *m_p_oAction;
CPA_State *m_p_oNewDefaultState;
public:
State_Default(TAction_Interface *_p_oParentDLL, CPA_Action *_p_oAction,
CPA_State *_p_oNewState);
~State_Default();
// actions
BOOL Do();
BOOL Undo();
protected:
BOOL mfn_vSwapDefaultState();
};
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// class State_ModifAnim
class State_ModifAnim : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_State *m_p_oState;
CPA_Animation *m_p_oNewAnim;
public:
State_ModifAnim(TAction_Interface *_p_oParentDLL, CPA_State *_p_oState,
CPA_Animation *_p_oNewAnim);
~State_ModifAnim();
// actions
BOOL Do();
BOOL Undo();
protected:
BOOL mfn_vSwapAnimation();
};
///////////////////////////////////////////////////////////////////////////////
// class State_ModifNextState
class State_ModifNextState : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_State *m_p_oState;
CPA_State *m_p_oNewNextState;
public:
State_ModifNextState(TAction_Interface *_p_oParentDLL, CPA_State *_p_oState,
CPA_State *_p_oNewNextState);
~State_ModifNextState();
// actions
BOOL Do();
BOOL Undo();
protected:
BOOL mfn_vSwapNextState();
};
///////////////////////////////////////////////////////////////////////////////
// class State_ModifSpeed
class State_ModifSpeed : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_State *m_p_oState;
signed char m_cNewSpeed;
BOOL m_bFirstDo;
public:
State_ModifSpeed(TAction_Interface *_p_oParentDLL, CPA_State *_p_oState, signed char m_cNewSpeed);
~State_ModifSpeed();
// actions
BOOL Do();
BOOL Undo();
protected:
BOOL mfn_vSwapSpeed();
};
///////////////////////////////////////////////////////////////////////////////
// class State_ModifReplay
class State_ModifReplay : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_State *m_p_oState;
unsigned char m_ucNewReplay;
BOOL m_bFirstDo;
public:
State_ModifReplay(TAction_Interface *_p_oParentDLL, CPA_State *_p_oState, unsigned char _ucNewSpeed);
~State_ModifReplay();
// actions
BOOL Do();
BOOL Undo();
protected:
BOOL mfn_vSwapReplay();
};
///////////////////////////////////////////////////////////////////////////////
// class State_ModifMechanic
class State_ModifMechanic : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_State *m_p_oState;
CPA_SaveObject *m_p_oNewMeca;
public:
State_ModifMechanic(TAction_Interface *_p_oParentDLL, CPA_State *_p_oState,CPA_SaveObject *_p_oNewMeca);
~State_ModifMechanic();
// actions
BOOL Do();
BOOL Undo();
protected:
BOOL mfn_vSwapMecaCard();
};
///////////////////////////////////////////////////////////////////////////////
// class State_ModifTransition
class State_ModifTransition : public CPA_Modif
{
public:
TAction_Interface *m_p_oParentDLL;
CPA_State *m_p_oState;
tdstTransitionStateInfo m_stNextTransition;
protected:
private:
public:
State_ModifTransition( TAction_Interface *_p_oParentDLL, CPA_State *_p_oState, CPA_Action *_p_oAction,
tdeTransitionState _eState, CPA_State *_p_oStatoToGo = NULL );
~State_ModifTransition();
// actions
BOOL Do();
BOOL Undo();
protected:
BOOL mfn_bMakeDo();
};
///////////////////////////////////////////////////////////////////////////////
// class State_ModifTransitionExtended
class State_ModifTransitionExtended : public CPA_Modif
{
public:
TAction_Interface *m_p_oParentDLL;
CPA_State *m_p_oCurrentState;
CPA_List<CPA_State> m_oListOfStates;
CPA_List<tdstTransitionStateInfo> m_oListOfTSI;
CPA_List<tdstTSIState> m_oListOfTSIState;
BOOL m_bEndCreation;
protected:
private:
public:
State_ModifTransitionExtended( TAction_Interface *_p_oParentDLL, CPA_State *_p_oCurrentState );
~State_ModifTransitionExtended();
void mfn_vAddState ( CPA_State *_p_oState );
void mfn_vAddTransition ( CPA_Action *_p_oAction, tdeTransitionState _eState, CPA_State *_p_oStatoToGo = NULL );
void mfn_vEndCreation ( void );
// actions
BOOL Do();
BOOL Undo();
protected:
BOOL mfn_bMakeDo();
};
///////////////////////////////////////////////////////////////////////////////
// class State_SwapDefaultTransitionStatus
class State_SwapDefaultTransitionStatus : public CPA_Modif
{
public:
TAction_Interface *m_p_oParentDLL;
CPA_State *m_p_oState;
tdeTransitionState m_eNextState;
protected:
private:
public:
State_SwapDefaultTransitionStatus( TAction_Interface *_p_oParentDLL, CPA_State *_p_oState );
~State_SwapDefaultTransitionStatus();
// actions
BOOL Do();
BOOL Undo();
protected:
BOOL mfn_bMakeDo();
};
// CPA_Ed_1 Mihaela Tancu begin
///////////////////////////////////////////////////////////////////////////////
// class State_Move
class State_Move : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Action *m_p_oAction;
CPA_State *m_p_oPrevStateToMove; //the previous state in list of the state to move
CPA_State *m_p_oStateToMove; //the state to move
CPA_State *m_p_oPrevStateTarget; //the previous state in the list of the target state before which is inserted the state to move
CPA_State *m_p_oStateTarget; //the target state
CPA_State *m_p_oPrevStateToMoveNext; //next states used for saving and restoring the next states of the states which are changing its next states
CPA_State *m_p_oStateToMoveNext;
CPA_State *m_p_oPrevStateTargetNext;
BOOL m_bDefault; //true if the state to move is default
BOOL m_bDefaultTarget; //true if the state before which is inserted the state to move is default
public:
State_Move(TAction_Interface *_p_oParentDLL, CPA_Action *_p_oAction,
CPA_State *_p_oPrevStateToMove, CPA_State *_p_oStateToMove,
CPA_State *_p_oPrevStateTarget, CPA_State *_p_oStateTarget,
CPA_State *_p_oPrevStateToMoveNext, CPA_State *_p_oStateToMoveNext,
CPA_State *_p_oPrevStateTargetNext,
BOOL _bDefault, BOOL _bDefaultTarget );
~State_Move();
void mfn_vMoveNormalState(); //move the normal state in the list box
void mfn_vMoveTransitionalState(); //move the transitional state in the list box
void mfn_vUndoMoveNormalState(); //undo the moving for the normal state
void mfn_vUndoMoveTransitionalState(); //undo the moving for the transitional state
// actions
BOOL Do();
BOOL Undo();
};
class State_CreateFromAnimsMove : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_Action *m_p_oAction;
CPA_List<CPA_State> m_oListOfCreatedStates;
CPA_List<CPA_Animation> m_oListOfAnimations;
BOOL m_bNormalState;
CPA_SaveObject *m_p_oMeca;
CPA_State *m_p_oPrevStateTarget; // the state before which is inserted the new state
CPA_State *m_p_oStateTarget; // the previous state
CPA_State *m_p_oPrevStateTargetNext; // the old Next state of the previous state
BOOL m_bDefaultTarget; // if the target state is default
public:
State_CreateFromAnimsMove(TAction_Interface *_p_oParentDLL, CPA_Action *_p_oAction,
CPA_State *_p_oPrevStateTarget, CPA_State *_p_oStateTarget,
CPA_State *_p_oPrevStateTargetNext);
~State_CreateFromAnimsMove();
// init
void mfn_vAddAnim (CPA_Animation *_p_oAnim);
void mfn_vSetNormalState (BOOL _bNormalState);
void mfn_vSetMecaCard (CPA_SaveObject *_p_oMeca);
void mfn_vDo (void);
void mfn_vDoMany (int iNumber);
void mfn_vUndoMany (int iNumber);
// actions
BOOL Do();
BOOL Undo();
};
// CPA_Ed_1 Mihaela Tancu end
class State_ModifCustomBits: public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_State *m_p_oState;
unsigned char m_ucCBNumber;
BOOL m_bFirstDo;
public:
State_ModifCustomBits(TAction_Interface *_p_oParentDLL, CPA_State *_p_oState, unsigned char _ucCBNumber);
~State_ModifCustomBits();
// actions
BOOL Do();
BOOL Undo();
protected:
BOOL mfn_vSwapCB();
};
///////////////////////////////////////////////////////////////////////////////
#endif // __STMODIF_HPP__
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

View 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__

View File

@@ -0,0 +1,113 @@
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by X:\cpa\tempgrp\TAc\inc\TAction.rc
//
#define IDD_DLG_ACTIONCONTENTS 102
#define IDD_DLG_INPUTTEXT 111
#define IDB_BITMAP_CROIX 114
#define IDD_DLG_SELECTION 122
#define IDB_BITMAP_ALLOWED 123
#define IDB_BITMAP_PROHIBITED 125
#define IDB_BITMAP_FLUID 126
#define IDC_POINTER_CURSOR 128
#define IDI_TAC_DLGBAR_ICON 129
#define IDD_DLG_STATE 166
#define IDD_DLG_ACTION_LIST 301
#define IDD_DLG_ZA 302
#define IDD_DLG_NEWSTATE 304
#define IDD_DLG_ZALIST 305
#define IDD_DLG_ACTION_TREE 306
#define IDD_DLG_NAMESLIST 308
#define IDD_DLG_ANIM 309
#define IDD_DLG_ACTION 310
#define IDC_LIST_ACTION 1000
#define IDC_BT_NEWACTION 1001
#define IDC_BT_DELACTION 1002
#define IDC_BT_COPYACTION 1003
#define IDC_BT_DELSTATE 1003
#define IDC_BT_DELALLSTATES 1004
#define IDC_BT_DELALLACTION 1004
#define IDC_EDIT_REPLAY 1005
#define IDC_BT_DEFAULTSTATE 1005
#define IDC_BT_RENAMEACTION 1005
#define IDC_BT_COPYSTATE 1006
#define IDC_EDIT_SPEED 1006
#define IDC_BT_EDITZA 1006
#define IDC_BT_RENSTATE 1007
#define IDC_BT_INITACTION 1007
#define IDC_BT_NEWSTATE 1008
#define IDC_COMBO_NEXTSTATE 1011
#define IDC_COMBO_MECHANIC 1012
#define IDC_LIST_STATES 1020
#define IDC_COMBO_ANIMATION 1021
#define IDC_LIST_INTERRUPTACTION 1022
#define IDC_COMBO_INTERRUPTSTATE 1023
#define IDC_CHECK_ALL 1024
#define IDC_CHECK_USED 1025
#define IDC_SPIN_REPLAY 1026
#define IDC_SPIN_SPEED 1027
#define IDC_STATIC_TEXT 1027
#define IDC_EDIT_TEXT 1028
#define IDC_COMBO_FAMILY 1028
#define IDC_LIST_ZONES 1031
#define IDC_RADIO_ZDD 1032
#define IDC_RADIO_ZDE 1033
#define IDC_RADIO_ZDM 1034
#define IDC_RADIO_ZMOD 1035
#define IDC_RADIO_ZDR 1035
#define IDC_LIST_ZA 1036
#define ID_RB_NORMAL 1037
#define ID_RB_TRANSITIONAL 1038
#define IDC_BT_EXTENDACTION 1038
#define IDC_BT_EXTENDFAMILY 1039
#define IDC_BT_EXTENDTO 1039
#define IDC_LB_ANIM 1040
#define IDC_BT_NEW 1040
#define IDC_BT_CREATESTATES 1041
#define IDC_ST_TRST 1041
#define IDC_BT_COPY 1041
#define IDC_ST_BORDER 1042
#define IDC_BT_RENAME 1042
#define IDC_ST_ANIM 1043
#define IDC_BT_DELETE 1043
#define IDC_BT_DEFAULT 1044
#define IDC_ST_FAMILY 1044
#define IDC_LB_NAMES 1047
#define IDC_LB_STATES 1048
#define IDC_BT_EDITSTATE 1049
#define IDC_BT_SELECTALL 1050
#define IDC_TREE_ACT 1051
#define IDC_ST_ZONES 1052
#define IDC_LB_ZALIST 1057
#define IDC_STATIC_FAMILY 1058
#define IDC_STATIC_ANIMATION 1059
#define IDC_STATIC_REPLAY 1060
#define IDC_STATIC_SPEED 1061
#define IDC_STATIC_NEXTSTATE 1062
#define IDC_STATIC_MECHANIC 1063
#define IDC_BT_MORE 1064
#define IDC_STATIC_TPLIST 1065
#define IDC_LBOX 1067
#define IDC_BT_DISPLAY 1071
#define IDC_BUTTON_UP 1073
#define IDC_BUTTON_DOWN 1074
#define IDC_CHECK_CB1 1074
#define IDC_CHECK_CB2 1075
#define IDC_CHECK_CB3 1076
#define IDC_CHECK_CB4 1077
#define IDC_CHECK_CB5 1078
#define IDC_CHECK_CB6 1079
#define IDC_CHECK_CB7 1080
#define IDC_CHECK_CB8 1081
#define IDD_DLG_ZA_LIST 3570
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 130
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1075
#define _APS_NEXT_SYMED_VALUE 103
#endif
#endif

View File

@@ -0,0 +1,383 @@
//Microsoft Developer Studio generated resource script.
//
#include "..\inc\TAct_res.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
// Cursor
//
IDC_POINTER_CURSOR CURSOR DISCARDABLE "..\\res\\Cursor1.cur"
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// 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_ACTION_LIST DIALOGEX 0, 0, 104, 133
STYLE WS_CHILD
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
LISTBOX IDC_LIST_ACTION,3,43,96,88,LBS_SORT | LBS_OWNERDRAWFIXED |
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "New",IDC_BT_NEWACTION,5,19,30,10
PUSHBUTTON "Delete",IDC_BT_DELACTION,70,19,30,10
PUSHBUTTON "Copy",IDC_BT_COPYACTION,37,19,30,10
PUSHBUTTON "Del All",IDC_BT_DELALLACTION,70,31,30,10
PUSHBUTTON "Rename",IDC_BT_RENAMEACTION,37,31,30,10
PUSHBUTTON "Swap to Activation Mode",IDC_BT_EDITZA,5,2,95,14,0,
WS_EX_CLIENTEDGE
PUSHBUTTON "Initial",IDC_BT_INITACTION,5,31,30,10
END
IDD_DLG_ACTIONCONTENTS DIALOGEX 0, 0, 106, 106
STYLE WS_CHILD
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
PUSHBUTTON "Delete",IDC_BT_DELSTATE,62,4,29,10,WS_DISABLED
LISTBOX IDC_LIST_STATES,4,30,100,73,LBS_OWNERDRAWFIXED |
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
WS_TABSTOP,WS_EX_DLGMODALFRAME
PUSHBUTTON "Del All",IDC_BT_DELALLSTATES,62,17,29,10,WS_DISABLED
PUSHBUTTON "Default",IDC_BT_DEFAULTSTATE,2,17,29,10,WS_DISABLED
PUSHBUTTON "Copy",IDC_BT_COPYSTATE,32,4,29,10,WS_DISABLED
PUSHBUTTON "Rename",IDC_BT_RENSTATE,32,17,29,10,WS_DISABLED
PUSHBUTTON "New",IDC_BT_NEWSTATE,2,4,29,10,WS_DISABLED
PUSHBUTTON "Up",IDC_BUTTON_UP,91,4,11,10
PUSHBUTTON "Down",IDC_BUTTON_DOWN,91,17,11,10
END
IDD_DLG_STATE DIALOG DISCARDABLE 0, 0, 331, 121
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
COMBOBOX IDC_COMBO_ANIMATION,41,8,103,82,CBS_DROPDOWNLIST |
CBS_SORT | WS_DISABLED | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_EDIT_REPLAY,41,32,32,12,ES_AUTOHSCROLL | ES_NUMBER
CONTROL "Spin1",IDC_SPIN_REPLAY,"msctls_updown32",
UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
UDS_ARROWKEYS,67,32,11,11
EDITTEXT IDC_EDIT_SPEED,107,32,38,12,ES_AUTOHSCROLL | ES_NUMBER
CONTROL "Spin1",IDC_SPIN_SPEED,"msctls_updown32",UDS_SETBUDDYINT |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,139,32,11,
11
COMBOBOX IDC_COMBO_NEXTSTATE,41,56,103,105,CBS_DROPDOWNLIST |
CBS_OWNERDRAWFIXED | CBS_SORT | CBS_HASSTRINGS |
WS_DISABLED | WS_VSCROLL | WS_TABSTOP
LISTBOX IDC_LIST_INTERRUPTACTION,165,27,156,43,LBS_SORT |
LBS_OWNERDRAWFIXED | LBS_HASSTRINGS |
LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_DISABLED |
WS_VSCROLL | WS_TABSTOP
COMBOBOX IDC_COMBO_INTERRUPTSTATE,224,75,97,87,CBS_DROPDOWNLIST |
CBS_OWNERDRAWFIXED | CBS_SORT | CBS_HASSTRINGS |
WS_DISABLED | WS_VSCROLL | WS_TABSTOP
LTEXT "Replay",IDC_STATIC_REPLAY,2,35,22,8
LTEXT "Speed",IDC_STATIC_SPEED,84,33,22,8
GROUPBOX "Action that interrupt",IDC_ST_BORDER,159,1,168,96
LTEXT "Next State",IDC_STATIC_NEXTSTATE,2,59,37,8
LTEXT "Animation",IDC_STATIC_ANIMATION,2,11,32,8
LTEXT "Transitional State",IDC_ST_TRST,165,78,57,8
COMBOBOX IDC_COMBO_MECHANIC,41,80,103,105,CBS_DROPDOWNLIST |
CBS_SORT | WS_DISABLED | WS_VSCROLL | WS_TABSTOP
LTEXT "Mechanic",IDC_STATIC_MECHANIC,2,83,36,8
COMBOBOX IDC_COMBO_FAMILY,42,8,103,82,CBS_DROPDOWNLIST | CBS_SORT |
NOT WS_VISIBLE | WS_VSCROLL | WS_TABSTOP
LTEXT "Family",IDC_STATIC_FAMILY,2,11,20,8,NOT WS_VISIBLE
PUSHBUTTON "+",IDC_BT_MORE,148,8,9,11,NOT WS_VISIBLE
PUSHBUTTON "Default",IDC_BT_DEFAULT,165,12,76,12
PUSHBUTTON "Display",IDC_BT_DISPLAY,244,12,76,12
CONTROL "Check1",IDC_CHECK_CB8,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,41,104,9,11
CONTROL "Check1",IDC_CHECK_CB7,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,54,104,9,11
CONTROL "Check1",IDC_CHECK_CB6,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,67,104,9,11
CONTROL "Check1",IDC_CHECK_CB5,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,80,104,9,11
CONTROL "Check1",IDC_CHECK_CB4,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,93,104,9,11
CONTROL "Check1",IDC_CHECK_CB3,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,106,104,9,11
CONTROL "Check1",IDC_CHECK_CB2,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,119,104,9,11
CONTROL "Check1",IDC_CHECK_CB1,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,132,104,8,11
LTEXT "Custom bits",IDC_STATIC,1,105,37,8
LTEXT "8",IDC_STATIC,44,96,8,8
LTEXT "7",IDC_STATIC,56,96,8,8
LTEXT "6",IDC_STATIC,69,96,8,8
LTEXT "5",IDC_STATIC,82,96,8,8
LTEXT "4",IDC_STATIC,95,96,8,8
LTEXT "3",IDC_STATIC,107,96,8,8
LTEXT "2",IDC_STATIC,121,96,8,8
LTEXT "1",IDC_STATIC,134,96,8,8
END
IDD_DLG_INPUTTEXT DIALOG DISCARDABLE 0, 0, 190, 62
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
EDITTEXT IDC_EDIT_TEXT,92,5,86,14,ES_AUTOHSCROLL
PUSHBUTTON "Cancel",IDCANCEL,5,27,50,14
DEFPUSHBUTTON "OK",IDOK,127,28,50,14
LTEXT "Static",IDC_STATIC_TEXT,5,8,83,8
END
IDD_DLG_ZA DIALOG DISCARDABLE 0, 0, 218, 81
STYLE WS_CHILD | WS_THICKFRAME
FONT 8, "MS Sans Serif"
BEGIN
LISTBOX IDC_LIST_ZONES,138,13,77,65,LBS_OWNERDRAWFIXED |
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
WS_TABSTOP
LTEXT "Activations",IDC_STATIC,1,1,38,8
LISTBOX IDC_LIST_ZA,0,13,129,66,LBS_OWNERDRAWFIXED |
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
WS_TABSTOP
LTEXT "Zones",IDC_ST_ZONES,137,1,26,8
PUSHBUTTON "New",IDC_BT_NEW,37,2,23,9
PUSHBUTTON "Copy",IDC_BT_COPY,60,2,23,9
PUSHBUTTON "Ren",IDC_BT_RENAME,83,2,23,9
PUSHBUTTON "Del",IDC_BT_DELETE,106,2,23,9
PUSHBUTTON "Default",IDC_BT_DEFAULT,167,1,23,9,NOT WS_VISIBLE
END
IDD_DLG_NEWSTATE DIALOG DISCARDABLE 0, 0, 144, 89
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
CAPTION "Create a new state"
FONT 8, "MS Sans Serif"
BEGIN
EDITTEXT IDC_EDIT_TEXT,30,4,86,14,ES_AUTOHSCROLL
PUSHBUTTON "Cancel",IDCANCEL,5,45,50,14
DEFPUSHBUTTON "OK",IDOK,66,46,50,14
LTEXT "Name",IDC_STATIC_TEXT,4,7,26,8
CONTROL "Normal",ID_RB_NORMAL,"Button",BS_AUTORADIOBUTTON,4,28,
38,10
CONTROL "Transitional",ID_RB_TRANSITIONAL,"Button",
BS_AUTORADIOBUTTON,64,28,52,10
END
IDD_DLG_ZALIST DIALOG DISCARDABLE 0, 0, 172, 96
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
PUSHBUTTON "Extend to Action",IDC_BT_EXTENDACTION,2,81,82,11,
WS_DISABLED
PUSHBUTTON "Extend to Family",IDC_BT_EXTENDFAMILY,86,81,82,11,
WS_DISABLED
LISTBOX IDC_LB_STATES,0,2,168,78,LBS_SORT | LBS_OWNERDRAWFIXED |
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL |
WS_VSCROLL | WS_TABSTOP
END
IDD_DLG_ACTION_TREE DIALOGEX 0, 0, 106, 170
STYLE WS_CHILD
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
PUSHBUTTON "New",IDC_BT_NEWACTION,4,17,45,10
PUSHBUTTON "Delete",IDC_BT_DELACTION,56,29,45,10
PUSHBUTTON "Copy",IDC_BT_COPYACTION,56,17,45,10
PUSHBUTTON "Rename",IDC_BT_RENAMEACTION,4,29,45,10
CONTROL "Tree1",IDC_TREE_ACT,"SysTreeView32",TVS_HASBUTTONS |
TVS_HASLINES | TVS_LINESATROOT | TVS_EDITLABELS |
WS_BORDER | WS_TABSTOP,0,43,105,126
PUSHBUTTON "Swap to Activation Mode",IDC_BT_EDITZA,5,2,95,14,0,
WS_EX_CLIENTEDGE
END
IDD_DLG_NAMESLIST DIALOGEX 0, 0, 106, 126
STYLE WS_CHILD
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
CONTROL "ZDd",IDC_RADIO_ZDD,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,15,20,28,10
CONTROL "ZDe",IDC_RADIO_ZDE,"Button",BS_AUTORADIOBUTTON,61,20,27,
10
CONTROL "ZDm",IDC_RADIO_ZDM,"Button",BS_AUTORADIOBUTTON,15,31,29,
10
LISTBOX IDC_LB_NAMES,0,42,105,84,LBS_SORT | LBS_NOINTEGRALHEIGHT |
WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Swap to State Mode",IDC_BT_EDITSTATE,2,2,102,14,0,
WS_EX_CLIENTEDGE
CONTROL "ZDr",IDC_RADIO_ZDR,"Button",BS_AUTORADIOBUTTON,61,31,28,
10
END
IDD_DLG_ANIM DIALOG DISCARDABLE 0, 0, 171, 96
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
LTEXT "Animations",IDC_ST_ANIM,3,4,35,8,NOT WS_GROUP
LISTBOX IDC_LB_ANIM,2,25,166,67,LBS_SORT | LBS_MULTIPLESEL |
LBS_OWNERDRAWFIXED | LBS_HASSTRINGS |
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "CreateState(s)",IDC_BT_CREATESTATES,101,3,65,14
COMBOBOX IDC_COMBO_FAMILY,5,25,160,62,CBS_DROPDOWN | CBS_SORT |
NOT WS_VISIBLE | WS_VSCROLL | WS_TABSTOP
LTEXT "Family",IDC_ST_FAMILY,3,4,20,8,NOT WS_VISIBLE | NOT
WS_GROUP
PUSHBUTTON "+",IDC_BT_MORE,85,3,11,14,NOT WS_VISIBLE
END
IDD_DLG_ACTION DIALOG DISCARDABLE 0, 0, 106, 120
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
LISTBOX IDC_LIST_ACTION,3,14,99,102,LBS_SORT |
LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Select All",IDC_BT_SELECTALL,3,1,99,10
END
IDD_DLG_ZA_LIST DIALOG DISCARDABLE 0, 0, 104, 133
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
LISTBOX IDC_LB_ZALIST,2,32,99,99,LBS_SORT | LBS_NOINTEGRALHEIGHT |
WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "New",IDC_BT_NEW,4,3,46,10
PUSHBUTTON "Delete",IDC_BT_DELETE,53,18,46,10
PUSHBUTTON "Copy",IDC_BT_COPY,53,3,46,10
PUSHBUTTON "Rename",IDC_BT_RENAME,4,18,46,10
END
IDD_DLG_SELECTION DIALOGEX 0, 0, 216, 257
STYLE DS_3DLOOK | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "Select State(s)"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,162,241,50,14
PUSHBUTTON "Cancel",IDCANCEL,2,241,50,14
LISTBOX IDC_LBOX,2,2,210,236,LBS_OWNERDRAWFIXED |
LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL |
WS_TABSTOP
END
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
BEGIN
"..\\inc\\TAct_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
/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//
IDB_BITMAP_ALLOWED BITMAP DISCARDABLE "..\\res\\allowed.bmp"
IDB_BITMAP_PROHIBITED BITMAP DISCARDABLE "..\\res\\prohibited.bmp"
IDB_BITMAP_FLUID BITMAP DISCARDABLE "..\\res\\fluid.bmp"
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
IDD_DLG_ACTIONCONTENTS, DIALOG
BEGIN
RIGHTMARGIN, 104
BOTTOMMARGIN, 103
END
IDD_DLG_ANIM, DIALOG
BEGIN
VERTGUIDE, 20
END
IDD_DLG_ZA_LIST, DIALOG
BEGIN
RIGHTMARGIN, 101
END
IDD_DLG_SELECTION, DIALOG
BEGIN
LEFTMARGIN, 2
RIGHTMARGIN, 212
TOPMARGIN, 2
BOTTOMMARGIN, 255
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_TAC_DLGBAR_ICON ICON DISCARDABLE "..\\res\\tac_dlgb.ico"
#endif // French (France) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

View File

@@ -0,0 +1,281 @@
//#################################################################################
//
// BASE DEFINITION CLASS OF DLL interface Modification
//
//#################################################################################
//
//
#ifndef __ZAMODIF_HPP__
#define __ZAMODIF_HPP__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif
/******************************************/
class CPA_Family;
class CPA_Action;
class CPA_State;
class TAction_Interface;
class CPA_tdoNameList;
class CPA_ZonesActivating;
class CPA_ZonesActivatingList;
typedef struct tdstZAStates_
{
CPA_State *m_p_oState;
CPA_ZonesActivating *m_p_oNewZA;
} tdstZAStates;
///////////////////////////////////////////////////////////////////////////////
// class ZAList_New
class ZAList_New : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_tdoNameList *m_p_oNameList;
CPA_ZonesActivatingList *m_p_oZAList;
CString m_csName;
// methods
public:
ZAList_New(TAction_Interface *_p_oParentDLL, CPA_tdoNameList *_p_oNameList, CString _csName);
~ZAList_New();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class ZAList_Copy
class ZAList_Copy : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_ZonesActivatingList *m_p_oSourceZAList;
CPA_ZonesActivatingList *m_p_oTargetZAList;
// methods
public:
ZAList_Copy(TAction_Interface *_p_oParentDLL, CPA_ZonesActivatingList *_p_oSourceZAList);
~ZAList_Copy();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class ZAList_Rename
class ZAList_Rename : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_ZonesActivatingList *m_p_oZAList;
CString m_csName;
// methods
public:
ZAList_Rename(TAction_Interface *_p_oParentDLL, CPA_ZonesActivatingList *_p_oZAList, CString _csName);
~ZAList_Rename();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class ZAList_Delete
class ZAList_Delete : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_ZonesActivatingList *m_p_oZAList;
// methods
public:
ZAList_Delete(TAction_Interface *_p_oParentDLL, CPA_ZonesActivatingList *_p_oZAList);
~ZAList_Delete();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class ZAList_ExtendToFamily
class ZAList_ExtendToFamily : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_ZonesActivatingList *m_p_oZAList;
CPA_ZonesActivating *m_p_oZA;
CPA_List<CPA_State> *m_p_oListOfDisplayStates;
CMap<CPA_State*,CPA_State*,CPA_ZonesActivating*,CPA_ZonesActivating*> m_oListOfZAState;
// methods
public:
ZAList_ExtendToFamily(TAction_Interface *_p_oParentDLL, CPA_ZonesActivatingList *_p_oZAList,
CPA_ZonesActivating *_p_oZA, CPA_List<CPA_State> *_p_oListOfDisplayStates);
~ZAList_ExtendToFamily();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class ZAList_ExtendToAction
class ZAList_ExtendToAction : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_ZonesActivatingList *m_p_oZAList;
CPA_Action *m_p_oAction;
CPA_ZonesActivating *m_p_oZA;
CPA_List<CPA_State> *m_p_oListOfDisplayStates;
CMap<CPA_State*,CPA_State*,CPA_ZonesActivating*,CPA_ZonesActivating*> m_oListOfZAState;
// methods
public:
ZAList_ExtendToAction(TAction_Interface *_p_oParentDLL, CPA_Action *_p_oACtion,
CPA_ZonesActivatingList *_p_oZAList, CPA_ZonesActivating *_p_oZA, CPA_List<CPA_State> *_p_oListOfDisplayStates);
~ZAList_ExtendToAction();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class ZAList_SetZAToState
class ZAList_SetZAToState : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_ZonesActivatingList *m_p_oZAList;
CPA_List<CPA_State> *m_p_oListOfDisplayStates;
CPA_List<tdstZAStates> m_oListOfChanged;
// methods
public:
ZAList_SetZAToState(TAction_Interface *_p_oParentDLL, CPA_ZonesActivatingList *_p_oZAList,
CPA_List<CPA_State> *_p_oListOfDisplayStates);
~ZAList_SetZAToState();
// actions
BOOL Do();
BOOL Undo();
void mfn_vAddZAToState( CPA_ZonesActivating *_p_oZA, CPA_State *_p_oState );
};
///////////////////////////////////////////////////////////////////////////////
// class ZA_New
class ZA_New : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_tdoNameList *m_p_oNameList;
CPA_ZonesActivating *m_p_oZA;
CString m_csName;
// methods
public:
ZA_New(TAction_Interface *_p_oParentDLL, CPA_tdoNameList *_p_oNameList, CString _csName);
~ZA_New();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class ZA_Copy
class ZA_Copy : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_ZonesActivating *m_p_oSourceZA;
CPA_ZonesActivating *m_p_oTargetZA;
// methods
public:
ZA_Copy(TAction_Interface *_p_oParentDLL, CPA_ZonesActivating *_p_oSourceZA);
~ZA_Copy();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class ZA_Rename
class ZA_Rename : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_ZonesActivating *m_p_oZA;
CString m_csName;
// methods
public:
ZA_Rename(TAction_Interface *_p_oParentDLL, CPA_ZonesActivating *_p_oZA, CString _csName);
~ZA_Rename();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class ZA_Delete
class ZA_Delete : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_ZonesActivating *m_p_oZA;
BOOL m_bDefault;
// methods
public:
ZA_Delete(TAction_Interface *_p_oParentDLL, CPA_ZonesActivating *_p_oZA);
~ZA_Delete();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class ZA_Modify
class ZA_Modify : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_ZonesActivating *m_p_oZA;
unsigned short m_usIndex;
BOOL m_bNewState;
// methods
public:
ZA_Modify(TAction_Interface *_p_oParentDLL, CPA_ZonesActivating *_p_oZA,
unsigned short _usIndex, BOOL _bNewState);
~ZA_Modify();
// actions
BOOL Do();
BOOL Undo();
};
///////////////////////////////////////////////////////////////////////////////
// class ZA_Default
class ZA_Default : public CPA_Modif
{
protected:
TAction_Interface *m_p_oParentDLL;
CPA_ZonesActivating *m_p_oNewDefaultZA;
// methods
public:
ZA_Default(TAction_Interface *_p_oParentDLL, CPA_ZonesActivating *_p_oNewDefaultZA);
~ZA_Default();
// actions
BOOL Do();
BOOL Undo();
BOOL mfn_vMakeModif();
};
#endif //__ZAMODIF_HPP__