41 #ifndef YQPkgTextDialog_h
42 #define YQPkgTextDialog_h
47 #include <zypp/ResObject.h>
75 const QString & acceptButtonLabel,
76 const QString & rejectButtonLabel );
101 static void showText( QWidget * parent,
const QString & text );
106 static void showText( QWidget * parent,
108 const string & text );
115 const QString & text,
116 const QString & acceptButtonLabel,
117 const QString & rejectButtonLabel );
123 static bool confirmText( QWidget * parent,
const QString & text );
124 static bool confirmText( QWidget * parent,
const char * text );
133 const string & text );
145 static QString
htmlHeading(
const QString & text );
161 static QString
htmlEscape(
const QString & plainText );
169 void setText(
const QString & text );
170 void setText(
const string & text );
175 void setText( ZyppSel selectable,
176 const string & text );
185 const QString & acceptButtonLabel,
186 const QString & rejectButtonLabel =
"" );
196 QPushButton * _acceptButton;
197 QPushButton * _rejectButton;
198 QTextBrowser * _textBrowser;
203 #endif // ifndef YQPkgTextDialog_h
virtual ~YQPkgTextDialog()
bool eventFilter(QObject *obj, QEvent *ev)
static bool confirmText(QWidget *parent, const QString &text, const QString &acceptButtonLabel, const QString &rejectButtonLabel)
void buildDialog(const QString &text, QWidget *parent, const QString &acceptButtonLabel, const QString &rejectButtonLabel="")
static void showText(QWidget *parent, const QString &text)
static QString htmlParagraphs(const string &rawText)
YQPkgTextDialog(const QString &text, QWidget *parent, const QString &acceptButtonLabel, const QString &rejectButtonLabel)
static QString htmlHeading(const QString &text)
void setText(const QString &text)
virtual QSize sizeHint() const
Dialog that shows a scrolled (HTML) text.
static QString htmlEscape(const QString &plainText)