diff options
Diffstat (limited to 'linden/indra/newview/llfolderview.h')
-rw-r--r-- | linden/indra/newview/llfolderview.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/linden/indra/newview/llfolderview.h b/linden/indra/newview/llfolderview.h index 062f710..0f26dfa 100644 --- a/linden/indra/newview/llfolderview.h +++ b/linden/indra/newview/llfolderview.h | |||
@@ -108,7 +108,7 @@ public: | |||
108 | 108 | ||
109 | // This method should be called when a drag begins. returns TRUE | 109 | // This method should be called when a drag begins. returns TRUE |
110 | // if the drag can begin, otherwise FALSE. | 110 | // if the drag can begin, otherwise FALSE. |
111 | virtual BOOL startDrag(EDragAndDropType* type, LLUUID* id) = 0; | 111 | virtual BOOL startDrag(EDragAndDropType* type, LLUUID* id) const = 0; |
112 | 112 | ||
113 | // This method will be called to determine if a drop can be | 113 | // This method will be called to determine if a drop can be |
114 | // performed, and will set drop to TRUE if a drop is | 114 | // performed, and will set drop to TRUE if a drop is |
@@ -465,11 +465,14 @@ public: | |||
465 | // Used for sorting, like getLabel() above. | 465 | // Used for sorting, like getLabel() above. |
466 | virtual U32 getCreationDate() const { return mCreationDate; } | 466 | virtual U32 getCreationDate() const { return mCreationDate; } |
467 | 467 | ||
468 | LLFolderViewFolder* getParentFolder( void ); | 468 | LLFolderViewFolder* getParentFolder( void ) { return mParentFolder; } |
469 | const LLFolderViewFolder* getParentFolder( void ) const { return mParentFolder; } | ||
470 | |||
469 | LLFolderViewItem* getNextOpenNode( BOOL include_children = TRUE ); | 471 | LLFolderViewItem* getNextOpenNode( BOOL include_children = TRUE ); |
470 | LLFolderViewItem* getPreviousOpenNode( BOOL include_children = TRUE ); | 472 | LLFolderViewItem* getPreviousOpenNode( BOOL include_children = TRUE ); |
471 | 473 | ||
472 | LLFolderViewEventListener* getListener( void ); | 474 | const LLFolderViewEventListener* getListener( void ) const { return mListener; } |
475 | LLFolderViewEventListener* getListener( void ) { return mListener; } | ||
473 | 476 | ||
474 | // just rename the object. | 477 | // just rename the object. |
475 | void rename(const LLString& new_name); | 478 | void rename(const LLString& new_name); |
@@ -803,16 +806,16 @@ public: | |||
803 | 806 | ||
804 | // copy & paste | 807 | // copy & paste |
805 | virtual void copy(); | 808 | virtual void copy(); |
806 | virtual BOOL canCopy(); | 809 | virtual BOOL canCopy() const; |
807 | 810 | ||
808 | virtual void cut(); | 811 | virtual void cut(); |
809 | virtual BOOL canCut(); | 812 | virtual BOOL canCut() const; |
810 | 813 | ||
811 | virtual void paste(); | 814 | virtual void paste(); |
812 | virtual BOOL canPaste(); | 815 | virtual BOOL canPaste() const; |
813 | 816 | ||
814 | virtual void doDelete(); | 817 | virtual void doDelete(); |
815 | virtual BOOL canDoDelete(); | 818 | virtual BOOL canDoDelete() const; |
816 | 819 | ||
817 | // public rename functionality - can only start the process | 820 | // public rename functionality - can only start the process |
818 | void startRenamingSelectedItem( void ); | 821 | void startRenamingSelectedItem( void ); |
@@ -885,7 +888,7 @@ protected: | |||
885 | void revertRenamingItem( void ); | 888 | void revertRenamingItem( void ); |
886 | 889 | ||
887 | protected: | 890 | protected: |
888 | LLViewHandle mPopupMenuHandle; | 891 | LLHandle<LLView> mPopupMenuHandle; |
889 | 892 | ||
890 | typedef std::deque<LLFolderViewItem*> selected_items_t; | 893 | typedef std::deque<LLFolderViewItem*> selected_items_t; |
891 | selected_items_t mSelectedItems; | 894 | selected_items_t mSelectedItems; |
@@ -920,7 +923,7 @@ protected: | |||
920 | 923 | ||
921 | void* mUserData; | 924 | void* mUserData; |
922 | SelectCallback mSelectCallback; | 925 | SelectCallback mSelectCallback; |
923 | BOOL mSelectionChanged; | 926 | S32 mSignalSelectCallback; |
924 | S32 mMinWidth; | 927 | S32 mMinWidth; |
925 | std::map<LLUUID, LLFolderViewItem*> mItemMap; | 928 | std::map<LLUUID, LLFolderViewItem*> mItemMap; |
926 | BOOL mDragAndDropThisFrame; | 929 | BOOL mDragAndDropThisFrame; |