diff options
author | McCabe Maxsted | 2010-06-05 11:23:13 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:31 -0500 |
commit | f96a6b0675c218b3671085e5c228eb52a1718906 (patch) | |
tree | 3e4b271c15c7bfce830fc2a5cb9b99aa315a233c /linden/indra/newview/hbfloatergrouptitles.h | |
parent | Updated llcharacter with some bits from Emerald and SnowGlobe (diff) | |
download | meta-impy-f96a6b0675c218b3671085e5c228eb52a1718906.zip meta-impy-f96a6b0675c218b3671085e5c228eb52a1718906.tar.gz meta-impy-f96a6b0675c218b3671085e5c228eb52a1718906.tar.bz2 meta-impy-f96a6b0675c218b3671085e5c228eb52a1718906.tar.xz |
Ported group titles window from the Cool Viewer and placed it in the groups list
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/hbfloatergrouptitles.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/linden/indra/newview/hbfloatergrouptitles.h b/linden/indra/newview/hbfloatergrouptitles.h new file mode 100644 index 0000000..fbfd33c --- /dev/null +++ b/linden/indra/newview/hbfloatergrouptitles.h | |||
@@ -0,0 +1,82 @@ | |||
1 | /** | ||
2 | * @file hbfloatergrouptitles.h | ||
3 | * @brief HBFloaterGroupTitles class definition | ||
4 | * | ||
5 | * This class implements a floater where all available group titles are | ||
6 | * listed, allowing the user to activate any via simple double-click. | ||
7 | * | ||
8 | * $LicenseInfo:firstyear=2010&license=viewergpl$ | ||
9 | * | ||
10 | * Copyright (c) 2010, Henri Beauchamp. | ||
11 | * | ||
12 | * Second Life Viewer Source Code | ||
13 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
14 | * to you under the terms of the GNU General Public License, version 2.0 | ||
15 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
16 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
17 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
18 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
19 | * | ||
20 | * There are special exceptions to the terms and conditions of the GPL as | ||
21 | * it is applied to this Source Code. View the full text of the exception | ||
22 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
23 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
24 | * | ||
25 | * By copying, modifying or distributing this software, you acknowledge | ||
26 | * that you have read and understood your obligations described above, | ||
27 | * and agree to abide by those obligations. | ||
28 | * | ||
29 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
30 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
31 | * COMPLETENESS OR PERFORMANCE. | ||
32 | * $/LicenseInfo$ | ||
33 | */ | ||
34 | |||
35 | #ifndef LL_HBFLOATERGROUPTITLES_H | ||
36 | #define LL_HBFLOATERGROUPTITLES_H | ||
37 | |||
38 | #include "llfloater.h" | ||
39 | #include "llgroupmgr.h" | ||
40 | #include "llscrolllistctrl.h" | ||
41 | |||
42 | enum TITLES_COLUMN_ORDER | ||
43 | { | ||
44 | LIST_TITLE, | ||
45 | LIST_GROUP_NAME, | ||
46 | LIST_GROUP_ID | ||
47 | }; | ||
48 | class HBFloaterGroupTitles; | ||
49 | |||
50 | class HBFloaterGroupTitlesObserver : public LLGroupMgrObserver | ||
51 | { | ||
52 | public: | ||
53 | HBFloaterGroupTitlesObserver(HBFloaterGroupTitles* instance, const LLUUID& group_id); | ||
54 | /* virtual */ ~HBFloaterGroupTitlesObserver(); | ||
55 | |||
56 | /* virtual */ void changed(LLGroupChange gc); | ||
57 | |||
58 | private: | ||
59 | HBFloaterGroupTitles* mFloaterInstance; | ||
60 | }; | ||
61 | |||
62 | class HBFloaterGroupTitles : public LLFloater | ||
63 | { | ||
64 | public: | ||
65 | HBFloaterGroupTitles(); | ||
66 | virtual ~HBFloaterGroupTitles(); | ||
67 | |||
68 | static void toggle(); | ||
69 | |||
70 | BOOL postBuild(); | ||
71 | |||
72 | bool mFirstUse; | ||
73 | LLScrollListCtrl* mTitlesList; | ||
74 | std::vector<HBFloaterGroupTitlesObserver*> mObservers; | ||
75 | |||
76 | private: | ||
77 | static void onActivate(void* data); | ||
78 | |||
79 | static HBFloaterGroupTitles* sInstance; | ||
80 | }; | ||
81 | |||
82 | #endif | ||