libyui-qt-pkg
Loading...
Searching...
No Matches
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 reloadTab (int 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.

Constructor & Destructor Documentation

◆ YQPkgDescriptionView()

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

Constructor

◆ ~YQPkgDescriptionView()

YQPkgDescriptionView::~YQPkgDescriptionView ( )
virtual

Destructor

Member Function Documentation

◆ applicationIconList()

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

Return html text that contains a list of application icons.

◆ findDesktopFiles()

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

Search for all desktop files in a file list.

◆ findDesktopIcon()

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

Find absolute file name (incl. path) for a icon.

◆ initLang()

void YQPkgDescriptionView::initLang ( )
protected

Initialize the language code (lang).

◆ readDesktopFile()

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

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

◆ setSource()

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.

◆ showDetails()

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.

◆ showLink()

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

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

◆ simpleHtmlParagraphs()

QString YQPkgDescriptionView::simpleHtmlParagraphs ( QString text)
protected

Format a multi-line text into paragraphs


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt-pkg/src/YQPkgDescriptionView.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt-pkg/src/YQPkgDescriptionView.cc