• 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_p.h
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 #ifndef OKTETA_ABSTRACTBYTEARRAYVIEW_P_H
24 #define OKTETA_ABSTRACTBYTEARRAYVIEW_P_H
25 
26 // lib
27 #include "abstractbytearrayview.h"
28 #include "bytearraytablecursor.h"
29 #include "bytearraytableranges.h"
30 #include "bytearraytablelayout.h"
31 #include "controller/kvalueeditor.h"
32 #include "controller/ktabcontroller.h"
33 #include "offsetcolumnrenderer.h"
34 // Okteta core
35 #include <abstractbytearraymodel.h>
36 #include <charcodec.h>
37 
38 class QTimer;
39 
40 
41 namespace Okteta
42 {
43 class KNavigator;
44 class KCharEditor;
45 
46 class Dropper;
47 
48 class AbstractMouseController;
49 class MouseNavigator;
50 class MousePaster;
51 
52 class ZoomWheelController;
53 
54 class WidgetColumnStylist;
55 class KCursor;
56 class BorderColumnRenderer;
57 
58 
59 class AbstractByteArrayViewPrivate
60 {
61  public:
62  explicit AbstractByteArrayViewPrivate( AbstractByteArrayView* parent );
63  virtual ~AbstractByteArrayViewPrivate();
64 
65  public: // value access
66  AbstractByteArrayModel* byteArrayModel() const;
67 
68  // TODO: needed?
69  bool isModified() const;
70 
71  bool isOverwriteMode() const;
72  bool isOverwriteOnly() const;
73  bool isViewReadOnly() const;
74  bool isEffectiveReadOnly() const;
75 
77  Address cursorPosition() const;
78  /***/
79  bool isCursorBehind() const;
80 
81  bool offsetColumnVisible() const;
82  AbstractByteArrayView::OffsetCoding offsetCoding() const;
83 
84  int noOfBytesPerLine() const;
85  Address startOffset() const;
86  Address firstLineOffset() const;
87 
88  AbstractByteArrayView::LayoutStyle layoutStyle() const;
89 
90  bool tabChangesFocus() const;
91 
92  bool hasSelectedData() const;
93  AddressRange selection() const;
94  QByteArray selectedData() const;
95  QMimeData* selectionAsMimeData() const;
96 
97  AddressRange marking() const;
98 
99  KController* controller() const;
100  AbstractWheelController* wheelController() const;
101 
102  KValueEditor* valueEditor() const;
103  Dropper* dropper() const;
104 
105  ByteArrayTableLayout* layout() const;
106  ByteArrayTableCursor* tableCursor() const;
107  ByteArrayTableRanges* tableRanges() const;
108 
109  const ValueCodec* valueCodec() const;
110  AbstractByteArrayView::ValueCoding valueCoding() const;
111  const CharCodec* charCodec() const;
112  AbstractByteArrayView::CharCoding charCoding() const;
113  const QString& charCodingName() const;
114 
115  double zoomLevel() const;
116 
117  public:
118  void init();
119  void setByteArrayModel( AbstractByteArrayModel* byteArrayModel );
120  // TODO: delete old controller?
121  void setController( KController* controller );
122  void setWheelController( AbstractWheelController* wheelController );
123  void setReadOnly( bool readOnly );
124  void setOverwriteOnly( bool overwriteOnly );
125  void setOverwriteMode( bool overwriteMode );
126 
127  public: // setting parameters
128  void setValueCoding( AbstractByteArrayView::ValueCoding valueCoding );
129  void setCharCoding( AbstractByteArrayView::CharCoding charCoding );
130  void setCharCoding( const QString& charCodingName );
131  void setLayoutStyle( AbstractByteArrayView::LayoutStyle layoutStyle );
132  void setNoOfBytesPerLine( int noOfBytesPerLine );
133  void setStartOffset( Address startOffset );
134  void setFirstLineOffset( Address firstLineOffset );
135  void setModified( bool modified );
136 
137  void setTabChangesFocus( bool tabChangesFocus = true );
138 
139  void setMarking( Address start, Address end );
140  void setMarking( const AddressRange& marking );
141 
142  void toggleOffsetColumn( bool offsetColumnVisible );
143  void setOffsetCoding( AbstractByteArrayView::OffsetCoding offsetCoding );
144 
145  public: // zooming
146  void zoomIn( int pointInc );
147  void zoomIn();
148  void zoomOut( int pointDec );
149  void zoomOut();
150  void zoomTo( int pointSize );
151  void unZoom();
152  void setZoomLevel( double level );
153 
154  public: // interaction
155  void selectAll( bool select );
156  bool selectWord( Address index /*, Chartype*/ );
157  void setSelection( const AddressRange& selection );
158 
159  void setCursorPosition( Address index, bool isBehind );
160  void setSelectionCursorPosition( Address index );
161 
162  public: // API to be implemented
163  virtual void ensureVisible( const AddressRange& range, bool ensureStartVisible ) = 0;
164  virtual void ensureCursorVisible() = 0;
165  virtual void placeCursor( const QPoint& point ) = 0;
166  virtual QRect cursorRect() const = 0;
167  virtual Address indexByPoint( const QPoint& point ) const = 0;
168  virtual void blinkCursor() = 0;
169 
170  public: // events
171  bool event( QEvent* event );
172  void changeEvent( QEvent* event );
173  void resizeEvent( QResizeEvent* resizeEvent );
174  void focusInEvent( QFocusEvent* focusEvent );
175  void focusOutEvent( QFocusEvent* focusEvent );
176  void dragEnterEvent( QDragEnterEvent* dragEnterEvent );
177  void dragMoveEvent( QDragMoveEvent* dragMoveEvent );
178  void dragLeaveEvent( QDragLeaveEvent* dragLeaveEvent );
179  void dropEvent( QDropEvent* dropEvent );
180  bool viewportEvent( QEvent* event );
181 
182  void mousePressEvent( QMouseEvent* mousePressEvent );
183  void mouseReleaseEvent( QMouseEvent* mouseReleaseEvent );
184  void mouseMoveEvent( QMouseEvent* mouseMoveEvent );
185  void mouseDoubleClickEvent( QMouseEvent* mouseDoubleClickEvent );
186 
187  public: // slots
188  void onContentsChanged( const ArrayChangeMetricsList& changeList );
189  void onBookmarksChange( const QList<Bookmark>& bookmarks );
190  void onRevertedToVersionIndex( int versionIndex );
191  void onByteArrayReadOnlyChange( bool isByteArrayReadOnly );
192 // void onClipboardChanged();
193 
194  protected:
197  void updateViewByWidth();
198  void adjustLayoutToSize();
199  void adaptController();
200  void cancelByteEditor();
201  void finishByteEditor();
202 
203  protected:
204  bool getNextChangedRange( CoordRange* changedRange, const CoordRange& visibleRange ) const;
205  bool isByteEditorActive() const;
206 
207  protected: //
208  void removeSelectedData();
209  void insert( const QByteArray& data );
210  void pasteData( const QMimeData* data );
211  bool canReadData( const QMimeData* data ) const;
212 
213  protected: // clipboard interaction
214  void cutToClipboard( QClipboard::Mode mode = QClipboard::Clipboard );
215  void copyToClipboard( QClipboard::Mode mode = QClipboard::Clipboard ) const;
216  void pasteFromClipboard( QClipboard::Mode mode = QClipboard::Clipboard );
217 
218  protected: // cursor control
219  void startCursor();
220  void stopCursor();
221  void unpauseCursor();
222 
223  protected: // API to be implemented
224  // cursor control
225  virtual void pauseCursor() = 0;
226  virtual void updateCursors() = 0;
227 
228  virtual void setActiveCoding( AbstractByteArrayView::CodingTypeId codingId ) = 0;
229  virtual void setVisibleCodings( int visibleCodings ) = 0;
230 
231  protected: // API to be implemented
232  virtual AbstractByteArrayView::CodingTypeId activeCoding() const = 0;
233  virtual AbstractByteArrayView::CodingTypes visibleCodings() const = 0;
234  virtual int fittingBytesPerLine() const = 0;
236  virtual void adjustToLayoutNoOfBytesPerLine() = 0;
238  virtual void updateChanged() = 0;
239 
240  protected:
241  AbstractByteArrayModel* mByteArrayModel;
242 
244  KController* mController;
245  AbstractMouseController* mMouseController;
246  AbstractWheelController* mWheelController;
247 
249  ByteArrayTableLayout* mTableLayout;
251  ByteArrayTableCursor* mTableCursor;
253  ByteArrayTableRanges* mTableRanges;
254 
255  OffsetColumnRenderer* mOffsetColumn;
256  BorderColumnRenderer* mOffsetBorderColumn;
257 
258  protected:
260  KTabController* mTabController;
262  KNavigator* mNavigator;
264  KValueEditor* mValueEditor;
266  KCharEditor* mCharEditor;
267 
268  Dropper* mDropper;
269 
270  MouseNavigator* mMouseNavigator;
271  MousePaster* mMousePaster;
272 
273  ZoomWheelController* mZoomWheelController;
274 
275  WidgetColumnStylist* mStylist;
276 
277  protected:
279  QTimer* mCursorBlinkTimer;
280 
282  KCursor* mCursorPixmaps;
283 
284  protected:
286  bool mReadOnly:1;
288  bool mOverWriteOnly:1;
290  bool mOverWrite:1;
292  bool mInZooming:1;
294  bool mCursorPaused:1;
296  bool mBlinkCursorVisible:1;
297 
299  int mDefaultFontSize;
300  double mZoomLevel;
301 
302  // parameters
304  ValueCodec* mValueCodec;
306  AbstractByteArrayView::ValueCoding mValueCoding;
308  CharCodec* mCharCodec;
310  AbstractByteArrayView::CharCoding mCharCoding;
312  AbstractByteArrayView::LayoutStyle mResizeStyle;
313 
314  protected: //
315  AbstractByteArrayView* const q_ptr;
316  Q_DECLARE_PUBLIC( AbstractByteArrayView )
317 };
318 
319 
320 inline AbstractByteArrayModel* AbstractByteArrayViewPrivate::byteArrayModel() const { return mByteArrayModel; }
321 inline KController* AbstractByteArrayViewPrivate::controller() const { return mController; }
322 inline AbstractWheelController* AbstractByteArrayViewPrivate::wheelController() const { return mWheelController; }
323 
324 inline bool AbstractByteArrayViewPrivate::isOverwriteMode() const { return mOverWrite; }
325 inline bool AbstractByteArrayViewPrivate::isOverwriteOnly() const { return mOverWriteOnly; }
326 inline bool AbstractByteArrayViewPrivate::isViewReadOnly() const { return mReadOnly; }
327 inline bool AbstractByteArrayViewPrivate::isEffectiveReadOnly() const { return mReadOnly || mByteArrayModel->isReadOnly(); }
328 inline double AbstractByteArrayViewPrivate::zoomLevel() const { return mZoomLevel; }
329 
330 inline ByteArrayTableLayout* AbstractByteArrayViewPrivate::layout() const { return mTableLayout; }
331 inline ByteArrayTableCursor* AbstractByteArrayViewPrivate::tableCursor() const { return mTableCursor; }
332 inline ByteArrayTableRanges* AbstractByteArrayViewPrivate::tableRanges() const { return mTableRanges; }
333 
334 inline const ValueCodec* AbstractByteArrayViewPrivate::valueCodec() const { return mValueCodec; }
335 inline AbstractByteArrayView::ValueCoding AbstractByteArrayViewPrivate::valueCoding() const { return mValueCoding; }
336 inline const CharCodec* AbstractByteArrayViewPrivate::charCodec() const { return mCharCodec; }
337 inline AbstractByteArrayView::CharCoding AbstractByteArrayViewPrivate::charCoding() const
338 {
339  return (AbstractByteArrayView::CharCoding)mCharCoding;
340 }
341 inline const QString& AbstractByteArrayViewPrivate::charCodingName() const { return mCharCodec->name(); }
342 inline AbstractByteArrayView::LayoutStyle AbstractByteArrayViewPrivate::layoutStyle() const { return mResizeStyle; }
343 inline Address AbstractByteArrayViewPrivate::cursorPosition() const { return mTableCursor->realIndex(); }
344 inline bool AbstractByteArrayViewPrivate::isCursorBehind() const { return mTableCursor->isBehind(); }
345 inline bool AbstractByteArrayViewPrivate::isModified() const { return mByteArrayModel->isModified(); }
346 inline int AbstractByteArrayViewPrivate::noOfBytesPerLine() const { return mTableLayout->noOfBytesPerLine(); }
347 inline Address AbstractByteArrayViewPrivate::firstLineOffset() const { return mTableLayout->firstLineOffset(); }
348 inline Address AbstractByteArrayViewPrivate::startOffset() const { return mTableLayout->startOffset(); }
349 
350 inline AddressRange AbstractByteArrayViewPrivate::selection() const { return mTableRanges->selection(); }
351 inline bool AbstractByteArrayViewPrivate::hasSelectedData() const { return mTableRanges->hasSelection(); }
352 
353 inline AddressRange AbstractByteArrayViewPrivate::marking() const { return mTableRanges->marking(); }
354 
355 inline bool AbstractByteArrayViewPrivate::tabChangesFocus() const { return mTabController->tabChangesFocus(); }
356 inline bool AbstractByteArrayViewPrivate::isByteEditorActive() const { return mValueEditor->isInEditMode(); }
357 inline KValueEditor* AbstractByteArrayViewPrivate::valueEditor() const { return mValueEditor; }
358 inline Dropper* AbstractByteArrayViewPrivate::dropper() const { return mDropper; }
359 inline bool AbstractByteArrayViewPrivate::offsetColumnVisible() const { return mOffsetColumn->isVisible(); }
360 inline AbstractByteArrayView::OffsetCoding AbstractByteArrayViewPrivate::offsetCoding() const
361 {
362  return (AbstractByteArrayView::OffsetCoding)mOffsetColumn->format();
363 }
364 
365 
366 inline void AbstractByteArrayViewPrivate::cancelByteEditor()
367 {
368  mValueEditor->cancelEdit( false );
369 }
370 inline void AbstractByteArrayViewPrivate::finishByteEditor()
371 {
372  mValueEditor->finishEdit();
373 }
374 inline void AbstractByteArrayViewPrivate::setTabChangesFocus( bool tabChangesFocus )
375 {
376  mTabController->setTabChangesFocus( tabChangesFocus );
377 }
378 
379 inline void AbstractByteArrayViewPrivate::setController( KController* controller ) { mController = controller; }
380 inline void AbstractByteArrayViewPrivate::setWheelController( AbstractWheelController* wheelController ) { mWheelController = wheelController; }
381 inline void AbstractByteArrayViewPrivate::setModified( bool modified ) { mByteArrayModel->setModified( modified ); }
382 
383 }
384 
385 #endif
Okteta::AbstractByteArrayViewPrivate::changeEvent
void changeEvent(QEvent *event)
Okteta::KValueEditor::finishEdit
void finishEdit()
Definition: kvalueeditor.cpp:88
Okteta::AbstractByteArrayViewPrivate::mOverWriteOnly
bool mOverWriteOnly
flag if only overwrite is allowed
Definition: abstractbytearrayview_p.h:288
Okteta::CoordRange
describes a range in the buffercoord
Definition: coordrange.h:51
Okteta::KValueEditor
Definition: kvalueeditor.h:40
Okteta::AbstractByteArrayViewPrivate::cutToClipboard
void cutToClipboard(QClipboard::Mode mode=QClipboard::Clipboard)
Okteta::AbstractByteArrayViewPrivate::mOffsetBorderColumn
BorderColumnRenderer * mOffsetBorderColumn
Definition: abstractbytearrayview_p.h:256
Okteta::AbstractByteArrayViewPrivate::ensureCursorVisible
virtual void ensureCursorVisible()=0
Okteta::AbstractByteArrayViewPrivate::zoomLevel
double zoomLevel() const
Definition: abstractbytearrayview_p.h:328
Okteta::AbstractByteArrayViewPrivate::zoomOut
void zoomOut()
Okteta::AbstractByteArrayViewPrivate::valueCodec
const ValueCodec * valueCodec() const
Definition: abstractbytearrayview_p.h:334
Okteta::KTabController::setTabChangesFocus
void setTabChangesFocus(bool tabChangesFocus)
default is true
Definition: ktabcontroller.h:57
Okteta::OffsetColumnRenderer
Definition: offsetcolumnrenderer.h:42
Okteta::ByteArrayTableLayout::startOffset
Address startOffset() const
Definition: bytearraytablelayout.h:207
Okteta::Address
qint32 Address
Definition: address.h:34
Okteta::AbstractByteArrayViewPrivate::mCursorBlinkTimer
QTimer * mCursorBlinkTimer
Timer that controls the blinking of the cursor.
Definition: abstractbytearrayview_p.h:279
Okteta::AbstractByteArrayModel
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
Okteta::AbstractByteArrayViewPrivate::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *mouseDoubleClickEvent)
Okteta::AbstractByteArrayView::LayoutStyle
LayoutStyle
Definition: abstractbytearrayview.h:101
Okteta::OffsetColumnRenderer::format
OffsetFormat::Format format() const
Definition: offsetcolumnrenderer.h:97
Okteta::AbstractByteArrayView::OffsetCoding
OffsetCoding
Definition: abstractbytearrayview.h:97
Okteta::AbstractByteArrayViewPrivate::cursorPosition
Address cursorPosition() const
returns the index of the cursor position
Definition: abstractbytearrayview_p.h:343
abstractbytearraymodel.h
Okteta::AbstractByteArrayViewPrivate::mDefaultFontSize
int mDefaultFontSize
font size as set by user (used for zooming)
Definition: abstractbytearrayview_p.h:299
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::ByteArrayTableLayout::noOfBytesPerLine
Size noOfBytesPerLine() const
returns number of bytes per line
Definition: bytearraytablelayout.h:209
Okteta::AbstractByteArrayViewPrivate::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *dragEnterEvent)
Okteta::AbstractByteArrayViewPrivate::mValueEditor
KValueEditor * mValueEditor
Definition: abstractbytearrayview_p.h:264
ktabcontroller.h
Okteta::ByteArrayTableLayout::firstLineOffset
Address firstLineOffset() const
Definition: bytearraytablelayout.h:208
Okteta::AbstractByteArrayViewPrivate::setFirstLineOffset
void setFirstLineOffset(Address firstLineOffset)
Okteta::AbstractByteArrayViewPrivate::setWheelController
void setWheelController(AbstractWheelController *wheelController)
Definition: abstractbytearrayview_p.h:380
Okteta::AbstractByteArrayViewPrivate::layoutStyle
AbstractByteArrayView::LayoutStyle layoutStyle() const
Definition: abstractbytearrayview_p.h:342
offsetcolumnrenderer.h
Okteta::AbstractByteArrayViewPrivate::mReadOnly
bool mReadOnly
flag whether the widget is set to readonly.
Definition: abstractbytearrayview_p.h:286
Okteta::AbstractByteArrayViewPrivate::startCursor
void startCursor()
Okteta::AbstractByteArrayViewPrivate::AbstractByteArrayViewPrivate
AbstractByteArrayViewPrivate(AbstractByteArrayView *parent)
Okteta::AbstractByteArrayView::CharCoding
CharCoding
Definition: abstractbytearrayview.h:99
Okteta::AbstractByteArrayViewPrivate::noOfBytesPerLine
int noOfBytesPerLine() const
Definition: abstractbytearrayview_p.h:346
Okteta::AbstractByteArrayViewPrivate::setMarking
void setMarking(Address start, Address end)
Okteta::AbstractByteArrayViewPrivate::pasteFromClipboard
void pasteFromClipboard(QClipboard::Mode mode=QClipboard::Clipboard)
Okteta::AbstractByteArrayViewPrivate::charCoding
AbstractByteArrayView::CharCoding charCoding() const
Definition: abstractbytearrayview_p.h:337
Okteta::AbstractByteArrayViewPrivate::selectedData
QByteArray selectedData() const
KDE::NumberRange< Address, Size >
Okteta::AbstractByteArrayViewPrivate::isByteEditorActive
bool isByteEditorActive() const
Definition: abstractbytearrayview_p.h:356
Okteta::KTabController
Definition: ktabcontroller.h:36
Okteta::KCharEditor
Definition: kchareditor.h:34
Okteta::AbstractByteArrayViewPrivate::getNextChangedRange
bool getNextChangedRange(CoordRange *changedRange, const CoordRange &visibleRange) const
abstractbytearrayview.h
Okteta::AbstractByteArrayViewPrivate::setOffsetCoding
void setOffsetCoding(AbstractByteArrayView::OffsetCoding offsetCoding)
Okteta::AbstractByteArrayViewPrivate::toggleOffsetColumn
void toggleOffsetColumn(bool offsetColumnVisible)
Okteta::AbstractByteArrayViewPrivate::setSelection
void setSelection(const AddressRange &selection)
Okteta::AbstractByteArrayViewPrivate::init
void init()
Okteta::AbstractWheelController
Definition: abstractwheelcontroller.h:33
Okteta::AbstractByteArrayViewPrivate::layout
ByteArrayTableLayout * layout() const
Definition: abstractbytearrayview_p.h:330
Okteta::AbstractByteArrayViewPrivate::setReadOnly
void setReadOnly(bool readOnly)
Okteta::AbstractByteArrayViewPrivate::marking
AddressRange marking() const
Definition: abstractbytearrayview_p.h:353
Okteta::AbstractByteArrayViewPrivate::focusOutEvent
void focusOutEvent(QFocusEvent *focusEvent)
Okteta::BorderColumnRenderer
column that does nothing but draw a vertical line in the middle of the column
Definition: bordercolumnrenderer.h:38
Okteta::AbstractByteArrayViewPrivate::adaptController
void adaptController()
Okteta::AbstractByteArrayViewPrivate::setActiveCoding
virtual void setActiveCoding(AbstractByteArrayView::CodingTypeId codingId)=0
Okteta::AbstractByteArrayViewPrivate::mOverWrite
bool mOverWrite
flag if overwrite mode is active
Definition: abstractbytearrayview_p.h:290
Okteta::AbstractByteArrayViewPrivate::tabChangesFocus
bool tabChangesFocus() const
Definition: abstractbytearrayview_p.h:355
Okteta::AbstractByteArrayView::CodingTypeId
CodingTypeId
Definition: abstractbytearrayview.h:103
Okteta::AbstractByteArrayView
Definition: abstractbytearrayview.h:55
Okteta::AbstractByteArrayViewPrivate::mBlinkCursorVisible
bool mBlinkCursorVisible
flag if the cursor is visible
Definition: abstractbytearrayview_p.h:296
Okteta::AbstractByteArrayViewPrivate::mWheelController
AbstractWheelController * mWheelController
Definition: abstractbytearrayview_p.h:246
Okteta::KCursor
Definition: kcursor.h:39
Okteta::AbstractByteArrayViewPrivate::setOverwriteMode
void setOverwriteMode(bool overwriteMode)
Okteta::AbstractByteArrayViewPrivate::selectionAsMimeData
QMimeData * selectionAsMimeData() const
Okteta::AbstractByteArrayViewPrivate::onRevertedToVersionIndex
void onRevertedToVersionIndex(int versionIndex)
Okteta::AbstractByteArrayViewPrivate::onBookmarksChange
void onBookmarksChange(const QList< Bookmark > &bookmarks)
Okteta::ZoomWheelController
Definition: zoomwheelcontroller.h:35
Okteta::AbstractByteArrayViewPrivate::valueCoding
AbstractByteArrayView::ValueCoding valueCoding() const
Definition: abstractbytearrayview_p.h:335
Okteta::AbstractByteArrayViewPrivate::dropEvent
void dropEvent(QDropEvent *dropEvent)
Okteta::AbstractByteArrayViewPrivate::wheelController
AbstractWheelController * wheelController() const
Definition: abstractbytearrayview_p.h:322
Okteta::KValueEditor::isInEditMode
bool isInEditMode() const
Definition: kvalueeditor.h:89
Okteta::AbstractByteArrayViewPrivate::mStylist
WidgetColumnStylist * mStylist
Definition: abstractbytearrayview_p.h:275
Okteta::AbstractByteArrayViewPrivate::mMouseNavigator
MouseNavigator * mMouseNavigator
Definition: abstractbytearrayview_p.h:270
bytearraytablelayout.h
Okteta::WidgetColumnStylist
Definition: widgetcolumnstylist.h:38
Okteta::AbstractByteArrayViewPrivate::adjustLayoutToSize
void adjustLayoutToSize()
Okteta::ByteArrayTableLayout
the logical layout of a byte array table for a view
Definition: bytearraytablelayout.h:61
Okteta::AbstractByteArrayViewPrivate::~AbstractByteArrayViewPrivate
virtual ~AbstractByteArrayViewPrivate()
Okteta::AbstractByteArrayViewPrivate::stopCursor
void stopCursor()
Okteta::AbstractByteArrayViewPrivate::selectWord
bool selectWord(Address index)
Okteta::AbstractByteArrayViewPrivate::firstLineOffset
Address firstLineOffset() const
Definition: abstractbytearrayview_p.h:347
Okteta::KNavigator
Definition: knavigator.h:36
Okteta::ByteArrayTableRanges::marking
AddressRange marking() const
Definition: bytearraytableranges.h:132
Okteta::AbstractByteArrayViewPrivate::mCharEditor
KCharEditor * mCharEditor
Definition: abstractbytearrayview_p.h:266
Okteta::AbstractByteArrayViewPrivate::mDropper
Dropper * mDropper
Definition: abstractbytearrayview_p.h:268
Okteta::AbstractByteArrayViewPrivate::offsetCoding
AbstractByteArrayView::OffsetCoding offsetCoding() const
Definition: abstractbytearrayview_p.h:360
Okteta::ByteArrayTableRanges::hasSelection
bool hasSelection() const
Definition: bytearraytableranges.h:136
Okteta::AbstractByteArrayViewPrivate::mByteArrayModel
AbstractByteArrayModel * mByteArrayModel
Definition: abstractbytearrayview_p.h:241
Okteta::AbstractByteArrayViewPrivate::mMousePaster
MousePaster * mMousePaster
Definition: abstractbytearrayview_p.h:271
Okteta::CharCodec
Definition: charcodec.h:42
Okteta::AbstractByteArrayViewPrivate::focusInEvent
void focusInEvent(QFocusEvent *focusEvent)
Okteta::AbstractByteArrayViewPrivate::cursorRect
virtual QRect cursorRect() const =0
Okteta::AbstractByteArrayViewPrivate::pauseCursor
virtual void pauseCursor()=0
Okteta::AbstractByteArrayViewPrivate::isOverwriteOnly
bool isOverwriteOnly() const
Definition: abstractbytearrayview_p.h:325
Okteta::AbstractByteArrayViewPrivate::isEffectiveReadOnly
bool isEffectiveReadOnly() const
Definition: abstractbytearrayview_p.h:327
Okteta::AbstractByteArrayViewPrivate::selectAll
void selectAll(bool select)
Okteta::AbstractByteArrayViewPrivate::zoomTo
void zoomTo(int pointSize)
Okteta::AbstractByteArrayViewPrivate::q_ptr
AbstractByteArrayView *const q_ptr
Definition: abstractbytearrayview_p.h:315
Okteta::AbstractByteArrayViewPrivate::mTableLayout
ByteArrayTableLayout * mTableLayout
holds the logical layout
Definition: abstractbytearrayview_p.h:249
Okteta::AbstractByteArrayViewPrivate::tableCursor
ByteArrayTableCursor * tableCursor() const
Definition: abstractbytearrayview_p.h:331
Okteta::AbstractByteArrayViewPrivate::zoomIn
void zoomIn()
Okteta::AbstractByteArrayViewPrivate::indexByPoint
virtual Address indexByPoint(const QPoint &point) const =0
Okteta::AbstractByteArrayViewPrivate::tableRanges
ByteArrayTableRanges * tableRanges() const
Definition: abstractbytearrayview_p.h:332
Okteta::ValueCodec
Class that is able to convert codings to and from hexadecimal, decimal, octal, and binary...
Definition: valuecodec.h:45
Okteta::AbstractByteArrayViewPrivate::updateChanged
virtual void updateChanged()=0
repaints all the parts that are signed as changed
Okteta::AbstractByteArrayViewPrivate::valueEditor
KValueEditor * valueEditor() const
Definition: abstractbytearrayview_p.h:357
Okteta::ArrayChangeMetricsList
Definition: arraychangemetricslist.h:36
Okteta::AbstractByteArrayViewPrivate::mCharCodec
CharCodec * mCharCodec
Definition: abstractbytearrayview_p.h:308
Okteta::AbstractByteArrayViewPrivate::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *mouseMoveEvent)
Okteta::AbstractByteArrayViewPrivate::mOffsetColumn
OffsetColumnRenderer * mOffsetColumn
Definition: abstractbytearrayview_p.h:255
Okteta::AbstractMouseController
Definition: abstractmousecontroller.h:33
Okteta::AbstractByteArrayViewPrivate::viewportEvent
bool viewportEvent(QEvent *event)
Okteta::AbstractByteArrayViewPrivate::ensureVisible
virtual void ensureVisible(const AddressRange &range, bool ensureStartVisible)=0
Okteta::AbstractByteArrayViewPrivate::mZoomLevel
double mZoomLevel
Definition: abstractbytearrayview_p.h:300
Okteta::AbstractByteArrayViewPrivate::blinkCursor
virtual void blinkCursor()=0
Okteta::AbstractByteArrayViewPrivate::setController
void setController(KController *controller)
Definition: abstractbytearrayview_p.h:379
Okteta::AbstractByteArrayViewPrivate::mCursorPixmaps
KCursor * mCursorPixmaps
object to store the blinking cursor pixmaps
Definition: abstractbytearrayview_p.h:282
Okteta::AbstractByteArrayViewPrivate::mResizeStyle
AbstractByteArrayView::LayoutStyle mResizeStyle
style of resizing
Definition: abstractbytearrayview_p.h:312
Okteta::ByteArrayTableCursor
navigates through the buffer in an abstract way, based on the layout
Definition: bytearraytablecursor.h:60
Okteta::AbstractByteArrayViewPrivate::setZoomLevel
void setZoomLevel(double level)
Okteta::AbstractByteArrayViewPrivate::selection
AddressRange selection() const
Definition: abstractbytearrayview_p.h:350
Okteta::AbstractByteArrayViewPrivate::startOffset
Address startOffset() const
Definition: abstractbytearrayview_p.h:348
Okteta::AbstractByteArrayViewPrivate::controller
KController * controller() const
Definition: abstractbytearrayview_p.h:321
Okteta::AbstractByteArrayViewPrivate::mCursorPaused
bool mCursorPaused
flag if the cursor should be invisible
Definition: abstractbytearrayview_p.h:294
Okteta::AbstractByteArrayModel::isModified
virtual bool isModified() const =0
Okteta::AbstractByteArrayViewPrivate::updateCursors
virtual void updateCursors()=0
Okteta::AbstractByteArrayViewPrivate::placeCursor
virtual void placeCursor(const QPoint &point)=0
Okteta::AbstractByteArrayViewPrivate::mTableRanges
ByteArrayTableRanges * mTableRanges
Definition: abstractbytearrayview_p.h:253
Okteta::AbstractByteArrayViewPrivate::setCharCoding
void setCharCoding(AbstractByteArrayView::CharCoding charCoding)
Okteta::AbstractByteArrayViewPrivate::setTabChangesFocus
void setTabChangesFocus(bool tabChangesFocus=true)
Definition: abstractbytearrayview_p.h:374
Okteta::AbstractByteArrayViewPrivate::setLayoutStyle
void setLayoutStyle(AbstractByteArrayView::LayoutStyle layoutStyle)
Okteta::AbstractByteArrayViewPrivate::isModified
bool isModified() const
Definition: abstractbytearrayview_p.h:345
charcodec.h
Okteta::MouseNavigator
Definition: mousenavigator.h:39
Okteta::AbstractByteArrayViewPrivate::onContentsChanged
void onContentsChanged(const ArrayChangeMetricsList &changeList)
Okteta::AbstractByteArrayViewPrivate::updateViewByWidth
void updateViewByWidth()
handles screen update in case of a change to any of the width sizes
Okteta::ByteArrayTableRanges::selection
AddressRange selection() const
Definition: bytearraytableranges.h:129
Okteta::AbstractByteArrayViewPrivate::setSelectionCursorPosition
void setSelectionCursorPosition(Address index)
Okteta::AbstractByteArrayViewPrivate::canReadData
bool canReadData(const QMimeData *data) const
Okteta::AbstractByteArrayViewPrivate
Definition: abstractbytearrayview_p.h:59
Okteta::AbstractByteArrayViewPrivate::dropper
Dropper * dropper() const
Definition: abstractbytearrayview_p.h:358
Okteta::AbstractByteArrayViewPrivate::dragMoveEvent
void dragMoveEvent(QDragMoveEvent *dragMoveEvent)
Okteta::KValueEditor::cancelEdit
void cancelEdit(bool undoChanges=true)
Definition: kvalueeditor.cpp:68
Okteta::AbstractByteArrayViewPrivate::charCodingName
const QString & charCodingName() const
Definition: abstractbytearrayview_p.h:341
Okteta::Dropper
Definition: dropper.h:41
Okteta::AbstractByteArrayViewPrivate::visibleCodings
virtual AbstractByteArrayView::CodingTypes visibleCodings() const =0
Okteta::AbstractByteArrayView::ValueCoding
ValueCoding
Definition: abstractbytearrayview.h:98
Okteta::AbstractByteArrayViewPrivate::charCodec
const CharCodec * charCodec() const
Definition: abstractbytearrayview_p.h:336
Okteta::AbstractByteArrayViewPrivate::activeCoding
virtual AbstractByteArrayView::CodingTypeId activeCoding() const =0
Okteta::AbstractByteArrayViewPrivate::mController
KController * mController
the current input controller
Definition: abstractbytearrayview_p.h:244
Okteta::AbstractByteArrayViewPrivate::mValueCoding
AbstractByteArrayView::ValueCoding mValueCoding
Definition: abstractbytearrayview_p.h:306
Okteta::AbstractByteArrayViewPrivate::insert
void insert(const QByteArray &data)
Okteta::AbstractByteArrayViewPrivate::unpauseCursor
void unpauseCursor()
Okteta::KTabController::tabChangesFocus
bool tabChangesFocus() const
Definition: ktabcontroller.h:56
Okteta::AbstractByteArrayViewPrivate::isOverwriteMode
bool isOverwriteMode() const
Definition: abstractbytearrayview_p.h:324
Okteta::AbstractByteArrayViewPrivate::setCursorPosition
void setCursorPosition(Address index, bool isBehind)
Okteta::CharCodec::name
virtual const QString & name() const =0
Okteta::AbstractByteArrayViewPrivate::onByteArrayReadOnlyChange
void onByteArrayReadOnlyChange(bool isByteArrayReadOnly)
Okteta::AbstractByteArrayViewPrivate::setNoOfBytesPerLine
void setNoOfBytesPerLine(int noOfBytesPerLine)
Okteta::AbstractByteArrayViewPrivate::mTableCursor
ByteArrayTableCursor * mTableCursor
Definition: abstractbytearrayview_p.h:251
Okteta::AbstractByteArrayViewPrivate::offsetColumnVisible
bool offsetColumnVisible() const
Definition: abstractbytearrayview_p.h:359
Okteta::AbstractByteArrayViewPrivate::fittingBytesPerLine
virtual int fittingBytesPerLine() const =0
Okteta::AbstractByteArrayViewPrivate::finishByteEditor
void finishByteEditor()
Definition: abstractbytearrayview_p.h:370
Okteta::AbstractByteArrayViewPrivate::dragLeaveEvent
void dragLeaveEvent(QDragLeaveEvent *dragLeaveEvent)
Okteta::ByteArrayTableCursor::realIndex
Address realIndex() const
returns the real index.
Definition: bytearraytablecursor.h:175
Okteta::AbstractByteArrayViewPrivate::isCursorBehind
bool isCursorBehind() const
Definition: abstractbytearrayview_p.h:344
bytearraytableranges.h
Okteta::MousePaster
Definition: mousepaster.h:33
Okteta::AbstractByteArrayViewPrivate::hasSelectedData
bool hasSelectedData() const
Definition: abstractbytearrayview_p.h:351
Okteta::AbstractByteArrayViewPrivate::setVisibleCodings
virtual void setVisibleCodings(int visibleCodings)=0
Okteta::AbstractByteArrayViewPrivate::pasteData
void pasteData(const QMimeData *data)
Okteta::AbstractByteArrayViewPrivate::mInZooming
bool mInZooming
flag whether the font is changed due to a zooming
Definition: abstractbytearrayview_p.h:292
Okteta::AbstractByteArrayViewPrivate::resizeEvent
void resizeEvent(QResizeEvent *resizeEvent)
Okteta::AbstractByteArrayModel::isReadOnly
virtual bool isReadOnly() const
Default returns true.
Definition: abstractbytearraymodel.cpp:40
Okteta::AbstractByteArrayViewPrivate::setByteArrayModel
void setByteArrayModel(AbstractByteArrayModel *byteArrayModel)
Okteta::AbstractByteArrayModel::setModified
virtual void setModified(bool modified)=0
sets the modified flag for the buffer
Okteta::AbstractByteArrayViewPrivate::mValueCodec
ValueCodec * mValueCodec
Definition: abstractbytearrayview_p.h:304
Okteta::AbstractByteArrayViewPrivate::copyToClipboard
void copyToClipboard(QClipboard::Mode mode=QClipboard::Clipboard) const
Okteta::AbstractByteArrayViewPrivate::mNavigator
KNavigator * mNavigator
Definition: abstractbytearrayview_p.h:262
Okteta::AbstractByteArrayViewPrivate::byteArrayModel
AbstractByteArrayModel * byteArrayModel() const
Definition: abstractbytearrayview_p.h:320
Okteta::AbstractByteArrayViewPrivate::event
bool event(QEvent *event)
Okteta::AbstractByteArrayViewPrivate::mZoomWheelController
ZoomWheelController * mZoomWheelController
Definition: abstractbytearrayview_p.h:273
Okteta::AbstractByteArrayViewPrivate::cancelByteEditor
void cancelByteEditor()
Definition: abstractbytearrayview_p.h:366
Okteta::AbstractByteArrayViewPrivate::isViewReadOnly
bool isViewReadOnly() const
Definition: abstractbytearrayview_p.h:326
Okteta::AbstractColumnRenderer::isVisible
bool isVisible() const
should Column be displayed?
Definition: abstractcolumnrenderer.cpp:45
Okteta::ByteArrayTableCursor::isBehind
bool isBehind() const
true if the cursor is located to the right of the actual coord but still shown at the coord ...
Definition: bytearraytablecursor.h:174
kvalueeditor.h
Okteta::AbstractByteArrayViewPrivate::setOverwriteOnly
void setOverwriteOnly(bool overwriteOnly)
Okteta::AbstractByteArrayViewPrivate::unZoom
void unZoom()
Okteta::AbstractByteArrayViewPrivate::setStartOffset
void setStartOffset(Address startOffset)
Okteta::AbstractByteArrayViewPrivate::removeSelectedData
void removeSelectedData()
bytearraytablecursor.h
Okteta::AbstractByteArrayViewPrivate::mTabController
KTabController * mTabController
Definition: abstractbytearrayview_p.h:260
Okteta::AbstractByteArrayViewPrivate::setModified
void setModified(bool modified)
Definition: abstractbytearrayview_p.h:381
Okteta::AbstractByteArrayViewPrivate::adjustToLayoutNoOfBytesPerLine
virtual void adjustToLayoutNoOfBytesPerLine()=0
recalcs all dependant values with the actual NoOfBytesPerLine
Okteta::AbstractByteArrayViewPrivate::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *mouseReleaseEvent)
Okteta::AbstractByteArrayViewPrivate::mCharCoding
AbstractByteArrayView::CharCoding mCharCoding
Definition: abstractbytearrayview_p.h:310
QList
Definition: bookmarkable.h:29
Okteta::AbstractByteArrayViewPrivate::mMouseController
AbstractMouseController * mMouseController
Definition: abstractbytearrayview_p.h:245
Okteta::AbstractByteArrayViewPrivate::mousePressEvent
void mousePressEvent(QMouseEvent *mousePressEvent)
Okteta::AbstractByteArrayView::CodingTypes
CodingTypes
Definition: abstractbytearrayview.h:104
Okteta::KController
Definition: kcontroller.h:32
Okteta::AbstractByteArrayViewPrivate::setValueCoding
void setValueCoding(AbstractByteArrayView::ValueCoding valueCoding)
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