• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.1 API Reference
  • KDE Home
  • Contact Us
 

KHexEdit

  • interfaces
  • khexedit
valuecolumninterface.h
Go to the documentation of this file.
1 /***************************************************************************
2  valuecolumninterface.h - description
3  -------------------
4  begin : Fri Sep 12 2003
5  copyright : (C) 2003 by Friedrich W. H. Kossebau
6  email : kossebau@kde.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Library General Public *
13  * License version 2 as published by the Free Software Foundation. *
14  * *
15  ***************************************************************************/
16 
17 
18 #ifndef KHE_VALUECOLUMNINTERFACE_H
19 #define KHE_VALUECOLUMNINTERFACE_H
20 
21 #include <QtCore/QObject>
22 
23 namespace KHE
24 {
25 
33 class ValueColumnInterface
34 {
35  public:
36  virtual ~ValueColumnInterface() {}
37 
38  public:
40  enum KCoding
41  {
43  HexadecimalCoding=0,
45  DecimalCoding=1,
47  OctalCoding=2,
49  BinaryCoding=3,
51  MaxCodingId=0xFFFF
52  };
53 
55  enum KResizeStyle
56  {
60  NoResize=0,
65  LockGrouping=1,
68  FullSizeUsage=2,
70  MaxResizeStyleId=0xFF
71  };
72 
73 
74  public: // get methods
78  virtual KResizeStyle resizeStyle() const = 0;
82  virtual int noOfBytesPerLine() const = 0;
83 
87  virtual KCoding coding() const = 0;
91  virtual int byteSpacingWidth() const = 0;
92 
96  virtual int noOfGroupedBytes() const = 0;
100  virtual int groupSpacingWidth() const = 0;
101 
105  virtual int binaryGapWidth() const = 0;
106 
107 
108  public: // set methods
114  virtual void setResizeStyle( KResizeStyle Style ) = 0;
120  virtual void setNoOfBytesPerLine( int NoCpL ) = 0;
121 
128  virtual void setCoding( KCoding C ) = 0;
134  virtual void setByteSpacingWidth( int BSW ) = 0;
135 
141  virtual void setNoOfGroupedBytes( int NoGB ) = 0;
147  virtual void setGroupSpacingWidth( int GSW ) = 0;
148 
154  virtual void setBinaryGapWidth( int BGW ) = 0;
155 };
156 
157 
162 template<class T>
163 ValueColumnInterface *valueColumnInterface( T *t )
164 {
165  return t ? qobject_cast<KHE::ValueColumnInterface *>( t ) : 0;
166 }
167 
168 }
169 
170 Q_DECLARE_INTERFACE( KHE::ValueColumnInterface, "org.kde.khe.valuecolumninterface/1.0" )
171 
172 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Mar 20 2013 07:24:10 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHexEdit

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

kdelibs-4.10.1 API Reference

Skip menu "kdelibs-4.10.1 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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