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
23 #include "YQPkgGenericDetailsView.h"
27 * @short Display the description of a ZyppObj derived object along with its
30 class YQPkgDescriptionView : public YQPkgGenericDetailsView
39 YQPkgDescriptionView( QWidget * parent );
44 virtual ~YQPkgDescriptionView();
47 * Show details for the specified package:
48 * In this case the package description.
49 * Overwritten from YQPkgGenericDetailsView.
51 virtual void showDetails( ZyppSel selectable );
54 * Get the document pointed to by a hyperlink.
56 * Reimplemented from QTextBrowser to avoid having an empty text each time
57 * the user clicks on a hyperlink.
59 virtual void setSource( const QString & name );
64 * Format a multi-line text into paragraphs
66 QString simpleHtmlParagraphs( QString text );
69 * Show information for a hyperlinked object,
70 * e.g., a "pkg:somepkg" link to another package.
72 void showLink( const QString & url );
76 #endif // ifndef YQPkgDescriptionView_h