Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/Tools/3dsmaxExport/LEXIExporter/GDIMetaLib/Sources/MetaVec4.h @ 6

Last change on this file since 6 was 6, checked in by anonymous, 17 years ago

=…

File size: 1.7 KB
Line 
1/*
2-----------------------------------------------------------------------------
3This source file is part of LEXIExporter
4
5Copyright 2006 NDS Limited
6
7Author(s):
8Lasse Tassing
9
10This program is free software; you can redistribute it and/or modify it under
11the terms of the GNU Lesser General Public License as published by the Free Software
12Foundation; either version 2 of the License, or (at your option) any later
13version.
14
15This program is distributed in the hope that it will be useful, but WITHOUT
16ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
18
19You should have received a copy of the GNU Lesser General Public License along with
20this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21Place - Suite 330, Boston, MA 02111-1307, USA, or go to
22http://www.gnu.org/copyleft/lesser.txt.
23-----------------------------------------------------------------------------
24*/
25
26#ifndef __NDS_META_VEC4__
27#define __NDS_META_VEC4__
28
29//
30namespace GDI
31{
32class MetaVec4 : public MetaBaseCtrl
33{
34public:
35        MetaVec4();
36        ~MetaVec4();   
37
38        // Set defaults on a data object from a meta object
39        static void SetDefaults(const CDDObject *pMetaKey, const char *pszMetaID, CDDObject *pData);
40
41private:
42        // Data object changed - update data on control
43        // Note: This is also called when control is created
44        void    UpdateData(CDDObject *pData);
45        void    OnCreated();
46        void    OnPaint();
47        void    OnLayout();     
48        bool    OnMouseDown(int iFlags, int iX, int iY);
49        void    OnCommand(HWND hWnd, int iCode, int iID);
50
51        // Enable/disable control
52        void    SetEnabled(bool bEnabled);
53
54        CVec4   m_Value;
55        bool    m_bShowControls;
56        Edit    *m_pEditCtrls[4];       
57};
58
59}
60#endif
Note: See TracBrowser for help on using the repository browser.