libyui-ncurses-pkg  2.48.9
NCPkgFilterPattern.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: NCPkgFilterPattern.h
37 
38  Author: Gabriele Strattner <gs@suse.de>
39 
40 /-*/
41 #ifndef NCPkgFilterPattern_h
42 #define NCPkgFilterPattern_h
43 
44 #include <iosfwd>
45 
46 #include <string>
47 #include <set>
48 
49 #include "NCPopup.h"
50 #include "NCPushButton.h"
51 #include "NCPackageSelector.h"
52 
53 
54 ///////////////////////////////////////////////////////////////////
55 //
56 // CLASS NAME : NCPkgFilterPattern
57 //
58 // DESCRIPTION :
59 //
61 
62  NCPkgFilterPattern & operator=( const NCPkgFilterPattern & );
64 
65 private:
66 
67  NCPackageSelector * packager; // connection to the PackageSelector,
68 
69 protected:
70 
71  std::string getCurrentLine();
72 
73  virtual NCursesEvent wHandleInput( wint_t ch );
74 
75 public:
76 
77  NCPkgFilterPattern( YWidget *parent, YTableHeader *header, NCPackageSelector * pkg );
78  virtual ~NCPkgFilterPattern();
79 
80  void createLayout( YWidget *parent );
81 
82  /**
83  * Fills the std::list with the available selections (and the status info)
84  * @return bool
85  */
86  bool fillPatternList ( );
87 
88  std::string showDescription( ZyppObj objPtr );
89 
90  /**
91  * Shows the popup with the add ons (package categories).
92  * @return NCursesEvent
93  */
94  void showPatternPackages( );
95 
96 };
97 
98 ///////////////////////////////////////////////////////////////////
99 
100 
101 #endif // NCPkgFilterPattern_h
bool fillPatternList()
Fills the std::list with the available selections (and the status info)
The package table class.
Definition: NCPkgTable.h:207
void showPatternPackages()
Shows the popup with the add ons (package categories).
virtual NCursesEvent wHandleInput(wint_t ch)
Handles the events concerning the package table (e.g.