Konsole
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>

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
Specifies the type of history scroll.
- Enumerator:
Definition at line 47 of file HistorySizeDialog.h.
Constructor & Destructor Documentation
| HistorySizeDialog::HistorySizeDialog | ( | QWidget * | parent | ) |
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 |
| 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 | ) |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference