• 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
  • controllers
  • view
  • poddecoder
poddelegate.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 2009 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 "poddelegate.h"
24 
25 // tool
26 #include "typeeditors/binary8editor.h"
27 #include "typeeditors/octal8editor.h"
28 #include "typeeditors/hexadecimal8editor.h"
29 #include "typeeditors/sint8editor.h"
30 #include "typeeditors/sint16editor.h"
31 #include "typeeditors/sint32editor.h"
32 #include "typeeditors/sint64editor.h"
33 #include "typeeditors/uint8editor.h"
34 #include "typeeditors/uint16editor.h"
35 #include "typeeditors/uint32editor.h"
36 #include "typeeditors/uint64editor.h"
37 #include "typeeditors/float32editor.h"
38 #include "typeeditors/float64editor.h"
39 #include "typeeditors/char8editor.h"
40 #include "typeeditors/utf8editor.h"
41 #include "poddecodertool.h"
42 
43 // TODO: Stranger that you are reading this: please help out and show how to add QVariant::Types for custom datatypes,
44 // so that instead of this unflexible maintanance mess^WWWunlooped code QItemEditorCreator can be used!
45 
46 namespace Kasten2
47 {
48 
49 PODDelegate::PODDelegate( PODDecoderTool* tool, QObject* parent )
50  : QStyledItemDelegate( parent ),
51  mTool( tool ),
52  mEditor( 0 )
53 {
54  qRegisterMetaType<Binary8>();
55  qRegisterMetaType<Octal8>();
56  qRegisterMetaType<Hexadecimal8>();
57  qRegisterMetaType<SInt8>();
58  qRegisterMetaType<SInt16>();
59  qRegisterMetaType<SInt32>();
60  qRegisterMetaType<SInt64>();
61  qRegisterMetaType<UInt8>();
62  qRegisterMetaType<UInt16>();
63  qRegisterMetaType<UInt32>();
64  qRegisterMetaType<UInt64>();
65  qRegisterMetaType<Float32>();
66  qRegisterMetaType<Float64>();
67  qRegisterMetaType<Char8>();
68  qRegisterMetaType<Utf8>();
69 
70  connect( mTool, SIGNAL(readOnlyChanged(bool)), SLOT(onReadOnlyChanged(bool)) );
71 }
72 
73 // make sure only editors are created which have a readOnly property
74 // also beware that for subclasses of QLineEdit (all float editors) the signal
75 // editingFinished() is only emitted if validator() returns QValidator::Acceptable
76 // so onEditorDone() is not reached if QValidator::Intermediate
77 QWidget* PODDelegate::createEditor( QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index ) const
78 {
79  QWidget* result;
80 
81  QVariant data = index.data();
82  if( data.canConvert<Binary8>() )
83  {
84  Binary8Editor* editor = new Binary8Editor( parent );
85  connect( editor, SIGNAL(editingFinished()),
86  SLOT(onEditorDone()) );
87  result = editor;
88  }
89  else if( data.canConvert<Octal8>() )
90  {
91  Octal8Editor* editor = new Octal8Editor( parent );
92  connect( editor, SIGNAL(editingFinished()),
93  SLOT(onEditorDone()) );
94  result = editor;
95  }
96  else if( data.canConvert<Hexadecimal8>() )
97  {
98  Hexadecimal8Editor* editor = new Hexadecimal8Editor( parent );
99  connect( editor, SIGNAL(editingFinished()),
100  SLOT(onEditorDone()) );
101  result = editor;
102  }
103  else if( data.canConvert<SInt8>() )
104  {
105  SInt8Editor* editor = new SInt8Editor( parent );
106  connect( editor, SIGNAL(editingFinished()),
107  SLOT(onEditorDone()) );
108  result = editor;
109  }
110  else if( data.canConvert<SInt16>() )
111  {
112  SInt16Editor* editor = new SInt16Editor( parent );
113  connect( editor, SIGNAL(editingFinished()),
114  SLOT(onEditorDone()) );
115  result = editor;
116  }
117  else if( data.canConvert<SInt32>() )
118  {
119  SInt32Editor* editor = new SInt32Editor( parent );
120  connect( editor, SIGNAL(editingFinished()),
121  SLOT(onEditorDone()) );
122  result = editor;
123  }
124  else if( data.canConvert<SInt64>() )
125  {
126  SInt64Editor* editor = new SInt64Editor( parent );
127  connect( editor, SIGNAL(editingFinished()),
128  SLOT(onEditorDone()) );
129  result = editor;
130  }
131  else if( data.canConvert<UInt8>() )
132  {
133  UInt8Editor* editor = new UInt8Editor( parent );
134  editor->setBase( mTool->isUnsignedAsHex() ? 16 : 10 );
135  connect( editor, SIGNAL(editingFinished()),
136  SLOT(onEditorDone()) );
137  result = editor;
138  }
139  else if( data.canConvert<UInt16>() )
140  {
141  UInt16Editor* editor = new UInt16Editor( parent );
142  editor->setBase( mTool->isUnsignedAsHex() ? 16 : 10 );
143  connect( editor, SIGNAL(editingFinished()),
144  SLOT(onEditorDone()) );
145  result = editor;
146  }
147  else if( data.canConvert<UInt32>() )
148  {
149  UInt32Editor* editor = new UInt32Editor( parent );
150  editor->setBase( mTool->isUnsignedAsHex() ? 16 : 10 );
151  connect( editor, SIGNAL(editingFinished()),
152  SLOT(onEditorDone()) );
153  result = editor;
154  }
155  else if( data.canConvert<UInt64>() )
156  {
157  UInt64Editor* editor = new UInt64Editor( parent );
158  editor->setBase( mTool->isUnsignedAsHex() ? 16 : 10 );
159  connect( editor, SIGNAL(editingFinished()),
160  SLOT(onEditorDone()) );
161  result = editor;
162  }
163  else if( data.canConvert<Float32>() )
164  {
165  Float32Editor* editor = new Float32Editor( parent );
166  connect( editor, SIGNAL(editingFinished()),
167  SLOT(onEditorDone()) );
168  result = editor;
169  }
170  else if( data.canConvert<Float64>() )
171  {
172  Float64Editor* editor = new Float64Editor( parent );
173  connect( editor, SIGNAL(editingFinished()),
174  SLOT(onEditorDone()) );
175  result = editor;
176  }
177  else if( data.canConvert<Char8>() )
178  {
179  Char8Editor* editor = new Char8Editor( mTool->charCodec(), parent );
180  connect( editor, SIGNAL(editingFinished()),
181  SLOT(onEditorDone()) );
182  result = editor;
183  }
184  else if( data.canConvert<Utf8>() )
185  {
186  Utf8Editor* editor = new Utf8Editor( parent );
187  connect( editor, SIGNAL(editingFinished()),
188  SLOT(onEditorDone()) );
189  result = editor;
190  }
191  else
192  result = QStyledItemDelegate::createEditor( parent, option, index );
193 
194  mEditor = result;
195  onReadOnlyChanged( mTool->isReadOnly() );
196 
197  return result;
198 }
199 
200 void PODDelegate::setEditorData( QWidget* editor, const QModelIndex& index ) const
201 {
202  QVariant data = index.data();
203 
204  if( data.canConvert<Binary8>() )
205  {
206  Binary8 binary8 = data.value<Binary8>();
207  Binary8Editor* binary8Editor = qobject_cast<Binary8Editor*>( editor );
208  binary8Editor->setData( binary8 );
209  }
210  else if( data.canConvert<Octal8>() )
211  {
212  Octal8 octal8 = data.value<Octal8>();
213  Octal8Editor* octal8Editor = qobject_cast<Octal8Editor*>( editor );
214  octal8Editor->setData( octal8 );
215  }
216  else if( data.canConvert<Hexadecimal8>() )
217  {
218  Hexadecimal8 hexadecimal8 = data.value<Hexadecimal8>();
219  Hexadecimal8Editor* hexadecimal8Editor = qobject_cast<Hexadecimal8Editor*>( editor );
220  hexadecimal8Editor->setData( hexadecimal8 );
221  }
222  else if( data.canConvert<SInt8>() )
223  {
224  SInt8 sInt8 = data.value<SInt8>();
225  SInt8Editor* sInt8Editor = qobject_cast<SInt8Editor*>( editor );
226  sInt8Editor->setData( sInt8 );
227  }
228  else if( data.canConvert<SInt16>() )
229  {
230  SInt16 sInt16 = data.value<SInt16>();
231  SInt16Editor* sInt16Editor = qobject_cast<SInt16Editor*>( editor );
232  sInt16Editor->setData( sInt16 );
233  }
234  else if( data.canConvert<SInt32>() )
235  {
236  SInt32 sInt32 = data.value<SInt32>();
237  SInt32Editor* sInt32Editor = qobject_cast<SInt32Editor*>( editor );
238  sInt32Editor->setData( sInt32 );
239  }
240  else if( data.canConvert<SInt64>() )
241  {
242  SInt64 sInt64 = data.value<SInt64>();
243  SInt64Editor* sInt64Editor = qobject_cast<SInt64Editor*>( editor );
244  sInt64Editor->setData( sInt64 );
245  }
246  else if( data.canConvert<UInt8>() )
247  {
248  UInt8 uInt8 = data.value<UInt8>();
249  UInt8Editor* uInt8Editor = qobject_cast<UInt8Editor*>( editor );
250  uInt8Editor->setData( uInt8 );
251  }
252  else if( data.canConvert<UInt16>() )
253  {
254  UInt16 uInt16 = data.value<UInt16>();
255  UInt16Editor* uInt16Editor = qobject_cast<UInt16Editor*>( editor );
256  uInt16Editor->setData( uInt16 );
257  }
258  else if( data.canConvert<UInt32>() )
259  {
260  UInt32 uInt32 = data.value<UInt32>();
261  UInt32Editor* uInt32Editor = qobject_cast<UInt32Editor*>( editor );
262  uInt32Editor->setData( uInt32 );
263  }
264  else if( data.canConvert<UInt64>() )
265  {
266  UInt64 uInt64 = data.value<UInt64>();
267  UInt64Editor* uInt64Editor = qobject_cast<UInt64Editor*>( editor );
268  uInt64Editor->setData( uInt64 );
269  }
270  else if( data.canConvert<Float32>() )
271  {
272  Float32 float32 = data.value<Float32>();
273  Float32Editor* float32Editor = qobject_cast<Float32Editor*>( editor );
274  float32Editor->setData( float32 );
275  }
276  else if( data.canConvert<Float64>() )
277  {
278  Float64 float64 = data.value<Float64>();
279  Float64Editor* float64Editor = qobject_cast<Float64Editor*>( editor );
280  float64Editor->setData( float64 );
281  }
282  else if( data.canConvert<Char8>() )
283  {
284  Char8 char8 = data.value<Char8>();
285  Char8Editor* char8Editor = qobject_cast<Char8Editor*>( editor );
286  char8Editor->setData( char8 );
287  }
288  else if( data.canConvert<Utf8>() )
289  {
290  Utf8 utf8 = data.value<Utf8>();
291  Utf8Editor* utf8Editor = qobject_cast<Utf8Editor*>( editor );
292  utf8Editor->setData( utf8 );
293  }
294  else
295  QStyledItemDelegate::setEditorData( editor, index );
296 }
297 
298 void PODDelegate::setModelData( QWidget* editor, QAbstractItemModel* model, const QModelIndex& index ) const
299 {
300  if( mTool->isReadOnly() )
301  return;
302 
303  QVariant data = index.data();
304 
305  if( data.canConvert<Binary8>() )
306  {
307  Binary8Editor* binary8Editor = qobject_cast<Binary8Editor*>( editor );
308  model->setData( index, QVariant::fromValue(binary8Editor->data()) );
309  }
310  else if( data.canConvert<Octal8>() )
311  {
312  Octal8Editor* octal8Editor = qobject_cast<Octal8Editor*>( editor );
313  model->setData( index, QVariant::fromValue(octal8Editor->data()) );
314  }
315  else if( data.canConvert<Hexadecimal8>() )
316  {
317  Hexadecimal8Editor* hexadecimal8Editor = qobject_cast<Hexadecimal8Editor*>( editor );
318  model->setData( index, QVariant::fromValue(hexadecimal8Editor->data()) );
319  }
320  else if( data.canConvert<SInt8>() )
321  {
322  SInt8Editor* sInt8Editor = qobject_cast<SInt8Editor*>( editor );
323  model->setData( index, QVariant::fromValue(sInt8Editor->data()) );
324  }
325  else if( data.canConvert<SInt16>() )
326  {
327  SInt16Editor* sInt16Editor = qobject_cast<SInt16Editor*>( editor );
328  model->setData( index, QVariant::fromValue(sInt16Editor->data()) );
329  }
330  else if( data.canConvert<SInt32>() )
331  {
332  SInt32Editor* sInt32Editor = qobject_cast<SInt32Editor*>( editor );
333  model->setData( index, QVariant::fromValue(sInt32Editor->data()) );
334  }
335  else if( data.canConvert<SInt64>() )
336  {
337  SInt64Editor* sInt64Editor = qobject_cast<SInt64Editor*>( editor );
338  model->setData( index, QVariant::fromValue(sInt64Editor->data()) );
339  }
340  else if( data.canConvert<UInt8>() )
341  {
342  UInt8Editor* uInt8Editor = qobject_cast<UInt8Editor*>( editor );
343  model->setData( index, QVariant::fromValue(uInt8Editor->data()) );
344  }
345  else if( data.canConvert<UInt16>() )
346  {
347  UInt16Editor* uInt16Editor = qobject_cast<UInt16Editor*>( editor );
348  model->setData( index, QVariant::fromValue(uInt16Editor->data()) );
349  }
350  else if( data.canConvert<UInt32>() )
351  {
352  UInt32Editor* uInt32Editor = qobject_cast<UInt32Editor*>( editor );
353  model->setData( index, QVariant::fromValue(uInt32Editor->data()) );
354  }
355  else if( data.canConvert<UInt64>() )
356  {
357  UInt64Editor* uInt64Editor = qobject_cast<UInt64Editor*>( editor );
358  model->setData( index, QVariant::fromValue(uInt64Editor->data()) );
359  }
360  else if( data.canConvert<Float32>() )
361  {
362  Float32Editor* float32Editor = qobject_cast<Float32Editor*>( editor );
363  model->setData( index, QVariant::fromValue(float32Editor->data()) );
364  }
365  else if( data.canConvert<Float64>() )
366  {
367  Float64Editor* float64Editor = qobject_cast<Float64Editor*>( editor );
368  model->setData( index, QVariant::fromValue(float64Editor->data()) );
369  }
370  else if( data.canConvert<Char8>() )
371  {
372  Char8Editor* char8Editor = qobject_cast<Char8Editor*>( editor );
373  model->setData( index, QVariant::fromValue(char8Editor->data()) );
374  }
375  else if( data.canConvert<Utf8>() )
376  {
377  Utf8Editor* utf8Editor = qobject_cast<Utf8Editor*>( editor );
378  model->setData( index, QVariant::fromValue(utf8Editor->data()) );
379  }
380  else
381  QStyledItemDelegate::setModelData( editor, model, index );
382 }
383 
384 QString PODDelegate::displayText( const QVariant& data, const QLocale& locale ) const
385 {
386  QString result;
387 
388  if( data.canConvert<Binary8>() )
389  {
390  Binary8 binary8 = data.value<Binary8>();
391  result = binary8.toString();
392  }
393  else if( data.canConvert<Octal8>() )
394  {
395  Octal8 octal8 = data.value<Octal8>();
396  result = octal8.toString();
397  }
398  else if( data.canConvert<Hexadecimal8>() )
399  {
400  Hexadecimal8 hexadecimal8 = data.value<Hexadecimal8>();
401  result = hexadecimal8.toString();
402  }
403  else if( data.canConvert<SInt8>() )
404  {
405  SInt8 sInt8 = data.value<SInt8>();
406  result = sInt8.toString();
407  }
408  else if( data.canConvert<SInt16>() )
409  {
410  SInt16 sInt16 = data.value<SInt16>();
411  result = sInt16.toString();
412  }
413  else if( data.canConvert<SInt32>() )
414  {
415  SInt32 sInt32 = data.value<SInt32>();
416  result = sInt32.toString();
417  }
418  else if( data.canConvert<SInt64>() )
419  {
420  SInt64 sInt64 = data.value<SInt64>();
421  result = sInt64.toString();
422  }
423  else if( data.canConvert<UInt8>() )
424  {
425  UInt8 uInt8 = data.value<UInt8>();
426  result = uInt8.toString( mTool->isUnsignedAsHex() );
427  }
428  else if( data.canConvert<UInt16>() )
429  {
430  UInt16 uInt16 = data.value<UInt16>();
431  result = uInt16.toString( mTool->isUnsignedAsHex() );
432  }
433  else if( data.canConvert<UInt32>() )
434  {
435  UInt32 uInt32 = data.value<UInt32>();
436  result = uInt32.toString( mTool->isUnsignedAsHex() );
437  }
438  else if( data.canConvert<UInt64>() )
439  {
440  UInt64 uInt64 = data.value<UInt64>();
441  result = uInt64.toString( mTool->isUnsignedAsHex() );
442  }
443  else if( data.canConvert<Float32>() )
444  {
445  Float32 float32 = data.value<Float32>();
446  result = float32.toString();
447  }
448  else if( data.canConvert<Float64>() )
449  {
450  Float64 float64 = data.value<Float64>();
451  result = float64.toString();
452  }
453  else if( data.canConvert<Char8>() )
454  {
455  Char8 char8 = data.value<Char8>();
456  result = char8.toString();
457  }
458  else if( data.canConvert<Utf8>() )
459  {
460  Utf8 utf8 = data.value<Utf8>();
461  result = utf8.toString();
462  }
463  else
464  result = QStyledItemDelegate::displayText( data, locale );
465 
466  return result;
467 }
468 
469 // QSize PODDelegate::updateEditorGeometry( QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index ) const
470 // {
471 // editor->setGeometry(option.rect);
472 // }
473 
474 void PODDelegate::onEditorDone()
475 {
476  QWidget* editor = qobject_cast<QWidget*>( sender() );
477  mEditor = 0;
478  emit commitData( editor );
479  emit closeEditor( editor );
480 }
481 
482 void PODDelegate::onReadOnlyChanged( bool isReadOnly ) const
483 {
484  if( mEditor )
485  // going by property is slower, but saves writing this call for every widget
486  mEditor->setProperty( "readOnly", isReadOnly );
487 }
488 
489 PODDelegate::~PODDelegate() {}
490 
491 }
UInt16Editor::setData
void setData(UInt16 data)
Definition: uint16editor.cpp:37
UInt32
Definition: uint32.h:31
Float32Editor
Definition: float32editor.h:32
UInt64::toString
QString toString(bool asHex) const
Definition: uint64.h:48
SInt64Editor::setData
void setData(SInt64 data)
Definition: sint64editor.cpp:31
UInt32Editor
Definition: uint32editor.h:31
SInt16
Definition: sint16.h:31
sint32editor.h
uint32editor.h
UInt32Editor::data
UInt32 data
Definition: uint32editor.h:34
SInt32Editor::data
SInt32 data
Definition: sint32editor.h:34
SInt32
Definition: sint32.h:31
Hexadecimal8Editor::data
Hexadecimal8 data
Definition: hexadecimal8editor.h:34
Octal8::value
quint8 value
Definition: octal8.h:41
SInt32Editor::setData
void setData(SInt32 data)
Definition: sint32editor.cpp:38
UInt8Editor::data
UInt8 data
Definition: uint8editor.h:34
SInt8
Definition: sint8.h:31
Char8Editor::data
Char8 data
Definition: char8editor.h:38
poddelegate.h
octal8editor.h
Kasten2::PODDecoderTool
Definition: poddecodertool.h:51
QWidget
float64editor.h
Kasten2::PODDelegate::PODDelegate
PODDelegate(PODDecoderTool *tool, QObject *parent=0)
Definition: poddelegate.cpp:49
UInt8::value
quint8 value
Definition: uint8.h:41
UInt16Editor::data
UInt16 data
Definition: uint16editor.h:34
Float32Editor::data
Float32 data
Definition: float32editor.h:35
UInt8
Definition: uint8.h:31
UInt8Editor::setData
void setData(UInt8 data)
Definition: uint8editor.cpp:37
SInt8::value
qint8 value
Definition: sint8.h:41
UInt16::toString
QString toString(bool asHex) const
Definition: uint16.h:48
Utf8Editor::data
Utf8 data
Definition: utf8editor.h:35
Utf8::value
QChar value
Definition: utf8.h:41
Binary8
Definition: binary8.h:31
QObject
Kasten2::PODDecoderTool::isReadOnly
bool isReadOnly() const
Definition: poddecodertool.cpp:94
SInt32::toString
QString toString() const
Definition: sint32.h:48
Binary8Editor::data
Binary8 data
Definition: binary8editor.h:34
QStyledItemDelegate
Float32::toString
QString toString() const
Definition: float32.h:48
Hexadecimal8
Definition: hexadecimal8.h:31
Octal8Editor::data
Octal8 data
Definition: octal8editor.h:34
Hexadecimal8Editor
Definition: hexadecimal8editor.h:31
Float64::value
double value
Definition: float64.h:41
Binary8Editor
Definition: binary8editor.h:31
binary8editor.h
hexadecimal8editor.h
sint16editor.h
float32editor.h
uint16editor.h
SInt8Editor
Definition: sint8editor.h:31
Octal8Editor::setData
void setData(Octal8 data)
Definition: octal8editor.cpp:31
poddecodertool.h
Utf8Editor
Definition: utf8editor.h:32
SInt32::value
qint32 value
Definition: sint32.h:41
Float64::toString
QString toString() const
Definition: float64.h:48
Kasten2::PODDelegate::displayText
virtual QString displayText(const QVariant &value, const QLocale &locale) const
Definition: poddelegate.cpp:384
Kasten2::PODDelegate::setModelData
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
Definition: poddelegate.cpp:298
UIntSpinBox::setBase
void setBase(int base)
Definition: uintspinbox.h:109
SInt64Editor
Definition: sint64editor.h:31
Kasten2::PODDelegate::setEditorData
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const
Definition: poddelegate.cpp:200
Float32
Definition: float32.h:31
UInt32::value
quint32 value
Definition: uint32.h:41
Utf8
Definition: utf8.h:31
SInt16Editor::setData
void setData(SInt16 data)
Definition: sint16editor.cpp:38
UInt8::toString
QString toString(bool asHex) const
Definition: uint8.h:48
SInt16Editor::data
SInt16 data
Definition: sint16editor.h:34
UInt64
Definition: uint64.h:31
SInt16Editor
Definition: sint16editor.h:31
Kasten2::PODDelegate::~PODDelegate
virtual ~PODDelegate()
Definition: poddelegate.cpp:489
Char8Editor::setData
void setData(Char8 data)
Definition: char8editor.cpp:81
Float32Editor::setData
void setData(Float32 data)
Definition: float32editor.cpp:44
Float64Editor::data
Float64 data
Definition: float64editor.h:35
Kasten2::PODDecoderTool::charCodec
Okteta::CharCodec * charCodec() const
Definition: poddecodertool.h:134
Octal8::toString
QString toString() const
Definition: octal8.h:48
Binary8::toString
QString toString() const
Definition: binary8.h:48
Kasten2::PODDelegate::createEditor
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: poddelegate.cpp:77
SInt16::value
qint16 value
Definition: sint16.h:41
Char8::toString
QString toString() const
Definition: char8.h:52
QAbstractItemModel
Hexadecimal8::toString
QString toString() const
Definition: hexadecimal8.h:48
SInt64::value
qint64 value
Definition: sint64.h:41
Hexadecimal8Editor::setData
void setData(Hexadecimal8 data)
Definition: hexadecimal8editor.cpp:31
SInt64
Definition: sint64.h:31
Char8Editor
Definition: char8editor.h:35
Binary8Editor::setData
void setData(Binary8 data)
Definition: binary8editor.cpp:31
Float32::value
float value
Definition: float32.h:41
Octal8Editor
Definition: octal8editor.h:31
UInt64Editor::setData
void setData(UInt64 data)
Definition: uint64editor.cpp:31
uint8editor.h
Float64Editor::setData
void setData(Float64 data)
Definition: float64editor.cpp:38
UInt16::value
quint16 value
Definition: uint16.h:41
Octal8
Definition: octal8.h:31
SInt16::toString
QString toString() const
Definition: sint16.h:48
UInt64Editor::data
UInt64 data
Definition: uint64editor.h:34
Hexadecimal8::value
quint8 value
Definition: hexadecimal8.h:41
SInt8Editor::data
SInt8 data
Definition: sint8editor.h:34
SInt32Editor
Definition: sint32editor.h:31
Utf8Editor::setData
void setData(Utf8 data)
Definition: utf8editor.cpp:61
UInt64Editor
Definition: uint64editor.h:31
Kasten2::PODDecoderTool::isUnsignedAsHex
bool isUnsignedAsHex() const
Definition: poddecodertool.h:132
SInt8::toString
QString toString() const
Definition: sint8.h:48
Utf8::toString
QString toString() const
Definition: utf8.h:48
Char8
Definition: char8.h:35
UInt32::toString
QString toString(bool asHex) const
Definition: uint32.h:48
Binary8::value
quint8 value
Definition: binary8.h:41
Float64
Definition: float64.h:31
utf8editor.h
UInt16Editor
Definition: uint16editor.h:31
UInt8Editor
Definition: uint8editor.h:31
Float64Editor
Definition: float64editor.h:32
char8editor.h
sint64editor.h
uint64editor.h
UInt64::value
quint64 value
Definition: uint64.h:41
sint8editor.h
SInt64::toString
QString toString() const
Definition: sint64.h:48
UInt16
Definition: uint16.h:31
SInt8Editor::setData
void setData(SInt8 data)
Definition: sint8editor.cpp:38
UInt32Editor::setData
void setData(UInt32 data)
Definition: uint32editor.cpp:37
SInt64Editor::data
SInt64 data
Definition: sint64editor.h:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 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