• 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
abstractbytearrayview.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 "abstractbytearrayview.h"
24 #include "abstractbytearrayview_p.h"
25 #include "abstractbytearrayview.moc"
26 
27 // lib
28 #include "controller/kcontroller.h"
29 #include "controller/abstractwheelcontroller.h"
30 #include "bytearraytablelayout.h"
31 
32 
33 namespace Okteta
34 {
35 
36 AbstractByteArrayView::AbstractByteArrayView( AbstractByteArrayViewPrivate* dd, QWidget* parent )
37  : ColumnsView( parent ),
38  d_ptr( dd )
39 {
40  Q_D( AbstractByteArrayView );
41  d->init();
42 }
43 
44 Okteta::AbstractByteArrayModel* AbstractByteArrayView::byteArrayModel() const
45 {
46  Q_D( const AbstractByteArrayView );
47  return d->byteArrayModel();
48 }
49 bool AbstractByteArrayView::isOverwriteMode() const
50 {
51  Q_D( const AbstractByteArrayView );
52  return d->isOverwriteMode();
53 }
54 bool AbstractByteArrayView::isOverwriteOnly() const
55 {
56  Q_D( const AbstractByteArrayView );
57  return d->isOverwriteOnly();
58 }
59 bool AbstractByteArrayView::isReadOnly() const
60 {
61  Q_D( const AbstractByteArrayView );
62  return d->isEffectiveReadOnly();
63 }
64 bool AbstractByteArrayView::isModified() const
65 {
66  Q_D( const AbstractByteArrayView );
67  return d->isModified();
68 }
69 
70 double AbstractByteArrayView::zoomLevel() const
71 {
72  Q_D( const AbstractByteArrayView );
73  return d->zoomLevel();
74 }
75 ByteArrayTableLayout* AbstractByteArrayView::layout() const
76 {
77  Q_D( const AbstractByteArrayView );
78  return d->layout();
79 }
80 AbstractByteArrayView::ValueCoding AbstractByteArrayView::valueCoding() const
81 {
82  Q_D( const AbstractByteArrayView );
83  return d->valueCoding();
84 }
85 const Okteta::ValueCodec* AbstractByteArrayView::valueCodec() const
86 {
87  Q_D( const AbstractByteArrayView );
88  return d->valueCodec();
89 }
90 AbstractByteArrayView::CharCoding AbstractByteArrayView::charCoding() const
91 {
92  Q_D( const AbstractByteArrayView );
93  return d->charCoding();
94 }
95 const QString& AbstractByteArrayView::charCodingName() const
96 {
97  Q_D( const AbstractByteArrayView );
98  return d->charCodingName();
99 }
100 const Okteta::CharCodec* AbstractByteArrayView::charCodec() const
101 {
102  Q_D( const AbstractByteArrayView );
103  return d->charCodec();
104 }
105 
106 ByteArrayTableCursor* AbstractByteArrayView::tableCursor() const
107 {
108  Q_D( const AbstractByteArrayView );
109  return d->tableCursor();
110 }
111 ByteArrayTableRanges* AbstractByteArrayView::tableRanges() const
112 {
113  Q_D( const AbstractByteArrayView );
114  return d->tableRanges();
115 }
116 
117 int AbstractByteArrayView::noOfBytesPerLine() const
118 {
119  Q_D( const AbstractByteArrayView );
120  return d->noOfBytesPerLine();
121 }
122 Address AbstractByteArrayView::firstLineOffset() const
123 {
124  Q_D( const AbstractByteArrayView );
125  return d->firstLineOffset();
126 }
127 Address AbstractByteArrayView::startOffset() const
128 {
129  Q_D( const AbstractByteArrayView );
130  return d->startOffset();
131 }
132 
133 Address AbstractByteArrayView::cursorPosition() const
134 {
135  Q_D( const AbstractByteArrayView );
136  return d->cursorPosition();
137 }
138 bool AbstractByteArrayView::isCursorBehind() const
139 {
140  Q_D( const AbstractByteArrayView );
141  return d->isCursorBehind();
142 }
143 AbstractByteArrayView::LayoutStyle AbstractByteArrayView::layoutStyle() const
144 {
145  Q_D( const AbstractByteArrayView );
146  return d->layoutStyle();
147 }
148 
149 bool AbstractByteArrayView::offsetColumnVisible() const
150 {
151  Q_D( const AbstractByteArrayView );
152  return d->offsetColumnVisible();
153 }
154 
155 AbstractByteArrayView::OffsetCoding AbstractByteArrayView::offsetCoding() const
156 {
157  Q_D( const AbstractByteArrayView );
158  return d->offsetCoding();
159 }
160 
161 AddressRange AbstractByteArrayView::selection() const
162 {
163  Q_D( const AbstractByteArrayView );
164  return d->selection();
165 }
166 bool AbstractByteArrayView::hasSelectedData() const
167 {
168  Q_D( const AbstractByteArrayView );
169  return d->hasSelectedData();
170 }
171 
172 QByteArray AbstractByteArrayView::selectedData() const
173 {
174  Q_D( const AbstractByteArrayView );
175  return d->selectedData();
176 }
177 QMimeData* AbstractByteArrayView::selectionAsMimeData() const
178 {
179  Q_D( const AbstractByteArrayView );
180  return d->selectionAsMimeData();
181 }
182 
183 AddressRange AbstractByteArrayView::marking() const
184 {
185  Q_D( const AbstractByteArrayView );
186  return d->marking();
187 }
188 
189 
190 void AbstractByteArrayView::pasteData( const QMimeData* data )
191 {
192  Q_D( AbstractByteArrayView );
193  d->pasteData( data );
194 }
195 
196 bool AbstractByteArrayView::canReadData( const QMimeData* data ) const
197 {
198  Q_D( const AbstractByteArrayView );
199  return d->canReadData( data );
200 }
201 
202 void AbstractByteArrayView::cut()
203 {
204  Q_D( AbstractByteArrayView );
205  d->cutToClipboard();
206 }
207 
208 void AbstractByteArrayView::copy()
209 {
210  Q_D( AbstractByteArrayView );
211  d->copyToClipboard();
212 }
213 
214 void AbstractByteArrayView::paste()
215 {
216  Q_D( AbstractByteArrayView );
217  d->pasteFromClipboard();
218 }
219 
220 void AbstractByteArrayView::insert( const QByteArray& data )
221 {
222  Q_D( AbstractByteArrayView );
223  d->insert( data );
224 }
225 
226 void AbstractByteArrayView::removeSelectedData()
227 {
228  Q_D( AbstractByteArrayView );
229  d->removeSelectedData();
230 }
231 
232 void AbstractByteArrayView::setByteArrayModel( Okteta::AbstractByteArrayModel* byteArrayModel )
233 {
234  Q_D( AbstractByteArrayView );
235  d->setByteArrayModel( byteArrayModel );
236 }
237 
238 void AbstractByteArrayView::setModified( bool modified )
239 {
240  Q_D( AbstractByteArrayView );
241  d->setModified( modified );
242 }
243 
244 void AbstractByteArrayView::setOverwriteMode( bool overwriteMode )
245 {
246  Q_D( AbstractByteArrayView );
247  d->setOverwriteMode( overwriteMode );
248 }
249 
250 void AbstractByteArrayView::setOverwriteOnly( bool overwriteOnly )
251 {
252  Q_D( AbstractByteArrayView );
253  d->setOverwriteOnly( overwriteOnly );
254 }
255 
256 void AbstractByteArrayView::setLayoutStyle( LayoutStyle layoutStyle )
257 {
258  Q_D( AbstractByteArrayView );
259  d->setLayoutStyle( layoutStyle );
260 }
261 
262 void AbstractByteArrayView::setNoOfBytesPerLine( int noOfBytesPerLine )
263 {
264  Q_D( AbstractByteArrayView );
265  d->setNoOfBytesPerLine( noOfBytesPerLine );
266 }
267 
268 
269 void AbstractByteArrayView::setStartOffset( Address startOffset )
270 {
271  Q_D( AbstractByteArrayView );
272  d->setStartOffset( startOffset );
273 }
274 
275 void AbstractByteArrayView::setFirstLineOffset( Address firstLineOffset )
276 {
277  Q_D( AbstractByteArrayView );
278  d->setFirstLineOffset( firstLineOffset );
279 }
280 
281 void AbstractByteArrayView::setReadOnly( bool readOnly )
282 {
283  Q_D( AbstractByteArrayView );
284  d->setReadOnly( readOnly );
285 }
286 
287 AbstractByteArrayView::CodingTypes AbstractByteArrayView::visibleCodings() const
288 {
289  Q_D( const AbstractByteArrayView );
290  return d->visibleCodings();
291 }
292 bool AbstractByteArrayView::tabChangesFocus() const
293 {
294  Q_D( const AbstractByteArrayView );
295  return d->tabChangesFocus();
296 }
297 AbstractByteArrayView::CodingTypeId AbstractByteArrayView::activeCoding() const
298 {
299  Q_D( const AbstractByteArrayView );
300  return d->activeCoding();
301 }
302 
303 void AbstractByteArrayView::setVisibleCodings( int visibleByteArrayCodings )
304 {
305  Q_D( AbstractByteArrayView );
306  d->setVisibleCodings( visibleByteArrayCodings );
307 }
308 void AbstractByteArrayView::setActiveCoding( CodingTypeId codingId )
309 {
310  Q_D( AbstractByteArrayView );
311  d->setActiveCoding( codingId );
312 }
313 
314 void AbstractByteArrayView::setTabChangesFocus( bool tabChangesFocus )
315 {
316  Q_D( AbstractByteArrayView );
317  d->setTabChangesFocus( tabChangesFocus );
318 }
319 
320 void AbstractByteArrayView::toggleOffsetColumn( bool showOffsetColumn )
321 {
322  Q_D( AbstractByteArrayView );
323  d->toggleOffsetColumn( showOffsetColumn );
324 }
325 
326 void AbstractByteArrayView::setOffsetCoding( AbstractByteArrayView::OffsetCoding offsetCoding )
327 {
328  Q_D( AbstractByteArrayView );
329  d->setOffsetCoding( offsetCoding );
330 }
331 
332 
333 void AbstractByteArrayView::selectAll( bool select )
334 {
335  Q_D( AbstractByteArrayView );
336  d->selectAll( select );
337 }
338 
339 bool AbstractByteArrayView::selectWord( Address index )
340 {
341  Q_D( AbstractByteArrayView );
342  return d->selectWord( index );
343 }
344 
345 void AbstractByteArrayView::setCursorPosition( Address index, bool isBehind )
346 {
347  Q_D( AbstractByteArrayView );
348  d->setCursorPosition( index, isBehind );
349 }
350 
351 void AbstractByteArrayView::setSelectionCursorPosition( Address index )
352 {
353  Q_D( AbstractByteArrayView );
354  d->setSelectionCursorPosition( index );
355 }
356 
357 void AbstractByteArrayView::setSelection( Address start, Address end )
358 {
359  Q_D( AbstractByteArrayView );
360  d->setSelection( AddressRange(start,end) );
361 }
362 
363 void AbstractByteArrayView::setSelection( const AddressRange& selection )
364 {
365  Q_D( AbstractByteArrayView );
366  d->setSelection( selection );
367 }
368 
369 
370 void AbstractByteArrayView::setMarking( Address start, Address end )
371 {
372  Q_D( AbstractByteArrayView );
373  d->setMarking( AddressRange(start,end) );
374 }
375 
376 void AbstractByteArrayView::setMarking( const AddressRange& marking )
377 {
378  Q_D( AbstractByteArrayView );
379  d->setMarking( marking );
380 }
381 
382 
383 void AbstractByteArrayView::ensureVisible( const AddressRange& range, bool ensureStartVisible )
384 {
385  Q_D( AbstractByteArrayView );
386  d->ensureVisible( range, ensureStartVisible );
387 }
388 
389 
390 void AbstractByteArrayView::ensureCursorVisible()
391 {
392  Q_D( AbstractByteArrayView );
393  d->ensureCursorVisible();
394 }
395 
396 void AbstractByteArrayView::placeCursor( const QPoint& point )
397 {
398  Q_D( AbstractByteArrayView );
399  d->placeCursor( point );
400 }
401 
402 
403 void AbstractByteArrayView::startCursor()
404 {
405  Q_D( AbstractByteArrayView );
406  d->startCursor();
407 }
408 
409 void AbstractByteArrayView::unpauseCursor()
410 {
411  Q_D( AbstractByteArrayView );
412  d->unpauseCursor();
413 }
414 
415 void AbstractByteArrayView::stopCursor()
416 {
417  Q_D( AbstractByteArrayView );
418  d->stopCursor();
419 }
420 
421 void AbstractByteArrayView::pauseCursor()
422 {
423  Q_D( AbstractByteArrayView );
424  d->pauseCursor();
425 }
426 
427 void AbstractByteArrayView::zoomIn( int pointInc )
428 {
429  Q_D( AbstractByteArrayView );
430  d->zoomIn( pointInc );
431 }
432 void AbstractByteArrayView::zoomIn()
433 {
434  Q_D( AbstractByteArrayView );
435  d->zoomIn();
436 }
437 void AbstractByteArrayView::zoomOut( int pointDec )
438 {
439  Q_D( AbstractByteArrayView );
440  d->zoomOut( pointDec );
441 }
442 void AbstractByteArrayView::zoomOut()
443 {
444  Q_D( AbstractByteArrayView );
445  d->zoomOut();
446 }
447 void AbstractByteArrayView::zoomTo( int pointSize )
448 {
449  Q_D( AbstractByteArrayView );
450  d->zoomTo( pointSize );
451 }
452 void AbstractByteArrayView::unZoom()
453 {
454  Q_D( AbstractByteArrayView );
455  d->unZoom();
456 }
457 void AbstractByteArrayView::setZoomLevel( double zoomLevel )
458 {
459  Q_D( AbstractByteArrayView );
460  d->setZoomLevel( zoomLevel );
461 }
462 
463 void AbstractByteArrayView::setNoOfLines( int newNoOfLines )
464 {
465  ColumnsView::setNoOfLines( newNoOfLines>1 ? newNoOfLines : 1 );
466 }
467 
468 void AbstractByteArrayView::changeEvent( QEvent* event )
469 {
470  Q_D( AbstractByteArrayView );
471  d->changeEvent( event );
472 }
473 
474 QSize AbstractByteArrayView::sizeHint() const
475 {
476  // TODO: calculate a sensible hint based on dynamic layout settings
477  return QSize( 400, 120 );// QSize( columnsWidth(), columnsHeight() );
478 }
479 
480 Address AbstractByteArrayView::indexByPoint( const QPoint& point ) const
481 {
482  Q_D( const AbstractByteArrayView );
483  return d->indexByPoint( point );
484 }
485 
486 
487 void AbstractByteArrayView::finishByteEdit()
488 {
489  Q_D( AbstractByteArrayView );
490  d->finishByteEditor();
491 }
492 
493 // TODO: remove me!
494 void AbstractByteArrayView::emitSelectionSignals()
495 {
496  Q_D( AbstractByteArrayView );
497 
498  const bool hasSelection = tableRanges()->hasSelection();
499  if( !d->isOverwriteMode() ) emit cutAvailable( hasSelection );
500  emit copyAvailable( hasSelection );
501  emit selectionChanged( selection() );
502  emit hasSelectedDataChanged( hasSelection );
503 }
504 
505 void AbstractByteArrayView::updateChanged()
506 {
507  Q_D( AbstractByteArrayView );
508  d->updateChanged();
509 }
510 
511 void AbstractByteArrayView::copyToClipboard( QClipboard::Mode mode ) const
512 {
513  Q_D( const AbstractByteArrayView );
514  d->copyToClipboard( mode );
515 }
516 
517 void AbstractByteArrayView::pasteFromClipboard( QClipboard::Mode mode )
518 {
519  Q_D( AbstractByteArrayView );
520  d->pasteFromClipboard( mode );
521 }
522 
523 QRect AbstractByteArrayView::cursorRect() const
524 {
525  Q_D( const AbstractByteArrayView );
526  return d->cursorRect();
527 }
528 
529 
530 bool AbstractByteArrayView::event( QEvent* event )
531 {
532  Q_D( AbstractByteArrayView );
533  return d->event( event );
534 }
535 
536 void AbstractByteArrayView::showEvent( QShowEvent* showEvent )
537 {
538  ColumnsView::showEvent( showEvent );
539  // TODO: why is this needed?
540  layout()->setNoOfLinesPerPage( noOfLinesPerPage() );
541 }
542 
543 void AbstractByteArrayView::resizeEvent( QResizeEvent* resizeEvent )
544 {
545  Q_D( AbstractByteArrayView );
546  d->resizeEvent( resizeEvent );
547 }
548 
549 void AbstractByteArrayView::focusInEvent( QFocusEvent* focusEvent )
550 {
551  Q_D( AbstractByteArrayView );
552 
553  d->focusInEvent( focusEvent );
554 }
555 
556 void AbstractByteArrayView::focusOutEvent( QFocusEvent* focusEvent )
557 {
558  Q_D( AbstractByteArrayView );
559 
560  d->focusOutEvent( focusEvent );
561 }
562 
563 void AbstractByteArrayView::keyPressEvent( QKeyEvent* keyEvent )
564 {
565  Q_D( AbstractByteArrayView );
566  if( !d->controller()->handleKeyPress(keyEvent) )
567  ColumnsView::keyPressEvent( keyEvent );
568 }
569 
570 void AbstractByteArrayView::mousePressEvent( QMouseEvent* mouseEvent )
571 {
572  Q_D( AbstractByteArrayView );
573  d->mousePressEvent( mouseEvent );
574 }
575 
576 
577 void AbstractByteArrayView::mouseMoveEvent( QMouseEvent* mouseEvent )
578 {
579  Q_D( AbstractByteArrayView );
580  d->mouseMoveEvent( mouseEvent );
581 }
582 
583 
584 void AbstractByteArrayView::mouseReleaseEvent( QMouseEvent* mouseEvent )
585 {
586  Q_D( AbstractByteArrayView );
587  d->mouseReleaseEvent( mouseEvent );
588 }
589 
590 
591 // gets called after press and release instead of a plain press event (?)
592 void AbstractByteArrayView::mouseDoubleClickEvent( QMouseEvent* mouseEvent )
593 {
594  Q_D( AbstractByteArrayView );
595  d->mouseDoubleClickEvent( mouseEvent );
596 }
597 
598 void AbstractByteArrayView::wheelEvent( QWheelEvent* wheelEvent )
599 {
600  Q_D( AbstractByteArrayView );
601  if( !d->wheelController()->handleWheelEvent(wheelEvent) )
602  ColumnsView::wheelEvent( wheelEvent );
603 }
604 
605 void AbstractByteArrayView::dragEnterEvent( QDragEnterEvent* dragEnterEvent )
606 {
607  Q_D( AbstractByteArrayView );
608  d->dragEnterEvent( dragEnterEvent );
609 }
610 void AbstractByteArrayView::dragMoveEvent( QDragMoveEvent* dragMoveEvent )
611 {
612  Q_D( AbstractByteArrayView );
613  d->dragMoveEvent( dragMoveEvent );
614 }
615 void AbstractByteArrayView::dragLeaveEvent( QDragLeaveEvent* dragLeaveEvent )
616 {
617  Q_D( AbstractByteArrayView );
618  d->dragLeaveEvent( dragLeaveEvent );
619 }
620 void AbstractByteArrayView::dropEvent( QDropEvent* dropEvent )
621 {
622  Q_D( AbstractByteArrayView );
623  d->dropEvent( dropEvent );
624 }
625 
626 bool AbstractByteArrayView::viewportEvent( QEvent* event )
627 {
628  Q_D( AbstractByteArrayView );
629  return d->viewportEvent( event );
630 }
631 
632 
633 AbstractByteArrayView::~AbstractByteArrayView()
634 {
635  delete d_ptr;
636 }
637 
638 }
Okteta::AbstractByteArrayView::selection
AddressRange selection() const
Definition: abstractbytearrayview.cpp:161
Okteta::AbstractByteArrayView::tableCursor
ByteArrayTableCursor * tableCursor() const
Definition: abstractbytearrayview.cpp:106
Okteta::Address
qint32 Address
Definition: address.h:34
Okteta::AbstractByteArrayModel
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
Okteta::AbstractByteArrayView::zoomLevel
double zoomLevel() const
Definition: abstractbytearrayview.cpp:70
Okteta::AbstractByteArrayView::LayoutStyle
LayoutStyle
Definition: abstractbytearrayview.h:101
Okteta::AbstractByteArrayView::removeSelectedData
void removeSelectedData()
removes the selected data, takes care of the cursor
Definition: abstractbytearrayview.cpp:226
Okteta::AbstractByteArrayView::OffsetCoding
OffsetCoding
Definition: abstractbytearrayview.h:97
Okteta::ByteArrayTableLayout::setNoOfLinesPerPage
void setNoOfLinesPerPage(LineSize noOfLinesPerPage)
sets number of lines per page, 1 as default
Definition: bytearraytablelayout.cpp:138
Okteta::AbstractByteArrayView::selectionAsMimeData
QMimeData * selectionAsMimeData() const
Definition: abstractbytearrayview.cpp:177
Okteta::ByteArrayTableRanges
a class to control all the ranges like marking and selections holds also all modified ranges and merg...
Definition: bytearraytableranges.h:45
Okteta::AbstractByteArrayView::startOffset
Address startOffset() const
Definition: abstractbytearrayview.cpp:127
Okteta::AbstractByteArrayView::paste
virtual void paste()
Definition: abstractbytearrayview.cpp:214
Okteta::AbstractByteArrayView::firstLineOffset
Address firstLineOffset() const
Definition: abstractbytearrayview.cpp:122
Okteta::AbstractByteArrayView::setOffsetCoding
void setOffsetCoding(OffsetCoding offsetCoding)
sets the format of the offset column.
Definition: abstractbytearrayview.cpp:326
Okteta::AbstractByteArrayView::resizeEvent
virtual void resizeEvent(QResizeEvent *resizeEvent)
Definition: abstractbytearrayview.cpp:543
Okteta::AbstractByteArrayView::setOverwriteMode
void setOverwriteMode(bool overwriteMode)
sets whether the widget is in overwrite mode or not.
Definition: abstractbytearrayview.cpp:244
Okteta::AbstractByteArrayView::isModified
bool isModified() const
Definition: abstractbytearrayview.cpp:64
Okteta::AbstractByteArrayView::setMarking
void setMarking(Address start, Address end)
Definition: abstractbytearrayview.cpp:370
Okteta::AbstractByteArrayView::viewportEvent
virtual bool viewportEvent(QEvent *event)
Definition: abstractbytearrayview.cpp:626
kcontroller.h
Okteta::AbstractByteArrayView::updateChanged
void updateChanged()
Definition: abstractbytearrayview.cpp:505
Okteta::AbstractByteArrayView::CharCoding
CharCoding
Definition: abstractbytearrayview.h:99
Okteta::AbstractByteArrayView::setCursorPosition
void setCursorPosition(Address index, bool isBehind=false)
puts the cursor to the position of index, handles all drawing
Definition: abstractbytearrayview.cpp:345
Okteta::AbstractByteArrayView::dragEnterEvent
virtual void dragEnterEvent(QDragEnterEvent *dragEnterEvent)
Definition: abstractbytearrayview.cpp:605
Okteta::AbstractByteArrayView::emitSelectionSignals
void emitSelectionSignals()
Definition: abstractbytearrayview.cpp:494
QWidget
KDE::NumberRange< Address, Size >
Okteta::AbstractByteArrayView::mouseDoubleClickEvent
virtual void mouseDoubleClickEvent(QMouseEvent *mouseDoubleClickEvent)
Definition: abstractbytearrayview.cpp:592
Okteta::AbstractByteArrayView::AbstractByteArrayView
AbstractByteArrayView(AbstractByteArrayViewPrivate *d, QWidget *parent)
Definition: abstractbytearrayview.cpp:36
Okteta::AbstractByteArrayView::hasSelectedData
bool hasSelectedData() const
returns true if there is a selected range in the array
Definition: abstractbytearrayview.cpp:166
Okteta::AbstractByteArrayView::wheelEvent
virtual void wheelEvent(QWheelEvent *e)
Definition: abstractbytearrayview.cpp:598
abstractbytearrayview.h
Okteta::AbstractByteArrayView::zoomIn
void zoomIn()
Definition: abstractbytearrayview.cpp:432
Okteta::AbstractByteArrayView::isOverwriteOnly
bool isOverwriteOnly() const
Definition: abstractbytearrayview.cpp:54
Okteta::AbstractByteArrayView::sizeHint
virtual QSize sizeHint() const
Definition: abstractbytearrayview.cpp:474
Okteta::AbstractByteArrayView::setStartOffset
void setStartOffset(Address startOffset)
sets absolut offset of the data
Definition: abstractbytearrayview.cpp:269
Okteta::AbstractByteArrayView::stopCursor
void stopCursor()
we lost focus, stop the timer
Definition: abstractbytearrayview.cpp:415
Okteta::AbstractByteArrayView::valueCodec
const Okteta::ValueCodec * valueCodec() const
Definition: abstractbytearrayview.cpp:85
Okteta::AbstractByteArrayView::cursorPosition
Address cursorPosition() const
returns the index of the cursor position
Definition: abstractbytearrayview.cpp:133
Okteta::AbstractByteArrayView::isReadOnly
bool isReadOnly() const
Definition: abstractbytearrayview.cpp:59
Okteta::AbstractByteArrayView::setByteArrayModel
virtual void setByteArrayModel(Okteta::AbstractByteArrayModel *byteArrayModel)
Definition: abstractbytearrayview.cpp:232
Okteta::AbstractByteArrayView::setTabChangesFocus
void setTabChangesFocus(bool tabChangesFocus=true)
sets whether on a tab key there should be switched from the char column back to the value column or b...
Definition: abstractbytearrayview.cpp:314
Okteta::AbstractByteArrayView::CodingTypeId
CodingTypeId
Definition: abstractbytearrayview.h:103
Okteta::AbstractByteArrayView
Definition: abstractbytearrayview.h:55
Okteta::AbstractByteArrayView::mousePressEvent
virtual void mousePressEvent(QMouseEvent *mousePressEvent)
Definition: abstractbytearrayview.cpp:570
Okteta::AbstractByteArrayView::activeCoding
CodingTypeId activeCoding() const
Definition: abstractbytearrayview.cpp:297
Okteta::AbstractByteArrayView::isOverwriteMode
bool isOverwriteMode() const
Definition: abstractbytearrayview.cpp:49
Okteta::AbstractByteArrayView::cutAvailable
void cutAvailable(bool Really)
there is a cut available or not
Okteta::AbstractByteArrayView::tabChangesFocus
bool tabChangesFocus() const
Definition: abstractbytearrayview.cpp:292
Okteta::AbstractByteArrayView::copyAvailable
void copyAvailable(bool Really)
there is a copy available or not
bytearraytablelayout.h
Okteta::AbstractByteArrayView::setReadOnly
void setReadOnly(bool readOnly)
sets whether the widget is readonly or not, Default is true.
Definition: abstractbytearrayview.cpp:281
Okteta::ByteArrayTableLayout
the logical layout of a byte array table for a view
Definition: bytearraytablelayout.h:61
Okteta::AbstractByteArrayView::setSelection
void setSelection(Address start, Address end)
Definition: abstractbytearrayview.cpp:357
Okteta::AbstractByteArrayView::pasteData
void pasteData(const QMimeData *data)
Definition: abstractbytearrayview.cpp:190
Okteta::AbstractByteArrayView::setModified
void setModified(bool modified)
sets whether the data should be treated modified or not
Definition: abstractbytearrayview.cpp:238
abstractwheelcontroller.h
Okteta::AbstractByteArrayView::charCodingName
const QString & charCodingName() const
Definition: abstractbytearrayview.cpp:95
Okteta::AbstractByteArrayView::mouseReleaseEvent
virtual void mouseReleaseEvent(QMouseEvent *mouseReleaseEvent)
Definition: abstractbytearrayview.cpp:584
Okteta::AbstractByteArrayView::setZoomLevel
void setZoomLevel(double level)
Definition: abstractbytearrayview.cpp:457
Okteta::AbstractByteArrayView::cursorRect
QRect cursorRect() const
Definition: abstractbytearrayview.cpp:523
Okteta::ByteArrayTableRanges::hasSelection
bool hasSelection() const
Definition: bytearraytableranges.h:136
Okteta::AbstractByteArrayView::indexByPoint
Address indexByPoint(const QPoint &point) const
detects the index of the byte at the given point
Definition: abstractbytearrayview.cpp:480
Okteta::AbstractByteArrayView::toggleOffsetColumn
void toggleOffsetColumn(bool offsetColumnVisible)
switches the Offset column on/off
Definition: abstractbytearrayview.cpp:320
Okteta::AbstractByteArrayView::noOfBytesPerLine
int noOfBytesPerLine() const
Definition: abstractbytearrayview.cpp:117
Okteta::CharCodec
Definition: charcodec.h:42
Okteta::AbstractByteArrayView::isCursorBehind
bool isCursorBehind() const
Definition: abstractbytearrayview.cpp:138
Okteta::AbstractByteArrayView::showEvent
virtual void showEvent(QShowEvent *showEvent)
Definition: abstractbytearrayview.cpp:536
Okteta::AbstractByteArrayView::~AbstractByteArrayView
virtual ~AbstractByteArrayView()
Definition: abstractbytearrayview.cpp:633
Okteta::ValueCodec
Class that is able to convert codings to and from hexadecimal, decimal, octal, and binary...
Definition: valuecodec.h:45
Okteta::AbstractByteArrayView::byteArrayModel
Okteta::AbstractByteArrayModel * byteArrayModel() const
Definition: abstractbytearrayview.cpp:44
Okteta::AbstractByteArrayView::offsetCoding
OffsetCoding offsetCoding() const
Definition: abstractbytearrayview.cpp:155
Okteta::AbstractByteArrayView::valueCoding
ValueCoding valueCoding() const
Definition: abstractbytearrayview.cpp:80
Okteta::AbstractByteArrayView::pauseCursor
void pauseCursor()
simply pauses any blinking, i.e.
Definition: abstractbytearrayview.cpp:421
Okteta::AbstractByteArrayView::setNoOfLines
virtual void setNoOfLines(int newNoOfLines)
Definition: abstractbytearrayview.cpp:463
Okteta::AbstractByteArrayView::visibleCodings
CodingTypes visibleCodings() const
Definition: abstractbytearrayview.cpp:287
Okteta::AbstractByteArrayView::offsetColumnVisible
bool offsetColumnVisible() const
Definition: abstractbytearrayview.cpp:149
Okteta::AbstractByteArrayView::marking
AddressRange marking() const
Definition: abstractbytearrayview.cpp:183
Okteta::AbstractByteArrayView::copyToClipboard
void copyToClipboard(QClipboard::Mode mode) const
Definition: abstractbytearrayview.cpp:511
Okteta::AbstractByteArrayView::setFirstLineOffset
void setFirstLineOffset(Address firstLineOffset)
sets offset of the char in the upper left corner
Definition: abstractbytearrayview.cpp:275
Okteta::AbstractByteArrayView::canReadData
bool canReadData(const QMimeData *data) const
Definition: abstractbytearrayview.cpp:196
Okteta::AbstractByteArrayView::finishByteEdit
void finishByteEdit()
Definition: abstractbytearrayview.cpp:487
Okteta::AbstractByteArrayView::setNoOfBytesPerLine
void setNoOfBytesPerLine(int noOfBytesPerLine)
sets the number of bytes per line, switching the resize style to Okteta::FixedLayoutStyle ...
Definition: abstractbytearrayview.cpp:262
Okteta::ByteArrayTableCursor
navigates through the buffer in an abstract way, based on the layout
Definition: bytearraytablecursor.h:60
Okteta::AddressRange
KDE::NumberRange< Address, Size > AddressRange
Definition: addressrange.h:35
Okteta::AbstractByteArrayView::layout
ByteArrayTableLayout * layout() const
Definition: abstractbytearrayview.cpp:75
Okteta::ColumnsView::setNoOfLines
virtual void setNoOfLines(LineSize noOfLines)
sets the number of lines doesn't update the content size
Definition: columnsview.cpp:141
Okteta::AbstractByteArrayView::selectWord
bool selectWord(Address index)
selects word at index, returns true if there is one
Definition: abstractbytearrayview.cpp:339
Okteta::ColumnsView
general class for widgets with columns that display different aspects of the same data with the same ...
Definition: columnsview.h:47
Okteta::AbstractByteArrayView::setLayoutStyle
void setLayoutStyle(LayoutStyle layoutStyle)
sets the resizestyle for the value column.
Definition: abstractbytearrayview.cpp:256
Okteta::AbstractByteArrayView::event
virtual bool event(QEvent *event)
reimplemented to catch Tab and BackTab keys, which otherwise gets stolen
Definition: abstractbytearrayview.cpp:530
Okteta::AbstractByteArrayView::focusOutEvent
virtual void focusOutEvent(QFocusEvent *focusEvent)
Definition: abstractbytearrayview.cpp:556
Okteta::AbstractByteArrayView::ensureVisible
void ensureVisible(const AddressRange &range, bool ensureStartVisible=false)
Definition: abstractbytearrayview.cpp:383
Okteta::AbstractByteArrayView::dropEvent
virtual void dropEvent(QDropEvent *dropEvent)
Definition: abstractbytearrayview.cpp:620
abstractbytearrayview_p.h
Okteta::AbstractByteArrayViewPrivate
Definition: abstractbytearrayview_p.h:59
Okteta::AbstractByteArrayView::zoomOut
void zoomOut()
Definition: abstractbytearrayview.cpp:442
Okteta::AbstractByteArrayView::focusInEvent
virtual void focusInEvent(QFocusEvent *focusEvent)
Definition: abstractbytearrayview.cpp:549
Okteta::AbstractByteArrayView::dragLeaveEvent
virtual void dragLeaveEvent(QDragLeaveEvent *dragLeaveEvent)
Definition: abstractbytearrayview.cpp:615
Okteta::AbstractByteArrayView::ValueCoding
ValueCoding
Definition: abstractbytearrayview.h:98
Okteta::AbstractByteArrayView::setOverwriteOnly
void setOverwriteOnly(bool overwriteOnly)
sets whether the widget is overwriteonly or not.
Definition: abstractbytearrayview.cpp:250
Okteta::AbstractByteArrayView::selectAll
void selectAll(bool select)
de-/selects all data
Definition: abstractbytearrayview.cpp:333
Okteta::AbstractByteArrayView::unpauseCursor
void unpauseCursor()
undoes pauseCursor
Definition: abstractbytearrayview.cpp:409
Okteta::AbstractByteArrayView::zoomTo
void zoomTo(int pointSize)
Definition: abstractbytearrayview.cpp:447
Okteta::AbstractByteArrayView::tableRanges
ByteArrayTableRanges * tableRanges() const
Definition: abstractbytearrayview.cpp:111
Okteta::AbstractByteArrayView::charCodec
const Okteta::CharCodec * charCodec() const
Definition: abstractbytearrayview.cpp:100
Okteta::AbstractByteArrayView::mouseMoveEvent
virtual void mouseMoveEvent(QMouseEvent *mouseMoveEvent)
Definition: abstractbytearrayview.cpp:577
Okteta::AbstractByteArrayView::dragMoveEvent
virtual void dragMoveEvent(QDragMoveEvent *dragMoveEvent)
Definition: abstractbytearrayview.cpp:610
Okteta::AbstractByteArrayView::setSelectionCursorPosition
void setSelectionCursorPosition(Address index)
Definition: abstractbytearrayview.cpp:351
Okteta::AbstractByteArrayView::setVisibleCodings
void setVisibleCodings(int visibleCodings)
Definition: abstractbytearrayview.cpp:303
Okteta::AbstractByteArrayView::changeEvent
virtual void changeEvent(QEvent *event)
Definition: abstractbytearrayview.cpp:468
Okteta::AbstractByteArrayView::unZoom
void unZoom()
Definition: abstractbytearrayview.cpp:452
Okteta::AbstractByteArrayView::copy
virtual void copy()
Definition: abstractbytearrayview.cpp:208
Okteta::AbstractByteArrayView::layoutStyle
LayoutStyle layoutStyle() const
Definition: abstractbytearrayview.cpp:143
Okteta::AbstractByteArrayView::d_ptr
AbstractByteArrayViewPrivate *const d_ptr
Definition: abstractbytearrayview.h:433
Okteta::ColumnsView::noOfLinesPerPage
LineSize noOfLinesPerPage() const
returns number of fully visible lines, at least 1 (as needed by page down/up) doesn't care about the ...
Definition: columnsview.cpp:220
Okteta::AbstractByteArrayView::selectedData
QByteArray selectedData() const
Definition: abstractbytearrayview.cpp:172
Okteta::AbstractByteArrayView::ensureCursorVisible
void ensureCursorVisible()
scrolls the view as much as needed to have the cursor fully visible
Definition: abstractbytearrayview.cpp:390
Okteta::AbstractByteArrayView::selectionChanged
void selectionChanged(const Okteta::AddressRange &selection)
Okteta::AbstractByteArrayView::startCursor
void startCursor()
we have focus again, start the timer
Definition: abstractbytearrayview.cpp:403
Okteta::AbstractByteArrayView::charCoding
CharCoding charCoding() const
Definition: abstractbytearrayview.cpp:90
Okteta::AbstractByteArrayView::placeCursor
void placeCursor(const QPoint &point)
puts the cursor in the column at the pos of Point (in absolute coord), does not handle the drawing ...
Definition: abstractbytearrayview.cpp:396
Okteta::AbstractByteArrayView::pasteFromClipboard
void pasteFromClipboard(QClipboard::Mode mode)
Definition: abstractbytearrayview.cpp:517
Okteta::AbstractByteArrayView::cut
virtual void cut()
Definition: abstractbytearrayview.cpp:202
Okteta::AbstractByteArrayView::keyPressEvent
virtual void keyPressEvent(QKeyEvent *keyEvent)
Definition: abstractbytearrayview.cpp:563
Okteta::AbstractByteArrayView::setActiveCoding
void setActiveCoding(CodingTypeId codingId)
Definition: abstractbytearrayview.cpp:308
Okteta::AbstractByteArrayView::hasSelectedDataChanged
void hasSelectedDataChanged(bool hasSelectedData)
selection has changed
Okteta::AbstractByteArrayView::CodingTypes
CodingTypes
Definition: abstractbytearrayview.h:104
Okteta::AbstractByteArrayView::insert
void insert(const QByteArray &data)
inserts
Definition: abstractbytearrayview.cpp:220
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:06 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