libyui-ncurses-pkg
 
Loading...
Searching...
No Matches
NCPkgFilterPattern.h
1/*
2 Copyright (c) [2002-2011] Novell, Inc.
3 Copyright (c) 2021 SUSE LLC
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) version 3.0 of the License. This library
9 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 License for more details. You should have received a copy of the GNU
13 Lesser General Public License along with this library; if not, write
14 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
15 Floor, Boston, MA 02110-1301 USA
16
17
18 File: NCPkgFilterPattern.h
19 Author: Gabriele Strattner <gs@suse.de>
20
21*/
22
23
24#ifndef NCPkgFilterPattern_h
25#define NCPkgFilterPattern_h
26
27#include <iosfwd>
28#include <string>
29#include <set>
30
31#include <yui/ncurses/NCPopup.h>
32#include <yui/ncurses/NCPushButton.h>
33
34#include "NCPackageSelector.h"
35
36
38//
39// CLASS NAME : NCPkgFilterPattern
40//
41// DESCRIPTION :
42//
43class NCPkgFilterPattern : public NCPkgTable
44{
45 NCPkgFilterPattern & operator=( const NCPkgFilterPattern & );
46 NCPkgFilterPattern ( const NCPkgFilterPattern & );
47
48private:
49
50 NCPackageSelector * packager; // connection to the PackageSelector,
51
52protected:
53
54 std::string getCurrentLine();
55
56 virtual NCursesEvent wHandleInput( wint_t ch );
57
58public:
59
60 NCPkgFilterPattern( YWidget *parent, YTableHeader *header, NCPackageSelector * pkg );
61 virtual ~NCPkgFilterPattern();
62
63 void createLayout( YWidget *parent );
64
69 bool fillPatternList();
70
71 std::string showDescription( ZyppObj objPtr );
72
78
79};
80
82
83
84#endif // NCPkgFilterPattern_h
Definition NCPackageSelector.h:105
virtual NCursesEvent wHandleInput(wint_t ch)
Definition NCPkgFilterPattern.cc:210
bool fillPatternList()
Definition NCPkgFilterPattern.cc:265
void showPatternPackages()
Definition NCPkgFilterPattern.cc:122