2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2014-12-11 21:10:03 +03:00
|
|
|
#ifndef cmCursesPathWidget_h
|
|
|
|
#define cmCursesPathWidget_h
|
2001-11-05 02:05:21 +03:00
|
|
|
|
2016-09-01 22:55:09 +03:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
|
|
|
|
#include "cmCursesStandardIncludes.h"
|
2001-11-05 02:05:21 +03:00
|
|
|
#include "cmCursesStringWidget.h"
|
|
|
|
|
2016-09-01 22:55:09 +03:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class cmCursesMainForm;
|
|
|
|
|
2001-11-05 02:05:21 +03:00
|
|
|
class cmCursesPathWidget : public cmCursesStringWidget
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cmCursesPathWidget(int width, int height, int left, int top);
|
|
|
|
|
2002-11-05 01:37:21 +03:00
|
|
|
/**
|
|
|
|
* This method is called when different keys are pressed. The
|
|
|
|
* subclass can have a special implementation handler for this.
|
|
|
|
*/
|
2016-06-27 22:25:27 +03:00
|
|
|
void OnTab(cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
|
|
|
|
void OnReturn(cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
|
|
|
|
void OnType(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
|
2002-11-05 01:37:21 +03:00
|
|
|
|
2001-11-05 02:05:21 +03:00
|
|
|
protected:
|
|
|
|
cmCursesPathWidget(const cmCursesPathWidget& from);
|
|
|
|
void operator=(const cmCursesPathWidget&);
|
|
|
|
|
2006-03-16 18:44:55 +03:00
|
|
|
std::string LastString;
|
|
|
|
std::string LastGlob;
|
|
|
|
bool Cycle;
|
|
|
|
std::string::size_type CurrentIndex;
|
2001-11-05 02:05:21 +03:00
|
|
|
};
|
|
|
|
|
2014-12-11 21:10:03 +03:00
|
|
|
#endif // cmCursesPathWidget_h
|