1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YQPkgDescriptionView.h
15 Author: Stefan Hundhammer <sh@suse.de>
20 #ifndef YQPkgDescriptionView_h
21 #define YQPkgDescriptionView_h
24 #include "YQPkgGenericDetailsView.h"
28 * @short Display the description of a ZyppObj derived object along with its
31 class YQPkgDescriptionView : public YQPkgGenericDetailsView
40 YQPkgDescriptionView( QWidget * parent );
45 virtual ~YQPkgDescriptionView();
48 * Show details for the specified package:
49 * In this case the package description.
50 * Overwritten from YQPkgGenericDetailsView.
52 virtual void showDetails( ZyppSel selectable );
55 * Get the document pointed to by a hyperlink.
57 * Reimplemented from QTextBrowser to avoid having an empty text each time
58 * the user clicks on a hyperlink.
60 virtual void setSource( const QUrl & name );
65 * Format a multi-line text into paragraphs
67 QString simpleHtmlParagraphs( QString text );
70 * Show information for a hyperlinked object,
71 * e.g., a "pkg:somepkg" link to another package.
73 void showLink( const QUrl & url );
77 #endif // ifndef YQPkgDescriptionView_h