1 | /* |
---|
2 | ----------------------------------------------------------------------------- |
---|
3 | This source file is part of LEXIExporter |
---|
4 | |
---|
5 | Copyright 2006 NDS Limited |
---|
6 | |
---|
7 | Author(s): |
---|
8 | Lasse Tassing |
---|
9 | |
---|
10 | This program is free software; you can redistribute it and/or modify it under |
---|
11 | the terms of the GNU Lesser General Public License as published by the Free Software |
---|
12 | Foundation; either version 2 of the License, or (at your option) any later |
---|
13 | version. |
---|
14 | |
---|
15 | This program is distributed in the hope that it will be useful, but WITHOUT |
---|
16 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
---|
17 | FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
---|
18 | |
---|
19 | You should have received a copy of the GNU Lesser General Public License along with |
---|
20 | this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
---|
21 | Place - Suite 330, Boston, MA 02111-1307, USA, or go to |
---|
22 | http://www.gnu.org/copyleft/lesser.txt. |
---|
23 | ----------------------------------------------------------------------------- |
---|
24 | */ |
---|
25 | |
---|
26 | #ifndef __NDS_META_VEC4__ |
---|
27 | #define __NDS_META_VEC4__ |
---|
28 | |
---|
29 | // |
---|
30 | namespace GDI |
---|
31 | { |
---|
32 | class MetaVec4 : public MetaBaseCtrl |
---|
33 | { |
---|
34 | public: |
---|
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 | |
---|
41 | private: |
---|
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 |
---|