libyui-qt-pkg
Loading...
Searching...
No Matches
YQPkgGenericDetailsView Class Referenceabstract

Abstract base class for details views. Handles generic stuff like HTML formatting, Qt slots and display only if this view is visible at all ( it may be hidden if it's part of a QTabWidget ). More...

#include <YQPkgGenericDetailsView.h>

Inheritance diagram for YQPkgGenericDetailsView:
Collaboration diagram for YQPkgGenericDetailsView:

Public Slots

void showDetailsIfVisible (ZyppSel selectable)
 
virtual void showDetails (ZyppSel selectable)=0
 

Public Member Functions

virtual QSize minimumSizeHint () const
 

Static Public Member Functions

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

void reloadTab (int newCurrent)
 
virtual void reload ()
 

Protected Member Functions

 YQPkgGenericDetailsView (QWidget *parent)
 
virtual ~YQPkgGenericDetailsView ()
 

Protected Attributes

QTabWidget * _parentTab
 
ZyppSel _selectable
 

Detailed Description

Abstract base class for details views. Handles generic stuff like HTML formatting, Qt slots and display only if this view is visible at all ( it may be hidden if it's part of a QTabWidget ).

Constructor & Destructor Documentation

◆ YQPkgGenericDetailsView()

YQPkgGenericDetailsView::YQPkgGenericDetailsView ( QWidget *  parent)
protected

Constructor.

◆ ~YQPkgGenericDetailsView()

YQPkgGenericDetailsView::~YQPkgGenericDetailsView ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ cell()

QString YQPkgGenericDetailsView::cell ( QString  contents)
static

Returns a string containing a HTML table cell with 'contents'.

◆ hcell()

QString YQPkgGenericDetailsView::hcell ( QString  contents)
static

Returns a string containing a HTML table cell with 'contents' for table headers.

◆ htmlEscape()

QString YQPkgGenericDetailsView::htmlEscape ( const QString &  plainText)
static

Escapes characters special to HTML in a ( plain text ) string, such as: '<' -> '<' '>' -> '>' '&' -> '&'

Returns the escaped string.

◆ htmlHeading()

QString YQPkgGenericDetailsView::htmlHeading ( ZyppSel  selectable,
bool  showVersion = false 
)
static

Returns a uniform heading in HTML format for the specified selectable: name and summary or name, version and summary, if 'showVersion' is 'true'

◆ htmlStart()

QString YQPkgGenericDetailsView::htmlStart ( )
static

starts the html tag and set the style

◆ minimumSizeHint()

QSize YQPkgGenericDetailsView::minimumSizeHint ( ) const
virtual

Returns the minimum size required for this widget. Inherited from QWidget.

◆ reloadTab

void YQPkgGenericDetailsView::reloadTab ( int  newCurrent)
protectedslot

Show data for the last package.

◆ row()

QString YQPkgGenericDetailsView::row ( const QString &  contents)
static

Returns a string containing a HTML table row with 'contents'.

◆ showDetails

virtual void YQPkgGenericDetailsView::showDetails ( ZyppSel  selectable)
pure virtualslot

Show details for the specified package. Reimplement this in derived classes.

Implemented in YQPkgChangeLogView, YQPkgDependenciesView, YQPkgDescriptionView, YQPkgFileListView, YQPkgSelDescriptionView, and YQPkgTechnicalDetailsView.

◆ showDetailsIfVisible

void YQPkgGenericDetailsView::showDetailsIfVisible ( ZyppSel  selectable)
slot

Show details for the specified package. Delayed ( optimized ) display if this is embedded into a QTabWidget parent: In this case, wait until this page becomes visible.

◆ table()

QString YQPkgGenericDetailsView::table ( const QString &  contents)
static

Returns a string containing a HTML table with 'contents'.


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