llfloaterdisplayname.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * @file llfloaterdisplayname.h
  3. *
  4. * $LicenseInfo:firstyear=2009&license=viewerlgpl$
  5. * Second Life Viewer Source Code
  6. * Copyright (C) 2010, Linden Research, Inc.
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation;
  11. * version 2.1 of the License only.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. *
  22. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  23. * $/LicenseInfo$
  24. */
  25. #ifndef LLFLOATERDISPLAYNAME_H
  26. #define LLFLOATERDISPLAYNAME_H
  27. #include "llfloater.h"
  28. class LLFloaterDisplayName final
  29. : public LLFloater,
  30. public LLFloaterSingleton<LLFloaterDisplayName>
  31. {
  32. friend class LLUISingleton<LLFloaterDisplayName,
  33. VisibilityPolicy<LLFloater> >;
  34. protected:
  35. LOG_CLASS(LLFloaterDisplayName);
  36. public:
  37. bool postBuild() override;
  38. void onOpen() override;
  39. private:
  40. // Open only via LLFloaterSingleton interface, i.e. showInstance() or
  41. // toggleInstance().
  42. LLFloaterDisplayName(const LLSD&);
  43. static void onCacheSetName(bool success, const std::string& reason,
  44. const LLSD& content);
  45. static void onSave(void* data);
  46. static void onReset(void* data);
  47. static void onCancel(void* data);
  48. };
  49. #endif