libyui-ncurses-pkg
NCPkgFilterMain.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: NCPkgFilterMain.h
37
38
Author: Hedgehog Painter <kmachalkova@suse.cz>
39
40
/-*/
41
42
#ifndef NCPkgFilterMain_h
43
#define NCPkgFilterMain_h
44
45
#include <string>
46
47
#include <yui/ncurses/NCurses.h>
48
#include <yui/ncurses/NCi18n.h>
49
#include <yui/ncurses/NCComboBox.h>
50
51
#include "NCPackageSelector.h"
52
#include "NCZypp.h"
53
54
class
NCPackageSelector
;
55
56
57
class
NCPkgFilterMain
:
public
NCComboBox
58
{
59
NCPkgFilterMain
& operator=(
const
NCPkgFilterMain
& );
60
NCPkgFilterMain
(
const
NCPkgFilterMain
& );
61
62
public
:
63
64
YItemCollection items;
65
NCPackageSelector
*pkg;
66
67
YItem *patterns;
68
YItem *languages;
69
YItem *repositories;
70
YItem *services;
71
YItem *search;
72
YItem *inst_summary;
73
YItem *pkg_class;
74
75
NCPkgFilterMain
(YWidget *parent, std::string label,
NCPackageSelector
*pkger );
76
virtual
~
NCPkgFilterMain
();
77
78
void
createLayout();
79
80
bool
handleEvent();
81
82
void
setSummarySelected() { selectItem(inst_summary); }
83
void
setReposSelected() { selectItem(repositories); }
84
void
setPkgClassSelected() { selectItem(pkg_class); }
85
};
86
87
#endif
NCPkgFilterMain
Definition:
NCPkgFilterMain.h:57
NCPackageSelector
Definition:
NCPackageSelector.h:109
src
NCPkgFilterMain.h
Generated by
1.8.14