diff options
Diffstat (limited to 'src/tde')
-rw-r--r-- | src/tde/Makefile.am | 8 | ||||
-rw-r--r-- | src/tde/kchmdcopiface.h | 2 | ||||
-rw-r--r-- | src/tde/kchmdcopiface_skel.cpp | 98 | ||||
-rw-r--r-- | src/tde/kchmviewwindow_tdehtmlpart.cpp | 8 | ||||
-rw-r--r-- | src/tde/kchmviewwindow_tdehtmlpart.h | 2 |
5 files changed, 6 insertions, 112 deletions
diff --git a/src/tde/Makefile.am b/src/tde/Makefile.am deleted file mode 100644 index 05dbf2e..0000000 --- a/src/tde/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -lib_LIBRARIES=libkdeextra.a -libkdeextra_a_SOURCES = kchmdcopiface.cpp kchmdcopiface.skel kchmviewwindow_tdehtmlpart.cpp -noinst_HEADERS = kchmdcopiface.h kchmviewwindow_tdehtmlpart.h - -INCLUDES = $(TQT_INCLUDES) $(CHM_INCLUDES) $(KDE_INCLUDES) $(LIBCHMFILE_INCLUDES) - -METASOURCES = AUTO -KDE_OPTIONS = qtonly diff --git a/src/tde/kchmdcopiface.h b/src/tde/kchmdcopiface.h index 6922a82..1fd2ff2 100644 --- a/src/tde/kchmdcopiface.h +++ b/src/tde/kchmdcopiface.h @@ -29,7 +29,7 @@ class KCHMDCOPIface : public TQObject, public DCOPObject { - Q_OBJECT + TQ_OBJECT // K_DCOP diff --git a/src/tde/kchmdcopiface_skel.cpp b/src/tde/kchmdcopiface_skel.cpp deleted file mode 100644 index be1e994..0000000 --- a/src/tde/kchmdcopiface_skel.cpp +++ /dev/null @@ -1,98 +0,0 @@ -/**************************************************************************** -** -** DCOP Skeleton generated by dcopidl2cpp from kchmdcopiface.kidl -** -** WARNING! All changes made in this file will be lost! -** -*****************************************************************************/ - -#include "./kchmdcopiface.h" - -#include <kdatastream.h> - - -static const char* const KCHMDCOPIface_ftable[6][3] = { - { "void", "loadHelpFile(TQString,TQString)", "loadHelpFile(TQString filename,TQString url)" }, - { "void", "openPage(TQString)", "openPage(TQString url)" }, - { "void", "guiFindInIndex(TQString)", "guiFindInIndex(TQString word)" }, - { "void", "guiSearchQuery(TQString)", "guiSearchQuery(TQString query)" }, - { TQSTRINGLIST_OBJECT_NAME_STRING, "searchQuery(TQString)", "searchQuery(TQString query)" }, - { 0, 0, 0 } -}; -static const int KCHMDCOPIface_ftable_hiddens[5] = { - 0, - 0, - 0, - 0, - 0, -}; - -bool KCHMDCOPIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData) -{ - if ( fun == KCHMDCOPIface_ftable[0][1] ) { // void loadHelpFile(TQString,TQString) - TQString arg0; - TQString arg1; - TQDataStream arg( data, IO_ReadOnly ); - if (arg.atEnd()) return false; - arg >> arg0; - if (arg.atEnd()) return false; - arg >> arg1; - replyType = KCHMDCOPIface_ftable[0][0]; - loadHelpFile(arg0, arg1 ); - } else if ( fun == KCHMDCOPIface_ftable[1][1] ) { // void openPage(TQString) - TQString arg0; - TQDataStream arg( data, IO_ReadOnly ); - if (arg.atEnd()) return false; - arg >> arg0; - replyType = KCHMDCOPIface_ftable[1][0]; - openPage(arg0 ); - } else if ( fun == KCHMDCOPIface_ftable[2][1] ) { // void guiFindInIndex(TQString) - TQString arg0; - TQDataStream arg( data, IO_ReadOnly ); - if (arg.atEnd()) return false; - arg >> arg0; - replyType = KCHMDCOPIface_ftable[2][0]; - guiFindInIndex(arg0 ); - } else if ( fun == KCHMDCOPIface_ftable[3][1] ) { // void guiSearchQuery(TQString) - TQString arg0; - TQDataStream arg( data, IO_ReadOnly ); - if (arg.atEnd()) return false; - arg >> arg0; - replyType = KCHMDCOPIface_ftable[3][0]; - guiSearchQuery(arg0 ); - } else if ( fun == KCHMDCOPIface_ftable[4][1] ) { // TQStringList searchQuery(TQString) - TQString arg0; - TQDataStream arg( data, IO_ReadOnly ); - if (arg.atEnd()) return false; - arg >> arg0; - replyType = KCHMDCOPIface_ftable[4][0]; - TQDataStream _replyStream( replyData, IO_WriteOnly ); - _replyStream << searchQuery(arg0 ); - } else { - return DCOPObject::process( fun, data, replyType, replyData ); - } - return true; -} - -QCStringList KCHMDCOPIface::interfaces() -{ - QCStringList ifaces = DCOPObject::interfaces(); - ifaces += "KCHMDCOPIface"; - return ifaces; -} - -QCStringList KCHMDCOPIface::functions() -{ - QCStringList funcs = DCOPObject::functions(); - for ( int i = 0; KCHMDCOPIface_ftable[i][2]; i++ ) { - if (KCHMDCOPIface_ftable_hiddens[i]) - continue; - TQCString func = KCHMDCOPIface_ftable[i][0]; - func += ' '; - func += KCHMDCOPIface_ftable[i][2]; - funcs << func; - } - return funcs; -} - - diff --git a/src/tde/kchmviewwindow_tdehtmlpart.cpp b/src/tde/kchmviewwindow_tdehtmlpart.cpp index 3a57e35..ad4a617 100644 --- a/src/tde/kchmviewwindow_tdehtmlpart.cpp +++ b/src/tde/kchmviewwindow_tdehtmlpart.cpp @@ -46,11 +46,11 @@ KCHMViewWindow_TDEHTMLPart::KCHMViewWindow_TDEHTMLPart( TQTabWidget * parent ) invalidate(); - connect( browserExtension(), TQT_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ), - this, TQT_SLOT ( onOpenURLRequest( const KURL &, const KParts::URLArgs & )) ); + connect( browserExtension(), TQ_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ), + this, TQ_SLOT ( onOpenURLRequest( const KURL &, const KParts::URLArgs & )) ); - connect( this, TQT_SIGNAL ( popupMenu ( const TQString &, const TQPoint &) ), - this, TQT_SLOT ( onPopupMenu ( const TQString &, const TQPoint &) ) ); + connect( this, TQ_SIGNAL ( popupMenu ( const TQString &, const TQPoint &) ), + this, TQ_SLOT ( onPopupMenu ( const TQString &, const TQPoint &) ) ); } diff --git a/src/tde/kchmviewwindow_tdehtmlpart.h b/src/tde/kchmviewwindow_tdehtmlpart.h index 0dcbe47..ee7d7d3 100644 --- a/src/tde/kchmviewwindow_tdehtmlpart.h +++ b/src/tde/kchmviewwindow_tdehtmlpart.h @@ -44,7 +44,7 @@ #if defined (USE_KDE) class KCHMViewWindow_TDEHTMLPart : public TDEHTMLPart, public KCHMViewWindow { -Q_OBJECT +TQ_OBJECT public: KCHMViewWindow_TDEHTMLPart( TQTabWidget * parent ); |