libyui-ncurses-pkg
Loading...
Searching...
No Matches
NCPkgMenuExtras.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: NCPkgMenuExtras.cc
19
Author: Hedgehog Painter <kmachalkova@suse.cz>
20
21
*/
22
23
24
#ifndef NCPkgMenuExtras_h
25
#define NCPkgMenuExtras_h
26
27
#include <string>
28
29
#include <yui/ncurses/NCurses.h>
30
#include <yui/ncurses/NCi18n.h>
31
#include <yui/ncurses/NCMenuButton.h>
32
33
#include "NCPkgStrings.h"
34
#include "NCPkgPopupDiskspace.h"
35
36
37
class
NCPackageSelector
;
38
39
40
class
NCPkgMenuExtras
:
public
NCMenuButton
41
{
42
NCPkgMenuExtras
& operator=(
const
NCPkgMenuExtras
& );
43
NCPkgMenuExtras
(
const
NCPkgMenuExtras
& );
44
45
public
:
46
47
YItemCollection items;
48
49
YMenuItem *exportFile;
50
YMenuItem *importFile;
51
YMenuItem *diskSpace;
52
YMenuItem *onlineSearch;
53
54
NCPackageSelector
*pkg;
55
56
NCPkgMenuExtras
(YWidget *parent, std::string label,
NCPackageSelector
*pkger);
57
virtual
~NCPkgMenuExtras
();
58
59
void
createLayout();
60
61
bool
handleEvent (
const
NCursesEvent & event);
62
63
void
importSelectable ( ZyppSel selectable,
bool
isWanted,
const
char
*kind );
64
65
bool
exportToFile();
66
67
bool
importFromFile();
68
69
bool
showDiskSpace();
70
71
};
72
73
#endif
NCPackageSelector
Definition
NCPackageSelector.h:105
NCPkgMenuExtras
Definition
NCPkgMenuExtras.h:41
src
NCPkgMenuExtras.h
Generated by
1.12.0