diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/newview/llfloaterdirectory.cpp | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/newview/llfloaterdirectory.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterdirectory.cpp | 45 |
1 files changed, 6 insertions, 39 deletions
diff --git a/linden/indra/newview/llfloaterdirectory.cpp b/linden/indra/newview/llfloaterdirectory.cpp index 42a3bae..f1ee946 100644 --- a/linden/indra/newview/llfloaterdirectory.cpp +++ b/linden/indra/newview/llfloaterdirectory.cpp | |||
@@ -79,7 +79,6 @@ LLFloaterDirectory::LLFloaterDirectory(const std::string& name) | |||
79 | mFindAllPanel = NULL; | 79 | mFindAllPanel = NULL; |
80 | mClassifiedPanel = NULL; | 80 | mClassifiedPanel = NULL; |
81 | mEventsPanel = NULL; | 81 | mEventsPanel = NULL; |
82 | mPopularPanel = NULL; | ||
83 | mLandPanel = NULL; | 82 | mLandPanel = NULL; |
84 | 83 | ||
85 | mPanelAvatarp = NULL; | 84 | mPanelAvatarp = NULL; |
@@ -96,12 +95,11 @@ LLFloaterDirectory::LLFloaterDirectory(const std::string& name) | |||
96 | factory_map["find_all_panel"] = LLCallbackMap(createFindAll, this); | 95 | factory_map["find_all_panel"] = LLCallbackMap(createFindAll, this); |
97 | factory_map["classified_panel"] = LLCallbackMap(createClassified, this); | 96 | factory_map["classified_panel"] = LLCallbackMap(createClassified, this); |
98 | factory_map["events_panel"] = LLCallbackMap(createEvents, this); | 97 | factory_map["events_panel"] = LLCallbackMap(createEvents, this); |
99 | factory_map["popular_panel"] = LLCallbackMap(createPopular, this); | 98 | factory_map["showcase_panel"] = LLCallbackMap(createShowcase, this); |
100 | factory_map["places_panel"] = LLCallbackMap(createPlaces, this); | 99 | factory_map["places_panel"] = LLCallbackMap(createPlaces, this); |
101 | factory_map["land_sales_panel"] = LLCallbackMap(createLand, this); | 100 | factory_map["land_sales_panel"] = LLCallbackMap(createLand, this); |
102 | factory_map["people_panel"] = LLCallbackMap(createPeople, this); | 101 | factory_map["people_panel"] = LLCallbackMap(createPeople, this); |
103 | factory_map["groups_panel"] = LLCallbackMap(createGroups, this); | 102 | factory_map["groups_panel"] = LLCallbackMap(createGroups, this); |
104 | factory_map["find_all_old_panel"] = LLCallbackMap(createFindAllOld, this); | ||
105 | 103 | ||
106 | factory_map["classified_details_panel"] = LLCallbackMap(createClassifiedDetail, this); | 104 | factory_map["classified_details_panel"] = LLCallbackMap(createClassifiedDetail, this); |
107 | factory_map["event_details_panel"] = LLCallbackMap(createEventDetail, this); | 105 | factory_map["event_details_panel"] = LLCallbackMap(createEventDetail, this); |
@@ -120,15 +118,14 @@ LLFloaterDirectory::LLFloaterDirectory(const std::string& name) | |||
120 | mPanelAvatarp->selectTab(0); | 118 | mPanelAvatarp->selectTab(0); |
121 | } | 119 | } |
122 | 120 | ||
123 | childSetTabChangeCallback("Directory Tabs", "find_all_panel", onTabChangedFindAll, this); | 121 | childSetTabChangeCallback("Directory Tabs", "find_all_panel", onTabChanged, this); |
124 | childSetTabChangeCallback("Directory Tabs", "classified_panel", onTabChanged, this); | 122 | childSetTabChangeCallback("Directory Tabs", "classified_panel", onTabChanged, this); |
125 | childSetTabChangeCallback("Directory Tabs", "events_panel", onTabChanged, this); | 123 | childSetTabChangeCallback("Directory Tabs", "events_panel", onTabChanged, this); |
126 | childSetTabChangeCallback("Directory Tabs", "popular_panel", onTabChanged, this); | 124 | childSetTabChangeCallback("Directory Tabs", "showcase_panel", onTabChanged, this); |
127 | childSetTabChangeCallback("Directory Tabs", "places_panel", onTabChanged, this); | 125 | childSetTabChangeCallback("Directory Tabs", "places_panel", onTabChanged, this); |
128 | childSetTabChangeCallback("Directory Tabs", "land_sales_panel", onTabChanged, this); | 126 | childSetTabChangeCallback("Directory Tabs", "land_sales_panel", onTabChanged, this); |
129 | childSetTabChangeCallback("Directory Tabs", "people_panel", onTabChanged, this); | 127 | childSetTabChangeCallback("Directory Tabs", "people_panel", onTabChanged, this); |
130 | childSetTabChangeCallback("Directory Tabs", "groups_panel", onTabChanged, this); | 128 | childSetTabChangeCallback("Directory Tabs", "groups_panel", onTabChanged, this); |
131 | childSetTabChangeCallback("Directory Tabs", "find_all_old_panel", onTabChanged, this); | ||
132 | } | 129 | } |
133 | 130 | ||
134 | LLFloaterDirectory::~LLFloaterDirectory() | 131 | LLFloaterDirectory::~LLFloaterDirectory() |
@@ -175,11 +172,10 @@ void* LLFloaterDirectory::createEvents(void* userdata) | |||
175 | } | 172 | } |
176 | 173 | ||
177 | // static | 174 | // static |
178 | void* LLFloaterDirectory::createPopular(void* userdata) | 175 | void* LLFloaterDirectory::createShowcase(void* userdata) |
179 | { | 176 | { |
180 | LLFloaterDirectory *self = (LLFloaterDirectory*)userdata; | 177 | LLFloaterDirectory *self = (LLFloaterDirectory*)userdata; |
181 | self->mPopularPanel = new LLPanelDirPopular("popular_panel", self); | 178 | return new LLPanelDirPopular("showcase_panel", self); |
182 | return self->mPopularPanel; | ||
183 | } | 179 | } |
184 | 180 | ||
185 | // static | 181 | // static |
@@ -209,14 +205,7 @@ void* LLFloaterDirectory::createPeople(void* userdata) | |||
209 | void* LLFloaterDirectory::createGroups(void* userdata) | 205 | void* LLFloaterDirectory::createGroups(void* userdata) |
210 | { | 206 | { |
211 | LLFloaterDirectory *self = (LLFloaterDirectory*)userdata; | 207 | LLFloaterDirectory *self = (LLFloaterDirectory*)userdata; |
212 | return new LLPanelDirGroups("groups_panel", self); | 208 | return new LLPanelDirGroups("people_groups", self); |
213 | } | ||
214 | |||
215 | // static | ||
216 | void *LLFloaterDirectory::createFindAllOld(void* userdata) | ||
217 | { | ||
218 | LLFloaterDirectory *self = (LLFloaterDirectory*)userdata; | ||
219 | return new LLPanelDirFindAllOld("find_all_old_panel", self); | ||
220 | } | 209 | } |
221 | 210 | ||
222 | // static | 211 | // static |
@@ -339,17 +328,6 @@ void LLFloaterDirectory::showEvents(S32 event_id) | |||
339 | } | 328 | } |
340 | 329 | ||
341 | // static | 330 | // static |
342 | void LLFloaterDirectory::showPopular(const LLUUID& parcel_id) | ||
343 | { | ||
344 | showPanel("popular_panel"); | ||
345 | |||
346 | if (sInstance->mPopularPanel) | ||
347 | { | ||
348 | sInstance->mPopularPanel->selectByUUID(parcel_id); | ||
349 | } | ||
350 | } | ||
351 | |||
352 | // static | ||
353 | void LLFloaterDirectory::showLandForSale(const LLUUID& parcel_id) | 331 | void LLFloaterDirectory::showLandForSale(const LLUUID& parcel_id) |
354 | { | 332 | { |
355 | showPanel("land_sales_panel"); | 333 | showPanel("land_sales_panel"); |
@@ -498,17 +476,6 @@ void LLFloaterDirectory::onTabChanged(void* data, bool from_click) | |||
498 | } | 476 | } |
499 | } | 477 | } |
500 | 478 | ||
501 | // static | ||
502 | void LLFloaterDirectory::onTabChangedFindAll(void* data, bool from_click) | ||
503 | { | ||
504 | LLFloaterDirectory* self = (LLFloaterDirectory*)data; | ||
505 | if (!self) return; | ||
506 | |||
507 | self->hideAllDetailPanels(); | ||
508 | LLPanelDirFindAllInterface::focus(self->mFindAllPanel); | ||
509 | onTabChanged(data, from_click); | ||
510 | } | ||
511 | |||
512 | void LLFloaterDirectory::hideAllDetailPanels() | 479 | void LLFloaterDirectory::hideAllDetailPanels() |
513 | { | 480 | { |
514 | if (mPanelAvatarp) mPanelAvatarp->setVisible(FALSE); | 481 | if (mPanelAvatarp) mPanelAvatarp->setVisible(FALSE); |