libyui-ncurses-pkg
 
Loading...
Searching...
No Matches
NCPkgPatchSearch.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: NCPkgPatchSearch.h
19 Author: Gabriele Strattner <gs@suse.de>
20
21*/
22
23
24#ifndef NCPkgPatchSearch_h
25#define NCPkgPatchSearch_h
26
27#include <iosfwd>
28#include <vector>
29#include <string>
30
31#include <yui/ncurses/NCCheckBox.h>
32#include <yui/ncurses/NCComboBox.h>
33#include <yui/ncurses/NCLabel.h>
34#include <yui/ncurses/NCPopup.h>
35#include <yui/ncurses/NCPushButton.h>
36#include <yui/ncurses/NCRichText.h>
37
38
40
42//
43// CLASS NAME : NCPkgPatchSearch
44//
45// DESCRIPTION :
46//
47class NCPkgPatchSearch : public NCPopup
48{
49 NCPkgPatchSearch & operator=( const NCPkgPatchSearch & );
50 NCPkgPatchSearch ( const NCPkgPatchSearch & );
51
52private:
53
54 NCComboBox * searchExpr;
55
56 YItem * searchName;
57 YItem * searchSum;
58
59 NCPushButton * cancelButton;
60 NCPushButton * okButton;
61
62 NCPackageSelector * packager; // connection to the package selector
63
64protected:
65
66 std::string getSearchExpression() const;
67
68 virtual bool postAgain();
69
70 virtual NCursesEvent wHandleInput( wint_t ch );
71
72public:
73
74 NCPkgPatchSearch( const wpos at, NCPackageSelector *pkger );
75 virtual ~NCPkgPatchSearch();
76
77 virtual int preferredWidth();
78 virtual int preferredHeight();
79
80 void createLayout( const std::string & headline );
81
82 NCursesEvent & showSearchPopup();
83
84};
85
87
88
89#endif // NCPkgPatchSearch_h
Definition NCPackageSelector.h:105