/indra/llui/llfiltereditor.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 54 lines · 14 code · 6 blank · 34 comment · 0 complexity · 5a791e8a856855f2e645cc64147847fc MD5 · raw file

  1. /**
  2. * @file llfiltereditor.h
  3. * @brief Text editor widget that represents a filter operation
  4. *
  5. * Features:
  6. * Text entry of a single line (text, delete, left and right arrow, insert, return).
  7. * Callbacks either on every keystroke or just on the return key.
  8. * Focus (allow multiple text entry widgets)
  9. * Clipboard (cut, copy, and paste)
  10. * Horizontal scrolling to allow strings longer than widget size allows
  11. * Pre-validation (limit which keys can be used)
  12. * Optional line history so previous entries can be recalled by CTRL UP/DOWN
  13. *
  14. * $LicenseInfo:firstyear=2001&license=viewerlgpl$
  15. * Second Life Viewer Source Code
  16. * Copyright (C) 2010, Linden Research, Inc.
  17. *
  18. * This library is free software; you can redistribute it and/or
  19. * modify it under the terms of the GNU Lesser General Public
  20. * License as published by the Free Software Foundation;
  21. * version 2.1 of the License only.
  22. *
  23. * This library is distributed in the hope that it will be useful,
  24. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  25. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  26. * Lesser General Public License for more details.
  27. *
  28. * You should have received a copy of the GNU Lesser General Public
  29. * License along with this library; if not, write to the Free Software
  30. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  31. *
  32. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  33. * $/LicenseInfo$
  34. */
  35. #ifndef LL_FILTEREDITOR_H
  36. #define LL_FILTEREDITOR_H
  37. #include "llsearcheditor.h"
  38. class LLFilterEditor : public LLSearchEditor
  39. {
  40. public:
  41. struct Params : public LLInitParam::Block<Params, LLSearchEditor::Params>
  42. {};
  43. protected:
  44. LLFilterEditor(const Params&);
  45. friend class LLUICtrlFactory;
  46. /*virtual*/ void handleKeystroke();
  47. };
  48. #endif // LL_FILTEREDITOR_H