File indexing completed on 2024-04-28 13:45:56

0001 /*
0002     This file is part of the Okteta Gui library, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2010-2011 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef OKTETAGUI_HPP
0010 #define OKTETAGUI_HPP
0011 
0012 // this
0013 #include "lineposition.hpp"
0014 // ColumnsView
0015 #include "pixelmetrics.hpp"
0016 // Okteta core
0017 #include <Okteta/Byte>
0018 #include <Okteta/OktetaCore>
0019 // Qt
0020 #include <QChar>
0021 
0022 namespace Okteta {
0023 
0024 static constexpr LinePosition NoByteFound = -1;
0025 
0026 static constexpr unsigned int StartsBefore = 1;
0027 static constexpr unsigned int EndsLater = 2;
0028 static constexpr Byte EmptyByte = ' ';
0029 
0030 static constexpr PixelX DefaultCursorWidth = 2;
0031 static constexpr PixelX DefaultByteSpacingWidth = 3;
0032 static constexpr PixelX DefaultGroupSpacingWidth = 9;
0033 static constexpr PixelX DefaultRowSpacingHeight = 0;
0034 static constexpr int DefaultNoOfGroupedBytes = 4;
0035 static constexpr int DefaultNoOfBytesPerLine =  16;
0036 
0037 static constexpr int DefaultBinaryGapWidth = 1;
0038 
0039 static constexpr int InsertCursorWidth = 2;
0040 
0041 static constexpr bool DefaultShowingNonprinting = false;
0042 static constexpr QChar DefaultSubstituteChar =  QLatin1Char('.');
0043 static constexpr QChar DefaultUndefinedChar =   QChar(QChar::ReplacementCharacter);
0044 
0045 }
0046 
0047 #endif