30 #include <QTextBrowser> 31 #include <yui/YRichText.h> 48 const std::string & text,
49 bool plainTextMode =
false );
61 virtual void setValue(
const std::string & newValue );
96 virtual void setSize(
int newWidth,
int newHeight );
117 virtual bool eventFilter( QObject * obj, QEvent * ev );
143 bool *_colors_specified;
167 QTextBrowser( parent ) {}
177 virtual void setSource(
const QUrl & name );
181 #endif // YQRichText_h virtual bool setKeyboardFocus()
Accept the keyboard focus.
YQRichText(YWidget *parent, const std::string &text, bool plainTextMode=false)
Constructor.
virtual bool eventFilter(QObject *obj, QEvent *ev)
Event filter.
bool haveHyperLinks()
Returns 'true' if the current text of this RichText widget contains hyperlinks.
YQTextBrowser(QWidget *parent=0)
Constructor.
virtual ~YQRichText()
Destructor.
Helper class - needed to have the benefits of both QVBox as the base class for YQRichText so uniform ...
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
virtual int preferredWidth()
Preferred width of the widget.
virtual void setPlainTextMode(bool on=true)
Set this RichText widget's "plain text" mode on or off.
virtual void setAutoScrollDown(bool on=true)
Set this RichText widget's "auto scroll down" mode on or off.
virtual void setValue(const std::string &newValue)
Change the text content of the RichText widget.
virtual int preferredHeight()
Preferred height of the widget.
virtual void setEnabled(bool enabled)
Set enabled/disabled state.
void linkClicked(const QUrl &url)
Notification that a hyperlink is clicked.