cmCursesLongMessageForm.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef __cmCursesLongMessageForm_h
  14. #define __cmCursesLongMessageForm_h
  15. #include "../cmStandardIncludes.h"
  16. #include "cmCursesForm.h"
  17. #include "cmCursesStandardIncludes.h"
  18. class cmCursesCacheEntryComposite;
  19. class cmCursesLongMessageForm : public cmCursesForm
  20. {
  21. public:
  22. cmCursesLongMessageForm(std::vector<std::string> const& messages,
  23. const char* title);
  24. virtual ~cmCursesLongMessageForm();
  25. // Description:
  26. // Handle user input.
  27. virtual void HandleInput();
  28. // Description:
  29. // Display form. Use a window of size width x height, starting
  30. // at top, left.
  31. virtual void Render(int left, int top, int width, int height);
  32. // Description:
  33. // This method should normally called only by the form.
  34. // The only exception is during a resize.
  35. void PrintKeys();
  36. // Description:
  37. // This method should normally called only by the form.
  38. // The only exception is during a resize.
  39. virtual void UpdateStatusBar();
  40. protected:
  41. cmCursesLongMessageForm(const cmCursesLongMessageForm& from);
  42. void operator=(const cmCursesLongMessageForm&);
  43. std::string Messages;
  44. std::string Title;
  45. FIELD* Fields[2];
  46. };
  47. #endif // __cmCursesLongMessageForm_h