Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

wftk::Terminal Class Reference

Terminal widget: has multi-line output, one-line input, scroll bar. More...

#include <terminal.h>

Inheritance diagram for wftk::Terminal:

wftk::MultiLineEdit wftk::LineEdit wftk::Widget wftk::ScreenArea List of all members.

Public Member Functions

 Terminal (const std::string &text="", const Font &font=Font(), bool readonly=true, bool fill=false)
 Constructor.

void scrollUp (int)
 Scroll terminal up (equivalent to clicking up-arrow of scroll bar).

void scrollDown (int)
 Scroll terminal down (equivalent to clicking down-arrow of scroll bar).

void scrollTo (int)
 Scroll to arbitrary location (called when dragging slider of scroll bar).

void scroll2Top ()
 Scroll terminal to the top.

void scroll2Bottom ()
 Scroll terminal to the bottom.

unsigned linesCount () const
 Number of lines in this terminal.

unsigned currentLine () const
 Current line.


Public Attributes

SigC::Signal0< void > scrolled
 Emitted when terminal is scrolled.


Detailed Description

Terminal widget: has multi-line output, one-line input, scroll bar.


Constructor & Destructor Documentation

wftk::Terminal::Terminal const std::string &  text = "",
const Font font = Font(),
bool  readonly = true,
bool  fill = false
[explicit]
 

Constructor.

Parameters:
text Initial text for this Terminal. Defaults to empty string.
font Initial font for this Terminal. Defaults to wftk system font.
readonly boolean flag. Allows / disallows direct text input into the multi-line portion of the terminal.
fill boolean flag. If true, Terminal will expand to fill available space.


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

Generated Wed Jul 28 17:28:43 2004.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.