00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef YQLogView_h
00022 #define YQLogView_h
00023
00024 #include <qvbox.h>
00025 #include <qlabel.h>
00026 #include <qmultilineedit.h>
00027 #include <ycp/YCPString.h>
00028
00029 #include "YLogView.h"
00030
00031
00032 class YQLogView : public QVBox, public YLogView
00033 {
00034 Q_OBJECT
00035
00036 public:
00037
00041 YQLogView( QWidget * parent,
00042 const YWidgetOpt & opt,
00043 const YCPString & label,
00044 int visibleLines,
00045 int maxLines );
00046
00052 void setEnabling( bool enabled );
00053
00059 long nicesize( YUIDimension dim );
00060
00064 void setSize( long newWidth, long newHeight );
00065
00069 bool setKeyboardFocus();
00070
00074 void setLabel( const YCPString & newLabel );
00075
00079 void setLogText( const YCPString & text );
00080
00081
00082 protected:
00083
00084
00085
00086
00087
00088 QLabel * _qt_label;
00089 QMultiLineEdit * _qt_text;
00090 };
00091
00092
00093 #endif // YQLogView_h