Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ogre/Tools/3dsmaxExport/LEXIExporter/LexiExport/Sources/LexiDialogSelectNode.h @ 45

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

=…

File size: 1.8 KB
Line 
1/*
2-----------------------------------------------------------------------------
3This source file is part of LEXIExporter
4
5Copyright 2006 NDS Limited
6
7Author(s):
8Mark Folkenberg,
9Bo Krohn
10
11This program is free software; you can redistribute it and/or modify it under
12the terms of the GNU Lesser General Public License as published by the Free Software
13Foundation; either version 2 of the License, or (at your option) any later
14version.
15
16This program is distributed in the hope that it will be useful, but WITHOUT
17ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
19
20You should have received a copy of the GNU Lesser General Public License along with
21this program; if not, write to the Free Software Foundation, Inc., 59 Temple
22Place - Suite 330, Boston, MA 02111-1307, USA, or go to
23http://www.gnu.org/copyleft/lesser.txt.
24-----------------------------------------------------------------------------
25*/
26#ifndef __NDS_LexiExporter_SelectNodeDialog__
27#define __NDS_LexiExporter_SelectNodeDialog__
28
29//
30class CSelectNodeDlg : public GDI::Dialog
31{
32public:
33        CSelectNodeDlg(Window* pParent, CExportObject *pCaller);
34        ~CSelectNodeDlg();
35
36protected:
37        virtual void OnInitDialog();
38
39private:
40        CExportObject* m_pObj;
41
42        GDI::TreeCtrl m_Tree;
43        HTREEITEM m_hRoot;
44
45        HIMAGELIST m_hImageList;
46        std::map<SClass_ID, unsigned int> m_ImageListMap;
47
48        std::string m_sTitle;
49
50        // Selected node
51        unsigned int m_iNode;
52
53        // Windows callback function
54        static INT_PTR CALLBACK DlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
55
56        // Build selection tree
57        void BuildTree(INode* pNode, HTREEITEM hTreeItem);
58
59        void ShaveTree();
60        bool ShaveTree(HTREEITEM hItem);
61
62        void UpdateStuff();
63};
64
65//
66
67#endif // __NDS_LexiExporter_SelectNodeDialog__
Note: See TracBrowser for help on using the repository browser.