libyui-ncurses-pkg
Loading...
Searching...
No Matches
NCPkgFilterMain.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: NCPkgFilterMain.h
19
Author: Hedgehog Painter <kmachalkova@suse.cz>
20
21
*/
22
23
24
#ifndef NCPkgFilterMain_h
25
#define NCPkgFilterMain_h
26
27
#include <string>
28
29
#include <yui/ncurses/NCurses.h>
30
#include <yui/ncurses/NCi18n.h>
31
#include <yui/ncurses/NCComboBox.h>
32
33
#include "NCPackageSelector.h"
34
#include "NCZypp.h"
35
36
class
NCPackageSelector
;
37
38
39
class
NCPkgFilterMain
:
public
NCComboBox
40
{
41
NCPkgFilterMain
& operator=(
const
NCPkgFilterMain
& );
42
NCPkgFilterMain
(
const
NCPkgFilterMain
& );
43
44
public
:
45
46
YItemCollection items;
47
NCPackageSelector
*pkg;
48
49
YItem *patterns;
50
YItem *languages;
51
YItem *repositories;
52
YItem *services;
53
YItem *search;
54
YItem *inst_summary;
55
YItem *pkg_class;
56
57
NCPkgFilterMain
(YWidget *parent, std::string label,
NCPackageSelector
*pkger );
58
virtual
~NCPkgFilterMain
();
59
60
void
createLayout();
61
62
bool
handleEvent();
63
64
void
setSummarySelected() { selectItem(inst_summary); }
65
void
setReposSelected() { selectItem(repositories); }
66
void
setPkgClassSelected() { selectItem(pkg_class); }
67
};
68
69
#endif
NCPackageSelector
Definition
NCPackageSelector.h:105
NCPkgFilterMain
Definition
NCPkgFilterMain.h:40
src
NCPkgFilterMain.h
Generated by
1.10.0