Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
interfaces
interfaces
interfaces
khexedit
valuecolumninterface.h
1
/***************************************************************************
2
valuecolumninterface.h - description
3
-------------------
4
begin : Fri Sep 12 2003
5
copyright : (C) 2003 by Friedrich W. H. Kossebau
6
email : Friedrich.W.H@Kossebau.de
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 VALUECOLUMNINTERFACE_H
19
#define VALUECOLUMNINTERFACE_H
20
21
namespace
KHE
22
{
23
32
class
ValueColumnInterface
33
{
34
public
:
36
enum
KCoding
37
{
39
HexadecimalCoding
=0,
41
DecimalCoding
=1,
43
OctalCoding
=2,
45
BinaryCoding
=3,
47
MaxCodingId=0xFFFF
48
};
49
51
enum
KResizeStyle
52
{
56
NoResize
=0,
61
LockGrouping
=1,
64
FullSizeUsage
=2,
66
MaxResizeStyleId=0xFF
67
};
68
69
70
public
:
// get methods
74
virtual
KResizeStyle
resizeStyle
()
const
= 0;
78
virtual
int
noOfBytesPerLine
()
const
= 0;
79
83
virtual
KCoding
coding
()
const
= 0;
87
virtual
int
byteSpacingWidth
()
const
= 0;
88
92
virtual
int
noOfGroupedBytes
()
const
= 0;
96
virtual
int
groupSpacingWidth
()
const
= 0;
97
101
virtual
int
binaryGapWidth
()
const
= 0;
102
103
104
public
:
// set methods
110
virtual
void
setResizeStyle
(
KResizeStyle
Style ) = 0;
116
virtual
void
setNoOfBytesPerLine
(
int
NoCpL ) = 0;
117
124
virtual
void
setCoding
(
KCoding
C ) = 0;
130
virtual
void
setByteSpacingWidth
(
int
BSW ) = 0;
131
137
virtual
void
setNoOfGroupedBytes
(
int
NoGB ) = 0;
143
virtual
void
setGroupSpacingWidth
(
int
GSW ) = 0;
144
150
virtual
void
setBinaryGapWidth
(
int
BGW ) = 0;
151
};
152
153
159
template
<
class
T>
160
ValueColumnInterface
*
valueColumnInterface
( T *t )
161
{
162
if
( !t )
163
return
0;
164
165
return
dynamic_cast<
KHE::ValueColumnInterface
*
>
( t );
166
}
167
168
}
169
170
#endif
interfaces
Skip menu "interfaces"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
interfaces
Skip menu "interfaces"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdecore
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdeioslave
http
tdefile
tdeio
tdeioexec
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet