libyui-qt-pkg  2.45.5
 All Classes Functions Variables Enumerations
YQPkgDescriptionView Class Reference

Display the description of a ZyppObj derived object along with its name and summary. More...

#include <YQPkgDescriptionView.h>

Inheritance diagram for YQPkgDescriptionView:
Collaboration diagram for YQPkgDescriptionView:

Public Member Functions

 YQPkgDescriptionView (QWidget *parent, bool showSupportability=true)
 Constructor.
 
virtual ~YQPkgDescriptionView ()
 Destructor.
 
virtual void showDetails (ZyppSel selectable)
 Show details for the specified package: In this case the package description. More...
 
virtual void setSource (const QUrl &name)
 Get the document pointed to by a hyperlink. More...
 
- Public Member Functions inherited from YQPkgGenericDetailsView
virtual QSize minimumSizeHint () const
 Returns the minimum size required for this widget. More...
 

Protected Member Functions

QString simpleHtmlParagraphs (QString text)
 Format a multi-line text into paragraphs.
 
void showLink (const QUrl &url)
 Show information for a hyperlinked object, e.g., a "pkg:somepkg" link to another package.
 
QString applicationIconList (const list< string > &fileList) const
 Return html text that contains a list of application icons.
 
QString findDesktopIcon (const QString &iconName) const
 Find absolute file name (incl. More...
 
QMap< QString, QString > readDesktopFile (const QString &fileName) const
 Extract name, icon and exec attributes from a desktop file.
 
QStringList findDesktopFiles (const list< string > &fileList) const
 Search for all desktop files in a file list.
 
void initLang ()
 Initialize the language code (lang).
 
- Protected Member Functions inherited from YQPkgGenericDetailsView
 YQPkgGenericDetailsView (QWidget *parent)
 Constructor.
 
virtual ~YQPkgGenericDetailsView ()
 Destructor.
 

Additional Inherited Members

- Public Slots inherited from YQPkgGenericDetailsView
void showDetailsIfVisible (ZyppSel selectable)
 Show details for the specified package. More...
 
- Static Public Member Functions inherited from YQPkgGenericDetailsView
static QString htmlStart ()
 starts the html tag and set the style
 
static QString htmlEnd ()
 
static QString htmlHeading (ZyppSel selectable, bool showVersion=false)
 Returns a uniform heading in HTML format for the specified selectable: name and summary or name, version and summary, if 'showVersion' is 'true'.
 
static QString htmlEscape (const QString &plainText)
 Escapes characters special to HTML in a ( plain text ) string, such as: '<' -> '<' '>' -> '>' '&' -> '&'. More...
 
static QString table (const QString &contents)
 Returns a string containing a HTML table with 'contents'.
 
static QString row (const QString &contents)
 Returns a string containing a HTML table row with 'contents'.
 
static QString cell (QString contents)
 Returns a string containing a HTML table cell with 'contents'.
 
static QString cell (int contents)
 
static QString cell (const string &contents)
 
static QString cell (const zypp::Date &date)
 
static QString hcell (QString contents)
 Returns a string containing a HTML table cell with 'contents' for table headers.
 
- Protected Slots inherited from YQPkgGenericDetailsView
void reloadTab (int newCurrent)
 Show data for the last package.
 
virtual void reload ()
 
- Protected Attributes inherited from YQPkgGenericDetailsView
QTabWidget * _parentTab
 
ZyppSel _selectable
 

Detailed Description

Display the description of a ZyppObj derived object along with its name and summary.

Definition at line 55 of file YQPkgDescriptionView.h.

Member Function Documentation

QString YQPkgDescriptionView::findDesktopIcon ( const QString &  iconName) const
protected

Find absolute file name (incl.

path) for a icon.

Definition at line 273 of file YQPkgDescriptionView.cc.

void YQPkgDescriptionView::setSource ( const QUrl &  name)
virtual

Get the document pointed to by a hyperlink.

Reimplemented from QTextBrowser to avoid having an empty text each time the user clicks on a hyperlink.

Definition at line 225 of file YQPkgDescriptionView.cc.

Here is the call graph for this function:

void YQPkgDescriptionView::showDetails ( ZyppSel  selectable)
virtual

Show details for the specified package: In this case the package description.

Overwritten from YQPkgGenericDetailsView.

Implements YQPkgGenericDetailsView.

Reimplemented in YQPkgSelDescriptionView.

Definition at line 88 of file YQPkgDescriptionView.cc.

Here is the call graph for this function:


The documentation for this class was generated from the following files: