File indexing completed on 2024-04-21 16:34:02
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 #include <QLoggingCategory> 0022 0023 Q_DECLARE_LOGGING_CATEGORY(LOG_OKTETA_GUI) 0024 0025 namespace Okteta { 0026 0027 static constexpr LinePosition NoByteFound = -1; 0028 0029 static constexpr unsigned int StartsBefore = 1; 0030 static constexpr unsigned int EndsLater = 2; 0031 static constexpr Byte EmptyByte = ' '; 0032 0033 static constexpr PixelX DefaultCursorWidth = 2; 0034 static constexpr PixelX DefaultByteSpacingWidth = 3; 0035 static constexpr PixelX DefaultGroupSpacingWidth = 9; 0036 static constexpr PixelX DefaultRowSpacingHeight = 0; 0037 static constexpr int DefaultNoOfGroupedBytes = 4; 0038 static constexpr int DefaultNoOfBytesPerLine = 16; 0039 0040 static constexpr int DefaultBinaryGapWidth = 1; 0041 0042 static constexpr int InsertCursorWidth = 2; 0043 0044 static constexpr bool DefaultShowingNonprinting = false; 0045 static constexpr QChar DefaultSubstituteChar = QLatin1Char('.'); 0046 static constexpr QChar DefaultUndefinedChar = QChar(QChar::ReplacementCharacter); 0047 0048 } 0049 0050 #endif