diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llinventoryview.h | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llinventoryview.h | 51 |
1 files changed, 23 insertions, 28 deletions
diff --git a/linden/indra/newview/llinventoryview.h b/linden/indra/newview/llinventoryview.h index a648eb8..a37d370 100644 --- a/linden/indra/newview/llinventoryview.h +++ b/linden/indra/newview/llinventoryview.h | |||
@@ -66,15 +66,14 @@ class LLSearchEditor; | |||
66 | class LLInventoryPanel : public LLPanel | 66 | class LLInventoryPanel : public LLPanel |
67 | { | 67 | { |
68 | public: | 68 | public: |
69 | static const LLString DEFAULT_SORT_ORDER; | 69 | static const std::string DEFAULT_SORT_ORDER; |
70 | static const LLString RECENTITEMS_SORT_ORDER; | 70 | static const std::string RECENTITEMS_SORT_ORDER; |
71 | static const LLString INHERIT_SORT_ORDER; | 71 | static const std::string INHERIT_SORT_ORDER; |
72 | 72 | ||
73 | LLInventoryPanel(const LLString& name, | 73 | LLInventoryPanel(const std::string& name, |
74 | const LLString& sort_order_setting, | 74 | const std::string& sort_order_setting, |
75 | const LLRect& rect, | 75 | const LLRect& rect, |
76 | LLInventoryModel* inventory, | 76 | LLInventoryModel* inventory, |
77 | LLFolderSearchFunction search, | ||
78 | BOOL allow_multi_select, | 77 | BOOL allow_multi_select, |
79 | LLView *parent_view = NULL); | 78 | LLView *parent_view = NULL); |
80 | ~LLInventoryPanel(); | 79 | ~LLInventoryPanel(); |
@@ -92,7 +91,7 @@ public: | |||
92 | EDragAndDropType cargo_type, | 91 | EDragAndDropType cargo_type, |
93 | void* cargo_data, | 92 | void* cargo_data, |
94 | EAcceptance* accept, | 93 | EAcceptance* accept, |
95 | LLString& tooltip_msg); | 94 | std::string& tooltip_msg); |
96 | 95 | ||
97 | // Call this method to set the selection. | 96 | // Call this method to set the selection. |
98 | void openAllFolders(); | 97 | void openAllFolders(); |
@@ -106,8 +105,8 @@ public: | |||
106 | U32 getFilterTypes() const { return mFolders->getFilterTypes(); } | 105 | U32 getFilterTypes() const { return mFolders->getFilterTypes(); } |
107 | void setFilterPermMask(PermissionMask filter_perm_mask); | 106 | void setFilterPermMask(PermissionMask filter_perm_mask); |
108 | U32 getFilterPermMask() const { return mFolders->getFilterPermissions(); } | 107 | U32 getFilterPermMask() const { return mFolders->getFilterPermissions(); } |
109 | void setFilterSubString(const LLString& string); | 108 | void setFilterSubString(const std::string& string); |
110 | const LLString getFilterSubString() { return mFolders->getFilterSubString(); } | 109 | const std::string getFilterSubString() { return mFolders->getFilterSubString(); } |
111 | void setSortOrder(U32 order); | 110 | void setSortOrder(U32 order); |
112 | U32 getSortOrder() { return mFolders->getSortOrder(); } | 111 | U32 getSortOrder() { return mFolders->getSortOrder(); } |
113 | void setSinceLogoff(BOOL sl); | 112 | void setSinceLogoff(BOOL sl); |
@@ -139,7 +138,7 @@ public: | |||
139 | // helper method which creates an item with a good description, | 138 | // helper method which creates an item with a good description, |
140 | // updates the inventory, updates the server, and pushes the | 139 | // updates the inventory, updates the server, and pushes the |
141 | // inventory update out to other observers. | 140 | // inventory update out to other observers. |
142 | void createNewItem(const char* name, | 141 | void createNewItem(const std::string& name, |
143 | const LLUUID& parent_id, | 142 | const LLUUID& parent_id, |
144 | LLAssetType::EType asset_type, | 143 | LLAssetType::EType asset_type, |
145 | LLInventoryType::EType inv_type, | 144 | LLInventoryType::EType inv_type, |
@@ -151,8 +150,7 @@ protected: | |||
151 | LLFolderView* mFolders; | 150 | LLFolderView* mFolders; |
152 | LLScrollableContainerView* mScroller; | 151 | LLScrollableContainerView* mScroller; |
153 | BOOL mAllowMultiSelect; | 152 | BOOL mAllowMultiSelect; |
154 | const LLString mSortOrderSetting; | 153 | const std::string mSortOrderSetting; |
155 | LLFolderSearchFunction mSearchFunction; | ||
156 | }; | 154 | }; |
157 | 155 | ||
158 | class LLInventoryView; | 156 | class LLInventoryView; |
@@ -160,7 +158,7 @@ class LLInventoryView; | |||
160 | class LLInventoryViewFinder : public LLFloater | 158 | class LLInventoryViewFinder : public LLFloater |
161 | { | 159 | { |
162 | public: | 160 | public: |
163 | LLInventoryViewFinder(const LLString& name, | 161 | LLInventoryViewFinder(const std::string& name, |
164 | const LLRect& rect, | 162 | const LLRect& rect, |
165 | LLInventoryView* inventory_view); | 163 | LLInventoryView* inventory_view); |
166 | virtual void draw(); | 164 | virtual void draw(); |
@@ -188,9 +186,9 @@ class LLInventoryView : public LLFloater, LLInventoryObserver | |||
188 | friend class LLInventoryViewFinder; | 186 | friend class LLInventoryViewFinder; |
189 | 187 | ||
190 | public: | 188 | public: |
191 | LLInventoryView(const LLString& name, const LLString& rect, | 189 | LLInventoryView(const std::string& name, const std::string& rect, |
192 | LLInventoryModel* inventory); | 190 | LLInventoryModel* inventory); |
193 | LLInventoryView(const LLString& name, const LLRect& rect, | 191 | LLInventoryView(const std::string& name, const LLRect& rect, |
194 | LLInventoryModel* inventory); | 192 | LLInventoryModel* inventory); |
195 | ~LLInventoryView(); | 193 | ~LLInventoryView(); |
196 | 194 | ||
@@ -230,7 +228,7 @@ public: | |||
230 | EDragAndDropType cargo_type, | 228 | EDragAndDropType cargo_type, |
231 | void* cargo_data, | 229 | void* cargo_data, |
232 | EAcceptance* accept, | 230 | EAcceptance* accept, |
233 | LLString& tooltip_msg); | 231 | std::string& tooltip_msg); |
234 | 232 | ||
235 | 233 | ||
236 | LLInventoryPanel* getPanel() { return mActivePanel; } | 234 | LLInventoryPanel* getPanel() { return mActivePanel; } |
@@ -240,17 +238,14 @@ public: | |||
240 | static void onClearSearch(void* user_data); | 238 | static void onClearSearch(void* user_data); |
241 | static void onFoldersByName(void *user_data); | 239 | static void onFoldersByName(void *user_data); |
242 | static BOOL checkFoldersByName(void *user_data); | 240 | static BOOL checkFoldersByName(void *user_data); |
243 | static void onSearchEdit(const LLString& search_string, void* user_data ); | 241 | static void onSearchEdit(const std::string& search_string, void* user_data ); |
244 | //static void onSearchCommit(LLUICtrl* caller, void* user_data ); | ||
245 | static void onFilterSelected(void* userdata, bool from_click); | 242 | static void onFilterSelected(void* userdata, bool from_click); |
246 | static void onSelectionChange(const std::deque<LLFolderViewItem*> &items, BOOL user_action, void* data); | 243 | static void onSelectionChange(const std::deque<LLFolderViewItem*> &items, BOOL user_action, void* data); |
247 | static BOOL incrementalFind(LLFolderViewItem* first_item, const char* find_text, BOOL backward); | ||
248 | 244 | ||
249 | const LLString getFilterSubString() { return mActivePanel->getFilterSubString(); } | 245 | const std::string getFilterSubString() { return mActivePanel->getFilterSubString(); } |
250 | void setFilterSubString(const LLString& string) { mActivePanel->setFilterSubString(string); } | 246 | void setFilterSubString(const std::string& string) { mActivePanel->setFilterSubString(string); } |
251 | 247 | ||
252 | // HACK: Until we can route this info through the instant message hierarchy | 248 | // HACK: Until we can route this info through the instant message hierarchy |
253 | //static BOOL sOpenNextNewItem; | ||
254 | static BOOL sWearNewClothing; | 249 | static BOOL sWearNewClothing; |
255 | static LLUUID sWearNewClothingTransactionID; // wear all clothing in this transaction | 250 | static LLUUID sWearNewClothingTransactionID; // wear all clothing in this transaction |
256 | 251 | ||
@@ -269,7 +264,7 @@ protected: | |||
269 | LLInventoryPanel* mActivePanel; | 264 | LLInventoryPanel* mActivePanel; |
270 | LLSaveFolderState* mSavedFolderState; | 265 | LLSaveFolderState* mSavedFolderState; |
271 | 266 | ||
272 | LLString mFilterText; | 267 | std::string mFilterText; |
273 | 268 | ||
274 | 269 | ||
275 | // This container is used to hold all active inventory views. This | 270 | // This container is used to hold all active inventory views. This |
@@ -336,15 +331,15 @@ class LLInventoryItem; | |||
336 | //void wear_inventory_category_on_avatar(LLInventoryCategory* category); | 331 | //void wear_inventory_category_on_avatar(LLInventoryCategory* category); |
337 | 332 | ||
338 | void wear_inventory_item_on_avatar(LLInventoryItem* item); | 333 | void wear_inventory_item_on_avatar(LLInventoryItem* item); |
339 | void wear_outfit_by_name(const char* name); | 334 | void wear_outfit_by_name(const std::string& name); |
340 | void wear_inventory_category(LLInventoryCategory* category, bool copy, bool append); | 335 | void wear_inventory_category(LLInventoryCategory* category, bool copy, bool append); |
341 | 336 | ||
342 | // These methods can open items without the inventory being visible | 337 | // These methods can open items without the inventory being visible |
343 | void open_notecard(LLViewerInventoryItem* inv_item, const LLString& title, const LLUUID& object_id, BOOL show_keep_discard, const LLUUID& source_id = LLUUID::null, BOOL take_focus = TRUE); | 338 | void open_notecard(LLViewerInventoryItem* inv_item, const std::string& title, const LLUUID& object_id, BOOL show_keep_discard, const LLUUID& source_id = LLUUID::null, BOOL take_focus = TRUE); |
344 | void open_landmark(LLViewerInventoryItem* inv_item, const LLString& title, BOOL show_keep_discard, const LLUUID& source_id = LLUUID::null, BOOL take_focus = TRUE); | 339 | void open_landmark(LLViewerInventoryItem* inv_item, const std::string& title, BOOL show_keep_discard, const LLUUID& source_id = LLUUID::null, BOOL take_focus = TRUE); |
345 | void open_texture(const LLUUID& item_id, const LLString& title, BOOL show_keep_discard, const LLUUID& source_id = LLUUID::null, BOOL take_focus = TRUE); | 340 | void open_texture(const LLUUID& item_id, const std::string& title, BOOL show_keep_discard, const LLUUID& source_id = LLUUID::null, BOOL take_focus = TRUE); |
346 | 341 | ||
347 | LLString get_item_icon_name(LLAssetType::EType asset_type, | 342 | std::string get_item_icon_name(LLAssetType::EType asset_type, |
348 | LLInventoryType::EType inventory_type, | 343 | LLInventoryType::EType inventory_type, |
349 | U32 attachment_point, | 344 | U32 attachment_point, |
350 | BOOL item_is_multi ); | 345 | BOOL item_is_multi ); |