parent
c486fc514c
commit
616db49e69
13 changed files with 22 additions and 132 deletions
@ -1,58 +0,0 @@ |
||||
/*
|
||||
This file is part of Konsole, an X terminal. |
||||
Copyright 1997,1998 by Lars Doelle <lars.doelle@on-line.de> |
||||
|
||||
This program is free software; you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation; either version 2 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program; if not, write to the Free Software |
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
||||
02110-1301 USA. |
||||
*/ |
||||
|
||||
// Own
|
||||
#include "History.h" |
||||
|
||||
#include "HistoryScrollFile.h" |
||||
|
||||
#include "konsoledebug.h" |
||||
#include "KonsoleSettings.h" |
||||
|
||||
// System
|
||||
#include <cerrno> |
||||
#include <cstdlib> |
||||
#include <cstdio> |
||||
#include <sys/types.h> |
||||
#include <unistd.h> |
||||
|
||||
// KDE
|
||||
#include <QDir> |
||||
#include <qplatformdefs.h> |
||||
#include <QStandardPaths> |
||||
#include <KConfigGroup> |
||||
#include <KSharedConfig> |
||||
|
||||
using namespace Konsole; |
||||
|
||||
/*
|
||||
An arbitrary long scroll. |
||||
|
||||
One can modify the scroll only by adding either cells |
||||
or newlines, but access it randomly. |
||||
|
||||
The model is that of an arbitrary wide typewriter scroll |
||||
in that the scroll is a series of lines and each line is |
||||
a series of cells with no overwriting permitted. |
||||
|
||||
The implementation provides arbitrary length and numbers |
||||
of cells and line/column indexed read access to the scroll |
||||
at constant costs. |
||||
*/ |
||||
@ -1,63 +0,0 @@ |
||||
/*
|
||||
This file is part of Konsole, an X terminal. |
||||
Copyright 1997,1998 by Lars Doelle <lars.doelle@on-line.de> |
||||
|
||||
This program is free software; you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation; either version 2 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program; if not, write to the Free Software |
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
||||
02110-1301 USA. |
||||
*/ |
||||
|
||||
#ifndef HISTORY_H |
||||
#define HISTORY_H |
||||
|
||||
// System
|
||||
#include <sys/mman.h> |
||||
|
||||
// Qt
|
||||
#include <QList> |
||||
#include <QVector> |
||||
#include <QTemporaryFile> |
||||
|
||||
#include "konsoleprivate_export.h" |
||||
|
||||
// History
|
||||
#include "HistoryFile.h" |
||||
#include "HistoryScroll.h" |
||||
#include "HistoryScrollFile.h" |
||||
#include "HistoryScrollNone.h" |
||||
#include "CharacterFormat.h" |
||||
#include "CompactHistoryBlock.h" |
||||
#include "CompactHistoryBlockList.h" |
||||
#include "CompactHistoryLine.h" |
||||
#include "CompactHistoryScroll.h" |
||||
|
||||
#include "HistoryType.h" |
||||
#include "HistoryTypeNone.h" |
||||
#include "HistoryTypeFile.h" |
||||
#include "CompactHistoryType.h" |
||||
|
||||
// Konsole
|
||||
#include "Character.h" |
||||
|
||||
namespace Konsole { |
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// History using compact storage
|
||||
// This implementation uses a list of fixed-sized blocks
|
||||
// where history lines are allocated in (avoids heap fragmentation)
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
} |
||||
|
||||
#endif // HISTORY_H
|
||||
Loading…
Reference in new issue