• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • kde-4.14
  • applications
  • konsole
  • src
HistorySizeWidget.h
Go to the documentation of this file.
1 /*
2  Copyright 2007-2008 by Robert Knight <robertknight@gmail.com>
3  Copyright 2012 by Jekyll Wu <adaptee@gmail.com>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  02110-1301 USA.
19 */
20 
21 #ifndef HISTORYSIZEWIDGET_H
22 #define HISTORYSIZEWIDGET_H
23 
24 // Qt
25 #include <QWidget>
26 
27 // Konsole
28 #include "Enumeration.h"
29 
30 class QAbstractButton;
31 
32 namespace Ui
33 {
34 class HistorySizeWidget;
35 }
36 
37 namespace Konsole
38 {
42 class HistorySizeWidget : public QWidget
43 {
44  Q_OBJECT
45 
46 public:
47  explicit HistorySizeWidget(QWidget* parent);
48  virtual ~HistorySizeWidget();
49 
51  void setMode(Enum::HistoryModeEnum aMode);
52 
54  Enum::HistoryModeEnum mode() const;
55 
57  void setLineCount(int lines);
58 
64  int lineCount() const;
65 
66 signals:
68  void historyModeChanged(Enum::HistoryModeEnum) const;
69 
71  void historySizeChanged(int) const;
72 
73 private slots:
74  void buttonClicked(QAbstractButton*) const;
75 
76 private:
77  Ui::HistorySizeWidget* _ui;
78 
79  // 1000 lines was the default in the KDE3 series
80  static const int DefaultLineCount = 1000;
81 };
82 }
83 
84 #endif // HISTORYSIZEWIDGET_H
QWidget
Konsole::HistorySizeWidget::historyModeChanged
void historyModeChanged(Enum::HistoryModeEnum) const
Emitted when the history mode is changed.
Konsole::HistorySizeWidget::setLineCount
void setLineCount(int lines)
Sets the number of lines for the fixed size history mode.
Definition: HistorySizeWidget.cpp:104
Konsole::HistorySizeWidget::mode
Enum::HistoryModeEnum mode() const
Returns the history mode chosen by the user.
Definition: HistorySizeWidget.cpp:91
Enumeration.h
Konsole::Enum::HistoryModeEnum
HistoryModeEnum
This enum describes the modes available to remember lines of output produced by the terminal...
Definition: Enumeration.h:38
Konsole::HistorySizeWidget::historySizeChanged
void historySizeChanged(int) const
Emitted when the history size is changed.
Konsole::HistorySizeWidget::setMode
void setMode(Enum::HistoryModeEnum aMode)
Specifies the history mode.
Definition: HistorySizeWidget.cpp:79
Konsole::HistorySizeWidget::~HistorySizeWidget
virtual ~HistorySizeWidget()
Definition: HistorySizeWidget.cpp:67
QAbstractButton
Konsole::HistorySizeWidget
A widget for controlling history related options.
Definition: HistorySizeWidget.h:42
Konsole::HistorySizeWidget::HistorySizeWidget
HistorySizeWidget(QWidget *parent)
Definition: HistorySizeWidget.cpp:33
QObject::parent
QObject * parent() const
Konsole::HistorySizeWidget::lineCount
int lineCount() const
Returns the number of lines of history to remember.
Definition: HistorySizeWidget.cpp:110
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Konsole

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal