PageRenderTime 34ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llfloaternamedesc.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 74 lines | 38 code | 11 blank | 25 comment | 0 complexity | 25e15f9e71b6c70eccc3f911074b8c4a MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfloaternamedesc.h
  3. * @brief LLFloaterNameDesc class definition
  4. *
  5. * $LicenseInfo:firstyear=2002&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_LLFLOATERNAMEDESC_H
  27. #define LL_LLFLOATERNAMEDESC_H
  28. #include "llfloater.h"
  29. #include "llresizehandle.h"
  30. #include "llstring.h"
  31. class LLLineEditor;
  32. class LLButton;
  33. class LLRadioGroup;
  34. class LLFloaterNameDesc : public LLFloater
  35. {
  36. public:
  37. LLFloaterNameDesc(const LLSD& filename);
  38. virtual ~LLFloaterNameDesc();
  39. virtual BOOL postBuild();
  40. void onBtnOK();
  41. void onBtnCancel();
  42. void doCommit();
  43. protected:
  44. virtual void onCommit();
  45. protected:
  46. BOOL mIsAudio;
  47. bool mIsText;
  48. std::string mFilenameAndPath;
  49. std::string mFilename;
  50. };
  51. class LLFloaterSoundPreview : public LLFloaterNameDesc
  52. {
  53. public:
  54. LLFloaterSoundPreview(const LLSD& filename );
  55. virtual BOOL postBuild();
  56. };
  57. class LLFloaterScriptPreview : public LLFloaterNameDesc
  58. {
  59. public:
  60. LLFloaterScriptPreview(const LLSD& filename );
  61. virtual BOOL postBuild();
  62. };
  63. #endif // LL_LLFLOATERNAMEDESC_H