2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2002-01-21 23:30:43 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2002-01-21 23:30:43 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
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
|