libyui-ncurses
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 
36 class NCTableLine;
37 class NCTableCol;
38 
39 
49 class NCTreePad : public NCTablePadBase
50 {
51 public:
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 
73 protected:
74 
80  virtual int DoRedraw();
81 
82 
83 private:
84 
85  NCTreePad & operator=( const NCTreePad & );
86  NCTreePad( const NCTreePad & );
87 };
88 
89 
90 #endif // NCTreePad_h
Definition: NCTableItem.h:421
C++ class for windows.
Definition: ncursesw.h:906
virtual int DoRedraw()
Definition: NCTreePad.cc:74
virtual bool handleInput(wint_t key)
Definition: NCTreePad.cc:92
static int lines()
Definition: ncursesw.h:1044
Definition: NCTreePad.h:49
static int cols()
Definition: ncursesw.h:1049
Definition: NCTablePadBase.h:58
virtual void Destwin(NCursesWindow *dwin)
Definition: NCTreePad.cc:44
Definition: NCTableItem.h:67
Definition: NCWidget.h:45