libyui-ncurses
 
Loading...
Searching...
No Matches
NCTreePad.h
1/*
2 Copyright (C) 2000-2012 Novell, Inc
3 Copyright (C) 2020 SUSE LLC
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2.1 of the
7 License, or (at your option) version 3.0 of the License. This library
8 is distributed in the hope that it will be useful, but WITHOUT ANY
9 WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
11 License for more details. You should have received a copy of the GNU
12 Lesser General Public License along with this library; if not, write
13 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
14 Floor, Boston, MA 02110-1301 USA
15*/
16
17
18/*-/
19
20 File: NCTreePad.h
21
22 Author: Michael Andres <ma@suse.de>
23
24/-*/
25
26#ifndef NCTreePad_h
27#define NCTreePad_h
28
29#include <iosfwd>
30#include <vector>
31
32#include "NCTableItem.h"
33#include "NCTablePadBase.h"
34#include "NCstring.h"
35
36class NCTableLine;
37class NCTableCol;
38
39
49class NCTreePad : public NCTablePadBase
50{
51public:
52
53 NCTreePad( int lines, int cols, const NCWidget & p );
54 virtual ~NCTreePad();
55
56 void ShowItem( const NCTableLine * item );
57
58 virtual void Destwin( NCursesWindow * dwin );
59
70 virtual bool handleInput( wint_t key );
71
72
73protected:
74
80 virtual int DoRedraw();
81
82
83private:
84
85 NCTreePad & operator=( const NCTreePad & );
86 NCTreePad( const NCTreePad & );
87};
88
89
90#endif // NCTreePad_h
Definition NCTableItem.h:422
Definition NCTableItem.h:68
NCTablePadBase(int lines, int cols, const NCWidget &p)
Definition NCTablePadBase.cc:33
virtual int DoRedraw()
Definition NCTreePad.cc:74
virtual void Destwin(NCursesWindow *dwin)
Definition NCTreePad.cc:44
virtual bool handleInput(wint_t key)
Definition NCTreePad.cc:92
Definition NCWidget.h:46
C++ class for windows.
Definition ncursesw.h:907
static int lines()
Definition ncursesw.h:1044
static int cols()
Definition ncursesw.h:1049