aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterdirectory.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llfloaterdirectory.h
parentREADME.txt (diff)
downloadmeta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz
Second Life viewer sources 1.13.2.12
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterdirectory.h143
1 files changed, 143 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterdirectory.h b/linden/indra/newview/llfloaterdirectory.h
new file mode 100644
index 0000000..34cf43d
--- /dev/null
+++ b/linden/indra/newview/llfloaterdirectory.h
@@ -0,0 +1,143 @@
1/**
2 * @file llfloaterdirectory.h
3 * @brief The "Find" floater. Should be llfloaterfind.
4 *
5 * Copyright (c) 2002-2007, Linden Research, Inc.
6 *
7 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement
10 * ("Other License"), formally executed by you and Linden Lab. Terms of
11 * the GPL can be found in doc/GPL-license.txt in this distribution, or
12 * online at http://secondlife.com/developers/opensource/gplv2
13 *
14 * There are special exceptions to the terms and conditions of the GPL as
15 * it is applied to this Source Code. View the full text of the exception
16 * in the file doc/FLOSS-exception.txt in this software distribution, or
17 * online at http://secondlife.com/developers/opensource/flossexception
18 *
19 * By copying, modifying or distributing this software, you acknowledge
20 * that you have read and understood your obligations described above,
21 * and agree to abide by those obligations.
22 *
23 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
24 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
25 * COMPLETENESS OR PERFORMANCE.
26 */
27
28#ifndef LL_LLFLOATERDIRECTORY_H
29#define LL_LLFLOATERDIRECTORY_H
30
31#include "llfloater.h"
32#include "lltabcontainer.h"
33#include "viewer.h"
34
35class LLDirectoryCore;
36class LLPanelDirAdvanced;
37class LLPanelDirBrowser;
38class LLPanelDirEvents;
39class LLPanelDirFind;
40class LLPanelDirGroups;
41class LLPanelDirLand;
42class LLPanelDirPeople;
43class LLPanelDirClassified;
44class LLPanelDirPlaces;
45class LLPanelDirPopular;
46
47class LLPanelAvatar;
48class LLPanelEvent;
49class LLPanelGroup;
50class LLPanelPlace;
51class LLPanelClassified;
52
53// Floater to find people, places, things
54class LLFloaterDirectory : public LLFloater
55{
56public:
57 LLFloaterDirectory(const std::string& name);
58 /*virtual*/ ~LLFloaterDirectory();
59
60 /*virtual*/ void setVisible(BOOL visible);
61
62 // Used for toggling God mode, which changes to visibility of
63 // some picks.
64 static void requestClassifieds();
65
66 static void showClassified(const LLUUID& classified_id);
67 static void showEvents(S32 event_id);
68 static void showPopular(const LLUUID& parcel_id);
69 static void showLandForSale(const LLUUID& parcel_id);
70 static void showGroups();
71 static void refreshGroup(const LLUUID& group_id);
72 static void hide(void*);
73
74 static void toggleEvents(void*);
75 static void toggleFind(void*);
76 static void onTabChanged(void*, bool);
77
78protected:
79 static void show(void *);
80 static void showPanel(const LLString& tabname);
81 /*virtual*/ void onClose(bool app_quitting);
82 void focusCurrentPanel();
83
84protected:
85
86 // This determines the order of panels in the directory
87 // From Left to Right
88 enum DIRECTORY_PANEL
89 {
90 DIRECTORY_PANEL_ALL,
91 DIRECTORY_PANEL_CLASSIFIED,
92 DIRECTORY_PANEL_EVENTS,
93 DIRECTORY_PANEL_POPULAR,
94 DIRECTORY_PANEL_LAND,
95 DIRECTORY_PANEL_PLACES,
96 DIRECTORY_PANEL_PEOPLE,
97 DIRECTORY_PANEL_GROUPS,
98 DIRECTORY_PANEL_TOTAL
99 };
100
101 LLPanelDirClassified* mClassifiedPanel;
102 LLPanelDirEvents* mEventsPanel;
103 LLPanelDirPopular* mPopularPanel;
104 LLPanelDirPlaces* mPlacesPanel;
105 LLPanelDirLand* mLandPanel;
106 LLPanelDirPeople* mPeoplePanel;
107 LLPanelDirGroups* mGroupsPanel;
108 LLPanelDirFind* mFindPanel;
109
110 static void* createClassified(void* userdata);
111 static void* createEvents(void* userdata);
112 static void* createPopular(void* userdata);
113 static void* createPlaces(void* userdata);
114 static void* createLand(void* userdata);
115 static void* createPeople(void* userdata);
116 static void* createGroups(void* userdata);
117 static void* createFind(void* userdata);
118
119 static void* createClassifiedDetail(void* userdata);
120 static void* createAvatarDetail(void* userdata);
121 static void* createEventDetail(void* userdata);
122 static void* createGroupDetail(void* userdata);
123 static void* createGroupDetailHolder(void* userdata);
124 static void* createPlaceDetail(void* userdata);
125 static void* createPlaceDetailSmall(void* userdata);
126
127 static void* createPanelAvatar(void* data);
128
129public:
130 LLPanelAvatar* mPanelAvatarp;
131 LLPanelEvent* mPanelEventp;
132 LLPanelGroup* mPanelGroupp;
133 LLPanel* mPanelGroupHolderp;
134 LLPanelPlace* mPanelPlacep;
135 LLPanelPlace* mPanelPlaceSmallp;
136 LLPanelClassified* mPanelClassifiedp;
137
138 static LLFloaterDirectory *sInstance;
139};
140
141extern BOOL gDisplayEventHack;
142
143#endif // LL_LLDIRECTORYFLOATER_H