CMake/Source/CursesDialog/cmCursesPathWidget.h

41 lines
1.3 KiB
C
Raw Normal View History

/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
2002-01-21 23:30:43 +03: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
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.
============================================================================*/
2001-11-05 02:05:21 +03:00
#ifndef __cmCursesPathWidget_h
#define __cmCursesPathWidget_h
#include "cmCursesStringWidget.h"
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.
*/
virtual void OnTab(cmCursesMainForm* fm, WINDOW* w);
virtual void OnReturn(cmCursesMainForm* fm, WINDOW* w);
virtual void OnType(int& key, cmCursesMainForm* fm, WINDOW* w);
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
};
#endif // __cmCursesPathWidget_h