PageRenderTime 125ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llviewerfoldertype.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 54 lines | 20 code | 7 blank | 27 comment | 0 complexity | 040d95c7a10bace598d5ffe7ee13a53f MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llviewerfoldertype.h
  3. * @brief Declaration of LLAssetType.
  4. *
  5. * $LicenseInfo:firstyear=2001&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LL_LLVIEWERFOLDERTYPE_H
  27. #define LL_LLVIEWERFOLDERTYPE_H
  28. #include <string>
  29. #include "llfoldertype.h"
  30. // This class is similar to llfoldertype, but contains methods
  31. // only used by the viewer. This also handles ensembles.
  32. class LLViewerFolderType : public LLFolderType
  33. {
  34. public:
  35. static const std::string& lookupXUIName(EType folder_type); // name used by the UI
  36. static LLFolderType::EType lookupTypeFromXUIName(const std::string& name);
  37. static const std::string& lookupIconName(EType folder_type, BOOL is_open = FALSE); // folder icon name
  38. static BOOL lookupIsQuietType(EType folder_type); // folder doesn't require UI update when changes have occured
  39. static bool lookupIsHiddenIfEmpty(EType folder_type); // folder is not displayed if empty
  40. static const std::string& lookupNewCategoryName(EType folder_type); // default name when creating new category
  41. static LLFolderType::EType lookupTypeFromNewCategoryName(const std::string& name); // default name when creating new category
  42. static U64 lookupValidFolderTypes(const std::string& item_name); // which folders allow an item of this type?
  43. protected:
  44. LLViewerFolderType() {}
  45. ~LLViewerFolderType() {}
  46. };
  47. #endif // LL_LLVIEWERFOLDERTYPE_H