libyui-qt
Loading...
Searching...
No Matches
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
 

Constructor & Destructor Documentation

◆ YQLogView()

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

Constructor

◆ ~YQLogView()

YQLogView::~YQLogView ( )
virtual

Destructor.

Member Function Documentation

◆ displayLogText()

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.

◆ preferredHeight()

int YQLogView::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQLogView::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ setEnabled()

void YQLogView::setEnabled ( bool enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

◆ setKeyboardFocus()

bool YQLogView::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

◆ setLabel()

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

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

Reimplemented from YLogView.

◆ setSize()

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

Set the new size of the widget.

Reimplemented from YWidget.


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