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

KHexEdit

  • 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
24namespace KHE
25{
26
33class 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
96template<class T>
97CharColumnInterface *charColumnInterface( T *t )
98{
99 return t ? qobject_cast<KHE::CharColumnInterface *>( t ) : 0;
100}
101
102}
103
104Q_DECLARE_INTERFACE( KHE::CharColumnInterface, "org.kde.khe.charcolumninterface/1.0" )
105
106#endif
KHE::CharColumnInterface
A simple interface for the access to the char column of a hex edit widget.
Definition: charcolumninterface.h:34
KHE::CharColumnInterface::~CharColumnInterface
virtual ~CharColumnInterface()
Definition: charcolumninterface.h:36
KHE::CharColumnInterface::setSubstituteChar
virtual void setSubstituteChar(QChar SC)=0
sets the substitute character for "unprintable" chars Default is '.
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::showUnprintable
virtual bool showUnprintable() const =0
KHE::CharColumnInterface::KEncoding
KEncoding
encoding used to display the symbols in the text column
Definition: charcolumninterface.h:41
KHE::CharColumnInterface::LocalEncoding
@ LocalEncoding
the encoding of your shell.
Definition: charcolumninterface.h:43
KHE::CharColumnInterface::MaxEncodingId
@ MaxEncodingId
Definition: charcolumninterface.h:49
KHE::CharColumnInterface::ISO8859_1Encoding
@ ISO8859_1Encoding
extended ASCII encoding, also known as Latin1
Definition: charcolumninterface.h:45
KHE::CharColumnInterface::CECP1047Encoding
@ CECP1047Encoding
Definition: charcolumninterface.h:47
KHE::CharColumnInterface::substituteChar
virtual QChar substituteChar() const =0
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:31
KHE::charColumnInterface
CharColumnInterface * charColumnInterface(T *t)
tries to get the charcolumn interface of t
Definition: charcolumninterface.h:97
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

Skip menu "kdelibs-4.14.38 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