PageRenderTime 33ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llfirstuse.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 110 lines | 29 code | 12 blank | 69 comment | 0 complexity | 8a32467d4ec2e400f65ca0fc2c94811e MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfirstuse.h
  3. * @brief Methods that spawn "first-use" dialogs.
  4. *
  5. * $LicenseInfo:firstyear=2003&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_LLFIRSTUSE_H
  27. #define LL_LLFIRSTUSE_H
  28. #include <vector>
  29. #include "llstring.h"
  30. /*
  31. 1. On first use of 'sit here', explain how to get up and rotate view.
  32. 2. On first use of map, explain dbl-click = telport, how hubs/beacons work,
  33. click-drag to move map
  34. 3. First use of pie 'Go To', explain other ways to move around
  35. 4. First use of 'Create' or 'Edit', explain build toolbar, that you can create
  36. things if build enabled, edit things you own, and that you can ESC to exit it.
  37. 5. First use of 'Talk to' explain difference between that and regular chat,
  38. reduced range, how to leave conversation, arrow keys to orbit.
  39. 6. First lft-click that does nothing (land,object): Explain that rgt-click
  40. gives menu, lft-click interacts or moves if physical
  41. 7. On first receipt of L$ (not rez/derez) explain that objects or people may
  42. give you L$, and how to give someone or something money ('Pay...').
  43. 8. After first teleporting and being sent to nearest hub, a dialog explaining
  44. how to find and move toward the beacon.
  45. 9. On first accept/auto-accept permissions, explain that some objects may be
  46. activated by entering mouselook 'M', or may override your movement keys with
  47. other functions.
  48. 10. FIrst use of 'wear' or drag object from inventory onto self: 'You can
  49. attach objects to your body by dragging ontl yourelf of rgt-clk->wear from
  50. object or from inventory.
  51. 11. FIrst time you run the client on a system without QuickTime installed.
  52. 12. First time you create a flexible object.
  53. 13. First time you open the debug menus (ctrl-alt-shift D)
  54. 14. First time you create/edit a sculpted prim.
  55. 15. Explanation of Speak&flyout buttons.
  56. */
  57. class LLNotification;
  58. class LLFirstUse
  59. {
  60. public:
  61. // Add a config variable to be reset on resetFirstUse()
  62. static void addConfigVariable(const std::string& var);
  63. // Sets all controls back to show the dialogs.
  64. static void disableFirstUse();
  65. static void resetFirstUse();
  66. static void otherAvatarChatFirst(bool enable = true);
  67. static void speak(bool enable = true);
  68. static void sit(bool enable = true);
  69. static void notUsingDestinationGuide(bool enable = true);
  70. static void notUsingSidePanel(bool enable = true);
  71. static void notMoving(bool enable = true);
  72. static void viewPopup(bool enable = true);
  73. static void newInventory(bool enable = true);
  74. static void receiveLindens(bool enable = true);
  75. static void setDisplayName(bool enable = true);
  76. static void useSandbox();
  77. protected:
  78. static void firstUseNotification(const std::string& control_var, bool enable, const std::string& notification_name, LLSD args = LLSD(), LLSD payload = LLSD());
  79. static std::set<std::string> sConfigVariables;
  80. static void init();
  81. static bool processNotification(const LLSD& notify);
  82. };
  83. #endif
  84. // EOF