Path: blob/master/Source/CursesDialog/cmCursesPathWidget.h
4998 views
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying1file LICENSE.rst or https://cmake.org/licensing for details. */2#pragma once34#include "cmConfigure.h" // IWYU pragma: keep56#include <string>78#include "cmCursesStandardIncludes.h"9#include "cmCursesStringWidget.h"1011class cmCursesPathWidget : public cmCursesStringWidget12{13public:14cmCursesPathWidget(int width, int height, int left, int top);1516cmCursesPathWidget(cmCursesPathWidget const&) = delete;17cmCursesPathWidget& operator=(cmCursesPathWidget const&) = delete;1819/**20* This method is called when different keys are pressed. The21* subclass can have a special implementation handler for this.22*/23void OnTab(cmCursesMainForm* fm, WINDOW* w) override;24void OnReturn(cmCursesMainForm* fm, WINDOW* w) override;25void OnType(int& key, cmCursesMainForm* fm, WINDOW* w) override;2627protected:28std::string LastString;29std::string LastGlob;30bool Cycle;31std::string::size_type CurrentIndex;32};333435