File indexing completed on 2024-04-21 05:51:22

0001 /*
0002     SPDX-FileCopyrightText: 2007-2008 Robert Knight <robertknight@gmail.com>
0003     SPDX-FileCopyrightText: 2012 Kurt Hindenburg <kurt.hindenburg@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef HISTORYSIZEDIALOG_H
0009 #define HISTORYSIZEDIALOG_H
0010 
0011 // KDE
0012 #include <QDialog>
0013 
0014 // Konsole
0015 #include "Enumeration.h"
0016 #include "konsoleprivate_export.h"
0017 
0018 namespace Ui
0019 {
0020 class HistorySizeDialog;
0021 }
0022 
0023 namespace Konsole
0024 {
0025 class KONSOLEPRIVATE_EXPORT HistorySizeDialog : public QDialog
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030     explicit HistorySizeDialog(QWidget *parent = nullptr);
0031     ~HistorySizeDialog() override;
0032 
0033     /** See HistorySizeWidget::setMode. */
0034     void setMode(Enum::HistoryModeEnum aMode);
0035 
0036     /** See HistorySizeWidget::mode. */
0037     Enum::HistoryModeEnum mode() const;
0038 
0039     /** See HistorySizeWidget::setLineCount. */
0040     void setLineCount(int lines);
0041 
0042     /** See HistorySizeWidget::lineCount. */
0043     int lineCount() const;
0044 
0045     QSize sizeHint() const override;
0046 
0047 private:
0048     Ui::HistorySizeDialog *_ui;
0049 };
0050 }
0051 
0052 #endif // HISTORYSIZEDIALOG_H