File indexing completed on 2024-04-28 05:50:42

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 HISTORYSCROLLNONE_H
0008 #define HISTORYSCROLLNONE_H
0009 
0010 #include "konsoleprivate_export.h"
0011 
0012 #include "HistoryScroll.h"
0013 
0014 namespace Konsole
0015 {
0016 //////////////////////////////////////////////////////////////////////
0017 // Nothing-based history (no history :-)
0018 //////////////////////////////////////////////////////////////////////
0019 class KONSOLEPRIVATE_EXPORT HistoryScrollNone : public HistoryScroll
0020 {
0021 public:
0022     HistoryScrollNone();
0023     ~HistoryScrollNone() override;
0024 
0025     bool hasScroll() const override;
0026 
0027     int getLines() const override;
0028     int getMaxLines() const override;
0029     int getLineLen(const int lineno) const override;
0030     void getCells(const int lineno, const int colno, const int count, Character res[]) const override;
0031     bool isWrappedLine(const int lineno) const override;
0032     LineProperty getLineProperty(const int lineno) const override;
0033     void setLineProperty(const int lineno, LineProperty prop) override;
0034 
0035     void addCells(const Character a[], const int count) override;
0036     void addCellsMove(Character a[], const int count) override;
0037     void addLine(const LineProperty lineProperty = LineProperty()) override;
0038 
0039     // Modify history (do nothing here)
0040     void removeCells() override;
0041     int reflowLines(const int, std::map<int, int> * = nullptr) override;
0042 };
0043 
0044 }
0045 
0046 #endif