charcolumninterface.h
/***************************************************************************
charcolumninterface.h - description
-------------------
begin : Fri Sep 12 2003
copyright : (C) 2003 by Friedrich W. H. Kossebau
email : Friedrich.W.H@Kossebau.de
***************************************************************************/
/***************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License version 2 as published by the Free Software Foundation. *
* *
***************************************************************************/
#ifndef CHARCOLUMNINTERFACE_H
#define CHARCOLUMNINTERFACE_H
#include <qstring.h>
namespace KHE
{
class CharColumnInterface
{
public:
enum KEncoding
{
LocalEncoding=0,
ISO8859_1Encoding=1,
CECP1047Encoding=2,
MaxEncodingId=0xFFFF
};
public: // set methods
virtual void setShowUnprintable( bool SU = true ) = 0;
virtual void setSubstituteChar( QChar SC ) = 0;
virtual void setEncoding( KEncoding C ) = 0;
public: // get methods
virtual bool showUnprintable() const = 0;
virtual QChar substituteChar() const = 0;
virtual KEncoding encoding() const = 0;
};
template<class T>
CharColumnInterface *charColumnInterface( T *t )
{
if( !t )
return 0;
return static_cast<CharColumnInterface*>( t->qt_cast("KHE::CharColumnInterface") );
}
}
#endif
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::LocalEncoding
the encoding of your shell.
Definition: charcolumninterface.h:40
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::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:42
KHE::CharColumnInterface::KEncoding
KEncoding
encoding used to display the symbols in the text column
Definition: charcolumninterface.h:37

KDE Home | KDE Accessibility Home | Description of Access Keys