#include <YQPkgTextDialog.h>
Public Slots | |
void | setText (const QString &text) |
void | setText (const string &text) |
void | setText (const list< string > &text) |
void | setText (PMObjectPtr pmObj, const list< string > &text) |
Public Member Functions | |
YQPkgTextDialog (const QString &text, QWidget *parent, const QString &acceptButtonLabel, const QString &rejectButtonLabel) | |
YQPkgTextDialog (const QString &text, QWidget *parent) | |
virtual | ~YQPkgTextDialog () |
virtual QSize | sizeHint () const |
Static Public Member Functions | |
static void | showText (QWidget *parent, const QString &text) |
static void | showText (QWidget *parent, const string &text) |
static void | showText (QWidget *parent, const list< string > &text) |
static void | showText (QWidget *parent, PMObjectPtr pmObj, const list< string > &text) |
static void | showText (QWidget *parent, PMObjectPtr pmObj, const string &text) |
static bool | confirmText (QWidget *parent, const QString &text, const QString &acceptButtonLabel, const QString &rejectButtonLabel) |
static bool | confirmText (QWidget *parent, const QString &text) |
static bool | confirmText (QWidget *parent, PMObjectPtr pmObj, const list< string > &text) |
static bool | confirmText (QWidget *parent, PMObjectPtr pmObj, const string &text) |
static QString | htmlParagraphs (const list< string > &text) |
static QString | htmlHeading (const QString &text) |
static QString | htmlHeading (PMObjectPtr pmObj) |
static QString | htmlEscape (const QString &plainText) |
Protected Member Functions | |
void | buildDialog (const QString &text, QWidget *parent, const QString &acceptButtonLabel, const QString &rejectButtonLabel="") |
bool | eventFilter (QObject *obj, QEvent *ev) |
Protected Attributes | |
QPushButton * | _acceptButton |
QPushButton * | _rejectButton |
QTextBrowser * | _textBrowser |
|
Constructor. Creates a dialog with a text browser and two buttons. This does not pop up a dialog yet. Use 'exec()' (inherited from QDialog). Or, better yet, use the static confirmText() method. |
|
Constructor. Creates a dialog with a text browser and an "OK" button. This does not pop up a dialog yet. Use 'exec()' (inherited from QDialog). Or, better yet, use the static showText() method. |
|
Destructor. |
|
Create the dialog. Called from all constructors. |
|
|
|
Let the use confirm a text with a headline identifying a PMObject (name+summary) with buttons "Accept" and "Cancel". Returns "true" if the user clicked "Accept", "false" on "Cancel". |
|
Let the use confirm a text with buttons "Accept" and "Cancel". Returns "true" if the user clicked "Accept", "false" on "Cancel". |
|
Let the user confirm a text. Returns "true" if the user clicked the accept button, false if he clicked the reject button. |
|
Grab [Return] press events and close dialog. Inherited from QObject. |
|
Escapes characters special to HTML in a ( plain text ) string, such as: '<' -> '<' '>' -> '>' '&' -> '&' Returns the escaped string. |
|
Returns a uniform heading in HTML format for the specified package: Package name and summary |
|
Returns a uniform heading in HTML format. |
|
Convert a string list into its HTML paragraphs ( empty lines delimit paragraphs ). |
|
Show a text with a headline identifying a PMObject ( name+summary ). |
|
|
|
|
|
Set the text contents. |
|
|
|
Show a text with a headline identifying a PMObject (name+summary). |
|
|
|
|
|
Show a text and wait until the user confirmed with 'OK'. |
|
Reimplemented from QWidget: Reserve a reasonable amount of space. |
|
|
|
|
|
|