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

KHexEdit

  • sources
  • kde-4.12
  • kdelibs
  • interfaces
  • khexedit
charcolumninterface.h
Go to the documentation of this file.
1 /***************************************************************************
2  charcolumninterface.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_CHARCOLUMNINTERFACE_H
19 #define KHE_CHARCOLUMNINTERFACE_H
20 
21 #include <QtCore/QChar>
22 #include <QtCore/QObject>
23 
24 namespace KHE
25 {
26 
33 class CharColumnInterface
34 {
35  public:
36  virtual ~CharColumnInterface(){}
37 
38  public:
40  enum KEncoding
41  {
43  LocalEncoding=0,
45  ISO8859_1Encoding=1,
47  CECP1047Encoding=2,
49  MaxEncodingId=0xFFFF
50  };
51 
52  public: // set methods
59  virtual void setShowUnprintable( bool SU = true ) = 0;
65  virtual void setSubstituteChar( QChar SC ) = 0;
72  virtual void setEncoding( KEncoding C ) = 0;
73 
74 
75  public: // get methods
80  virtual bool showUnprintable() const = 0;
84  virtual QChar substituteChar() const = 0;
88  virtual KEncoding encoding() const = 0;
89 };
90 
91 
96 template<class T>
97 CharColumnInterface *charColumnInterface( T *t )
98 {
99  return t ? qobject_cast<KHE::CharColumnInterface *>( t ) : 0;
100 }
101 
102 }
103 
104 Q_DECLARE_INTERFACE( KHE::CharColumnInterface, "org.kde.khe.charcolumninterface/1.0" )
105 
106 #endif
KHE::CharColumnInterface::~CharColumnInterface
virtual ~CharColumnInterface()
Definition: charcolumninterface.h:36
KHE::CharColumnInterface::encoding
virtual KEncoding encoding() const =0
KHE::CharColumnInterface::substituteChar
virtual QChar substituteChar() 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::MaxEncodingId
Definition: charcolumninterface.h:49
KHE::CharColumnInterface::LocalEncoding
the encoding of your shell.
Definition: charcolumninterface.h:43
KHE::CharColumnInterface::CECP1047Encoding
Definition: charcolumninterface.h:47
KHE::charColumnInterface
CharColumnInterface * charColumnInterface(T *t)
tries to get the charcolumn interface of t
Definition: charcolumninterface.h:97
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::CharColumnInterface::setEncoding
virtual void setEncoding(KEncoding C)=0
sets the encoding of the text column.
KHE::CharColumnInterface::setSubstituteChar
virtual void setSubstituteChar(QChar 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:45
KHE::CharColumnInterface::KEncoding
KEncoding
encoding used to display the symbols in the text column
Definition: charcolumninterface.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:13 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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