2016-09-27 15:01:08 -04: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 13:10:03 -05:00
|
|
|
#ifndef cmCursesPathWidget_h
|
|
|
|
#define cmCursesPathWidget_h
|
2001-11-04 18:05:21 -05:00
|
|
|
|
2016-09-01 21:55:09 +02:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
|
|
|
|
#include "cmCursesStandardIncludes.h"
|
2001-11-04 18:05:21 -05:00
|
|
|
#include "cmCursesStringWidget.h"
|
|
|
|
|
2016-09-01 21:55:09 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class cmCursesMainForm;
|
|
|
|
|
2001-11-04 18:05:21 -05:00
|
|
|
class cmCursesPathWidget : public cmCursesStringWidget
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cmCursesPathWidget(int width, int height, int left, int top);
|
|
|
|
|
2002-11-04 17:37:21 -05:00
|
|
|
/**
|
|
|
|
* This method is called when different keys are pressed. The
|
|
|
|
* subclass can have a special implementation handler for this.
|
|
|
|
*/
|
2016-06-27 21:25:27 +02: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-04 17:37:21 -05:00
|
|
|
|
2001-11-04 18:05:21 -05:00
|
|
|
protected:
|
|
|
|
cmCursesPathWidget(const cmCursesPathWidget& from);
|
|
|
|
void operator=(const cmCursesPathWidget&);
|
|
|
|
|
2006-03-16 10:44:55 -05:00
|
|
|
std::string LastString;
|
|
|
|
std::string LastGlob;
|
|
|
|
bool Cycle;
|
|
|
|
std::string::size_type CurrentIndex;
|
2001-11-04 18:05:21 -05:00
|
|
|
};
|
|
|
|
|
2014-12-11 13:10:03 -05:00
|
|
|
#endif // cmCursesPathWidget_h
|