libyui-ncurses-pkg
2.48.5
NCPkgFilterClassification.h
1
/****************************************************************************
2
|
3
| Copyright (c) [2002-2011] Novell, Inc.
4
| All Rights Reserved.
5
|
6
| This program is free software; you can redistribute it and/or
7
| modify it under the terms of version 2 of the GNU General Public License as
8
| published by the Free Software Foundation.
9
|
10
| This program is distributed in the hope that it will be useful,
11
| but WITHOUT ANY WARRANTY; without even the implied warranty of
12
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
| GNU General Public License for more details.
14
|
15
| You should have received a copy of the GNU General Public License
16
| along with this program; if not, contact Novell, Inc.
17
|
18
| To contact Novell about this file by physical or electronic mail,
19
| you may find current contact information at www.novell.com
20
|
21
|***************************************************************************/
22
23
24
/*---------------------------------------------------------------------\
25
| |
26
| __ __ ____ _____ ____ |
27
| \ \ / /_ _/ ___|_ _|___ \ |
28
| \ V / _` \___ \ | | __) | |
29
| | | (_| |___) || | / __/ |
30
| |_|\__,_|____/ |_| |_____| |
31
| |
32
| core system |
33
| (C) SuSE GmbH |
34
\----------------------------------------------------------------------/
35
36
File: NCPkgFilterClassification.h
37
38
Author: Gabriele Mohr <gs@suse.com>
39
40
/-*/
41
42
#ifndef NCPkgFilterClassification_h
43
#define NCPkgFilterClassification_h
44
45
#include <iosfwd>
46
47
#include <vector>
48
#include <string>
49
#include <algorithm>
50
51
#include "NCPadWidget.h"
52
#include "NCPopup.h"
53
#include "NCPushButton.h"
54
#include "NCSelectionBox.h"
55
56
#include "NCZypp.h"
57
58
class
NCTable;
59
class
NCPushButton;
60
class
NCPackageSelector
;
61
62
class
NCPkgFilterClassification
:
public
NCSelectionBox
63
{
64
private
:
65
66
NCPkgFilterClassification
& operator=(
const
NCPkgFilterClassification
& );
67
NCPkgFilterClassification
(
const
NCPkgFilterClassification
& );
68
69
NCPackageSelector
*packager;
70
71
YItem *recommended;
72
YItem *suggested;
73
YItem *orphaned;
74
YItem *unneeded;
75
76
bool
check (ZyppSel selectable, ZyppPkg pkg, YItem * group );
77
78
public
:
79
80
/**
81
* A helper class to hold repository data in a neat table
82
* widget
83
* @param parent A parent widget
84
* @param opt Widget options
85
*/
86
87
NCPkgFilterClassification
( YWidget *parent,
NCPackageSelector
*pkg);
88
89
virtual
~
NCPkgFilterClassification
() {};
90
91
/**
92
* Get currently selected package group item
93
*/
94
YItem *
getCurrentGroup
();
95
96
97
virtual
NCursesEvent wHandleInput ( wint_t ch );
98
99
/**
100
* Fill package list
101
*/
102
bool
showPackages
( );
103
104
void
showDescription( );
105
106
};
107
#endif
NCPkgFilterClassification::showPackages
bool showPackages()
Fill package list.
Definition:
NCPkgFilterClassification.cc:98
NCPkgFilterClassification::getCurrentGroup
YItem * getCurrentGroup()
Get currently selected package group item.
Definition:
NCPkgFilterClassification.cc:90
NCPkgFilterClassification
Definition:
NCPkgFilterClassification.h:62
NCPackageSelector
Definition:
NCPackageSelector.h:114
src
NCPkgFilterClassification.h
Generated by
1.8.14