diff options
author | Jacek Antonelli | 2008-08-15 23:45:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:54 -0500 |
commit | d0b03a62fd799317d5da0bd56615739ce3b5b052 (patch) | |
tree | 8bc79bbbb52e18294f62810d9fa66ce136f90e2d /linden/indra/newview/llfolderview.h | |
parent | Second Life viewer sources 1.20.8 (diff) | |
download | meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.zip meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.gz meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.bz2 meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.xz |
Second Life viewer sources 1.20.9
Diffstat (limited to 'linden/indra/newview/llfolderview.h')
-rw-r--r-- | linden/indra/newview/llfolderview.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/linden/indra/newview/llfolderview.h b/linden/indra/newview/llfolderview.h index bbf4b1d..3858388 100644 --- a/linden/indra/newview/llfolderview.h +++ b/linden/indra/newview/llfolderview.h | |||
@@ -295,7 +295,7 @@ public: | |||
295 | bool updateSort(U32 order); | 295 | bool updateSort(U32 order); |
296 | U32 getSort() { return mSortOrder; } | 296 | U32 getSort() { return mSortOrder; } |
297 | 297 | ||
298 | bool operator()(LLFolderViewItem* a, LLFolderViewItem* b); | 298 | bool operator()(const LLFolderViewItem* const& a, const LLFolderViewItem* const& b); |
299 | private: | 299 | private: |
300 | U32 mSortOrder; | 300 | U32 mSortOrder; |
301 | bool mByDate; | 301 | bool mByDate; |
@@ -361,7 +361,7 @@ protected: | |||
361 | // the specified selected item appropriately for display and use | 361 | // the specified selected item appropriately for display and use |
362 | // in the UI. If open is TRUE, then folders are opened up along | 362 | // in the UI. If open is TRUE, then folders are opened up along |
363 | // the way to the selection. | 363 | // the way to the selection. |
364 | void setSelectionFromRoot(LLFolderViewItem* selection, BOOL open, /* Flawfinder: ignore */ | 364 | void setSelectionFromRoot(LLFolderViewItem* selection, BOOL openitem, |
365 | BOOL take_keyboard_focus = TRUE); | 365 | BOOL take_keyboard_focus = TRUE); |
366 | 366 | ||
367 | // helper function to change the selection from the root. | 367 | // helper function to change the selection from the root. |
@@ -390,7 +390,7 @@ public: | |||
390 | enum { ARRANGE = TRUE, DO_NOT_ARRANGE = FALSE }; | 390 | enum { ARRANGE = TRUE, DO_NOT_ARRANGE = FALSE }; |
391 | virtual BOOL addToFolder(LLFolderViewFolder* folder, LLFolderView* root); | 391 | virtual BOOL addToFolder(LLFolderViewFolder* folder, LLFolderView* root); |
392 | 392 | ||
393 | virtual EInventorySortGroup getSortGroup(); | 393 | virtual EInventorySortGroup getSortGroup() const; |
394 | 394 | ||
395 | // Finds width and height of this object and it's children. Also | 395 | // Finds width and height of this object and it's children. Also |
396 | // makes sure that this view and it's children are the right size. | 396 | // makes sure that this view and it's children are the right size. |
@@ -409,7 +409,7 @@ public: | |||
409 | // ignore. Returns TRUE if this object was affected. If open is | 409 | // ignore. Returns TRUE if this object was affected. If open is |
410 | // TRUE, then folders are opened up along the way to the | 410 | // TRUE, then folders are opened up along the way to the |
411 | // selection. | 411 | // selection. |
412 | virtual BOOL setSelection(LLFolderViewItem* selection, BOOL open, /* Flawfinder: ignore */ | 412 | virtual BOOL setSelection(LLFolderViewItem* selection, BOOL openitem, |
413 | BOOL take_keyboard_focus); | 413 | BOOL take_keyboard_focus); |
414 | 414 | ||
415 | // This method is used to toggle the selection of an item. If | 415 | // This method is used to toggle the selection of an item. If |
@@ -479,7 +479,7 @@ public: | |||
479 | void rename(const LLString& new_name); | 479 | void rename(const LLString& new_name); |
480 | 480 | ||
481 | // open | 481 | // open |
482 | virtual void open( void ); /* Flawfinder: ignore */ | 482 | virtual void openItem( void ); |
483 | virtual void preview(void); | 483 | virtual void preview(void); |
484 | 484 | ||
485 | // Show children (unfortunate that this is called "open") | 485 | // Show children (unfortunate that this is called "open") |
@@ -544,8 +544,8 @@ public: | |||
544 | } ETrash; | 544 | } ETrash; |
545 | 545 | ||
546 | protected: | 546 | protected: |
547 | typedef std::vector<LLFolderViewItem*> items_t; | 547 | typedef std::list<LLFolderViewItem*> items_t; |
548 | typedef std::vector<LLFolderViewFolder*> folders_t; | 548 | typedef std::list<LLFolderViewFolder*> folders_t; |
549 | items_t mItems; | 549 | items_t mItems; |
550 | folders_t mFolders; | 550 | folders_t mFolders; |
551 | LLInventorySort mSortFunction; | 551 | LLInventorySort mSortFunction; |
@@ -556,7 +556,7 @@ protected: | |||
556 | F32 mTargetHeight; | 556 | F32 mTargetHeight; |
557 | F32 mAutoOpenCountdown; | 557 | F32 mAutoOpenCountdown; |
558 | U32 mSubtreeCreationDate; | 558 | U32 mSubtreeCreationDate; |
559 | ETrash mAmTrash; | 559 | mutable ETrash mAmTrash; |
560 | S32 mLastArrangeGeneration; | 560 | S32 mLastArrangeGeneration; |
561 | S32 mLastCalculatedWidth; | 561 | S32 mLastCalculatedWidth; |
562 | S32 mCompletedFilterGeneration; | 562 | S32 mCompletedFilterGeneration; |
@@ -590,7 +590,7 @@ public: | |||
590 | BOOL needsArrange(); | 590 | BOOL needsArrange(); |
591 | 591 | ||
592 | // Returns the sort group (system, trash, folder) for this folder. | 592 | // Returns the sort group (system, trash, folder) for this folder. |
593 | virtual EInventorySortGroup getSortGroup(); | 593 | virtual EInventorySortGroup getSortGroup() const; |
594 | 594 | ||
595 | virtual void setCompletedFilterGeneration(S32 generation, BOOL recurse_up); | 595 | virtual void setCompletedFilterGeneration(S32 generation, BOOL recurse_up); |
596 | virtual S32 getCompletedFilterGeneration() { return mCompletedFilterGeneration; } | 596 | virtual S32 getCompletedFilterGeneration() { return mCompletedFilterGeneration; } |
@@ -606,8 +606,8 @@ public: | |||
606 | // Passes selection information on to children and record | 606 | // Passes selection information on to children and record |
607 | // selection information if necessary. Returns TRUE if this object | 607 | // selection information if necessary. Returns TRUE if this object |
608 | // (or a child) was affected. | 608 | // (or a child) was affected. |
609 | virtual BOOL setSelection(LLFolderViewItem* selection, BOOL open, /* Flawfinder: ignore */ | 609 | virtual BOOL setSelection(LLFolderViewItem* selection, BOOL openitem, |
610 | BOOL take_keyboard_focus); | 610 | BOOL take_keyboard_focus); |
611 | 611 | ||
612 | // This method is used to change the selection of an item. If | 612 | // This method is used to change the selection of an item. If |
613 | // selection is 'this', then note selection as true. Returns TRUE | 613 | // selection is 'this', then note selection as true. Returns TRUE |
@@ -660,7 +660,7 @@ public: | |||
660 | virtual void toggleOpen(); | 660 | virtual void toggleOpen(); |
661 | 661 | ||
662 | // Force a folder open or closed | 662 | // Force a folder open or closed |
663 | virtual void setOpen(BOOL open = TRUE); /* Flawfinder: ignore */ | 663 | virtual void setOpen(BOOL openitem = TRUE); |
664 | 664 | ||
665 | // Called when a child is refreshed. | 665 | // Called when a child is refreshed. |
666 | // don't rearrange child folder contents unless explicitly requested | 666 | // don't rearrange child folder contents unless explicitly requested |
@@ -670,7 +670,7 @@ public: | |||
670 | // method was written because the list iterators destroy the state | 670 | // method was written because the list iterators destroy the state |
671 | // of other iterations, thus, we can't arrange while iterating | 671 | // of other iterations, thus, we can't arrange while iterating |
672 | // through the children (such as when setting which is selected. | 672 | // through the children (such as when setting which is selected. |
673 | virtual void setOpenArrangeRecursively(BOOL open, ERecurseType recurse = RECURSE_NO); /* Flawfinder: ignore */ | 673 | virtual void setOpenArrangeRecursively(BOOL openitem, ERecurseType recurse = RECURSE_NO); |
674 | 674 | ||
675 | // Get the current state of the folder. | 675 | // Get the current state of the folder. |
676 | virtual BOOL isOpen() { return mIsOpen; } | 676 | virtual BOOL isOpen() { return mIsOpen; } |
@@ -686,7 +686,7 @@ public: | |||
686 | void applyFunctorRecursively(LLFolderViewFunctor& functor); | 686 | void applyFunctorRecursively(LLFolderViewFunctor& functor); |
687 | virtual void applyListenerFunctorRecursively(LLFolderViewListenerFunctor& functor); | 687 | virtual void applyListenerFunctorRecursively(LLFolderViewListenerFunctor& functor); |
688 | 688 | ||
689 | virtual void open( void ); /* Flawfinder: ignore */ | 689 | virtual void openItem( void ); |
690 | virtual BOOL addItem(LLFolderViewItem* item); | 690 | virtual BOOL addItem(LLFolderViewItem* item); |
691 | virtual BOOL addFolder( LLFolderViewFolder* folder); | 691 | virtual BOOL addFolder( LLFolderViewFolder* folder); |
692 | 692 | ||
@@ -703,7 +703,7 @@ public: | |||
703 | virtual void draw(); | 703 | virtual void draw(); |
704 | 704 | ||
705 | U32 getCreationDate() const; | 705 | U32 getCreationDate() const; |
706 | bool isTrash(); | 706 | bool isTrash() const; |
707 | }; | 707 | }; |
708 | 708 | ||
709 | 709 | ||
@@ -752,7 +752,7 @@ public: | |||
752 | void openFolder(const LLString& foldername); | 752 | void openFolder(const LLString& foldername); |
753 | 753 | ||
754 | virtual void toggleOpen() {}; | 754 | virtual void toggleOpen() {}; |
755 | virtual void setOpenArrangeRecursively(BOOL open, ERecurseType recurse); /* Flawfinder: ignore */ | 755 | virtual void setOpenArrangeRecursively(BOOL openitem, ERecurseType recurse); |
756 | virtual BOOL addFolder( LLFolderViewFolder* folder); | 756 | virtual BOOL addFolder( LLFolderViewFolder* folder); |
757 | 757 | ||
758 | // Finds width and height of this object and it's children. Also | 758 | // Finds width and height of this object and it's children. Also |
@@ -769,7 +769,7 @@ public: | |||
769 | virtual LLFolderViewItem* getCurSelectedItem( void ); | 769 | virtual LLFolderViewItem* getCurSelectedItem( void ); |
770 | 770 | ||
771 | // Record the selected item and pass it down the hierachy. | 771 | // Record the selected item and pass it down the hierachy. |
772 | virtual BOOL setSelection(LLFolderViewItem* selection, BOOL open, /* Flawfinder: ignore */ | 772 | virtual BOOL setSelection(LLFolderViewItem* selection, BOOL openitem, |
773 | BOOL take_keyboard_focus); | 773 | BOOL take_keyboard_focus); |
774 | 774 | ||
775 | // This method is used to toggle the selection of an item. Walks | 775 | // This method is used to toggle the selection of an item. Walks |