1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
28 class YQWidgetCaption;
31 class YQLogView : public QFrame, public YLogView
40 YQLogView( YWidget * parent,
52 * Display the part of the log text that should be displayed.
53 * 'text' contains the last 'visibleLines()' lines.
54 * This is called whenever the log text changes. Note that the text might
55 * also be empty, in which case the displayed log text should be cleared.
57 * Implemented from YLogView.
59 virtual void displayLogText( const string & text );
64 * Set the label (the caption above the log text).
66 * Reimplemented from YLogView.
68 virtual void setLabel( const string & label );
71 * Set enabled/disabled state.
73 * Reimplemented from YWidget.
75 virtual void setEnabled( bool enabled );
78 * Preferred width of the widget.
80 * Reimplemented from YWidget.
82 virtual int preferredWidth();
85 * Preferred height of the widget.
87 * Reimplemented from YWidget.
89 virtual int preferredHeight();
92 * Set the new size of the widget.
94 * Reimplemented from YWidget.
96 virtual void setSize( int newWidth, int newHeight );
99 * Accept the keyboard focus.
101 virtual bool setKeyboardFocus();
106 YQWidgetCaption * _caption;
107 QTextEdit * _qt_text;
111 #endif // YQLogView_h