summaryrefslogtreecommitdiffstats
path: root/khexedit/parts
diff options
context:
space:
mode:
Diffstat (limited to 'khexedit/parts')
-rw-r--r--khexedit/parts/kbytesedit/kbyteseditwidget.cpp18
-rw-r--r--khexedit/parts/kbytesedit/kbyteseditwidget.h12
-rw-r--r--khexedit/parts/kpart/khebrowserextension.cpp8
-rw-r--r--khexedit/parts/kpart/khebrowserextension.h4
-rw-r--r--khexedit/parts/kpart/khepart.cpp32
-rw-r--r--khexedit/parts/kpart/khepart.h2
-rw-r--r--khexedit/parts/kpart/khepartfactory.cpp8
-rw-r--r--khexedit/parts/kpart/khepartfactory.h6
8 files changed, 45 insertions, 45 deletions
diff --git a/khexedit/parts/kbytesedit/kbyteseditwidget.cpp b/khexedit/parts/kbytesedit/kbyteseditwidget.cpp
index 4cc91ab..cb2b549 100644
--- a/khexedit/parts/kbytesedit/kbyteseditwidget.cpp
+++ b/khexedit/parts/kbytesedit/kbyteseditwidget.cpp
@@ -16,7 +16,7 @@
// qt specific
-#include <qlayout.h>
+#include <tqlayout.h>
// kde specific
#include <klocale.h>
#include <kgenericfactory.h>
@@ -26,14 +26,14 @@
#include "kbyteseditwidget.h"
-KBytesEditWidget::KBytesEditWidget( QWidget *parent, const char *name, const QStringList & )
- : QWidget( parent, name)
+KBytesEditWidget::KBytesEditWidget( TQWidget *parent, const char *name, const TQStringList & )
+ : TQWidget( parent, name)
{
- QHBoxLayout* Layout = new QHBoxLayout( this );
+ TQHBoxLayout* Layout = new TQHBoxLayout( this );
BytesEdit = new KHE::KBytesEdit( this, "BytesEdit" );
Layout->addWidget( BytesEdit );
-// connect( _editor, SIGNAL( canUndo(bool) ), this, SIGNAL( canUndo(bool) ) );
- connect( BytesEdit, SIGNAL(copyAvailable( bool )), this, SIGNAL(copyAvailable( bool )) );
+// connect( _editor, TQT_SIGNAL( canUndo(bool) ), this, TQT_SIGNAL( canUndo(bool) ) );
+ connect( BytesEdit, TQT_SIGNAL(copyAvailable( bool )), this, TQT_SIGNAL(copyAvailable( bool )) );
}
@@ -144,7 +144,7 @@ void KBytesEditWidget::setShowUnprintable( bool SU )
BytesEdit->setShowUnprintable( SU );
}
-void KBytesEditWidget::setSubstituteChar( QChar SC )
+void KBytesEditWidget::setSubstituteChar( TQChar SC )
{
BytesEdit->setSubstituteChar( SC );
}
@@ -230,7 +230,7 @@ bool KBytesEditWidget::showUnprintable() const
return BytesEdit->showUnprintable();
}
-QChar KBytesEditWidget::substituteChar() const
+TQChar KBytesEditWidget::substituteChar() const
{
return BytesEdit->substituteChar();
}
@@ -253,7 +253,7 @@ void KBytesEditWidget::repaintRange( int i1, int i2 )
}
-void KBytesEditWidget::insert( const QByteArray &D )
+void KBytesEditWidget::insert( const TQByteArray &D )
{
BytesEdit->insert( D );
}
diff --git a/khexedit/parts/kbytesedit/kbyteseditwidget.h b/khexedit/parts/kbytesedit/kbyteseditwidget.h
index 78e4dba..72bfeb6 100644
--- a/khexedit/parts/kbytesedit/kbyteseditwidget.h
+++ b/khexedit/parts/kbytesedit/kbyteseditwidget.h
@@ -19,7 +19,7 @@
#define KBYTESEDITWIDGET_H
// qt specific
-#include <qwidget.h>
+#include <tqwidget.h>
// kde specific
#include <khexedit/byteseditinterface.h>
#include <khexedit/valuecolumninterface.h>
@@ -38,7 +38,7 @@ class KBytesEdit;
@author Friedrich W. H. Kossebau <Friedrich.W.H@Kossebau.de>
@version 0.1
**/
-class KBytesEditWidget : public QWidget, public KHE::BytesEditInterface,
+class KBytesEditWidget : public TQWidget, public KHE::BytesEditInterface,
public KHE::ValueColumnInterface, public KHE::CharColumnInterface,
public KHE::ZoomInterface, public KHE::ClipboardInterface
{
@@ -46,7 +46,7 @@ class KBytesEditWidget : public QWidget, public KHE::BytesEditInterface,
public:
/** constructor API as demanded by KGenericFactory */
- KBytesEditWidget( QWidget *parent, const char *name, const QStringList & = QStringList() );
+ KBytesEditWidget( TQWidget *parent, const char *name, const TQStringList & = TQStringList() );
public: // bytesedit interface
/** hands over to the editor a new byte array.
@@ -133,7 +133,7 @@ class KBytesEditWidget : public QWidget, public KHE::BytesEditInterface,
/** sets the substitute character for "unprintable" chars
* returns true if there was a change
*/
- virtual void setSubstituteChar( QChar SC );
+ virtual void setSubstituteChar( TQChar SC );
/** sets the encoding of the char column. Default is KHE::LocalEncoding.
* If the encoding is not available the format will not be changed. */
virtual void setEncoding( KEncoding C );
@@ -142,13 +142,13 @@ class KBytesEditWidget : public QWidget, public KHE::BytesEditInterface,
*/
virtual bool showUnprintable() const;
/** returns the actually used substitute character for "unprintable" chars, default is '.' */
- virtual QChar substituteChar() const;
+ virtual TQChar substituteChar() const;
/** */
virtual KEncoding encoding() const;
public: // edit interface
/** */
- virtual void insert( const QByteArray &D );
+ virtual void insert( const TQByteArray &D );
/** de-/selects all data */
virtual void selectAll( bool select );
/** returns true if there is a selected range in the array */
diff --git a/khexedit/parts/kpart/khebrowserextension.cpp b/khexedit/parts/kpart/khebrowserextension.cpp
index d4fc3f3..a08aa0d 100644
--- a/khexedit/parts/kpart/khebrowserextension.cpp
+++ b/khexedit/parts/kpart/khebrowserextension.cpp
@@ -29,7 +29,7 @@ KHexEditBrowserExtension::KHexEditBrowserExtension( KHexEditPart *P )
: KParts::BrowserExtension( P, "khexeditpartbrowserextension" ),
HexEditPart( P )
{
- connect( HexEditPart->HexEdit, SIGNAL( selectionChanged() ), this, SLOT( slotSelectionChanged() ) );
+ connect( HexEditPart->HexEdit, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotSelectionChanged() ) );
}
void KHexEditBrowserExtension::copy()
@@ -44,7 +44,7 @@ void KHexEditBrowserExtension::slotSelectionChanged()
}
-void KHexEditBrowserExtension::saveState( QDataStream &stream )
+void KHexEditBrowserExtension::saveState( TQDataStream &stream )
{
KParts::BrowserExtension::saveState( stream );
@@ -59,7 +59,7 @@ void KHexEditBrowserExtension::saveState( QDataStream &stream )
}
-void KHexEditBrowserExtension::restoreState( QDataStream &stream )
+void KHexEditBrowserExtension::restoreState( TQDataStream &stream )
{
KParts::BrowserExtension::restoreState( stream );
@@ -67,7 +67,7 @@ void KHexEditBrowserExtension::restoreState( QDataStream &stream )
int VisibleBufferColumns;
int ResizeStyle;
int Coding;
- QString EncodingName;
+ TQString EncodingName;
int ShowUnprintable;
int x, y;
int Position;
diff --git a/khexedit/parts/kpart/khebrowserextension.h b/khexedit/parts/kpart/khebrowserextension.h
index 4638944..67a6d45 100644
--- a/khexedit/parts/kpart/khebrowserextension.h
+++ b/khexedit/parts/kpart/khebrowserextension.h
@@ -39,8 +39,8 @@ class KHexEditBrowserExtension : public KParts::BrowserExtension
KHexEditBrowserExtension( KHexEditPart *P );
public: // KParts::BrowserExtension API
- virtual void saveState( QDataStream &stream );
- virtual void restoreState( QDataStream &stream );
+ virtual void saveState( TQDataStream &stream );
+ virtual void restoreState( TQDataStream &stream );
public slots:
/** copy text to clipboard */
diff --git a/khexedit/parts/kpart/khepart.cpp b/khexedit/parts/kpart/khepart.cpp
index e9b9ed5..1fa95fb 100644
--- a/khexedit/parts/kpart/khepart.cpp
+++ b/khexedit/parts/kpart/khepart.cpp
@@ -32,8 +32,8 @@ using namespace KHE;
static const char RCFileName[] = "khexedit2partui.rc";
-KHexEditPart::KHexEditPart( QWidget *ParentWidget, const char *WidgetName,
- QObject *Parent, const char *Name,
+KHexEditPart::KHexEditPart( TQWidget *ParentWidget, const char *WidgetName,
+ TQObject *Parent, const char *Name,
bool BrowserViewWanted )
: KParts::ReadOnlyPart( Parent, Name )
{
@@ -51,8 +51,8 @@ KHexEditPart::KHexEditPart( QWidget *ParentWidget, const char *WidgetName,
if( CopyAction )
{
- connect( HexEdit, SIGNAL(copyAvailable(bool)), CopyAction,SLOT(setEnabled(bool)) );
- connect( HexEdit, SIGNAL(selectionChanged()), this, SLOT(slotSelectionChanged()) );
+ connect( HexEdit, TQT_SIGNAL(copyAvailable(bool)), CopyAction,TQT_SLOT(setEnabled(bool)) );
+ connect( HexEdit, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()) );
CopyAction->setEnabled( false );
}
@@ -83,30 +83,30 @@ void KHexEditPart::setupActions( bool BrowserViewWanted )
{
KActionCollection *AC = actionCollection();
// create our actions
- CopyAction = BrowserViewWanted ? 0 : KStdAction::copy( HexEdit, SLOT(copy()), AC );
+ CopyAction = BrowserViewWanted ? 0 : KStdAction::copy( HexEdit, TQT_SLOT(copy()), AC );
- KStdAction::selectAll( this, SLOT(slotSelectAll()), AC );
- KStdAction::deselect( this, SLOT(slotUnselect()), AC );
+ KStdAction::selectAll( this, TQT_SLOT(slotSelectAll()), AC );
+ KStdAction::deselect( this, TQT_SLOT(slotUnselect()), AC );
// value encoding
CodingAction = new KSelectAction( i18n("&Value Coding"), 0, AC, "view_valuecoding" );
- QStringList List;
+ TQStringList List;
List.append( i18n("&Hexadecimal") );
List.append( i18n("&Decimal") );
List.append( i18n("&Octal") );
List.append( i18n("&Binary") );
CodingAction->setItems( List );
- connect( CodingAction, SIGNAL(activated(int)), this, SLOT(slotSetCoding(int)) );
+ connect( CodingAction, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetCoding(int)) );
// document encoding
EncodingAction = new KSelectAction( i18n("&Char Encoding"), 0, AC, "view_charencoding" );
EncodingAction->setItems( KCharCodec::codecNames() );
- connect( EncodingAction, SIGNAL(activated(int)), this, SLOT(slotSetEncoding(int)) );
+ connect( EncodingAction, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetEncoding(int)) );
- ShowUnprintableAction = new KToggleAction( i18n("Show &Unprintable Chars (<32)"), 0, this, SLOT(slotSetShowUnprintable()), actionCollection(), "view_showunprintable" );
+ ShowUnprintableAction = new KToggleAction( i18n("Show &Unprintable Chars (<32)"), 0, this, TQT_SLOT(slotSetShowUnprintable()), actionCollection(), "view_showunprintable" );
- KStdAction::zoomIn( HexEdit, SLOT(zoomIn()), actionCollection() );
- KStdAction::zoomOut( HexEdit, SLOT(zoomOut()), actionCollection() );
+ KStdAction::zoomIn( HexEdit, TQT_SLOT(zoomIn()), actionCollection() );
+ KStdAction::zoomOut( HexEdit, TQT_SLOT(zoomOut()), actionCollection() );
// resize style
ResizeStyleAction = new KSelectAction( i18n("&Resize Style"), 0, AC, "resizestyle" );
@@ -115,9 +115,9 @@ void KHexEditPart::setupActions( bool BrowserViewWanted )
List.append( i18n("&Lock Groups") );
List.append( i18n("&Full Size Usage") );
ResizeStyleAction->setItems( List );
- connect( ResizeStyleAction, SIGNAL(activated(int)), this, SLOT(slotSetResizeStyle(int)) );
+ connect( ResizeStyleAction, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetResizeStyle(int)) );
- ShowOffsetColumnAction = new KToggleAction( i18n("&Line Offset"), Key_F11, this, SLOT(slotToggleOffsetColumn()), AC, "view_lineoffset" );
+ ShowOffsetColumnAction = new KToggleAction( i18n("&Line Offset"), Key_F11, this, TQT_SLOT(slotToggleOffsetColumn()), AC, "view_lineoffset" );
// show buffer columns
ToggleColumnsAction = new KSelectAction( i18n("&Columns"), 0, AC, "togglecolumns" );
@@ -126,7 +126,7 @@ void KHexEditPart::setupActions( bool BrowserViewWanted )
List.append( i18n("&Chars Column") );
List.append( i18n("&Both Columns") );
ToggleColumnsAction->setItems( List );
- connect( ToggleColumnsAction, SIGNAL(activated(int)), this, SLOT(slotToggleValueCharColumns(int)) );
+ connect( ToggleColumnsAction, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotToggleValueCharColumns(int)) );
fitActionSettings();
diff --git a/khexedit/parts/kpart/khepart.h b/khexedit/parts/kpart/khepart.h
index 54befa0..0526462 100644
--- a/khexedit/parts/kpart/khepart.h
+++ b/khexedit/parts/kpart/khepart.h
@@ -49,7 +49,7 @@ class KHexEditPart : public KParts::ReadOnlyPart
friend class KHexEditBrowserExtension;
public:
- KHexEditPart( QWidget *ParentWidget, const char *WidgetName, QObject *Parent, const char *Name,
+ KHexEditPart( TQWidget *ParentWidget, const char *WidgetName, TQObject *Parent, const char *Name,
bool BrowserViewWanted );
virtual ~KHexEditPart();
diff --git a/khexedit/parts/kpart/khepartfactory.cpp b/khexedit/parts/kpart/khepartfactory.cpp
index f85d8a9..d3bac6c 100644
--- a/khexedit/parts/kpart/khepartfactory.cpp
+++ b/khexedit/parts/kpart/khepartfactory.cpp
@@ -57,11 +57,11 @@ KHexEditPartFactory::~KHexEditPartFactory()
}
-KParts::Part* KHexEditPartFactory::createPartObject( QWidget *ParentWidget, const char *WidgetName,
- QObject *Parent, const char *Name,
- const char *CN, const QStringList &/*args*/ )
+KParts::Part* KHexEditPartFactory::createPartObject( TQWidget *ParentWidget, const char *WidgetName,
+ TQObject *Parent, const char *Name,
+ const char *CN, const TQStringList &/*args*/ )
{
- QCString Classname( CN );
+ TQCString Classname( CN );
bool BrowserViewWanted = ( Classname == "Browser/View" );
//bool ReadOnlyWanted = (BrowserViewWanted || ( Classname == "KParts::ReadOnlyPart" ));
diff --git a/khexedit/parts/kpart/khepartfactory.h b/khexedit/parts/kpart/khepartfactory.h
index 7cd6c7e..15a1cee 100644
--- a/khexedit/parts/kpart/khepartfactory.h
+++ b/khexedit/parts/kpart/khepartfactory.h
@@ -33,9 +33,9 @@ class KHexEditPartFactory : public KParts::Factory
virtual ~KHexEditPartFactory();
public:
- virtual KParts::Part* createPartObject( QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name,
- const char *classname, const QStringList &args );
+ virtual KParts::Part* createPartObject( TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name,
+ const char *classname, const TQStringList &args );
static KInstance* instance();