libyui-qt-pkg  2.42.13
 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)
 
virtual ~YQPkgDescriptionView ()
 
virtual void showDetails (ZyppSel selectable)
 
virtual void setSource (const QUrl &name)
 
- Public Member Functions inherited from YQPkgGenericDetailsView
virtual QSize minimumSizeHint () const
 

Protected Member Functions

QString simpleHtmlParagraphs (QString text)
 
void showLink (const QUrl &url)
 
QString applicationIconList (const list< string > &fileList) const
 
QString findDesktopIcon (const QString &iconName) const
 
QMap< QString, QString > readDesktopFile (const QString &fileName) const
 
QStringList findDesktopFiles (const list< string > &fileList) const
 
void initLang ()
 
- Protected Member Functions inherited from YQPkgGenericDetailsView
 YQPkgGenericDetailsView (QWidget *parent)
 
virtual ~YQPkgGenericDetailsView ()
 

Additional Inherited Members

- Public Slots inherited from YQPkgGenericDetailsView
void showDetailsIfVisible (ZyppSel selectable)
 
- Static Public Member Functions inherited from YQPkgGenericDetailsView
static QString htmlStart ()
 
static QString htmlEnd ()
 
static QString htmlHeading (ZyppSel selectable, bool showVersion=false)
 
static QString htmlEscape (const QString &plainText)
 
static QString table (const QString &contents)
 
static QString row (const QString &contents)
 
static QString cell (QString contents)
 
static QString cell (int contents)
 
static QString cell (const string &contents)
 
static QString cell (const zypp::Date &date)
 
static QString hcell (QString contents)
 
- Protected Slots inherited from YQPkgGenericDetailsView
void reload (QWidget *newCurrent)
 
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.

Constructor & Destructor Documentation

YQPkgDescriptionView::YQPkgDescriptionView ( QWidget *  parent,
bool  showSupportability = true 
)

Constructor

Definition at line 72 of file YQPkgDescriptionView.cc.

Here is the call graph for this function:

YQPkgDescriptionView::~YQPkgDescriptionView ( )
virtual

Destructor

Definition at line 81 of file YQPkgDescriptionView.cc.

Member Function Documentation

QString YQPkgDescriptionView::applicationIconList ( const list< string > &  fileList) const
protected

Return html text that contains a list of application icons.

Definition at line 232 of file YQPkgDescriptionView.cc.

Here is the call graph for this function:

QStringList YQPkgDescriptionView::findDesktopFiles ( const list< string > &  fileList) const
protected

Search for all desktop files in a file list.

Definition at line 330 of file YQPkgDescriptionView.cc.

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::initLang ( )
protected

Initialize the language code (lang).

Definition at line 347 of file YQPkgDescriptionView.cc.

QMap< QString, QString > YQPkgDescriptionView::readDesktopFile ( const QString &  fileName) const
protected

Extract name, icon and exec attributes from a desktop file.

Definition at line 291 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:

void YQPkgDescriptionView::showLink ( const QUrl &  url)
protected

Show information for a hyperlinked object, e.g., a "pkg:somepkg" link to another package.

Definition at line 208 of file YQPkgDescriptionView.cc.

Here is the call graph for this function:

QString YQPkgDescriptionView::simpleHtmlParagraphs ( QString  text)
protected

Format a multi-line text into paragraphs

Definition at line 156 of file YQPkgDescriptionView.cc.

Here is the call graph for this function:


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