summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterexperiencepicker.h
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2014-04-24 23:43:54 +0100
committerCho <cho@lindenlab.com>2014-04-24 23:43:54 +0100
commit446a3193b1f2932ed14a16216bcf65dc30889612 (patch)
tree97328bce131aaf4dc0d1ff71ea712f3e38e09a7d /indra/newview/llfloaterexperiencepicker.h
parent2206f97d8efb2683e6c0d759a8549de9de67a054 (diff)
Refactored to share code between experience search floater and panel for ACME-1420
Diffstat (limited to 'indra/newview/llfloaterexperiencepicker.h')
-rw-r--r--indra/newview/llfloaterexperiencepicker.h35
1 files changed, 4 insertions, 31 deletions
diff --git a/indra/newview/llfloaterexperiencepicker.h b/indra/newview/llfloaterexperiencepicker.h
index ea0240d2ac..22bfb64ba7 100644
--- a/indra/newview/llfloaterexperiencepicker.h
+++ b/indra/newview/llfloaterexperiencepicker.h
@@ -31,6 +31,7 @@
class LLScrollListCtrl;
class LLLineEditor;
+class LLPanelExperiencePicker;
class LLFloaterExperiencePicker : public LLFloater
@@ -38,7 +39,6 @@ class LLFloaterExperiencePicker : public LLFloater
public:
friend class LLExperiencePickerResponder;
- // The callback function will be called with an avatar name and UUID.
typedef boost::function<void (const uuid_vec_t&)> select_callback_t;
// filter function for experiences, return true if the experience should be hidden.
typedef boost::function<bool (const LLSD&)> filter_function;
@@ -50,47 +50,20 @@ public:
virtual ~LLFloaterExperiencePicker();
BOOL postBuild();
-
- void addFilter(filter_function func){mFilters.push_back(func);}
+
template <class IT>
void addFilters(IT begin, IT end){mFilters.insert(mFilters.end(), begin, end);}
- void setDefaultFilters();
-
- static bool FilterWithProperty(const LLSD& experience, S32 prop);
- static bool FilterWithoutProperty(const LLSD& experience, S32 prop);
- bool FilterOverRating(const LLSD& experience);
virtual void draw();
private:
- void editKeystroke(LLLineEditor* caller, void* user_data);
-
- void onBtnFind();
- void onBtnSelect();
- void onBtnProfile();
- void onBtnClose();
- void onList();
- void onMaturity();
-
- void getSelectedExperienceIds( const LLScrollListCtrl* results, uuid_vec_t &experience_ids );
- void setAllowMultiple(bool allow_multiple);
-
-
- void find();
- bool isSelectButtonEnabled();
- void processResponse( const LLUUID& query_id, const LLSD& content );
-
- void filterContent();
- bool isExperienceHidden(const LLSD& experience) const ;
- std::string getMaturityString(int maturity);
+ LLPanelExperiencePicker* mSearchPanel;
select_callback_t mSelectionCallback;
filter_list mFilters;
- LLUUID mQueryID;
- LLSD mResponse;
+ bool mAllowMultiple;
bool mCloseOnSelect;
-
void drawFrustum();
LLHandle <LLView> mFrustumOrigin;
F32 mContextConeOpacity;