libyui-qt  2.44.0
 All Classes Functions Variables
YQLogView Class Reference
Inheritance diagram for YQLogView:
Collaboration diagram for YQLogView:

Public Member Functions

 YQLogView (YWidget *parent, const std::string &label, int visibleLines, int maxLines)
 
virtual ~YQLogView ()
 
virtual void setLabel (const std::string &label)
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
virtual bool setKeyboardFocus ()
 

Protected Member Functions

virtual void displayLogText (const std::string &text)
 

Protected Attributes

YQWidgetCaption_caption
 
MyTextEdit_qt_text
 
QString _lastText
 

Detailed Description

Definition at line 39 of file YQLogView.h.

Constructor & Destructor Documentation

YQLogView::YQLogView ( YWidget *  parent,
const std::string &  label,
int  visibleLines,
int  maxLines 
)

Constructor

Definition at line 41 of file YQLogView.cc.

YQLogView::~YQLogView ( )
virtual

Destructor.

Definition at line 74 of file YQLogView.cc.

Member Function Documentation

void YQLogView::displayLogText ( const std::string &  text)
protectedvirtual

Display the part of the log text that should be displayed. 'text' contains the last 'visibleLines()' lines. This is called whenever the log text changes. Note that the text might also be empty, in which case the displayed log text should be cleared.

Implemented from YLogView.

Definition at line 81 of file YQLogView.cc.

int YQLogView::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 141 of file YQLogView.cc.

int YQLogView::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 134 of file YQLogView.cc.

void YQLogView::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 125 of file YQLogView.cc.

bool YQLogView::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Definition at line 176 of file YQLogView.cc.

void YQLogView::setLabel ( const std::string &  label)
virtual

Set the label (the caption above the log text).

Reimplemented from YLogView.

Definition at line 116 of file YQLogView.cc.

Here is the call graph for this function:

void YQLogView::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 169 of file YQLogView.cc.


The documentation for this class was generated from the following files: