libyui-ncurses-pkg
Loading...
Searching...
No Matches
NCPkgMenuView.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: NCPkgMenuView.cc
19
Author: Hedgehog Painter <kmachalkova@suse.cz>
20
21
*/
22
23
24
#ifndef NCPkgMenuView_h
25
#define NCPkgMenuView_h
26
27
#include <string>
28
29
#include <yui/YReplacePoint.h>
30
#include <yui/YWidget.h>
31
32
#include <yui/ncurses/NCurses.h>
33
#include <yui/ncurses/NCi18n.h>
34
#include <yui/ncurses/NCMenuButton.h>
35
36
#include "NCZypp.h"
37
38
class
NCPackageSelector
;
39
40
class
NCPkgMenuView
:
public
NCMenuButton
41
{
42
NCPkgMenuView
& operator=(
const
NCPkgMenuView
& );
43
NCPkgMenuView
(
const
NCPkgMenuView
& );
44
45
private
:
46
NCPackageSelector
*pkg;
47
48
public
:
49
50
YItemCollection items;
51
52
YMenuItem *description;
53
YMenuItem *technical;
54
YMenuItem *versions;
55
YMenuItem *files;
56
YMenuItem *deps;
57
58
// Online Update
59
YMenuItem * patchDescription;
60
YMenuItem * patchPackages;
61
YMenuItem * patchPkgVersions;
62
63
NCPkgMenuView
(YWidget *parent, std::string label,
NCPackageSelector
*pkger);
64
virtual
~NCPkgMenuView
();
65
66
void
createLayout();
67
68
bool
handleEvent (
const
NCursesEvent & event);
69
70
};
71
72
#endif
NCPackageSelector
Definition
NCPackageSelector.h:105
NCPkgMenuView
Definition
NCPkgMenuView.h:41
src
NCPkgMenuView.h
Generated by
1.10.0