File indexing completed on 2024-05-12 05:53:27

0001 /*
0002     SPDX-FileCopyrightText: 1997, 1998 Lars Doelle <lars.doelle@on-line.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef COMPACTHISTORYTYPE_H
0008 #define COMPACTHISTORYTYPE_H
0009 
0010 #include "history/HistoryType.h"
0011 #include "konsoleprivate_export.h"
0012 
0013 namespace Konsole
0014 {
0015 class KONSOLEPRIVATE_EXPORT CompactHistoryType : public HistoryType
0016 {
0017 public:
0018     explicit CompactHistoryType(unsigned int nbLines);
0019 
0020     bool isEnabled() const override;
0021     int maximumLineCount() const override;
0022 
0023     void scroll(std::unique_ptr<HistoryScroll> &) const override;
0024 
0025 protected:
0026     unsigned int _maxLines;
0027 };
0028 
0029 }
0030 
0031 #endif