-
Notifications
You must be signed in to change notification settings - Fork 0
/
VirtualTreeNode.h
61 lines (51 loc) · 2.19 KB
/
VirtualTreeNode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* Copyright (c) 2002-2012 Croteam Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as published by
the Free Software Foundation
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
// VirtualTreeNode.h : main header file for the Virtual Tree Class
//
#ifndef VIRTUALTREENODE_H
#define VIRTUALTREENODE_H 1
enum BrowsingMode {
BM_ICONS_SMALL = 0,
BM_ICONS_MEDIUM,
BM_ICONS_LARGE,
BM_DESCRIPTION,
BM_FILENAME,
BM_ICONS_MICRO,
};
#define NO_OF_ICONS 16
class CDropVirtualTreeNode {
public:
char dvtn_chrDragName[256];
};
class CVirtualTreeNode {
public:
BOOL vtn_bIsDirectory; // set if this is directory
CListNode vtn_lnInDirectory;
CListHead vtn_lhChildren; // valid if this is a directory
CVirtualTreeNode *vnt_pvtnParent; // NULL if this is root
ULONG vtn_Handle; // internaly use ULONG, later cast to HTREEITEM
INDEX vtn_itIconType; // INDEX of representing icon in list of icons
enum BrowsingMode vtn_bmBrowsingMode;// how to display items - as icons, text, ...
BOOL vtn_bSelected; // (if item) is this item curently selected
CTextureData *vtn_pTextureData; // here we will load textures or thumb nails
CTString vtn_strName; // (if directory) name in virtual tree
CTFileName vtn_fnItem; // (if item) file name
// Functions
CVirtualTreeNode(); // constructor and
~CVirtualTreeNode(); // destructor
void MakeRoot(void);
void Dump(CTStream *pFile);
void Read_t( CTStream *pFile, CVirtualTreeNode* pParent); // read function
void Write_t( CTStream *pFile); // write function
void MoveToDirectory(CVirtualTreeNode *pVTNDst);
};
#endif // VIRTUALTREENODE_H