• 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 
23 namespace KHE
24 {
25 
33 class 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 
94 template<class T>
95 CharColumnInterface *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::encoding
virtual KEncoding encoding() const =0
KHE::CharColumnInterface
A simple interface for the access to the char column of a hex edit widget.
Definition: charcolumninterface.h:33
KHE::CharColumnInterface::LocalEncoding
the encoding of your shell.
Definition: charcolumninterface.h:40
KHE::CharColumnInterface::substituteChar
virtual TQChar substituteChar() const =0
KHE::charColumnInterface
CharColumnInterface * charColumnInterface(T *t)
tries to get the charcolumn interface of t
Definition: charcolumninterface.h:95
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::showUnprintable
virtual bool showUnprintable() const =0
KHE
KHE (short for KHexEdit) is KDE's namespace for all things related to the viewing/editing of bytes...
Definition: byteseditinterface.h:32
KHE::CharColumnInterface::setEncoding
virtual void setEncoding(KEncoding C)=0
sets the encoding of the text column.
KHE::CharColumnInterface::setSubstituteChar
virtual void setSubstituteChar(TQChar SC)=0
sets the substitute character for "unprintable" chars Default is '.
KHE::CharColumnInterface::ISO8859_1Encoding
extended ASCII encoding, also known as Latin1
Definition: charcolumninterface.h:42
KHE::CharColumnInterface::KEncoding
KEncoding
encoding used to display the symbols in the text column
Definition: charcolumninterface.h:37

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
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for interfaces by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |