• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

Konsole::HistorySizeDialog

Konsole::HistorySizeDialog Class Reference

A dialog which allows the user to select the number of lines of output which are remembered for a session. More...

#include <HistorySizeDialog.h>

Inheritance diagram for Konsole::HistorySizeDialog:

Inheritance graph
[legend]

List of all members.


Public Types

enum  HistoryMode { NoHistory, FixedSizeHistory, UnlimitedHistory }

Signals

void optionsChanged (int mode, int lineCount)

Public Member Functions

int defaultLineCount () const
HistoryMode defaultMode () const
 HistorySizeDialog (QWidget *parent)
int lineCount () const
HistoryMode mode () const
void setDefaultLineCount (int count)
void setDefaultMode (HistoryMode mode)
void setLineCount (int lines)
void setMode (HistoryMode mode)

Detailed Description

A dialog which allows the user to select the number of lines of output which are remembered for a session.

Definition at line 36 of file HistorySizeDialog.h.


Member Enumeration Documentation

enum Konsole::HistorySizeDialog::HistoryMode

Specifies the type of history scroll.

Enumerator:
NoHistory  No history.

Lines of output are lost as soon as they are scrolled off-screen.

FixedSizeHistory  A history which stores up to a fixed number of lines in memory.
UnlimitedHistory  An 'unlimited' history which stores lines of output in a file on disk.

Definition at line 47 of file HistorySizeDialog.h.


Constructor & Destructor Documentation

HistorySizeDialog::HistorySizeDialog ( QWidget *  parent  ) 

Construct a new history size dialog.

Definition at line 39 of file HistorySizeDialog.cpp.


Member Function Documentation

int HistorySizeDialog::defaultLineCount (  )  const

Returns the default line count, as set with setDefaultLineCount().

Definition at line 115 of file HistorySizeDialog.cpp.

HistorySizeDialog::HistoryMode HistorySizeDialog::defaultMode (  )  const

Returns the default mode, as set with setDefaultMode().

Definition at line 113 of file HistorySizeDialog.cpp.

int HistorySizeDialog::lineCount (  )  const

Returns the number of lines of history to remember.

This is only valid when mode() == FixedSizeHistory, and returns 0 otherwise.

Definition at line 150 of file HistorySizeDialog.cpp.

HistorySizeDialog::HistoryMode HistorySizeDialog::mode (  )  const

Returns the history mode chosen by the user.

Definition at line 137 of file HistorySizeDialog.cpp.

void Konsole::HistorySizeDialog::optionsChanged ( int  mode,
int  lineCount 
) [signal]

Emitted when the user changes the scroll-back mode or line count and accepts the change by pressing the OK button.

Parameters:
mode The current history mode. This is a value from the HistoryMode enum.
lineCount The current line count. This is only applicable if mode is FixedSizeHistory

void HistorySizeDialog::setDefaultLineCount ( int  count  ) 

Sets the default line count.

When the user clicks on the "Defaults" button, the line count will be set to this number.

Definition at line 114 of file HistorySizeDialog.cpp.

void HistorySizeDialog::setDefaultMode ( HistoryMode  mode  ) 

Sets the default history mode.

When the user clicks on the "Defaults" button, this mode will be used.

Definition at line 112 of file HistorySizeDialog.cpp.

void HistorySizeDialog::setLineCount ( int  lines  ) 

Sets the number of lines for the fixed size history mode.

Definition at line 155 of file HistorySizeDialog.cpp.

void HistorySizeDialog::setMode ( HistoryMode  mode  ) 

Specifies the history mode.

Definition at line 123 of file HistorySizeDialog.cpp.


The documentation for this class was generated from the following files:
  • HistorySizeDialog.h
  • HistorySizeDialog.cpp

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal