libyui-ncurses-pkg
Loading...
Searching...
No Matches
NCPkgFilterLocale.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: NCPkgFilterLocale.h
19 Author: Bubli <kmachalkova@suse.cz>
20
21*/
22
23
24#ifndef NCPkgFilterLocale_h
25#define NCPkgFilterLocale_h
26
27#include <vector>
28#include <zypp/sat/LocaleSupport.h>
29#include <yui/ncurses/NCTable.h>
30
31#include "NCPackageSelector.h"
32#include "NCZypp.h"
33
34
35class NCPkgLocaleTag : public YTableCell
36{
37
38private:
39
40 zypp::sat::LocaleSupport locale;
41
42public:
43
44 NCPkgLocaleTag ( zypp::sat::LocaleSupport locale, std::string status );
45
46 ~NCPkgLocaleTag() {};
47
48 zypp::sat::LocaleSupport getLocale() const { return locale; }
49
50};
51
52class NCPkgLocaleTable : public NCTable
53{
54private:
55
56 NCPkgLocaleTable & operator=( const NCPkgLocaleTable & );
58
59 NCPackageSelector *packager;
60public:
61
62 NCPkgLocaleTable ( YWidget *parent, YTableHeader *tableHeader, NCPackageSelector *pkg);
63
64 virtual ~NCPkgLocaleTable() {};
65
66 void fillHeader();
67 void addLine ( zypp::sat::LocaleSupport, const std::vector <std::string> & cols, std::string status );
68 void fillLocaleList();
69 void showLocalePackages();
70
71 NCPkgLocaleTag* getTag (const int & index );
72 zypp::sat::LocaleSupport getLocale( int index );
73 std::string status( zypp::Locale lang );
74 void cycleStatus();
75 NCursesEvent wHandleInput( wint_t ch );
76};
77
78#endif
Definition NCPackageSelector.h:105
Definition NCPkgFilterLocale.h:53
Definition NCPkgFilterLocale.h:36