libyui-ncurses-pkg
Loading...
Searching...
No Matches
NCPkgMenuDeps.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: NCPkgMenuDeps.cc
19 Author: Hedgehog Painter <kmachalkova@suse.cz>
20
21*/
22
23
24#ifndef NCPkgMenuDeps_h
25#define NCPkgMenuDeps_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#include <yui/ncurses/NCPopupInfo.h>
33
34#include "NCPkgPopupTable.h"
35#include "NCZypp.h"
36
37
39
40class NCPkgMenuDeps : public NCMenuButton
41{
42 NCPkgMenuDeps & operator=( const NCPkgMenuDeps & );
43 NCPkgMenuDeps ( const NCPkgMenuDeps & );
44
45public:
46
48
49 YItemCollection items;
50
51 YMenuItem *autoCheckDeps;
52 YMenuItem *checkNow;
53 YMenuItem *verifySystem;
54 YMenuItem *verifySystemOpt;
55 YMenuItem *installRecommendedOpt;
56 YMenuItem *installRecommendedNow;
57 YMenuItem *cleanDepsOnRemove;
58 YMenuItem *allowVendorChange;
59 YMenuItem *testCase;
60
61 NCPkgMenuDeps (YWidget *parent, std::string label, NCPackageSelector *pkger);
62 virtual ~NCPkgMenuDeps();
63
64 void createLayout();
65
66 bool handleEvent (const NCursesEvent & event);
67
68 bool checkDependencies();
69
70 bool generateTestcase();
71
72 bool setAutoCheck();
73
74 bool setCleanDepsOnRemove();
75
76 bool setInstallRecommended();
77
78 bool doInstallRecommended();
79
80 bool setAllowVendorChange();
81
82 bool setVerifySystem();
83
84 bool verify();
85
86 void setSelected( YMenuItem *item, bool selected);
87};
88
89#endif
Definition NCPackageSelector.h:105
Definition NCPkgMenuDeps.h:41