cmake/Source/CursesDialog/cmCursesLongMessageForm.h

50 lines
1.3 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2015-04-27 22:25:09 +02:00
#ifndef cmCursesLongMessageForm_h
#define cmCursesLongMessageForm_h
2018-01-26 17:06:56 +01:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-07-09 11:21:54 +02:00
#include "cmCursesForm.h"
2016-10-30 18:24:19 +01:00
#include "cmCursesStandardIncludes.h"
2016-07-09 11:21:54 +02:00
2016-10-30 18:24:19 +01:00
#include <string>
#include <vector>
class cmCursesLongMessageForm : public cmCursesForm
{
2017-07-20 19:35:53 +02:00
CM_DISABLE_COPY(cmCursesLongMessageForm)
public:
2013-03-16 19:13:01 +02:00
cmCursesLongMessageForm(std::vector<std::string> const& messages,
const char* title);
2018-01-26 17:06:56 +01:00
~cmCursesLongMessageForm() override;
2013-03-16 19:13:01 +02:00
// Description:
// Handle user input.
2018-01-26 17:06:56 +01:00
void HandleInput() override;
// Description:
// Display form. Use a window of size width x height, starting
// at top, left.
2018-01-26 17:06:56 +01:00
void Render(int left, int top, int width, int height) override;
// Description:
// This method should normally called only by the form.
// The only exception is during a resize.
void PrintKeys();
// Description:
// This method should normally called only by the form.
// The only exception is during a resize.
2018-01-26 17:06:56 +01:00
void UpdateStatusBar() override;
protected:
std::string Messages;
std::string Title;
FIELD* Fields[2];
};
2015-04-27 22:25:09 +02:00
#endif // cmCursesLongMessageForm_h