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

Konsole

HistorySizeDialog.h

Go to the documentation of this file.
00001 /*
00002     Copyright 2007-2008 by Robert Knight <robertknight@gmail.com>
00003 
00004     This program is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301  USA.
00018 */
00019 
00020 #ifndef HISTORYSIZEDIALOG_H
00021 #define HISTORYSIZEDIALOG_H
00022 
00023 // KDE
00024 #include <KDialog>
00025 
00026 class QAbstractButton;
00027 class QSpinBox;
00028 
00029 namespace Konsole
00030 {
00031 
00036 class HistorySizeDialog : public KDialog
00037 {
00038 Q_OBJECT
00039 
00040 public:
00044     HistorySizeDialog( QWidget* parent );
00045 
00047     enum HistoryMode
00048     {
00053         NoHistory,
00058         FixedSizeHistory,
00063         UnlimitedHistory
00064     };
00065 
00066 
00068     void setMode( HistoryMode mode );
00070     HistoryMode mode() const;
00076     int lineCount() const;
00078     void setLineCount(int lines);
00079 
00084     void setDefaultMode( HistoryMode mode );
00085 
00087     HistoryMode defaultMode() const;
00088 
00093     void setDefaultLineCount( int count );
00094 
00096     int defaultLineCount() const;
00097 
00098 signals:
00107     void optionsChanged(int mode , int lineCount);
00108 
00109 private slots:
00110     // changes the mode and line count back to the defaults
00111     // specified with setDefaultMode() and setDefaultLineCount()
00112     void useDefaults();
00113 
00114     // fires the optionsChanged() signal with the current mode
00115     // and line count as arguments
00116     void emitOptionsChanged();
00117 
00118 private:
00119     QAbstractButton* _noHistoryButton;
00120     QAbstractButton* _fixedHistoryButton;
00121     QAbstractButton* _unlimitedHistoryButton;
00122     QSpinBox* _lineCountBox;   
00123 
00124     HistoryMode _defaultMode;
00125     int _defaultLineCount; 
00126 };
00127 
00128 }
00129 
00130 #endif // HISTORYSIZEDIALOG_H

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.4
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