• 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
  • gui
bytearrayrowview.cpp
Go to the documentation of this file.
1 /*
2  This file is part of the Okteta Gui library, made within the KDE community.
3 
4  Copyright 2008-2010 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 "bytearrayrowview.h"
24 #include "bytearrayrowview_p.h"
25 #include "bytearrayrowview.moc" // due to Q_PRIVATE_SLOT
26 
27 
28 namespace Okteta
29 {
30 
31 ByteArrayRowView::ByteArrayRowView( QWidget* parent )
32  : AbstractByteArrayView( new ByteArrayRowViewPrivate(this), parent )
33 {
34  Q_D( ByteArrayRowView );
35  d->init();
36 }
37 
38 void ByteArrayRowView::setByteArrayModel( AbstractByteArrayModel* byteArrayModel )
39 {
40  Q_D( ByteArrayRowView );
41  d->setByteArrayModel( byteArrayModel );
42 }
43 
44 PixelX ByteArrayRowView::byteSpacingWidth() const
45 {
46  Q_D( const ByteArrayRowView );
47  return d->byteSpacingWidth();
48 }
49 int ByteArrayRowView::noOfGroupedBytes() const
50 {
51  Q_D( const ByteArrayRowView );
52  return d->noOfGroupedBytes();
53 }
54 PixelX ByteArrayRowView::groupSpacingWidth() const
55 {
56  Q_D( const ByteArrayRowView );
57  return d->groupSpacingWidth();
58 }
59 PixelX ByteArrayRowView::binaryGapWidth() const
60 {
61  Q_D( const ByteArrayRowView );
62  return d->binaryGapWidth();
63 }
64 bool ByteArrayRowView::showsNonprinting() const
65 {
66  Q_D( const ByteArrayRowView );
67  return d->showsNonprinting();
68 }
69 QChar ByteArrayRowView::substituteChar() const
70 {
71  Q_D( const ByteArrayRowView );
72  return d->substituteChar();
73 }
74 QChar ByteArrayRowView::undefinedChar() const
75 {
76  Q_D( const ByteArrayRowView );
77  return d->undefinedChar();
78 }
79 bool ByteArrayRowView::isByteTypeColored() const
80 {
81  Q_D( const ByteArrayRowView );
82  return d->isByteTypeColored();
83 }
84 void ByteArrayRowView::setBufferSpacing( /*PixelX*/int byteSpacing, int noOfGroupedBytes, /*PixelX*/int groupSpacing )
85 {
86  Q_D( ByteArrayRowView );
87  d->setBufferSpacing( byteSpacing, noOfGroupedBytes, groupSpacing );
88 }
89 
90 
91 void ByteArrayRowView::setValueCoding( ValueCoding valueCoding )
92 {
93  Q_D( ByteArrayRowView );
94  d->setValueCoding( valueCoding );
95 }
96 
97 void ByteArrayRowView::setByteSpacingWidth( int/*PixelX*/ byteSpacingWidth )
98 {
99  Q_D( ByteArrayRowView );
100  d->setByteSpacingWidth( byteSpacingWidth );
101 }
102 
103 void ByteArrayRowView::setNoOfGroupedBytes( int noOfGroupedBytes )
104 {
105  Q_D( ByteArrayRowView );
106  d->setNoOfGroupedBytes( noOfGroupedBytes );
107 }
108 
109 
110 void ByteArrayRowView::setGroupSpacingWidth( int/*PixelX*/ groupSpacingWidth )
111 {
112  Q_D( ByteArrayRowView );
113  d->setGroupSpacingWidth( groupSpacingWidth );
114 }
115 
116 
117 void ByteArrayRowView::setBinaryGapWidth( int/*PixelX*/ binaryGapWidth )
118 {
119  Q_D( ByteArrayRowView );
120  d->setBinaryGapWidth( binaryGapWidth );
121 }
122 
123 
124 void ByteArrayRowView::setSubstituteChar( QChar substituteChar )
125 {
126  Q_D( ByteArrayRowView );
127  d->setSubstituteChar( substituteChar );
128 }
129 
130 void ByteArrayRowView::setUndefinedChar( QChar undefinedChar )
131 {
132  Q_D( ByteArrayRowView );
133  d->setUndefinedChar( undefinedChar );
134 }
135 
136 void ByteArrayRowView::setShowsNonprinting( bool showingNonprinting )
137 {
138  Q_D( ByteArrayRowView );
139  d->setShowsNonprinting( showingNonprinting );
140 }
141 
142 
143 void ByteArrayRowView::setCharCoding( CharCoding charCoding )
144 {
145  Q_D( ByteArrayRowView );
146  d->setCharCoding( charCoding );
147 }
148 
149 // TODO: join with function above!
150 void ByteArrayRowView::setCharCoding( const QString& charCodingName )
151 {
152  Q_D( ByteArrayRowView );
153  d->setCharCoding( charCodingName );
154 }
155 
156 void ByteArrayRowView::setByteTypeColored( bool isColored )
157 {
158  Q_D( ByteArrayRowView );
159  d->setByteTypeColored( isColored );
160 }
161 
162 
163 void ByteArrayRowView::changeEvent( QEvent* event )
164 {
165  Q_D( ByteArrayRowView );
166 
167  d->changeEvent( event );
168 }
169 
170 
171 QSize ByteArrayRowView::minimumSizeHint() const
172 {
173  Q_D( const ByteArrayRowView );
174  // TODO: better minimal width (visibility!)
175  return d->minimumSizeHint();
176 }
177 
178 
179 void ByteArrayRowView::renderColumns( QPainter* painter, int cx, int cy, int cw, int ch )
180 {
181  Q_D( ByteArrayRowView );
182  d->renderColumns( painter, cx, cy, cw, ch );
183 }
184 
185 
186 ByteArrayRowView::~ByteArrayRowView()
187 {
188 }
189 
190 }
Okteta::ByteArrayRowView::setBufferSpacing
virtual void setBufferSpacing(int byteSpacingWidth, int noOfGroupedBytes=0, int groupSpacingWidth=0)
sets the spacing in the value column
Definition: bytearrayrowview.cpp:84
Okteta::ByteArrayRowView
Definition: bytearrayrowview.h:35
Okteta::ByteArrayRowView::setGroupSpacingWidth
virtual void setGroupSpacingWidth(int groupSpacingWidth)
sets the spacing between the groups of bytes in the value column
Definition: bytearrayrowview.cpp:110
Okteta::AbstractByteArrayModel
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
Okteta::ByteArrayRowView::showsNonprinting
virtual bool showsNonprinting() const
reports if "non-printing" chars are displayed in the char column with their original character...
Definition: bytearrayrowview.cpp:64
Okteta::ByteArrayRowView::undefinedChar
virtual QChar undefinedChar() const
returns the actually used undefined character for "undefined" chars, default is '?'
Definition: bytearrayrowview.cpp:74
Okteta::AbstractByteArrayView::CharCoding
CharCoding
Definition: abstractbytearrayview.h:99
Okteta::ByteArrayRowView::setByteTypeColored
virtual void setByteTypeColored(bool isColored)
Definition: bytearrayrowview.cpp:156
Okteta::ByteArrayRowView::setCharCoding
virtual void setCharCoding(CharCoding charCoding)
sets the encoding of the char column.
Definition: bytearrayrowview.cpp:143
QWidget
Okteta::ByteArrayRowView::setUndefinedChar
virtual void setUndefinedChar(QChar undefinedChar)
sets the undefined character for "undefined" chars returns true if there was a change ...
Definition: bytearrayrowview.cpp:130
Okteta::ByteArrayRowView::byteSpacingWidth
virtual int byteSpacingWidth() const
Definition: bytearrayrowview.cpp:44
Okteta::AbstractByteArrayView
Definition: abstractbytearrayview.h:55
Okteta::ByteArrayRowView::groupSpacingWidth
virtual int groupSpacingWidth() const
Definition: bytearrayrowview.cpp:54
Okteta::ByteArrayRowView::minimumSizeHint
virtual QSize minimumSizeHint() const
Definition: bytearrayrowview.cpp:171
Okteta::PixelX
int PixelX
Definition: kadds.h:34
Okteta::ByteArrayRowView::binaryGapWidth
virtual int binaryGapWidth() const
Definition: bytearrayrowview.cpp:59
bytearrayrowview_p.h
Okteta::ByteArrayRowView::isByteTypeColored
virtual bool isByteTypeColored() const
Definition: bytearrayrowview.cpp:79
Okteta::ByteArrayRowView::changeEvent
virtual void changeEvent(QEvent *event)
calculates the number of bytes per line that fit into a widget with the given size tests whether a ve...
Definition: bytearrayrowview.cpp:163
Okteta::ByteArrayRowView::setShowsNonprinting
virtual void setShowsNonprinting(bool showsNonprinting=true)
sets whether control chars or "non-printing" chars should be displayed in the char column with their ...
Definition: bytearrayrowview.cpp:136
Okteta::ByteArrayRowView::setBinaryGapWidth
virtual void setBinaryGapWidth(int binaryGapWidth)
sets the spacing in the middle of a binary byte in the value column
Definition: bytearrayrowview.cpp:117
Okteta::ByteArrayRowView::ByteArrayRowView
ByteArrayRowView(QWidget *parent=0)
Definition: bytearrayrowview.cpp:31
Okteta::AbstractByteArrayView::ValueCoding
ValueCoding
Definition: abstractbytearrayview.h:98
Okteta::ByteArrayRowView::renderColumns
virtual void renderColumns(QPainter *painter, int cx, int cy, int cw, int ch)
draws all columns in columns coordinates
Definition: bytearrayrowview.cpp:179
Okteta::ByteArrayRowView::setValueCoding
virtual void setValueCoding(ValueCoding valueCoding)
sets the format of the value column.
Definition: bytearrayrowview.cpp:91
Okteta::ByteArrayRowView::noOfGroupedBytes
virtual int noOfGroupedBytes() const
Definition: bytearrayrowview.cpp:49
bytearrayrowview.h
Okteta::ByteArrayRowView::setByteSpacingWidth
virtual void setByteSpacingWidth(int byteSpacingWidth)
sets the spacing between the bytes in the value column
Definition: bytearrayrowview.cpp:97
Okteta::ByteArrayRowView::substituteChar
virtual QChar substituteChar() const
gives the used substitute character for "unprintable" chars, default is '.
Definition: bytearrayrowview.cpp:69
Okteta::ByteArrayRowView::setSubstituteChar
virtual void setSubstituteChar(QChar substituteChar)
sets the substitute character for "non-printing" chars returns true if there was a change ...
Definition: bytearrayrowview.cpp:124
Okteta::ByteArrayRowView::setNoOfGroupedBytes
virtual void setNoOfGroupedBytes(int noOfGroupedBytes)
sets the number of grouped bytes in the value column
Definition: bytearrayrowview.cpp:103
Okteta::ByteArrayRowView::setByteArrayModel
virtual void setByteArrayModel(AbstractByteArrayModel *byteArrayModel)
Definition: bytearrayrowview.cpp:38
Okteta::ByteArrayRowViewPrivate
Definition: bytearrayrowview_p.h:37
Okteta::ByteArrayRowView::~ByteArrayRowView
virtual ~ByteArrayRowView()
Definition: bytearrayrowview.cpp:186
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