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