1 | /* |
---|
2 | ----------------------------------------------------------------------------- |
---|
3 | This source file is part of LEXIExporter |
---|
4 | |
---|
5 | Copyright 2006 NDS Limited |
---|
6 | |
---|
7 | Author(s): |
---|
8 | Mark Folkenberg, |
---|
9 | Bo Krohn |
---|
10 | Lasse Tassing |
---|
11 | |
---|
12 | This program is free software; you can redistribute it and/or modify it under |
---|
13 | the terms of the GNU Lesser General Public License as published by the Free Software |
---|
14 | Foundation; either version 2 of the License, or (at your option) any later |
---|
15 | version. |
---|
16 | |
---|
17 | This program is distributed in the hope that it will be useful, but WITHOUT |
---|
18 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
---|
19 | FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
---|
20 | |
---|
21 | You should have received a copy of the GNU Lesser General Public License along with |
---|
22 | this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
---|
23 | Place - Suite 330, Boston, MA 02111-1307, USA, or go to |
---|
24 | http://www.gnu.org/copyleft/lesser.txt. |
---|
25 | ----------------------------------------------------------------------------- |
---|
26 | */ |
---|
27 | |
---|
28 | #ifndef __NDS_LexiExporter_ObjectPropertiesDialog__ |
---|
29 | #define __NDS_LexiExporter_ObjectPropertiesDialog__ |
---|
30 | |
---|
31 | // |
---|
32 | |
---|
33 | class CObjectPropertiesDlg : public GDI::Dialog, public IDDNotify |
---|
34 | { |
---|
35 | public: |
---|
36 | CObjectPropertiesDlg(Window* pParent); |
---|
37 | ~CObjectPropertiesDlg(); |
---|
38 | |
---|
39 | // Initialize controls from object |
---|
40 | void Init(CDDObject *pMeta, const char *pszDefExt); |
---|
41 | void SetInstance(CDDObject *pData, CExportObject* pObj); |
---|
42 | |
---|
43 | private: |
---|
44 | void OnInitDialog(); |
---|
45 | void OnSize(); |
---|
46 | void BrowseNode(); |
---|
47 | void BrowseOutput(); |
---|
48 | void OnNameChange(); |
---|
49 | void OnFileNameChange(); |
---|
50 | void OnChanged(const CDDObject *pInstance, const char *pszKey); |
---|
51 | |
---|
52 | std::string m_sDefExt; |
---|
53 | |
---|
54 | static INT_PTR CALLBACK DlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); |
---|
55 | |
---|
56 | CExportObject* m_pObj; |
---|
57 | CDDObject *m_pData; |
---|
58 | |
---|
59 | HWND m_hMetaWnd; |
---|
60 | GDI::MetaControl* m_pMetaCtrl; |
---|
61 | |
---|
62 | RECT m_OrgClientRect; |
---|
63 | }; |
---|
64 | |
---|
65 | // |
---|
66 | |
---|
67 | #endif // __NDS_LexiExporter_ObjectPropertiesDialog__ |
---|