41 #ifndef YQPkgGenericDetailsView_h 42 #define YQPkgGenericDetailsView_h 44 #include <QTextBrowser> 46 #include <zypp/Date.h> 87 static QString htmlEnd();
94 static QString
htmlHeading( ZyppSel selectable,
bool showVersion =
false );
104 static QString
htmlEscape(
const QString & plainText );
109 static QString
table(
const QString & contents );
114 static QString
row(
const QString & contents );
119 static QString
cell( QString contents );
120 static QString
cell(
int contents );
121 static QString
cell(
const string & contents );
122 static QString
cell(
const zypp::Date & date );
128 static QString
hcell( QString contents );
146 virtual void showDetails( ZyppSel selectable ) = 0;
156 virtual void reload() { QTextBrowser::reload(); }
163 QTabWidget * _parentTab;
168 #endif // ifndef YQPkgGenericDetailsView_h static QString hcell(QString contents)
Returns a string containing a HTML table cell with 'contents' for table headers.
virtual QSize minimumSizeHint() const
Returns the minimum size required for this widget.
static QString htmlHeading(ZyppSel selectable, bool showVersion=false)
Returns a uniform heading in HTML format for the specified selectable: name and summary or name...
Abstract base class for details views.
void reloadTab(int newCurrent)
Show data for the last package.
static QString cell(QString contents)
Returns a string containing a HTML table cell with 'contents'.
virtual void showDetails(ZyppSel selectable)=0
Show details for the specified package.
static QString htmlEscape(const QString &plainText)
Escapes characters special to HTML in a ( plain text ) string, such as: '<' -> '<' '>' -> '>' '&' -> ...
void showDetailsIfVisible(ZyppSel selectable)
Show details for the specified package.
static QString table(const QString &contents)
Returns a string containing a HTML table with 'contents'.
virtual ~YQPkgGenericDetailsView()
Destructor.
static QString row(const QString &contents)
Returns a string containing a HTML table row with 'contents'.
static QString htmlStart()
starts the html tag and set the style
YQPkgGenericDetailsView(QWidget *parent)
Constructor.