aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfolderview.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfolderview.h')
-rw-r--r--linden/indra/newview/llfolderview.h31
1 files changed, 12 insertions, 19 deletions
diff --git a/linden/indra/newview/llfolderview.h b/linden/indra/newview/llfolderview.h
index 1bd46d7..bbf4b1d 100644
--- a/linden/indra/newview/llfolderview.h
+++ b/linden/indra/newview/llfolderview.h
@@ -81,7 +81,7 @@ public:
81 virtual const LLUUID& getUUID() const = 0; 81 virtual const LLUUID& getUUID() const = 0;
82 virtual U32 getCreationDate() const = 0; // UTC seconds 82 virtual U32 getCreationDate() const = 0; // UTC seconds
83 virtual PermissionMask getPermissionMask() const = 0; 83 virtual PermissionMask getPermissionMask() const = 0;
84 virtual LLViewerImage* getIcon() const = 0; 84 virtual LLUIImagePtr getIcon() const = 0;
85 virtual LLFontGL::StyleFlags getLabelStyle() const = 0; 85 virtual LLFontGL::StyleFlags getLabelStyle() const = 0;
86 virtual LLString getLabelSuffix() const = 0; 86 virtual LLString getLabelSuffix() const = 0;
87 virtual void openItem( void ) = 0; 87 virtual void openItem( void ) = 0;
@@ -326,7 +326,8 @@ protected:
326 static LLColor4 sHighlightFgColor; 326 static LLColor4 sHighlightFgColor;
327 static LLColor4 sFilterBGColor; 327 static LLColor4 sFilterBGColor;
328 static LLColor4 sFilterTextColor; 328 static LLColor4 sFilterTextColor;
329 static LLColor4 sLoadingMessageTextColor; 329 static LLColor4 sSuffixColor;
330 static LLColor4 sSearchStatusColor;
330 331
331 LLString mLabel; 332 LLString mLabel;
332 LLString mSearchableLabel; 333 LLString mSearchableLabel;
@@ -340,7 +341,7 @@ protected:
340 BOOL mSelectPending; 341 BOOL mSelectPending;
341 LLFontGL::StyleFlags mLabelStyle; 342 LLFontGL::StyleFlags mLabelStyle;
342 LLString mLabelSuffix; 343 LLString mLabelSuffix;
343 LLPointer<LLViewerImage> mIcon; 344 LLUIImagePtr mIcon;
344 LLString mStatusText; 345 LLString mStatusText;
345 BOOL mHasVisibleChildren; 346 BOOL mHasVisibleChildren;
346 S32 mIndentation; 347 S32 mIndentation;
@@ -351,8 +352,8 @@ protected:
351 F32 mControlLabelRotation; 352 F32 mControlLabelRotation;
352 LLFolderView* mRoot; 353 LLFolderView* mRoot;
353 BOOL mDragAndDropTarget; 354 BOOL mDragAndDropTarget;
354 LLPointer<LLViewerImage> mArrowImage; 355 LLUIImagePtr mArrowImage;
355 LLPointer<LLViewerImage> mBoxImage; 356 LLUIImagePtr mBoxImage;
356 BOOL mIsLoading; 357 BOOL mIsLoading;
357 LLTimer mTimeSinceRequestStart; 358 LLTimer mTimeSinceRequestStart;
358 359
@@ -382,12 +383,9 @@ public:
382 void filterFromRoot( void ); 383 void filterFromRoot( void );
383 384
384 // creation_date is in UTC seconds 385 // creation_date is in UTC seconds
385 LLFolderViewItem( const LLString& name, LLViewerImage* icon, S32 creation_date, LLFolderView* root, LLFolderViewEventListener* listener ); 386 LLFolderViewItem( const LLString& name, LLUIImagePtr icon, S32 creation_date, LLFolderView* root, LLFolderViewEventListener* listener );
386 virtual ~LLFolderViewItem( void ); 387 virtual ~LLFolderViewItem( void );
387 388
388 virtual EWidgetType getWidgetType() const;
389 virtual LLString getWidgetTag() const;
390
391 // addToFolder() returns TRUE if it succeeds. FALSE otherwise 389 // addToFolder() returns TRUE if it succeeds. FALSE otherwise
392 enum { ARRANGE = TRUE, DO_NOT_ARRANGE = FALSE }; 390 enum { ARRANGE = TRUE, DO_NOT_ARRANGE = FALSE };
393 virtual BOOL addToFolder(LLFolderViewFolder* folder, LLFolderView* root); 391 virtual BOOL addToFolder(LLFolderViewFolder* folder, LLFolderView* root);
@@ -500,7 +498,7 @@ public:
500 virtual void setFiltered(BOOL filtered, S32 filter_generation); 498 virtual void setFiltered(BOOL filtered, S32 filter_generation);
501 499
502 // change the icon 500 // change the icon
503 void setIcon(LLViewerImage* icon); 501 void setIcon(LLUIImagePtr icon);
504 502
505 // refresh information from the object being viewed. 503 // refresh information from the object being viewed.
506 virtual void refresh(); 504 virtual void refresh();
@@ -572,14 +570,11 @@ public:
572 RECURSE_UP_DOWN 570 RECURSE_UP_DOWN
573 } ERecurseType; 571 } ERecurseType;
574 572
575 LLFolderViewFolder( const LLString& name, LLViewerImage* icon, 573 LLFolderViewFolder( const LLString& name, LLUIImagePtr icon,
576 LLFolderView* root, 574 LLFolderView* root,
577 LLFolderViewEventListener* listener ); 575 LLFolderViewEventListener* listener );
578 virtual ~LLFolderViewFolder( void ); 576 virtual ~LLFolderViewFolder( void );
579 577
580 virtual EWidgetType getWidgetType() const;
581 virtual LLString getWidgetTag() const;
582
583 virtual BOOL potentiallyVisible(); 578 virtual BOOL potentiallyVisible();
584 579
585 LLFolderViewItem* getNextFromChild( LLFolderViewItem*, BOOL include_children = TRUE ); 580 LLFolderViewItem* getNextFromChild( LLFolderViewItem*, BOOL include_children = TRUE );
@@ -729,12 +724,10 @@ public:
729 724
730 static F32 sAutoOpenTime; 725 static F32 sAutoOpenTime;
731 726
732 LLFolderView( const LLString& name, LLViewerImage* root_folder_icon, const LLRect& rect, 727 LLFolderView( const LLString& name, LLUIImagePtr root_folder_icon, const LLRect& rect,
733 const LLUUID& source_id, LLView *parent_view ); 728 const LLUUID& source_id, LLView *parent_view );
734 virtual ~LLFolderView( void ); 729 virtual ~LLFolderView( void );
735 730
736 virtual EWidgetType getWidgetType() const;
737 virtual LLString getWidgetTag() const;
738 virtual BOOL canFocusChildren() const; 731 virtual BOOL canFocusChildren() const;
739 732
740 // FolderViews default to sort by name. This will change that, 733 // FolderViews default to sort by name. This will change that,
@@ -836,8 +829,8 @@ public:
836 829
837 // LLView functionality 830 // LLView functionality
838 ///*virtual*/ BOOL handleKey( KEY key, MASK mask, BOOL called_from_parent ); 831 ///*virtual*/ BOOL handleKey( KEY key, MASK mask, BOOL called_from_parent );
839 /*virtual*/ BOOL handleKeyHere( KEY key, MASK mask, BOOL called_from_parent ); 832 /*virtual*/ BOOL handleKeyHere( KEY key, MASK mask );
840 /*virtual*/ BOOL handleUnicodeCharHere(llwchar uni_char, BOOL called_from_parent); 833 /*virtual*/ BOOL handleUnicodeCharHere(llwchar uni_char);
841 /*virtual*/ BOOL handleMouseDown( S32 x, S32 y, MASK mask ); 834 /*virtual*/ BOOL handleMouseDown( S32 x, S32 y, MASK mask );
842 /*virtual*/ BOOL handleDoubleClick( S32 x, S32 y, MASK mask ); 835 /*virtual*/ BOOL handleDoubleClick( S32 x, S32 y, MASK mask );
843 /*virtual*/ BOOL handleRightMouseDown( S32 x, S32 y, MASK mask ); 836 /*virtual*/ BOOL handleRightMouseDown( S32 x, S32 y, MASK mask );