diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lltexturetable.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/linden/indra/newview/lltexturetable.h b/linden/indra/newview/lltexturetable.h deleted file mode 100644 index 85510b5..0000000 --- a/linden/indra/newview/lltexturetable.h +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | /** | ||
2 | * @file lltexturetable.h | ||
3 | * @brief Table of texture names and IDs for viewer | ||
4 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * Second Life Viewer Source Code | ||
8 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
9 | * to you under the terms of the GNU General Public License, version 2.0 | ||
10 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
11 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
12 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
13 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
14 | * | ||
15 | * There are special exceptions to the terms and conditions of the GPL as | ||
16 | * it is applied to this Source Code. View the full text of the exception | ||
17 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
18 | * online at http://secondlife.com/developers/opensource/flossexception | ||
19 | * | ||
20 | * By copying, modifying or distributing this software, you acknowledge | ||
21 | * that you have read and understood your obligations described above, | ||
22 | * and agree to abide by those obligations. | ||
23 | * | ||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
26 | * COMPLETENESS OR PERFORMANCE. | ||
27 | */ | ||
28 | |||
29 | // Table of texture information for the viewer UI. The Table is | ||
30 | // maintained in a sorted order at all times. | ||
31 | |||
32 | #ifndef LL_LLTEXTURETABLE_H | ||
33 | #define LL_LLTEXTURETABLE_H | ||
34 | |||
35 | #include "lluuid.h" | ||
36 | #include "linked_lists.h" | ||
37 | |||
38 | class LLTextureInfo | ||
39 | { | ||
40 | public: | ||
41 | LLTextureInfo(const std::string& name, const LLUUID &uuid, const std::string& description); | ||
42 | ~LLTextureInfo(); | ||
43 | std::string mName; | ||
44 | LLUUID mUUID; | ||
45 | std::string mDescription; | ||
46 | }; | ||
47 | |||
48 | class LLTextureTable | ||
49 | { | ||
50 | public: | ||
51 | LLTextureTable(); | ||
52 | ~LLTextureTable(); | ||
53 | |||
54 | BOOL add(const std::string& name, const LLUUID &uuid, | ||
55 | const std::string& description); // copies memory, false if fails | ||
56 | LLUUID getUUID(const std::string& name); // LLUUID::null if not found | ||
57 | std::string getDesc(const std::string& name); | ||
58 | std::string getName(const LLUUID &id); | ||
59 | void deleteAll(); | ||
60 | //void bubbleSort(); | ||
61 | |||
62 | static BOOL insertBefore(LLTextureInfo* a, LLTextureInfo* b); | ||
63 | |||
64 | public: | ||
65 | LLLinkedList<LLTextureInfo> mTextureInfoList; | ||
66 | }; | ||
67 | |||
68 | extern LLTextureTable gTextureTable; | ||
69 | |||
70 | #endif | ||