cmake/Source/CursesDialog/cmCursesLongMessageForm.h

51 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
2016-10-30 18:24:19 +01:00
#include <cmConfigure.h>
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
{
public:
2013-03-16 19:13:01 +02:00
cmCursesLongMessageForm(std::vector<std::string> const& messages,
const char* title);
2016-10-30 18:24:19 +01:00
~cmCursesLongMessageForm() CM_OVERRIDE;
2013-03-16 19:13:01 +02:00
// Description:
// Handle user input.
2016-10-30 18:24:19 +01:00
void HandleInput() CM_OVERRIDE;
// Description:
// Display form. Use a window of size width x height, starting
// at top, left.
2016-10-30 18:24:19 +01:00
void Render(int left, int top, int width, int height) CM_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.
2016-10-30 18:24:19 +01:00
void UpdateStatusBar() CM_OVERRIDE;
protected:
cmCursesLongMessageForm(const cmCursesLongMessageForm& from);
void operator=(const cmCursesLongMessageForm&);
std::string Messages;
std::string Title;
FIELD* Fields[2];
};
2015-04-27 22:25:09 +02:00
#endif // cmCursesLongMessageForm_h