aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterdirectory.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:16 -0500
committerJacek Antonelli2008-08-15 23:45:16 -0500
commit3f27ba891ac4d032753b219b4b96d1ffbc9fb488 (patch)
tree504932ee91a0356fba7ea48798887c96867e492f /linden/indra/newview/llfloaterdirectory.h
parentSecond Life viewer sources 1.18.4.3 (diff)
downloadmeta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.zip
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.gz
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.bz2
meta-impy-3f27ba891ac4d032753b219b4b96d1ffbc9fb488.tar.xz
Second Life viewer sources 1.18.5.0-RC
Diffstat (limited to 'linden/indra/newview/llfloaterdirectory.h')
-rw-r--r--linden/indra/newview/llfloaterdirectory.h60
1 files changed, 25 insertions, 35 deletions
diff --git a/linden/indra/newview/llfloaterdirectory.h b/linden/indra/newview/llfloaterdirectory.h
index 7314da7..f7a2905 100644
--- a/linden/indra/newview/llfloaterdirectory.h
+++ b/linden/indra/newview/llfloaterdirectory.h
@@ -33,18 +33,18 @@
33#define LL_LLFLOATERDIRECTORY_H 33#define LL_LLFLOATERDIRECTORY_H
34 34
35#include "llfloater.h" 35#include "llfloater.h"
36#include "lltabcontainer.h"
37#include "viewer.h"
38 36
39class LLDirectoryCore; 37class LLDirectoryCore;
40class LLPanelDirAdvanced;
41class LLPanelDirBrowser; 38class LLPanelDirBrowser;
39
40class LLPanelDirAdvanced;
41class LLPanelDirClassified;
42class LLPanelDirEvents; 42class LLPanelDirEvents;
43class LLPanelDirFind; 43class LLPanelDirFindAll;
44class LLPanelDirFindAllOld;
44class LLPanelDirGroups; 45class LLPanelDirGroups;
45class LLPanelDirLand; 46class LLPanelDirLand;
46class LLPanelDirPeople; 47class LLPanelDirPeople;
47class LLPanelDirClassified;
48class LLPanelDirPlaces; 48class LLPanelDirPlaces;
49class LLPanelDirPopular; 49class LLPanelDirPopular;
50 50
@@ -62,11 +62,15 @@ public:
62 /*virtual*/ ~LLFloaterDirectory(); 62 /*virtual*/ ~LLFloaterDirectory();
63 63
64 /*virtual*/ void setVisible(BOOL visible); 64 /*virtual*/ void setVisible(BOOL visible);
65 /*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent);
65 66
66 // Used for toggling God mode, which changes to visibility of 67 // Used for toggling God mode, which changes to visibility of
67 // some picks. 68 // some picks.
68 static void requestClassifieds(); 69 static void requestClassifieds();
69 70
71 // Outside UI widgets can spawn this floater with various tabs
72 // selected.
73 static void showFindAll(const std::string& search_text);
70 static void showClassified(const LLUUID& classified_id); 74 static void showClassified(const LLUUID& classified_id);
71 static void showEvents(S32 event_id); 75 static void showEvents(S32 event_id);
72 static void showPopular(const LLUUID& parcel_id); 76 static void showPopular(const LLUUID& parcel_id);
@@ -78,39 +82,25 @@ public:
78 static void toggleEvents(void*); 82 static void toggleEvents(void*);
79 static void toggleFind(void*); 83 static void toggleFind(void*);
80 static void onTabChanged(void*, bool); 84 static void onTabChanged(void*, bool);
85 static void onTabChangedFindAll(void*, bool);
86
87 void hideAllDetailPanels();
81 88
82protected: 89private:
83 static void show(void *); 90 static void showPanel(const std::string& tabname);
84 static void showPanel(const LLString& tabname); 91 /*virtual*/ void onClose(bool app_quitting);
85 /*virtual*/ void onClose(bool app_quitting);
86 void focusCurrentPanel(); 92 void focusCurrentPanel();
87 93
88protected: 94private:
89 95 // Some special "showByID" functions use these cached pointers.
90 // This determines the order of panels in the directory 96 // They could be replaced by getPanelByName(), perhaps. JC
91 // From Left to Right 97 LLPanelDirFindAll* mFindAllPanel;
92 enum DIRECTORY_PANEL 98 LLPanelDirClassified* mClassifiedPanel;
93 { 99 LLPanelDirEvents* mEventsPanel;
94 DIRECTORY_PANEL_ALL, 100 LLPanelDirPopular* mPopularPanel;
95 DIRECTORY_PANEL_CLASSIFIED, 101 LLPanelDirLand* mLandPanel;
96 DIRECTORY_PANEL_EVENTS,
97 DIRECTORY_PANEL_POPULAR,
98 DIRECTORY_PANEL_LAND,
99 DIRECTORY_PANEL_PLACES,
100 DIRECTORY_PANEL_PEOPLE,
101 DIRECTORY_PANEL_GROUPS,
102 DIRECTORY_PANEL_TOTAL
103 };
104
105 LLPanelDirClassified* mClassifiedPanel;
106 LLPanelDirEvents* mEventsPanel;
107 LLPanelDirPopular* mPopularPanel;
108 LLPanelDirPlaces* mPlacesPanel;
109 LLPanelDirLand* mLandPanel;
110 LLPanelDirPeople* mPeoplePanel;
111 LLPanelDirGroups* mGroupsPanel;
112 LLPanelDirFind* mFindPanel;
113 102
103 static void* createFindAll(void* userdata);
114 static void* createClassified(void* userdata); 104 static void* createClassified(void* userdata);
115 static void* createEvents(void* userdata); 105 static void* createEvents(void* userdata);
116 static void* createPopular(void* userdata); 106 static void* createPopular(void* userdata);
@@ -118,7 +108,7 @@ protected:
118 static void* createLand(void* userdata); 108 static void* createLand(void* userdata);
119 static void* createPeople(void* userdata); 109 static void* createPeople(void* userdata);
120 static void* createGroups(void* userdata); 110 static void* createGroups(void* userdata);
121 static void* createFind(void* userdata); 111 static void* createFindAllOld(void* userdata);
122 112
123 static void* createClassifiedDetail(void* userdata); 113 static void* createClassifiedDetail(void* userdata);
124 static void* createAvatarDetail(void* userdata); 114 static void* createAvatarDetail(void* userdata);