• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • interfaces
 

interfaces

  • interfaces
  • khexedit
charcolumninterface.h
1/***************************************************************************
2 charcolumninterface.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 CHARCOLUMNINTERFACE_H
19#define CHARCOLUMNINTERFACE_H
20
21#include <tqstring.h>
22
23namespace KHE
24{
25
33class CharColumnInterface
34{
35 public:
37 enum KEncoding
38 {
40 LocalEncoding=0,
42 ISO8859_1Encoding=1,
44 CECP1047Encoding=2,
46 MaxEncodingId=0xFFFF
47 };
48
49 public: // set methods
56 virtual void setShowUnprintable( bool SU = true ) = 0;
62 virtual void setSubstituteChar( TQChar SC ) = 0;
69 virtual void setEncoding( KEncoding C ) = 0;
70
71
72 public: // get methods
77 virtual bool showUnprintable() const = 0;
81 virtual TQChar substituteChar() const = 0;
85 virtual KEncoding encoding() const = 0;
86};
87
88
94template<class T>
95CharColumnInterface *charColumnInterface( T *t )
96{
97 if( !t )
98 return 0;
99
100 return dynamic_cast<KHE::CharColumnInterface*>( t );
101}
102
103}
104
105#endif
KHE::CharColumnInterface
A simple interface for the access to the char column of a hex edit widget.
Definition: charcolumninterface.h:34
KHE::CharColumnInterface::substituteChar
virtual TQChar substituteChar() const =0
KHE::CharColumnInterface::setShowUnprintable
virtual void setShowUnprintable(bool SU=true)=0
sets whether "unprintable" chars (value<32) should be displayed in the text column with their corresp...
KHE::CharColumnInterface::encoding
virtual KEncoding encoding() const =0
KHE::CharColumnInterface::setSubstituteChar
virtual void setSubstituteChar(TQChar SC)=0
sets the substitute character for "unprintable" chars Default is '.
KHE::CharColumnInterface::showUnprintable
virtual bool showUnprintable() const =0
KHE::CharColumnInterface::KEncoding
KEncoding
encoding used to display the symbols in the text column
Definition: charcolumninterface.h:38
KHE::CharColumnInterface::LocalEncoding
@ LocalEncoding
the encoding of your shell.
Definition: charcolumninterface.h:40
KHE::CharColumnInterface::ISO8859_1Encoding
@ ISO8859_1Encoding
extended ASCII encoding, also known as Latin1
Definition: charcolumninterface.h:42
KHE::CharColumnInterface::setEncoding
virtual void setEncoding(KEncoding C)=0
sets the encoding of the text column.
KHE
KHE (short for KHexEdit) is KDE's namespace for all things related to the viewing/editing of bytes.
Definition: byteseditinterface.h:33
KHE::charColumnInterface
CharColumnInterface * charColumnInterface(T *t)
tries to get the charcolumn interface of t
Definition: charcolumninterface.h:95

interfaces

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

interfaces

Skip menu "interfaces"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for interfaces by doxygen 1.9.4
This website is maintained by Timothy Pearson.