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

interfaces

Classes | Functions
KHE Namespace Reference

Classes

class  BytesEditInterface
 
class  CharColumnInterface
 
class  ClipboardInterface
 
class  ValueColumnInterface
 
class  ZoomInterface
 

Functions

template<class T >
BytesEditInterface * bytesEditInterface (T *t)
 
TQWidget * createBytesEditWidget (TQWidget *Parent=0, const char *Name=0)
 
template<class T >
CharColumnInterface * charColumnInterface (T *t)
 
template<class T >
ClipboardInterface * clipboardInterface (T *t)
 
template<class T >
ValueColumnInterface * valueColumnInterface (T *t)
 
template<class T >
ZoomInterface * zoomInterface (T *t)
 

Detailed Description

KHE (short for KHexEdit) is KDE's namespace for all things related to the viewing/editing of bytes.

Since
3.2

Function Documentation

◆ bytesEditInterface()

template<class T >
BytesEditInterface * KHE::bytesEditInterface ( T *  t)
inline

tries to get the bytesedit interface of t

Returns
a pointer to the interface, otherwise 0
Author
Friedrich W. H. Kossebau Fried.nosp@m.rich.nosp@m..W.H@.nosp@m.Koss.nosp@m.ebau..nosp@m.de
Since
3.2

Definition at line 157 of file byteseditinterface.h.

◆ charColumnInterface()

template<class T >
CharColumnInterface * KHE::charColumnInterface ( T *  t)

tries to get the charcolumn interface of t

Returns
a pointer to the interface, otherwise 0
Author
Friedrich W. H. Kossebau Fried.nosp@m.rich.nosp@m..W.H@.nosp@m.Koss.nosp@m.ebau..nosp@m.de
Since
3.2

Definition at line 95 of file charcolumninterface.h.

◆ clipboardInterface()

template<class T >
ClipboardInterface * KHE::clipboardInterface ( T *  t)

tries to get the clipboard interface of t

Returns
a pointer to the interface, otherwise 0
Author
Friedrich W. H. Kossebau Fried.nosp@m.rich.nosp@m..W.H@.nosp@m.Koss.nosp@m.ebau..nosp@m.de
Since
3.2

Definition at line 76 of file khexedit/clipboardinterface.h.

◆ createBytesEditWidget()

TQWidget * KHE::createBytesEditWidget ( TQWidget *  Parent = 0,
const char *  Name = 0 
)
inline

tries to create an instance of a hexedit widget for arrays of chars (char[])

Usage:

#include <khexedit/byteseditinterface.h>
#include <khexedit/valuecolumninterface.h>
#include <khexedit/charcolumninterface.h>
#include <khexedit/clipboardinterface.h>
...
TQWidget *BytesEditWidget = KHE::createBytesEditWidget( this, "BytesEditWidget" );
// is e.g. tdeutils (incl. khexedit2) installed, so a widget could be found and created?
if( BytesEditWidget )
{
� // fetch the editor interface
� KHE::BytesEditInterface *BytesEdit = KHE::bytesEditInterface( BytesEditWidget );
� Q_ASSERT( BytesEdit ); // This should not fail!
� // now use the editor.
� BytesEdit->setData( Buffer, BufferSize, -1 );
� BytesEdit->setMaxDataSize( BufferSize );
� BytesEdit->setReadOnly( false );
� BytesEdit->setAutoDelete( true );
� KHE::ValueColumnInterface *ValueColumn = KHE::valueColumnInterface( BytesEditWidget );
� if( ValueColumn )
� {
� � ValueColumn->setCoding( KHE::ValueColumnInterface::BinaryCoding );
� � ValueColumn->setByteSpacingWidth( 2 );
� � ValueColumn->setNoOfGroupedBytes( 4 );
� � ValueColumn->setGroupSpacingWidth( 12 );
� }
� KHE::CharColumnInterface *CharColumn = KHE::charColumnInterface( BytesEditWidget );
� if( CharColumn )
� {
� � CharColumn->setShowUnprintable( false );
� � CharColumn->setSubstituteChar( '*' );
� }
� KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget );
� if( Clipboard )
� {
� � // Yes, use BytesEditWidget, not Clipboard, because that's the TQObject, indeed hacky...
� � connect( BytesEditWidget, TQ_SIGNAL(copyAvailable(bool)), this, TQ_SLOT(offerCopy(bool)) );
� }
}
KHE::BytesEditInterface
An interface for a hex edit editor/viewer for arrays of byte.
Definition: byteseditinterface.h:77
KHE::CharColumnInterface
A simple interface for the access to the char column of a hex edit widget.
Definition: charcolumninterface.h:34
KHE::ClipboardInterface
A simple interface for interaction with the clipboard.
Definition: khexedit/clipboardinterface.h:47
KHE::ValueColumnInterface
Interface for the value displaying column of a hexedit widget.
Definition: valuecolumninterface.h:33
KHE::ValueColumnInterface::BinaryCoding
@ BinaryCoding
bit by bit coding
Definition: valuecolumninterface.h:45
KHE::createBytesEditWidget
TQWidget * createBytesEditWidget(TQWidget *Parent=0, const char *Name=0)
tries to create an instance of a hexedit widget for arrays of chars (char[])
Definition: byteseditinterface.h:221
KHE::charColumnInterface
CharColumnInterface * charColumnInterface(T *t)
tries to get the charcolumn interface of t
Definition: charcolumninterface.h:95
KHE::bytesEditInterface
BytesEditInterface * bytesEditInterface(T *t)
tries to get the bytesedit interface of t
Definition: byteseditinterface.h:157
KHE::valueColumnInterface
ValueColumnInterface * valueColumnInterface(T *t)
tries to get the valuecolumn interface of t
Definition: valuecolumninterface.h:160
KHE::clipboardInterface
ClipboardInterface * clipboardInterface(T *t)
tries to get the clipboard interface of t
Definition: khexedit/clipboardinterface.h:76
Parameters
Parentparent widget
Nameidentifier
Returns
a pointer to the widget, otherwise 0
Author
Friedrich W. H. Kossebau Fried.nosp@m.rich.nosp@m..W.H@.nosp@m.Koss.nosp@m.ebau..nosp@m.de
See also
BytesEditInterface, ValueColumnInterface, CharColumnInterface, ZoomInterface, ClipboardInterface
Since
3.2

Definition at line 221 of file byteseditinterface.h.

◆ valueColumnInterface()

template<class T >
ValueColumnInterface * KHE::valueColumnInterface ( T *  t)

tries to get the valuecolumn interface of t

Returns
a pointer to the interface, otherwise 0
Author
Friedrich W. H. Kossebau Fried.nosp@m.rich.nosp@m..W.H@.nosp@m.Koss.nosp@m.ebau..nosp@m.de
Since
3.2

Definition at line 160 of file valuecolumninterface.h.

◆ zoomInterface()

template<class T >
ZoomInterface * KHE::zoomInterface ( T *  t)

tries to get the zoom interface of t

Returns
a pointer to the interface, otherwise 0
Author
Friedrich W. H. Kossebau Fried.nosp@m.rich.nosp@m..W.H@.nosp@m.Koss.nosp@m.ebau..nosp@m.de
Since
3.2

Definition at line 69 of file zoominterface.h.

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.