• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • sources
  • kde-4.12
  • kdesdk
  • okteta
  • kasten
  • gui
  • view
bytearrayviewprofile.cpp
Go to the documentation of this file.
1 /*
2  This file is part of the Okteta Kasten module, made within the KDE community.
3 
4  Copyright 2010,2012 Friedrich W. H. Kossebau <kossebau@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) version 3, or any
10  later version accepted by the membership of KDE e.V. (or its
11  successor approved by the membership of KDE e.V.), which shall
12  act as a proxy defined in Section 6 of version 3 of the license.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
23 #include "bytearrayviewprofile.h"
24 
25 // Okteta Gui
26 #include <bytearraycolumnview.h>
27 // Qt
28 #include <QtCore/QString>
29 
30 
31 namespace Kasten2
32 {
33 
34 class ByteArrayViewProfilePrivate : public QSharedData
35 {
36 public:
37  ByteArrayViewProfilePrivate();
38 
39 public:
40  QString mId;
41 
42  QString mViewProfileTitle;
43  int mOffsetCoding;
44  QString mCharCodingName;
45  int mValueCoding;
46  bool mOffsetColumnVisible;
47  int mVisibleByteArrayCodings;
48  int mNoOfBytesPerLine;
49  int mLayoutStyle;
50  QChar mSubstituteChar;
51  QChar mUndefinedChar;
52  bool mShowsNonprinting;
53  int mNoOfGroupedBytes;
54  int mViewModus;
55 };
56 
57 static const QString DefaultViewProfileCharCodingName = QLatin1String("ISO-8859-1");
58 static const bool DefaultViewProfileShowingNonprinting = false;
59 static const QChar DefaultViewProfileSubstituteChar = QLatin1Char( '.' );
60 static const QChar DefaultViewProfileUndefinedChar = QChar( QChar::ReplacementCharacter );
61 static const int DefaultViewProfileNoOfGroupedBytes = 4;
62 static const int DefaultViewProfileNoOfBytesPerLine = 16;
63 static const Okteta::AbstractByteArrayView::OffsetCoding DefaultViewProfileOffsetCoding =
64  Okteta::AbstractByteArrayView::HexadecimalOffset;
65 static const Okteta::AbstractByteArrayView::ValueCoding DefaultViewProfileValueCoding =
66  Okteta::AbstractByteArrayView::HexadecimalCoding;
67 static const Okteta::AbstractByteArrayView::LayoutStyle DefaultViewProfileResizeStyle =
68  Okteta::AbstractByteArrayView::FixedLayoutStyle;
69 static const Okteta::AbstractByteArrayView::CodingTypes DefaultViewProfileVisibleByteArrayCodings =
70  Okteta::AbstractByteArrayView::ValueAndCharCodings;
71 
72 
73 ByteArrayViewProfilePrivate::ByteArrayViewProfilePrivate()
74  : QSharedData()
75  , mOffsetCoding( DefaultViewProfileOffsetCoding )
76  , mCharCodingName( DefaultViewProfileCharCodingName )
77  , mValueCoding( DefaultViewProfileValueCoding )
78  , mOffsetColumnVisible( true )
79  , mVisibleByteArrayCodings( DefaultViewProfileVisibleByteArrayCodings )
80  , mNoOfBytesPerLine( DefaultViewProfileNoOfBytesPerLine )
81  , mLayoutStyle( DefaultViewProfileResizeStyle )
82  , mSubstituteChar( DefaultViewProfileSubstituteChar )
83  , mUndefinedChar( DefaultViewProfileUndefinedChar )
84  , mShowsNonprinting( DefaultViewProfileShowingNonprinting )
85  , mNoOfGroupedBytes( DefaultViewProfileNoOfGroupedBytes )
86  , mViewModus( 0 )
87 {
88 }
89 
90 
91 
92 ByteArrayViewProfile::ByteArrayViewProfile()
93  : d( new ByteArrayViewProfilePrivate )
94 {
95 }
96 ByteArrayViewProfile::ByteArrayViewProfile( const ByteArrayViewProfile& other )
97  : d( other.d )
98 {
99 }
100 
101 ByteArrayViewProfile& ByteArrayViewProfile::operator=( const ByteArrayViewProfile& other )
102 {
103  d = other.d;
104 
105  return *this;
106 }
107 
108 ByteArrayViewProfile::Id ByteArrayViewProfile::id() const { return d->mId; }
109 QString ByteArrayViewProfile::viewProfileTitle() const { return d->mViewProfileTitle; }
110 int ByteArrayViewProfile::offsetCoding() const { return d->mOffsetCoding; }
111 QString ByteArrayViewProfile::charCodingName() const { return d->mCharCodingName; }
112 int ByteArrayViewProfile::valueCoding() const { return d->mValueCoding; }
113 bool ByteArrayViewProfile::offsetColumnVisible() const { return d->mOffsetColumnVisible; }
114 int ByteArrayViewProfile::visibleByteArrayCodings() const { return d->mVisibleByteArrayCodings; }
115 int ByteArrayViewProfile::noOfBytesPerLine() const { return d->mNoOfBytesPerLine; }
116 int ByteArrayViewProfile::layoutStyle() const { return d->mLayoutStyle; }
117 QChar ByteArrayViewProfile::substituteChar() const { return d->mSubstituteChar; }
118 QChar ByteArrayViewProfile::undefinedChar() const { return d->mUndefinedChar; }
119 bool ByteArrayViewProfile::showsNonprinting() const { return d->mShowsNonprinting; }
120 int ByteArrayViewProfile::noOfGroupedBytes() const { return d->mNoOfGroupedBytes; }
121 int ByteArrayViewProfile::viewModus() const { return d->mViewModus; }
122 
123 void ByteArrayViewProfile::setId( const Id& id ) { d->mId = id; }
124 void ByteArrayViewProfile::setViewProfileTitle( const QString& title ) { d->mViewProfileTitle = title; }
125 void ByteArrayViewProfile::setOffsetCoding( int offsetCoding ) { d->mOffsetCoding = offsetCoding; }
126 void ByteArrayViewProfile::setValueCoding( int valueCoding ) { d->mValueCoding = valueCoding; }
127 void ByteArrayViewProfile::setCharCoding( const QString& charCodingName ) { d->mCharCodingName = charCodingName; }
128 void ByteArrayViewProfile::setSubstituteChar( const QChar& substituteChar ) { d->mSubstituteChar = substituteChar; }
129 void ByteArrayViewProfile::setUndefinedChar( const QChar& undefinedChar ) { d->mUndefinedChar = undefinedChar; }
130 void ByteArrayViewProfile::setOffsetColumnVisible( bool visible ) { d->mOffsetColumnVisible = visible; }
131 void ByteArrayViewProfile::setVisibleByteArrayCodings( int columns ) { d->mVisibleByteArrayCodings = columns; }
132 void ByteArrayViewProfile::setLayoutStyle( int layoutStyle ) { d->mLayoutStyle = layoutStyle; }
133 void ByteArrayViewProfile::setNoOfBytesPerLine( int noOfBytesPerLine ) { d->mNoOfBytesPerLine = noOfBytesPerLine; }
134 void ByteArrayViewProfile::setShowsNonprinting( bool showsNonprinting ) { d->mShowsNonprinting = showsNonprinting; }
135 void ByteArrayViewProfile::setNoOfGroupedBytes( int noOfGroupedBytes ) { d->mNoOfGroupedBytes = noOfGroupedBytes; }
136 void ByteArrayViewProfile::setViewModus( int viewModus ) { d->mViewModus = viewModus; }
137 
138 
139 ByteArrayViewProfile::~ByteArrayViewProfile() {}
140 
141 }
Kasten2::ByteArrayViewProfile::setValueCoding
void setValueCoding(int valueCoding)
Definition: bytearrayviewprofile.cpp:126
Kasten2::ByteArrayViewProfile::id
Id id() const
Definition: bytearrayviewprofile.cpp:108
Kasten2::ByteArrayViewProfile::setNoOfGroupedBytes
void setNoOfGroupedBytes(int noOfGroupedBytes)
Definition: bytearrayviewprofile.cpp:135
Okteta::AbstractByteArrayView::LayoutStyle
LayoutStyle
Definition: abstractbytearrayview.h:101
Okteta::AbstractByteArrayView::OffsetCoding
OffsetCoding
Definition: abstractbytearrayview.h:97
Kasten2::DefaultViewProfileUndefinedChar
static const QChar DefaultViewProfileUndefinedChar
Definition: bytearrayviewprofile.cpp:60
Kasten2::ByteArrayViewProfile::Id
QString Id
Definition: bytearrayviewprofile.h:42
Kasten2::DefaultViewProfileVisibleByteArrayCodings
static const Okteta::AbstractByteArrayView::CodingTypes DefaultViewProfileVisibleByteArrayCodings
Definition: bytearrayviewprofile.cpp:69
Kasten2::ByteArrayViewProfile::valueCoding
int valueCoding() const
Definition: bytearrayviewprofile.cpp:112
Kasten2::ByteArrayViewProfile::setOffsetCoding
void setOffsetCoding(int offsetCoding)
Definition: bytearrayviewprofile.cpp:125
Kasten2::ByteArrayViewProfile
Definition: bytearrayviewprofile.h:39
Kasten2::ByteArrayViewProfile::setOffsetColumnVisible
void setOffsetColumnVisible(bool visible)
Definition: bytearrayviewprofile.cpp:130
Kasten2::ByteArrayViewProfile::setSubstituteChar
void setSubstituteChar(const QChar &substituteChar)
Definition: bytearrayviewprofile.cpp:128
Kasten2::ByteArrayViewProfile::offsetColumnVisible
bool offsetColumnVisible() const
Definition: bytearrayviewprofile.cpp:113
bytearrayviewprofile.h
Kasten2::DefaultViewProfileShowingNonprinting
static const bool DefaultViewProfileShowingNonprinting
Definition: bytearrayviewprofile.cpp:58
Kasten2::ByteArrayViewProfile::offsetCoding
int offsetCoding() const
Definition: bytearrayviewprofile.cpp:110
Kasten2::DefaultViewProfileSubstituteChar
static const QChar DefaultViewProfileSubstituteChar
Definition: bytearrayviewprofile.cpp:59
Kasten2::ByteArrayViewProfile::setShowsNonprinting
void setShowsNonprinting(bool showsNonprinting)
Definition: bytearrayviewprofile.cpp:134
Kasten2::ByteArrayViewProfile::viewModus
int viewModus() const
Definition: bytearrayviewprofile.cpp:121
Kasten2::ByteArrayViewProfile::noOfGroupedBytes
int noOfGroupedBytes() const
Definition: bytearrayviewprofile.cpp:120
Okteta::AbstractByteArrayView::HexadecimalCoding
Definition: abstractbytearrayview.h:98
Kasten2::DefaultViewProfileNoOfBytesPerLine
static const int DefaultViewProfileNoOfBytesPerLine
Definition: bytearrayviewprofile.cpp:62
Kasten2::ByteArrayViewProfile::setUndefinedChar
void setUndefinedChar(const QChar &undefinedChar)
Definition: bytearrayviewprofile.cpp:129
Kasten2::ByteArrayViewProfile::setNoOfBytesPerLine
void setNoOfBytesPerLine(int noOfBytesPerLine)
Definition: bytearrayviewprofile.cpp:133
Kasten2::DefaultViewProfileValueCoding
static const Okteta::AbstractByteArrayView::ValueCoding DefaultViewProfileValueCoding
Definition: bytearrayviewprofile.cpp:65
Kasten2::ByteArrayViewProfile::showsNonprinting
bool showsNonprinting() const
Definition: bytearrayviewprofile.cpp:119
Kasten2::ByteArrayViewProfile::substituteChar
QChar substituteChar() const
Definition: bytearrayviewprofile.cpp:117
Kasten2::ByteArrayViewProfile::charCodingName
QString charCodingName() const
Definition: bytearrayviewprofile.cpp:111
Okteta::AbstractByteArrayView::ValueAndCharCodings
Definition: abstractbytearrayview.h:104
Okteta::AbstractByteArrayView::ValueCoding
ValueCoding
Definition: abstractbytearrayview.h:98
Kasten2::ByteArrayViewProfile::layoutStyle
int layoutStyle() const
Definition: bytearrayviewprofile.cpp:116
Kasten2::ByteArrayViewProfile::visibleByteArrayCodings
int visibleByteArrayCodings() const
Definition: bytearrayviewprofile.cpp:114
Okteta::AbstractByteArrayView::FixedLayoutStyle
Definition: abstractbytearrayview.h:101
bytearraycolumnview.h
Kasten2::DefaultViewProfileCharCodingName
static const QString DefaultViewProfileCharCodingName
Definition: bytearrayviewprofile.cpp:57
Kasten2::ByteArrayViewProfile::setVisibleByteArrayCodings
void setVisibleByteArrayCodings(int columns)
Definition: bytearrayviewprofile.cpp:131
Kasten2::ByteArrayViewProfile::setViewModus
void setViewModus(int viewModus)
Definition: bytearrayviewprofile.cpp:136
Kasten2::ByteArrayViewProfile::operator=
ByteArrayViewProfile & operator=(const ByteArrayViewProfile &other)
Definition: bytearrayviewprofile.cpp:101
Kasten2::DefaultViewProfileResizeStyle
static const Okteta::AbstractByteArrayView::LayoutStyle DefaultViewProfileResizeStyle
Definition: bytearrayviewprofile.cpp:67
Kasten2::ByteArrayViewProfile::viewProfileTitle
QString viewProfileTitle() const
Definition: bytearrayviewprofile.cpp:109
Okteta::AbstractByteArrayView::HexadecimalOffset
Definition: abstractbytearrayview.h:97
Kasten2::ByteArrayViewProfile::ByteArrayViewProfile
ByteArrayViewProfile()
Definition: bytearrayviewprofile.cpp:92
Kasten2::ByteArrayViewProfile::undefinedChar
QChar undefinedChar() const
Definition: bytearrayviewprofile.cpp:118
Kasten2::DefaultViewProfileNoOfGroupedBytes
static const int DefaultViewProfileNoOfGroupedBytes
Definition: bytearrayviewprofile.cpp:61
Kasten2::DefaultViewProfileOffsetCoding
static const Okteta::AbstractByteArrayView::OffsetCoding DefaultViewProfileOffsetCoding
Definition: bytearrayviewprofile.cpp:63
Kasten2::ByteArrayViewProfile::setCharCoding
void setCharCoding(const QString &charCodingName)
Definition: bytearrayviewprofile.cpp:127
Kasten2::ByteArrayViewProfile::setLayoutStyle
void setLayoutStyle(int layoutStyle)
Definition: bytearrayviewprofile.cpp:132
Kasten2::ByteArrayViewProfile::setViewProfileTitle
void setViewProfileTitle(const QString &title)
Definition: bytearrayviewprofile.cpp:124
Okteta::AbstractByteArrayView::CodingTypes
CodingTypes
Definition: abstractbytearrayview.h:104
Kasten2::ByteArrayViewProfile::setId
void setId(const Id &id)
Definition: bytearrayviewprofile.cpp:123
Kasten2::ByteArrayViewProfile::noOfBytesPerLine
int noOfBytesPerLine() const
Definition: bytearrayviewprofile.cpp:115
Kasten2::ByteArrayViewProfile::~ByteArrayViewProfile
~ByteArrayViewProfile()
Definition: bytearrayviewprofile.cpp:139
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal