Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQPkgGenericDetailsView Class Reference

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:

YQPkgDependenciesView YQPkgDescriptionView YQPkgTechnicalDetailsView List of all members.

Public Slots

void showDetailsIfVisible (PMObjectPtr pmObj)

Public Member Functions

virtual QSize minimumSizeHint () const

Static Public Member Functions

static QString htmlHeading (PMObjectPtr pmObj)
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 Date &date)
static QString hcell (QString contents)
static QString formatDate (const Date &date)

Protected Slots

void reload (QWidget *newCurrent)

Protected Member Functions

 YQPkgGenericDetailsView (QWidget *parent)
virtual ~YQPkgGenericDetailsView ()
virtual void showDetails (PMObjectPtr pmObj)=0

Protected Attributes

QTabWidget * _parentTab
PMObjectPtr _pmObj

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 QWidget *  parent  )  [protected]
 

Constructor.

YQPkgGenericDetailsView::~YQPkgGenericDetailsView  )  [protected, virtual]
 

Destructor.


Member Function Documentation

QString YQPkgGenericDetailsView::cell const Date date  )  [static]
 

QString YQPkgGenericDetailsView::cell const string &  contents  )  [static]
 

Reimplemented in YQPkgDependenciesView.

QString YQPkgGenericDetailsView::cell int  contents  )  [static]
 

QString YQPkgGenericDetailsView::cell QString  contents  )  [static]
 

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

QString YQPkgGenericDetailsView::formatDate const Date date  )  [static]
 

Format a date.

QString YQPkgGenericDetailsView::hcell QString  contents  )  [static]
 

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

QString YQPkgGenericDetailsView::htmlEscape const QString &  plainText  )  [static]
 

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

Returns the escaped string.

QString YQPkgGenericDetailsView::htmlHeading PMObjectPtr  pmObj  )  [static]
 

Returns a uniform heading in HTML format for the specified package: Package name and summary

QSize YQPkgGenericDetailsView::minimumSizeHint  )  const [virtual]
 

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

void YQPkgGenericDetailsView::reload QWidget *  newCurrent  )  [protected, slot]
 

Show data for the last package.

QString YQPkgGenericDetailsView::row const QString &  contents  )  [static]
 

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

virtual void YQPkgGenericDetailsView::showDetails PMObjectPtr  pmObj  )  [protected, pure virtual]
 

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

Implemented in YQPkgDependenciesView, YQPkgDescriptionView, and YQPkgTechnicalDetailsView.

void YQPkgGenericDetailsView::showDetailsIfVisible PMObjectPtr  pmObj  )  [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.

QString YQPkgGenericDetailsView::table const QString &  contents  )  [static]
 

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


Member Data Documentation

QTabWidget* YQPkgGenericDetailsView::_parentTab [protected]
 

PMObjectPtr YQPkgGenericDetailsView::_pmObj [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 10:59:03 2005 for yast2-qt by  doxygen 1.4.4