libyui-qt-pkg  2.45.15.2
YQPkgSelDescriptionView Class Reference

Display the description of a zypp::ResObject derived object along with its name and summary. More...

#include <YQPkgSelDescriptionView.h>

Inheritance diagram for YQPkgSelDescriptionView:
Collaboration diagram for YQPkgSelDescriptionView:

Public Member Functions

 YQPkgSelDescriptionView (QWidget *parent)
 Constructor.
 
virtual ~YQPkgSelDescriptionView ()
 Destructor.
 
virtual void showDetails (ZyppSel selectable)
 Show details for the specified package: In this case the package description. More...
 
- Public Member Functions inherited from YQPkgDescriptionView
 YQPkgDescriptionView (QWidget *parent, bool showSupportability=true)
 Constructor.
 
virtual ~YQPkgDescriptionView ()
 Destructor.
 
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 htmlHeading (ZyppSel selectable)
 Format the heading in HTML.
 
QString findIcon (const QString &icon) const
 Check if 'icon' exists. More...
 
- Protected Member Functions inherited from YQPkgDescriptionView
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 zypp::ResObject derived object along with its name and summary.

Definition at line 51 of file YQPkgSelDescriptionView.h.

Member Function Documentation

◆ findIcon()

QString YQPkgSelDescriptionView::findIcon ( const QString &  icon) const
protected

Check if 'icon' exists.

Returns 'icon' if it exists and an empty string if it doesn't exist.

Definition at line 179 of file YQPkgSelDescriptionView.cc.

◆ showDetails()

void YQPkgSelDescriptionView::showDetails ( ZyppSel  selectable)
virtual

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

Overwritten from YQPkgGenericDetailsView.

Reimplemented from YQPkgDescriptionView.

Definition at line 70 of file YQPkgSelDescriptionView.cc.

Here is the call graph for this function:

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