libyui-ncurses-pkg  2.43.4.1
 All Classes Functions
NCPkgPopupTable.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: NCPkgPopupTable.h
37 
38  Author: Gabriele Strattner <gs@suse.de>
39 
40 /-*/
41 #ifndef NCPkgPopupTable_h
42 #define NCPkgPopupTable_h
43 
44 #include <iosfwd>
45 
46 #include <vector>
47 #include <string>
48 #include <algorithm>
49 
50 #include "NCPopup.h"
51 
52 class NCPkgTable;
53 class NCPushButton;
54 class NCPackageSelector;
55 
56 
57 ///////////////////////////////////////////////////////////////////
58 //
59 // CLASS NAME : NCPkgPopupTable
60 //
61 // DESCRIPTION :
62 //
63 class NCPkgPopupTable : public NCPopup {
64 
65  NCPkgPopupTable & operator=( const NCPkgPopupTable & );
66  NCPkgPopupTable ( const NCPkgPopupTable & );
67 
68 private:
69 
70  NCPkgTable * pkgTable;
71  NCPushButton * okButton;
72  NCPushButton * cancelButton;
73  NCPackageSelector * packager;
74 
75 protected:
76 
77  virtual bool postAgain();
78 
79  virtual NCursesEvent wHandleInput( wint_t ch );
80 
81 public:
82 
83  NCPkgPopupTable( const wpos at, NCPackageSelector * pkger );
84 
85  virtual ~NCPkgPopupTable();
86 
87  virtual int preferredWidth();
88  virtual int preferredHeight();
89 
90  bool fillAutoChanges( NCPkgTable * pkgTable );
91 
92  void createLayout( );
93 
94  NCursesEvent showInfoPopup( );
95 
96 };
97 
98 ///////////////////////////////////////////////////////////////////
99 
100 
101 #endif // NCPkgPopupTable_h