CMake/Source/CursesDialog/cmCursesPathWidget.h

46 lines
1.4 KiB
C
Raw Normal View History

2002-01-21 23:30:43 +03:00
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
2002-01-21 23:30:43 +03:00
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html 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 above copyright notices 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