00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: NCPopupPkgDescr.h 00014 00015 Author: Gabriele Strattner <gs@suse.de> 00016 Maintainer: Michael Andres <ma@suse.de> 00017 00018 /-*/ 00019 #ifndef NCPopupPkgDescr_h 00020 #define NCPopupPkgDescr_h 00021 00022 #include <iosfwd> 00023 00024 #include <vector> 00025 #include <string> 00026 00027 #include "NCPopup.h" 00028 00029 class NCPkgTable; 00030 class NCPushButton; 00031 class NCRichText; 00032 class PackageSelector; 00033 00034 00036 // 00037 // CLASS NAME : NCPopupPkgDescr 00038 // 00039 // DESCRIPTION : 00040 // 00041 class NCPopupPkgDescr : public NCPopup { 00042 00043 NCPopupPkgDescr & operator=( const NCPopupPkgDescr & ); 00044 NCPopupPkgDescr ( const NCPopupPkgDescr & ); 00045 00046 private: 00047 00048 NCPkgTable * pkgTable; 00049 NCPushButton * okButton; 00050 NCRichText *descrText; 00051 NCLabel *headline; 00052 00053 PackageSelector * packager; 00054 00055 protected: 00056 00057 virtual bool postAgain(); 00058 00059 virtual NCursesEvent wHandleInput( wint_t ch ); 00060 00061 public: 00062 00063 NCPopupPkgDescr( const wpos at, PackageSelector * pkger ); 00064 00065 virtual ~NCPopupPkgDescr(); 00066 00067 virtual long nicesize(YUIDimension dim); 00068 00069 bool fillData( PMPackagePtr & pkgPtr ); 00070 00071 void createLayout( ); 00072 00073 NCursesEvent showInfoPopup( PMPackagePtr & pkgPtr ); 00074 00075 }; 00076 00078 00079 00080 #endif // NCPopupPkgDescr_h