libyui-ncurses
 
Loading...
Searching...
No Matches
NCApplication.h
1/*
2 Copyright (C) 2000-2012 Novell, Inc
3 This library is free software; you can redistribute it and/or modify
4 it under the terms of the GNU Lesser General Public License as
5 published by the Free Software Foundation; either version 2.1 of the
6 License, or (at your option) version 3.0 of the License. This library
7 is distributed in the hope that it will be useful, but WITHOUT ANY
8 WARRANTY; without even the implied warranty of MERCHANTABILITY or
9 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10 License for more details. You should have received a copy of the GNU
11 Lesser General Public License along with this library; if not, write
12 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13 Floor, Boston, MA 02110-1301 USA
14*/
15
16
17/*-/
18
19 File: NCApplication.h
20
21 Author: Gabriele Mohr <gs@suse.de>
22
23/-*/
24
25#ifndef NCApplication_h
26#define NCApplication_h
27
28#include <yui/YApplication.h>
29
30
31class NCApplication: public YApplication
32{
33
34protected:
35
36 friend class YNCursesUI;
37
44
48 virtual ~NCApplication();
49
50public:
51
62 virtual void setLanguage( const std::string & language,
63 const std::string & encoding = std::string() ) override;
64
79 virtual std::string askForExistingDirectory( const std::string & startDir,
80 const std::string & headline ) override;
81
98 virtual std::string askForExistingFile( const std::string & startWith,
99 const std::string & filter,
100 const std::string & headline ) override;
101
120 virtual std::string askForSaveFileName( const std::string & startWith,
121 const std::string & filter,
122 const std::string & headline ) override;
123
129 virtual void beep() override;
130
136 virtual void redrawScreen() override;
137
143 virtual void initConsoleKeyboard() override;
144
151 virtual void setConsoleFont( const std::string & console_magic,
152 const std::string & font,
153 const std::string & screen_map,
154 const std::string & unicode_map,
155 const std::string & language ) override;
156
168 virtual int runInTerminal( const std::string & command ) override;
169
170
172
178 virtual void openUI() override;
179 virtual void closeUI() override;
181
182 // Display information and UI capabilities.
183 //
184 // All implemented from YApplication.
185
186 virtual int displayWidth() override;
187 virtual int displayHeight() override;
188 virtual int displayDepth() override;
189 virtual long displayColors() override;
190
191 virtual int defaultWidth() override;
192 virtual int defaultHeight() override;
193
194 virtual bool isTextMode() override { return true; }
195
196 virtual bool hasImageSupport() override { return false; }
197
198 virtual bool hasIconSupport() override { return false; }
199
200 virtual bool hasAnimationSupport() override { return false; }
201
202 virtual bool hasFullUtf8Support() override;
203 virtual bool richTextSupportsTable() override { return false; }
204
205 virtual bool leftHandedMouse() override { return false; }
206
212 virtual void setApplicationTitle(const std::string& title) override;
213};
214
215
216#endif // NCApplication_h
virtual void setApplicationTitle(const std::string &title) override
Definition NCApplication.cc:272
virtual int runInTerminal(const std::string &command) override
Definition NCApplication.cc:204
virtual void setLanguage(const std::string &language, const std::string &encoding=std::string()) override
Definition NCApplication.cc:49
virtual ~NCApplication()
Definition NCApplication.cc:43
virtual std::string askForExistingFile(const std::string &startWith, const std::string &filter, const std::string &headline) override
Definition NCApplication.cc:81
virtual void openUI() override
Definition NCApplication.cc:190
NCApplication()
Definition NCApplication.cc:37
virtual void beep() override
Definition NCApplication.cc:112
virtual std::string askForSaveFileName(const std::string &startWith, const std::string &filter, const std::string &headline) override
Definition NCApplication.cc:65
virtual void initConsoleKeyboard() override
Definition NCApplication.cc:125
virtual std::string askForExistingDirectory(const std::string &startDir, const std::string &headline) override
Definition NCApplication.cc:97
virtual void redrawScreen() override
Definition NCApplication.cc:118
virtual void setConsoleFont(const std::string &console_magic, const std::string &font, const std::string &screen_map, const std::string &unicode_map, const std::string &language) override
Definition NCApplication.cc:152