Add rayman2 source files
This commit is contained in:
72
Rayman_X/cpa/public/CTL/WControls/CTL_BWC.hpp
Normal file
72
Rayman_X/cpa/public/CTL/WControls/CTL_BWC.hpp
Normal file
@@ -0,0 +1,72 @@
|
||||
/* Base Windows Control for CTL*/
|
||||
/**/
|
||||
/* YB*/
|
||||
/*//////////////////////////////////*/
|
||||
#ifndef _CTL_BASE_WINDOWS_CONTROL_
|
||||
#define _CTL_BASE_WINDOWS_CONTROL_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "CTL\Others\CTL_ClBk.hpp"
|
||||
|
||||
class CTL_Editor_Control;
|
||||
|
||||
class CPA_EXPORT CTL_BaseWindowsControl
|
||||
{
|
||||
public:
|
||||
CTL_BaseWindowsControl(CTL_Editor_Control *_pclParentControl,
|
||||
CWnd *_pclParentWnd,
|
||||
long _lUserDefinedType = 0,
|
||||
long _lUserDefinedCode = 0);
|
||||
~CTL_BaseWindowsControl();
|
||||
|
||||
/*Attributes*/
|
||||
public:
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
/*This type will be passed as parameters of CallBacks*/
|
||||
long m_pri_lUserDefinedType;
|
||||
/*This code will be passed as parameters of CallBacks*/
|
||||
long m_pri_lUserDefinedCode;
|
||||
|
||||
CTL_Editor_Control *m_pri_pclParentControl;
|
||||
CWnd *m_pri_pclParentWnd;
|
||||
|
||||
CWnd *m_pri_pclWnd;
|
||||
|
||||
/*Functions*/
|
||||
public:
|
||||
long m_pub_fn_lGetUserDefinedType();
|
||||
long m_pub_fn_lGetUserDefinedCode();
|
||||
|
||||
CTL_Editor_Control *m_pub_fn_pclGetParentControl();
|
||||
CWnd *m_pub_fn_pclGetParentWnd();
|
||||
|
||||
/*For TUT registration*/
|
||||
virtual void m_pub_fn_vRegisterWindowsControl(CString _csAdditionnalInfo) = 0;
|
||||
|
||||
protected:
|
||||
#ifndef CTL_WITH_NO_TUT
|
||||
void m_pro_fn_vRegisterWindowsControl(CString _csAdditionnalInfo,
|
||||
enum TUT_eControlType_ _eType,
|
||||
CString _csControlString,
|
||||
CWnd *_pclWnd);
|
||||
#endif /*CTL_WITH_NO_TUT*/
|
||||
|
||||
private:
|
||||
#ifndef CTL_WITH_NO_TUT
|
||||
void m_pri_fn_vBuildNameForTUT(CString _csAdditionnalInfo,
|
||||
enum TUT_eControlType_ _eType,
|
||||
CString _csControlString,
|
||||
CWnd *_pclWnd);
|
||||
#endif /*CTL_WITH_NO_TUT*/
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif /*_CTL_BASE_WINDOWS_CONTROL_*/
|
81
Rayman_X/cpa/public/CTL/WControls/CTL_VBas.hpp
Normal file
81
Rayman_X/cpa/public/CTL/WControls/CTL_VBas.hpp
Normal file
@@ -0,0 +1,81 @@
|
||||
/* Interface of the CTL_Editor_BaseFormView class*/
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#ifndef _CTL_BASE_VIEW_
|
||||
#define _CTL_BASE_VIEW_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
#include "ACP_Base.h"
|
||||
|
||||
/*###########################################################################*/
|
||||
|
||||
class CPA_EXPORT CTL_Editor_BaseFormView : public CFormView
|
||||
{
|
||||
public:
|
||||
CTL_Editor_BaseFormView(UINT Id,
|
||||
BOOL bMustDisplayClosedHand = FALSE);
|
||||
CTL_Editor_BaseFormView();
|
||||
|
||||
virtual ~CTL_Editor_BaseFormView();
|
||||
|
||||
protected: /* create from serialization only*/
|
||||
DECLARE_DYNCREATE(CTL_Editor_BaseFormView)
|
||||
|
||||
/* Attributes*/
|
||||
public:
|
||||
void m_fn_vSetViewHeight(unsigned short uwViewHeight);
|
||||
|
||||
protected:
|
||||
unsigned short m_uwViewHeight;
|
||||
|
||||
private:
|
||||
BOOL m_bMustDisplayClosedHand;
|
||||
BOOL m_bScrollIsPossible;
|
||||
BOOL m_bUserWantsToScroll;
|
||||
unsigned short m_uwWindowHeight;
|
||||
unsigned short m_uwWindowWidth;
|
||||
|
||||
/*Screen's Height*/
|
||||
unsigned short m_uwOldPosition;
|
||||
|
||||
/**/
|
||||
DWORD m_lInitialClassLong;
|
||||
|
||||
/* Operations*/
|
||||
public:
|
||||
|
||||
/* Overrides*/
|
||||
/* ClassWizard generated virtual function overrides*/
|
||||
/*{{AFX_VIRTUAL(CTL_Editor_BaseFormView)*/
|
||||
public:
|
||||
virtual void OnInitialUpdate();
|
||||
/*}}AFX_VIRTUAL*/
|
||||
|
||||
|
||||
/* Implementation*/
|
||||
public:
|
||||
#ifdef _DEBUG
|
||||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
||||
/* Generated message map functions*/
|
||||
protected:
|
||||
/*{{AFX_MSG(CTL_Editor_BaseFormView)*/
|
||||
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
||||
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
||||
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
||||
afx_msg void OnSize(UINT nType, int cx, int cy);
|
||||
/*}}AFX_MSG*/
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#endif /*_CTL_BASE_VIEW_*/
|
||||
|
80
Rayman_X/cpa/public/CTL/WControls/CTL_WBut.hpp
Normal file
80
Rayman_X/cpa/public/CTL/WControls/CTL_WBut.hpp
Normal file
@@ -0,0 +1,80 @@
|
||||
/* CPACEdBu.hpp : header file*/
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#ifndef _CPACEDBU_HPP_
|
||||
#define _CPACEDBU_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "CTL\WControls\CTL_BWC.hpp"
|
||||
#include "CTL\Others\CTL_ClBk.hpp"
|
||||
|
||||
/*###########################################################################*/
|
||||
typedef enum CTL_eButtonType
|
||||
{
|
||||
CTL_BUTTON_TYPE__EDIT = 0,
|
||||
CTL_BUTTON_TYPE__DEVELOP,
|
||||
|
||||
CTL_BUTTON_TYPE__USE_USER_DEFINED_TYPE,
|
||||
|
||||
} CTL_tdeButtonType;
|
||||
|
||||
/*###########################################################################*/
|
||||
class EdActors_SpecialToolTip;
|
||||
class CTL_Editor_Control;
|
||||
|
||||
class CPA_EXPORT CTL_Editor_Button : public CButton,
|
||||
public CTL_BaseWindowsControl
|
||||
{
|
||||
/* Construction*/
|
||||
public:
|
||||
CTL_Editor_Button(CString _csName,
|
||||
CTL_tdeButtonType _tdeType,
|
||||
long _lAdditionnalStyles,
|
||||
CTL_Editor_Control *_pclParentControl,
|
||||
CWnd *_pclParentWnd,
|
||||
long _lUserDefinedType = 0,
|
||||
long _lUserDefinedCode = 0);
|
||||
|
||||
/* Attributes*/
|
||||
public:
|
||||
|
||||
private:
|
||||
CTL_tdeButtonType m_tdeType;
|
||||
|
||||
CTL_tdp_fn_vButtonHasBeenClicked m_pri_td_p_fn_vButtonHasBeenClicked_CallBack;
|
||||
|
||||
/* EdActors_SpecialToolTip *m_pclToolTip;*/
|
||||
|
||||
/* Operations*/
|
||||
public:
|
||||
void m_fn_vSetText(CString csText);
|
||||
|
||||
/* Overrides*/
|
||||
/* ClassWizard generated virtual function overrides*/
|
||||
/*{{AFX_VIRTUAL(CTL_Editor_Button)*/
|
||||
/*}}AFX_VIRTUAL*/
|
||||
|
||||
/* Implementation*/
|
||||
public:
|
||||
virtual ~CTL_Editor_Button();
|
||||
|
||||
void m_pub_fn_vSetButtonHasBeenClicked_CallBack(CTL_tdp_fn_vButtonHasBeenClicked _p_fn_vCallBack);
|
||||
|
||||
/*For TUT registration*/
|
||||
virtual void m_pub_fn_vRegisterWindowsControl(CString _csAdditionnalInfo);
|
||||
|
||||
/* Generated message map functions*/
|
||||
protected:
|
||||
/*{{AFX_MSG(CTL_Editor_Button)*/
|
||||
afx_msg void OnClicked();
|
||||
/*}}AFX_MSG*/
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#endif /*_CPACEDBU_HPP_*/
|
||||
|
97
Rayman_X/cpa/public/CTL/WControls/CTL_WCBx.hpp
Normal file
97
Rayman_X/cpa/public/CTL/WControls/CTL_WCBx.hpp
Normal file
@@ -0,0 +1,97 @@
|
||||
/* CTL_Editor_ComboBox window*/
|
||||
/**/
|
||||
/* YB*/
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#ifndef _CTL_COMBO_BOX_
|
||||
#define _CTL_COMBO_BOX_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "CTL\WControls\CTL_BWC.hpp"
|
||||
#include "CTL\Others\CTL_ClBk.hpp"
|
||||
|
||||
/*############################################################################*/
|
||||
typedef enum CTL_eComboBoxType
|
||||
{
|
||||
CTL_COMBO_BOX_TYPE__STANDARD = 0,
|
||||
|
||||
CTL_COMBO_BOX_TYPE_USE_USER_DEFINED_TYPE,
|
||||
|
||||
} CTL_tdeComboBoxType;
|
||||
|
||||
/*############################################################################*/
|
||||
class CTL_Editor_Control;
|
||||
|
||||
/*ROMTEAM Selection (Cristian Stegaru 24/03/98)*/
|
||||
typedef (*tpf_iCheckString) (CString csText);
|
||||
/*ENDROMTEAM Selection (Cristian Stegaru)*/
|
||||
|
||||
class CPA_EXPORT CTL_Editor_ComboBox : public CComboBox,
|
||||
public CTL_BaseWindowsControl
|
||||
{
|
||||
|
||||
/* Construction*/
|
||||
public:
|
||||
CTL_Editor_ComboBox(CTL_tdeComboBoxType _eType,
|
||||
long _lAdditionnalStyles,
|
||||
CTL_Editor_Control *_pclControl,
|
||||
CWnd *_pclParentWnd,
|
||||
long _lUserDefinedType = 0,
|
||||
long _lUserDefinedCode = 0);
|
||||
|
||||
/*ROMTEAM Selection (Cristian Stegaru 24/03/98)*/
|
||||
private:
|
||||
int m_iOldSelection;
|
||||
/*ENDROMTEAM Selection (Cristian Stegaru)*/
|
||||
|
||||
/* Attributes*/
|
||||
public:
|
||||
|
||||
private:
|
||||
CTL_tdp_fn_vComboBoxSelChanged m_pri_p_td_fn_vSelChanged_CallBack;
|
||||
CTL_tdp_fn_vComboBoxSelChanged m_pri_p_td_fn_vDropDown_CallBack;
|
||||
/*ROMTEAM Selection (Cristian Stegaru 24/03/98)*/
|
||||
CTL_tpf_iCheckString m_pfCanISelectThisItem;
|
||||
/*ENDROMTEAM Selection (Cristian Stegaru)*/
|
||||
|
||||
CTL_tdeComboBoxType m_pri_eType;
|
||||
|
||||
/* Operations*/
|
||||
public:
|
||||
|
||||
/* Overrides*/
|
||||
/* ClassWizard generated virtual function overrides*/
|
||||
/*{{AFX_VIRTUAL(CTL_Editor_ComboBox)*/
|
||||
/*}}AFX_VIRTUAL*/
|
||||
|
||||
/* Implementation*/
|
||||
public:
|
||||
virtual ~CTL_Editor_ComboBox();
|
||||
|
||||
void m_pub_fn_vSetSelChanged_CallBack(CTL_tdp_fn_vComboBoxSelChanged _p_fn_vCallBack);
|
||||
void m_pub_fn_vSetDropDown_CallBack(CTL_tdp_fn_vComboBoxSelChanged _p_fn_vCallBack);
|
||||
/*ROMTEAM Selection (Cristian Stegaru 24/03/98)*/
|
||||
void m_fn_vSetCanISelect_CallBack (CTL_tpf_iCheckString pfCheckString)
|
||||
{
|
||||
m_pfCanISelectThisItem = pfCheckString;
|
||||
}
|
||||
/*ENDROMTEAM Selection (Cristian Stegaru)*/
|
||||
|
||||
/*For TUT registration*/
|
||||
virtual void m_pub_fn_vRegisterWindowsControl(CString _csAdditionnalInfo);
|
||||
|
||||
/* Generated message map functions*/
|
||||
protected:
|
||||
/*{{AFX_MSG(CTL_Editor_ComboBox)*/
|
||||
afx_msg void OnSelchange();
|
||||
afx_msg void OnDropdown();
|
||||
/*}}AFX_MSG*/
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
|
||||
#endif /*_CTL_COMBO_BOX_*/
|
82
Rayman_X/cpa/public/CTL/WControls/CTL_WCkB.hpp
Normal file
82
Rayman_X/cpa/public/CTL/WControls/CTL_WCkB.hpp
Normal file
@@ -0,0 +1,82 @@
|
||||
/* CTL_Editor_CheckBox window*/
|
||||
/**/
|
||||
/* YB*/
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#ifndef _CTL_CHECK_BOX_
|
||||
#define _CTL_CHECK_BOX_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "CTL\WControls\CTL_BWC.hpp"
|
||||
#include "CTL\Others\CTL_ClBk.hpp"
|
||||
|
||||
/*###########################################################################*/
|
||||
typedef enum CTL_eCarCheckBoxType
|
||||
{
|
||||
CTL_CHECK_BOX_TYPE__NORMAL = 0,
|
||||
|
||||
CTL_CHECK_BOX_TYPE__USE_USER_DEFINED_TYPE,
|
||||
|
||||
} CTL_tdeCarCheckBoxType;
|
||||
|
||||
/*###########################################################################*/
|
||||
class CPA_EXPORT CTL_Editor_CheckBox : public CButton,
|
||||
public CTL_BaseWindowsControl
|
||||
{
|
||||
/* Construction*/
|
||||
public:
|
||||
CTL_Editor_CheckBox(CTL_tdeCarCheckBoxType _tdeType,
|
||||
long _lAdditionnalStyles,
|
||||
CTL_Editor_Control *_pclControl,
|
||||
CWnd *_pclParentWnd,
|
||||
long _lUserDefinedType = 0,
|
||||
long _lUserDefinedCode = 0,
|
||||
CString _csFalseText = "",
|
||||
CString _csTrueText = "");
|
||||
|
||||
|
||||
/* Attributes*/
|
||||
public:
|
||||
|
||||
private:
|
||||
CTL_tdp_fn_vCheckBoxHasBeenClicked m_pri_td_p_fn_vHasBeenClicked_CallBack;
|
||||
|
||||
CTL_tdeCarCheckBoxType m_pri_tdeType;
|
||||
|
||||
CString m_pri_csFalseText;
|
||||
CString m_pri_csTrueText;
|
||||
|
||||
/* Operations*/
|
||||
public:
|
||||
void SetCheck(BOOL bCheck);
|
||||
|
||||
/* Overrides*/
|
||||
/* ClassWizard generated virtual function overrides*/
|
||||
/*{{AFX_VIRTUAL(CTL_Editor_CheckBox)*/
|
||||
/*}}AFX_VIRTUAL*/
|
||||
|
||||
/* Implementation*/
|
||||
public:
|
||||
virtual ~CTL_Editor_CheckBox();
|
||||
|
||||
void m_pub_fn_vSetHasBeenClicked_CallBack(CTL_tdp_fn_vCheckBoxHasBeenClicked _p_fn_vCallBack);
|
||||
|
||||
/*For TUT registration*/
|
||||
virtual void m_pub_fn_vRegisterWindowsControl(CString _csAdditionnalInfo);
|
||||
|
||||
/* Generated message map functions*/
|
||||
protected:
|
||||
/*{{AFX_MSG(CTL_Editor_CheckBox)*/
|
||||
afx_msg void OnClicked();
|
||||
afx_msg void OnSetFocus(CWnd* pOldWnd);
|
||||
/*}}AFX_MSG*/
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#endif /*_CTL_CHECK_BOX_*/
|
||||
|
110
Rayman_X/cpa/public/CTL/WControls/CTL_WEdt.hpp
Normal file
110
Rayman_X/cpa/public/CTL/WControls/CTL_WEdt.hpp
Normal file
@@ -0,0 +1,110 @@
|
||||
/* CTL_Editor_Edit windows*/
|
||||
/**/
|
||||
/* YB*/
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#ifndef _CPACSPED_HPP_
|
||||
#define _CPACSPED_HPP_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "CTL\WControls\CTL_BWC.hpp"
|
||||
|
||||
class CTL_Editor_IntegerControl;
|
||||
class CTL_Editor_DecimalControl;
|
||||
class CTL_Editor_VectorControl;
|
||||
|
||||
/*############################################################################*/
|
||||
typedef enum CTL_eEditType
|
||||
{
|
||||
CTL_EDIT_TYPE__INTEGER = 0,
|
||||
CTL_EDIT_TYPE__DECIMAL,
|
||||
CTL_EDIT_TYPE__VECTOR,
|
||||
|
||||
} CTL_tdeEditType;
|
||||
|
||||
/*############################################################################*/
|
||||
|
||||
class CPA_EXPORT CTL_Editor_Edit : public CEdit,
|
||||
public CTL_BaseWindowsControl
|
||||
{
|
||||
/* Construction*/
|
||||
public:
|
||||
CTL_Editor_Edit(long _lMin,
|
||||
long _lMax,
|
||||
long _lAdditionnalStyles,
|
||||
CTL_Editor_IntegerControl *_pclControl,
|
||||
CWnd *_pclParentWnd,
|
||||
long _lUserDefinedType = 0,
|
||||
long _lUserDefinedCode = 0);
|
||||
|
||||
CTL_Editor_Edit(long double _ldMin,
|
||||
long double _ldMax,
|
||||
long _lAdditionnalStyles,
|
||||
CTL_Editor_DecimalControl *_pclControl,
|
||||
CWnd *_pclParentWnd,
|
||||
long _lUserDefinedType = 0,
|
||||
long _lUserDefinedCode = 0);
|
||||
|
||||
CTL_Editor_Edit(long double _ldMin,
|
||||
long double _ldMax,
|
||||
long _lAdditionnalStyles,
|
||||
CTL_Editor_VectorControl *_pclControl,
|
||||
CWnd *_pclParentWnd,
|
||||
long _lUserDefinedType = 0,
|
||||
long _lUserDefinedCode = 0);
|
||||
|
||||
/* Attributes*/
|
||||
public:
|
||||
|
||||
private:
|
||||
CTL_tdeEditType m_pri_tdeType;
|
||||
|
||||
/*For integers*/
|
||||
CTL_Editor_IntegerControl *m_pri_pclIntegerControl;
|
||||
long m_pri_lMin, m_pri_lMax, m_pri_lCurrent;
|
||||
|
||||
/*For decimals*/
|
||||
CTL_Editor_DecimalControl *m_pri_pclDecimalControl;
|
||||
long double m_pri_ldMin, m_pri_ldMax, m_pri_ldCurrent;
|
||||
|
||||
/*For vectirs*/
|
||||
CTL_Editor_VectorControl *m_pri_pclVectorControl;
|
||||
|
||||
/* Operations*/
|
||||
public:
|
||||
|
||||
/* Overrides*/
|
||||
/* ClassWizard generated virtual function overrides*/
|
||||
/*{{AFX_VIRTUAL(CTL_Editor_Edit)*/
|
||||
/*}}AFX_VIRTUAL*/
|
||||
|
||||
/* Implementation*/
|
||||
public:
|
||||
virtual ~CTL_Editor_Edit();
|
||||
|
||||
void m_fn_vSetCurrentValue(long lNewValue);
|
||||
void m_fn_vSetCurrentValue(long double ldNewValue);
|
||||
|
||||
/*For TUT registration*/
|
||||
virtual void m_pub_fn_vRegisterWindowsControl(CString _csAdditionnalInfo);
|
||||
|
||||
/* Generated message map functions*/
|
||||
protected:
|
||||
/*ROMTEAM Selection (Cristian Stegaru 24/03/98)*/
|
||||
void mfn_vRefreshMotorData ();
|
||||
/*ENDROMTEAM Selection (Cristian Stegaru)*/
|
||||
/*{{AFX_MSG(CTL_Editor_Edit)*/
|
||||
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
|
||||
afx_msg void OnKillFocus( CWnd* pNewWnd );
|
||||
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
|
||||
/*}}AFX_MSG*/
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#endif /*_CPACSPED_HPP_*/
|
||||
|
105
Rayman_X/cpa/public/CTL/WControls/CTL_WSpn.hpp
Normal file
105
Rayman_X/cpa/public/CTL/WControls/CTL_WSpn.hpp
Normal file
@@ -0,0 +1,105 @@
|
||||
/* CTLCSpin.hpp : header file*/
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#ifndef _CTL_W_SPIN_BUTTON_
|
||||
#define _CTL_W_SPIN_BUTTON_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "CTL\WControls\CTL_BWC.hpp"
|
||||
|
||||
class CTL_Editor_IntegerControl;
|
||||
class CTL_Editor_DecimalControl;
|
||||
class CTL_Editor_VectorControl;
|
||||
|
||||
typedef enum eCarSpinType
|
||||
{
|
||||
EDCAR_SPIN_TYPE_INTEGER = 0,
|
||||
EDCAR_SPIN_TYPE_DECIMAL,
|
||||
EDCAR_SPIN_TYPE_VECTOR,
|
||||
|
||||
} tdeCarSpinType;
|
||||
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
/* CTL_Editor_SpinButton window*/
|
||||
|
||||
class CPA_EXPORT CTL_Editor_SpinButton : public CSpinButtonCtrl,
|
||||
public CTL_BaseWindowsControl
|
||||
{
|
||||
/* Construction*/
|
||||
public:
|
||||
CTL_Editor_SpinButton(CTL_Editor_IntegerControl *_pclControl,
|
||||
long _lLower,
|
||||
long _lUpper,
|
||||
CWnd *_pclParentWnd);
|
||||
|
||||
CTL_Editor_SpinButton(CTL_Editor_DecimalControl *_pclControl,
|
||||
long double _ldLower,
|
||||
long double _ldUpper,
|
||||
CWnd *_pclParentWnd);
|
||||
|
||||
CTL_Editor_SpinButton(CTL_Editor_VectorControl *_pclControl,
|
||||
long double _ldLower,
|
||||
long double _ldUpper,
|
||||
CWnd *_pclParentWnd);
|
||||
|
||||
/* Attributes*/
|
||||
public:
|
||||
tdeCarSpinType m_tdeType;
|
||||
|
||||
private:
|
||||
CTL_Editor_IntegerControl *m_pclIntegerControl;
|
||||
CTL_Editor_DecimalControl *m_pclDecimalControl;
|
||||
CTL_Editor_VectorControl *m_pclVectorControl;
|
||||
|
||||
/*For integers*/
|
||||
long m_lLower;
|
||||
long m_lUpper;
|
||||
long m_lCurrent;
|
||||
/*For decimals*/
|
||||
long double m_ldLower;
|
||||
long double m_ldUpper;
|
||||
long double m_ldCurrent;
|
||||
long double m_ldDivisor;
|
||||
|
||||
/*Internal*/
|
||||
unsigned short m_uwOldPosition;
|
||||
unsigned short m_uwManualIntegerDelta;
|
||||
float m_fManualDecimalDelta;
|
||||
BOOL m_bManualPosIsOn;
|
||||
|
||||
/* Operations*/
|
||||
public:
|
||||
|
||||
/* Overrides*/
|
||||
/* ClassWizard generated virtual function overrides*/
|
||||
/*{{AFX_VIRTUAL(CTL_Editor_SpinButton)*/
|
||||
/*}}AFX_VIRTUAL*/
|
||||
|
||||
/* Implementation*/
|
||||
public:
|
||||
virtual ~CTL_Editor_SpinButton();
|
||||
void m_fn_vSetCurrentPos(long lNewValue);
|
||||
void m_fn_vSetCurrentPos(long double ldNewValue);
|
||||
|
||||
/*For TUT registration*/
|
||||
virtual void m_pub_fn_vRegisterWindowsControl(CString _csAdditionnalInfo);
|
||||
|
||||
/* Generated message map functions*/
|
||||
protected:
|
||||
/*{{AFX_MSG(CTL_Editor_SpinButton)*/
|
||||
afx_msg void OnDeltapos(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
||||
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
||||
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
||||
afx_msg void OnSetfocus(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
/*}}AFX_MSG*/
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#endif/* _CTL_W_SPIN_BUTTON_*/
|
||||
|
115
Rayman_X/cpa/public/CTL/WControls/CTL_WSta.hpp
Normal file
115
Rayman_X/cpa/public/CTL/WControls/CTL_WSta.hpp
Normal file
@@ -0,0 +1,115 @@
|
||||
/* CTL_Editor_Static window*/
|
||||
/**/
|
||||
/* YB*/
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#ifndef _CTL_STATIC_CONTROL_
|
||||
#define _CTL_STATIC_CONTROL_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif /* _MSC_VER >= 1000*/
|
||||
|
||||
#include "ACP_Base.h"
|
||||
|
||||
#include "CTL\Others\CTL_ClBk.hpp"
|
||||
#include "CTL\Others\CTL_Enum.hpp"
|
||||
#include "CTL\WControls\CTL_BWC.hpp"
|
||||
|
||||
class CTL_Editor_Control;
|
||||
|
||||
/*############################################################################*/
|
||||
typedef enum CTL_eStaticType
|
||||
{
|
||||
CTL_STATIC_TYPE__FIELD_NAME = 0,
|
||||
CTL_STATIC_TYPE__FIELD_VALUE,
|
||||
CTL_STATIC_TYPE__NEUTRAL_FIELD,
|
||||
|
||||
CTL_STATIC_TYPE__USE_USER_DEFINED,
|
||||
|
||||
} CTL_tdeStaticType;
|
||||
|
||||
/*############################################################################*/
|
||||
class CPA_EXPORT CTL_Editor_Static : public CStatic,
|
||||
public CTL_BaseWindowsControl
|
||||
{
|
||||
|
||||
DECLARE_DYNAMIC(CTL_Editor_Static)
|
||||
|
||||
/* Construction*/
|
||||
public:
|
||||
CTL_Editor_Static(CString _csName,
|
||||
CTL_tdeStaticType _tdeType,
|
||||
long _lAdditionnalStyles,
|
||||
CTL_Editor_Control *_pclParentControl,
|
||||
CWnd *_pclParentWnd,
|
||||
long _lUserDefinedType = 0,
|
||||
long _lUserDefinedCode = 0);
|
||||
|
||||
/* Attributes*/
|
||||
public:
|
||||
|
||||
private:
|
||||
CTL_tdeStaticType m_pri_tdeType;
|
||||
|
||||
COLORREF m_pri_colBackGroundColor;
|
||||
COLORREF m_pri_colTextColor;
|
||||
|
||||
CString m_csTextToDisplay;
|
||||
|
||||
CTL_td_p_fn_vStaticHasBeenClicked m_pri_p_fnStaticHasBeenClicked_CallBack;
|
||||
CTL_tdp_fn_vGetColor m_pri_td_p_fn_vGetColor;
|
||||
|
||||
/* Operations*/
|
||||
public:
|
||||
void m_fn_vSetTextToDisplay(CString,
|
||||
BOOL _bMustRefresDisplay = FALSE);
|
||||
|
||||
/* Overrides*/
|
||||
/* ClassWizard generated virtual function overrides*/
|
||||
/*{{AFX_VIRTUAL(CTL_Editor_Static)*/
|
||||
/*}}AFX_VIRTUAL*/
|
||||
|
||||
/* Implementation*/
|
||||
public:
|
||||
virtual ~CTL_Editor_Static();
|
||||
|
||||
long m_fn_lGetMinLength();
|
||||
|
||||
CTL_tdeStaticType m_pub_fn_tdeGetType();
|
||||
|
||||
CString m_pub_fn_csGetDisplayedString();
|
||||
|
||||
COLORREF m_pub_fn_colGetBackGroundColor();
|
||||
void m_pub_fn_vSetBackGroundColor(COLORREF _colNewColor,
|
||||
BOOL _bMustRefresDisplay = FALSE);
|
||||
COLORREF m_pub_fn_colGetTextColor();
|
||||
void m_pub_fn_vSetTextColor(COLORREF _colNewColor,
|
||||
BOOL _bMustRefresDisplay = FALSE);
|
||||
|
||||
void m_pub_fn_vSetStaticHasBeenClicked_CallBack(CTL_td_p_fn_vStaticHasBeenClicked _p_fnStaticHasBeenClicked_CallBack);
|
||||
void m_pub_fn_v_SetColRefGetColor_CallBack(CTL_tdp_fn_vGetColor _p_fn_CallBack);
|
||||
|
||||
/*For TUT registration*/
|
||||
virtual void m_pub_fn_vRegisterWindowsControl(CString _csAdditionnalInfo);
|
||||
|
||||
/* Generated message map functions*/
|
||||
protected:
|
||||
/*{{AFX_MSG(CTL_Editor_Static)*/
|
||||
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
|
||||
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
|
||||
afx_msg void OnPaint();
|
||||
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
||||
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
||||
/*ANNECY CB*/
|
||||
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
||||
/*END ANNECY*/
|
||||
/*}}AFX_MSG*/
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
friend class EdActors_ActorsView;
|
||||
};
|
||||
|
||||
/*///////////////////////////////////////////////////////////////////////////*/
|
||||
#endif /*_CTL_STATIC_CONTROL_*/
|
||||
|
Reference in New Issue
Block a user