diff options
Diffstat (limited to 'linden/indra/newview/llinventorybridge.h')
-rw-r--r-- | linden/indra/newview/llinventorybridge.h | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/linden/indra/newview/llinventorybridge.h b/linden/indra/newview/llinventorybridge.h index 80b65b2..fc04b28 100644 --- a/linden/indra/newview/llinventorybridge.h +++ b/linden/indra/newview/llinventorybridge.h | |||
@@ -70,7 +70,7 @@ enum EInventoryIcon | |||
70 | ICON_NAME_COUNT | 70 | ICON_NAME_COUNT |
71 | }; | 71 | }; |
72 | 72 | ||
73 | extern const char* ICON_NAME[ICON_NAME_COUNT]; | 73 | extern std::string ICON_NAME[ICON_NAME_COUNT]; |
74 | 74 | ||
75 | typedef std::pair<LLUUID, LLUUID> two_uuids_t; | 75 | typedef std::pair<LLUUID, LLUUID> two_uuids_t; |
76 | typedef std::list<two_uuids_t> two_uuids_list_t; | 76 | typedef std::list<two_uuids_t> two_uuids_list_t; |
@@ -157,24 +157,24 @@ public: | |||
157 | 157 | ||
158 | virtual const LLUUID& getUUID() const { return mUUID; } | 158 | virtual const LLUUID& getUUID() const { return mUUID; } |
159 | 159 | ||
160 | virtual const LLString& getPrefix() { return LLString::null; } | 160 | virtual const std::string& getPrefix() { return LLStringUtil::null; } |
161 | virtual void restoreItem() {} | 161 | virtual void restoreItem() {} |
162 | 162 | ||
163 | // LLFolderViewEventListener functions | 163 | // LLFolderViewEventListener functions |
164 | virtual const LLString& getName() const; | 164 | virtual const std::string& getName() const; |
165 | virtual const LLString& getDisplayName() const; | 165 | virtual const std::string& getDisplayName() const; |
166 | virtual PermissionMask getPermissionMask() const; | 166 | virtual PermissionMask getPermissionMask() const; |
167 | virtual U32 getCreationDate() const; | 167 | virtual time_t getCreationDate() const; |
168 | virtual LLFontGL::StyleFlags getLabelStyle() const | 168 | virtual LLFontGL::StyleFlags getLabelStyle() const |
169 | { | 169 | { |
170 | return LLFontGL::NORMAL; | 170 | return LLFontGL::NORMAL; |
171 | } | 171 | } |
172 | virtual LLString getLabelSuffix() const { return LLString::null; } | 172 | virtual std::string getLabelSuffix() const { return LLStringUtil::null; } |
173 | virtual void openItem() {} | 173 | virtual void openItem() {} |
174 | virtual void previewItem() {openItem();} | 174 | virtual void previewItem() {openItem();} |
175 | virtual void showProperties(); | 175 | virtual void showProperties(); |
176 | virtual BOOL isItemRenameable() const { return TRUE; } | 176 | virtual BOOL isItemRenameable() const { return TRUE; } |
177 | //virtual BOOL renameItem(const LLString& new_name) {} | 177 | //virtual BOOL renameItem(const std::string& new_name) {} |
178 | virtual BOOL isItemRemovable(); | 178 | virtual BOOL isItemRemovable(); |
179 | virtual BOOL isItemMovable(); | 179 | virtual BOOL isItemMovable(); |
180 | //virtual BOOL removeItem() = 0; | 180 | //virtual BOOL removeItem() = 0; |
@@ -185,8 +185,8 @@ public: | |||
185 | virtual void cutToClipboard() {} | 185 | virtual void cutToClipboard() {} |
186 | virtual BOOL isClipboardPasteable() const; | 186 | virtual BOOL isClipboardPasteable() const; |
187 | virtual void pasteFromClipboard() {} | 187 | virtual void pasteFromClipboard() {} |
188 | void getClipboardEntries(bool show_asset_id, std::vector<LLString> &items, | 188 | void getClipboardEntries(bool show_asset_id, std::vector<std::string> &items, |
189 | std::vector<LLString> &disabled_items, U32 flags); | 189 | std::vector<std::string> &disabled_items, U32 flags); |
190 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); | 190 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); |
191 | virtual BOOL startDrag(EDragAndDropType* type, LLUUID* id) const; | 191 | virtual BOOL startDrag(EDragAndDropType* type, LLUUID* id) const; |
192 | virtual BOOL dragOrDrop(MASK mask, BOOL drop, | 192 | virtual BOOL dragOrDrop(MASK mask, BOOL drop, |
@@ -230,18 +230,18 @@ public: | |||
230 | LLItemBridge(LLInventoryPanel* inventory, const LLUUID& uuid) : | 230 | LLItemBridge(LLInventoryPanel* inventory, const LLUUID& uuid) : |
231 | LLInvFVBridge(inventory, uuid) {} | 231 | LLInvFVBridge(inventory, uuid) {} |
232 | 232 | ||
233 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, LLString action); | 233 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, std::string action); |
234 | 234 | ||
235 | virtual void selectItem(); | 235 | virtual void selectItem(); |
236 | virtual void restoreItem(); | 236 | virtual void restoreItem(); |
237 | 237 | ||
238 | virtual LLUIImagePtr getIcon() const; | 238 | virtual LLUIImagePtr getIcon() const; |
239 | virtual const LLString& getDisplayName() const; | 239 | virtual const std::string& getDisplayName() const; |
240 | virtual LLString getLabelSuffix() const; | 240 | virtual std::string getLabelSuffix() const; |
241 | virtual PermissionMask getPermissionMask() const; | 241 | virtual PermissionMask getPermissionMask() const; |
242 | virtual U32 getCreationDate() const; | 242 | virtual time_t getCreationDate() const; |
243 | virtual BOOL isItemRenameable() const; | 243 | virtual BOOL isItemRenameable() const; |
244 | virtual BOOL renameItem(const LLString& new_name); | 244 | virtual BOOL renameItem(const std::string& new_name); |
245 | virtual BOOL removeItem(); | 245 | virtual BOOL removeItem(); |
246 | virtual BOOL isItemCopyable() const; | 246 | virtual BOOL isItemCopyable() const; |
247 | virtual BOOL copyToClipboard() const; | 247 | virtual BOOL copyToClipboard() const; |
@@ -255,8 +255,8 @@ public: | |||
255 | 255 | ||
256 | protected: | 256 | protected: |
257 | virtual BOOL isItemPermissive() const; | 257 | virtual BOOL isItemPermissive() const; |
258 | static void buildDisplayName(LLInventoryItem* item, LLString& name); | 258 | static void buildDisplayName(LLInventoryItem* item, std::string& name); |
259 | mutable LLString mDisplayName; | 259 | mutable std::string mDisplayName; |
260 | }; | 260 | }; |
261 | 261 | ||
262 | 262 | ||
@@ -268,7 +268,7 @@ public: | |||
268 | BOOL drop); | 268 | BOOL drop); |
269 | BOOL dragCategoryIntoFolder(LLInventoryCategory* inv_category, | 269 | BOOL dragCategoryIntoFolder(LLInventoryCategory* inv_category, |
270 | BOOL drop); | 270 | BOOL drop); |
271 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, LLString action); | 271 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, std::string action); |
272 | virtual void openItem(); | 272 | virtual void openItem(); |
273 | virtual BOOL isItemRenameable() const; | 273 | virtual BOOL isItemRenameable() const; |
274 | virtual void selectItem(); | 274 | virtual void selectItem(); |
@@ -276,7 +276,7 @@ public: | |||
276 | 276 | ||
277 | 277 | ||
278 | virtual LLUIImagePtr getIcon() const; | 278 | virtual LLUIImagePtr getIcon() const; |
279 | virtual BOOL renameItem(const LLString& new_name); | 279 | virtual BOOL renameItem(const std::string& new_name); |
280 | virtual BOOL removeItem(); | 280 | virtual BOOL removeItem(); |
281 | virtual BOOL isClipboardPasteable() const; | 281 | virtual BOOL isClipboardPasteable() const; |
282 | virtual void pasteFromClipboard(); | 282 | virtual void pasteFromClipboard(); |
@@ -328,8 +328,8 @@ private: | |||
328 | BOOL mCallingCards; | 328 | BOOL mCallingCards; |
329 | BOOL mWearables; | 329 | BOOL mWearables; |
330 | LLMenuGL* mMenu; | 330 | LLMenuGL* mMenu; |
331 | std::vector<LLString> mItems; | 331 | std::vector<std::string> mItems; |
332 | std::vector<LLString> mDisabledItems; | 332 | std::vector<std::string> mDisabledItems; |
333 | }; | 333 | }; |
334 | 334 | ||
335 | // DEPRECATED | 335 | // DEPRECATED |
@@ -349,7 +349,7 @@ class LLTextureBridge : public LLItemBridge | |||
349 | { | 349 | { |
350 | friend class LLInvFVBridge; | 350 | friend class LLInvFVBridge; |
351 | public: | 351 | public: |
352 | virtual const LLString& getPrefix() { return sPrefix; } | 352 | virtual const std::string& getPrefix() { return sPrefix; } |
353 | 353 | ||
354 | virtual LLUIImagePtr getIcon() const; | 354 | virtual LLUIImagePtr getIcon() const; |
355 | virtual void openItem(); | 355 | virtual void openItem(); |
@@ -357,7 +357,7 @@ public: | |||
357 | protected: | 357 | protected: |
358 | LLTextureBridge(LLInventoryPanel* inventory, const LLUUID& uuid, LLInventoryType::EType type) : | 358 | LLTextureBridge(LLInventoryPanel* inventory, const LLUUID& uuid, LLInventoryType::EType type) : |
359 | LLItemBridge(inventory, uuid), mInvType(type) {} | 359 | LLItemBridge(inventory, uuid), mInvType(type) {} |
360 | static LLString sPrefix; | 360 | static std::string sPrefix; |
361 | LLInventoryType::EType mInvType; | 361 | LLInventoryType::EType mInvType; |
362 | }; | 362 | }; |
363 | 363 | ||
@@ -365,7 +365,7 @@ class LLSoundBridge : public LLItemBridge | |||
365 | { | 365 | { |
366 | friend class LLInvFVBridge; | 366 | friend class LLInvFVBridge; |
367 | public: | 367 | public: |
368 | virtual const LLString& getPrefix() { return sPrefix; } | 368 | virtual const std::string& getPrefix() { return sPrefix; } |
369 | 369 | ||
370 | virtual LLUIImagePtr getIcon() const; | 370 | virtual LLUIImagePtr getIcon() const; |
371 | virtual void openItem(); | 371 | virtual void openItem(); |
@@ -376,16 +376,16 @@ public: | |||
376 | protected: | 376 | protected: |
377 | LLSoundBridge(LLInventoryPanel* inventory, const LLUUID& uuid) : | 377 | LLSoundBridge(LLInventoryPanel* inventory, const LLUUID& uuid) : |
378 | LLItemBridge(inventory, uuid) {} | 378 | LLItemBridge(inventory, uuid) {} |
379 | static LLString sPrefix; | 379 | static std::string sPrefix; |
380 | }; | 380 | }; |
381 | 381 | ||
382 | class LLLandmarkBridge : public LLItemBridge | 382 | class LLLandmarkBridge : public LLItemBridge |
383 | { | 383 | { |
384 | friend class LLInvFVBridge; | 384 | friend class LLInvFVBridge; |
385 | public: | 385 | public: |
386 | static const LLString& prefix() { return sPrefix; } | 386 | static const std::string& prefix() { return sPrefix; } |
387 | virtual const LLString& getPrefix() { return sPrefix; } | 387 | virtual const std::string& getPrefix() { return sPrefix; } |
388 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, LLString action); | 388 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, std::string action); |
389 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); | 389 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); |
390 | virtual LLUIImagePtr getIcon() const; | 390 | virtual LLUIImagePtr getIcon() const; |
391 | virtual void openItem(); | 391 | virtual void openItem(); |
@@ -402,7 +402,7 @@ protected: | |||
402 | } | 402 | } |
403 | 403 | ||
404 | protected: | 404 | protected: |
405 | static LLString sPrefix; | 405 | static std::string sPrefix; |
406 | BOOL mVisited; | 406 | BOOL mVisited; |
407 | }; | 407 | }; |
408 | 408 | ||
@@ -423,15 +423,15 @@ class LLCallingCardBridge : public LLItemBridge | |||
423 | { | 423 | { |
424 | friend class LLInvFVBridge; | 424 | friend class LLInvFVBridge; |
425 | public: | 425 | public: |
426 | virtual const LLString& getPrefix() { return sPrefix; } | 426 | virtual const std::string& getPrefix() { return sPrefix; } |
427 | 427 | ||
428 | virtual LLString getLabelSuffix() const; | 428 | virtual std::string getLabelSuffix() const; |
429 | //virtual const LLString& getDisplayName() const; | 429 | //virtual const std::string& getDisplayName() const; |
430 | virtual LLUIImagePtr getIcon() const; | 430 | virtual LLUIImagePtr getIcon() const; |
431 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, LLString action); | 431 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, std::string action); |
432 | virtual void openItem(); | 432 | virtual void openItem(); |
433 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); | 433 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); |
434 | //virtual void renameItem(const LLString& new_name); | 434 | //virtual void renameItem(const std::string& new_name); |
435 | //virtual BOOL removeItem(); | 435 | //virtual BOOL removeItem(); |
436 | virtual BOOL dragOrDrop(MASK mask, BOOL drop, | 436 | virtual BOOL dragOrDrop(MASK mask, BOOL drop, |
437 | EDragAndDropType cargo_type, | 437 | EDragAndDropType cargo_type, |
@@ -443,7 +443,7 @@ protected: | |||
443 | ~LLCallingCardBridge(); | 443 | ~LLCallingCardBridge(); |
444 | 444 | ||
445 | protected: | 445 | protected: |
446 | static LLString sPrefix; | 446 | static std::string sPrefix; |
447 | LLCallingCardObserver* mObserver; | 447 | LLCallingCardObserver* mObserver; |
448 | }; | 448 | }; |
449 | 449 | ||
@@ -452,7 +452,7 @@ class LLNotecardBridge : public LLItemBridge | |||
452 | { | 452 | { |
453 | friend class LLInvFVBridge; | 453 | friend class LLInvFVBridge; |
454 | public: | 454 | public: |
455 | virtual const LLString& getPrefix() { return sPrefix; } | 455 | virtual const std::string& getPrefix() { return sPrefix; } |
456 | 456 | ||
457 | virtual LLUIImagePtr getIcon() const; | 457 | virtual LLUIImagePtr getIcon() const; |
458 | virtual void openItem(); | 458 | virtual void openItem(); |
@@ -462,23 +462,23 @@ protected: | |||
462 | LLItemBridge(inventory, uuid) {} | 462 | LLItemBridge(inventory, uuid) {} |
463 | 463 | ||
464 | protected: | 464 | protected: |
465 | static LLString sPrefix; | 465 | static std::string sPrefix; |
466 | }; | 466 | }; |
467 | 467 | ||
468 | class LLGestureBridge : public LLItemBridge | 468 | class LLGestureBridge : public LLItemBridge |
469 | { | 469 | { |
470 | friend class LLInvFVBridge; | 470 | friend class LLInvFVBridge; |
471 | public: | 471 | public: |
472 | virtual const LLString& getPrefix() { return sPrefix; } | 472 | virtual const std::string& getPrefix() { return sPrefix; } |
473 | 473 | ||
474 | virtual LLUIImagePtr getIcon() const; | 474 | virtual LLUIImagePtr getIcon() const; |
475 | 475 | ||
476 | // Only suffix for gesture items, not task items, because only | 476 | // Only suffix for gesture items, not task items, because only |
477 | // gestures in your inventory can be active. | 477 | // gestures in your inventory can be active. |
478 | virtual LLFontGL::StyleFlags getLabelStyle() const; | 478 | virtual LLFontGL::StyleFlags getLabelStyle() const; |
479 | virtual LLString getLabelSuffix() const; | 479 | virtual std::string getLabelSuffix() const; |
480 | 480 | ||
481 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, LLString action); | 481 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, std::string action); |
482 | virtual void openItem(); | 482 | virtual void openItem(); |
483 | virtual BOOL removeItem(); | 483 | virtual BOOL removeItem(); |
484 | 484 | ||
@@ -489,7 +489,7 @@ protected: | |||
489 | : LLItemBridge(inventory, uuid) {} | 489 | : LLItemBridge(inventory, uuid) {} |
490 | 490 | ||
491 | protected: | 491 | protected: |
492 | static LLString sPrefix; | 492 | static std::string sPrefix; |
493 | }; | 493 | }; |
494 | 494 | ||
495 | 495 | ||
@@ -497,8 +497,8 @@ class LLAnimationBridge : public LLItemBridge | |||
497 | { | 497 | { |
498 | friend class LLInvFVBridge; | 498 | friend class LLInvFVBridge; |
499 | public: | 499 | public: |
500 | virtual const LLString& getPrefix() { return sPrefix; } | 500 | virtual const std::string& getPrefix() { return sPrefix; } |
501 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, LLString action); | 501 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, std::string action); |
502 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); | 502 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); |
503 | 503 | ||
504 | virtual LLUIImagePtr getIcon() const; | 504 | virtual LLUIImagePtr getIcon() const; |
@@ -509,7 +509,7 @@ protected: | |||
509 | LLItemBridge(inventory, uuid) {} | 509 | LLItemBridge(inventory, uuid) {} |
510 | 510 | ||
511 | protected: | 511 | protected: |
512 | static LLString sPrefix; | 512 | static std::string sPrefix; |
513 | }; | 513 | }; |
514 | 514 | ||
515 | 515 | ||
@@ -517,16 +517,16 @@ class LLObjectBridge : public LLItemBridge | |||
517 | { | 517 | { |
518 | friend class LLInvFVBridge; | 518 | friend class LLInvFVBridge; |
519 | public: | 519 | public: |
520 | virtual const LLString& getPrefix() { return sPrefix; } | 520 | virtual const std::string& getPrefix() { return sPrefix; } |
521 | 521 | ||
522 | virtual LLUIImagePtr getIcon() const; | 522 | virtual LLUIImagePtr getIcon() const; |
523 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, LLString action); | 523 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, std::string action); |
524 | virtual void openItem(); | 524 | virtual void openItem(); |
525 | virtual LLFontGL::StyleFlags getLabelStyle() const; | 525 | virtual LLFontGL::StyleFlags getLabelStyle() const; |
526 | virtual LLString getLabelSuffix() const; | 526 | virtual std::string getLabelSuffix() const; |
527 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); | 527 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); |
528 | virtual BOOL isItemRemovable(); | 528 | virtual BOOL isItemRemovable(); |
529 | virtual BOOL renameItem(const LLString& new_name); | 529 | virtual BOOL renameItem(const std::string& new_name); |
530 | 530 | ||
531 | protected: | 531 | protected: |
532 | LLObjectBridge(LLInventoryPanel* inventory, const LLUUID& uuid, LLInventoryType::EType type, U32 flags) : | 532 | LLObjectBridge(LLInventoryPanel* inventory, const LLUUID& uuid, LLInventoryType::EType type, U32 flags) : |
@@ -538,7 +538,7 @@ protected: | |||
538 | } | 538 | } |
539 | 539 | ||
540 | protected: | 540 | protected: |
541 | static LLString sPrefix; | 541 | static std::string sPrefix; |
542 | static LLUUID sContextMenuItemID; // Only valid while the context menu is open. | 542 | static LLUUID sContextMenuItemID; // Only valid while the context menu is open. |
543 | LLInventoryType::EType mInvType; | 543 | LLInventoryType::EType mInvType; |
544 | U32 mAttachPt; | 544 | U32 mAttachPt; |
@@ -550,7 +550,7 @@ class LLLSLTextBridge : public LLItemBridge | |||
550 | { | 550 | { |
551 | friend class LLInvFVBridge; | 551 | friend class LLInvFVBridge; |
552 | public: | 552 | public: |
553 | virtual const LLString& getPrefix() { return sPrefix; } | 553 | virtual const std::string& getPrefix() { return sPrefix; } |
554 | 554 | ||
555 | virtual LLUIImagePtr getIcon() const; | 555 | virtual LLUIImagePtr getIcon() const; |
556 | virtual void openItem(); | 556 | virtual void openItem(); |
@@ -560,7 +560,7 @@ protected: | |||
560 | LLItemBridge(inventory, uuid) {} | 560 | LLItemBridge(inventory, uuid) {} |
561 | 561 | ||
562 | protected: | 562 | protected: |
563 | static LLString sPrefix; | 563 | static std::string sPrefix; |
564 | }; | 564 | }; |
565 | 565 | ||
566 | 566 | ||
@@ -569,13 +569,13 @@ class LLWearableBridge : public LLItemBridge | |||
569 | friend class LLInvFVBridge; | 569 | friend class LLInvFVBridge; |
570 | public: | 570 | public: |
571 | virtual LLUIImagePtr getIcon() const; | 571 | virtual LLUIImagePtr getIcon() const; |
572 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, LLString action); | 572 | virtual void performAction(LLFolderView* folder, LLInventoryModel* model, std::string action); |
573 | virtual void openItem(); | 573 | virtual void openItem(); |
574 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); | 574 | virtual void buildContextMenu(LLMenuGL& menu, U32 flags); |
575 | virtual LLFontGL::StyleFlags getLabelStyle() const; | 575 | virtual LLFontGL::StyleFlags getLabelStyle() const; |
576 | virtual LLString getLabelSuffix() const; | 576 | virtual std::string getLabelSuffix() const; |
577 | virtual BOOL isItemRemovable(); | 577 | virtual BOOL isItemRemovable(); |
578 | virtual BOOL renameItem(const LLString& new_name); | 578 | virtual BOOL renameItem(const std::string& new_name); |
579 | 579 | ||
580 | static void onWearOnAvatar( void* userdata ); // Access to wearOnAvatar() from menu | 580 | static void onWearOnAvatar( void* userdata ); // Access to wearOnAvatar() from menu |
581 | static BOOL canWearOnAvatar( void* userdata ); | 581 | static BOOL canWearOnAvatar( void* userdata ); |