libyui-qt-pkg  2.42.5
 All Classes Functions Variables Enumerations
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 reload (QWidget *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 ).

Definition at line 58 of file YQPkgGenericDetailsView.h.

Constructor & Destructor Documentation

YQPkgGenericDetailsView::YQPkgGenericDetailsView ( QWidget *  parent)
protected

Constructor.

Definition at line 53 of file YQPkgGenericDetailsView.cc.

Here is the call graph for this function:

YQPkgGenericDetailsView::~YQPkgGenericDetailsView ( )
protectedvirtual

Destructor.

Definition at line 108 of file YQPkgGenericDetailsView.cc.

Member Function Documentation

QString YQPkgGenericDetailsView::cell ( QString  contents)
static

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

Definition at line 235 of file YQPkgGenericDetailsView.cc.

Here is the call graph for this function:

QString YQPkgGenericDetailsView::hcell ( QString  contents)
static

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

Definition at line 267 of file YQPkgGenericDetailsView.cc.

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

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

Returns the escaped string.

Definition at line 201 of file YQPkgGenericDetailsView.cc.

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'

Definition at line 166 of file YQPkgGenericDetailsView.cc.

QString YQPkgGenericDetailsView::htmlStart ( )
static

starts the html tag and set the style

Definition at line 151 of file YQPkgGenericDetailsView.cc.

QSize YQPkgGenericDetailsView::minimumSizeHint ( ) const
virtual

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

Definition at line 144 of file YQPkgGenericDetailsView.cc.

void YQPkgGenericDetailsView::reload ( QWidget *  newCurrent)
protectedslot

Show data for the last package.

Definition at line 115 of file YQPkgGenericDetailsView.cc.

Here is the call graph for this function:

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

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

Definition at line 228 of file YQPkgGenericDetailsView.cc.

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

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

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

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.

Definition at line 125 of file YQPkgGenericDetailsView.cc.

Here is the call graph for this function:

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

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

Definition at line 215 of file YQPkgGenericDetailsView.cc.


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