summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt2
-rw-r--r--src/Makefile.am39
-rw-r--r--src/config.h.in255
-rw-r--r--src/pics/Makefile.am2
-rw-r--r--src/tde/Makefile.am8
-rw-r--r--src/tde/kchmdcopiface_skel.cpp98
6 files changed, 1 insertions, 403 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index d045a52..85ba4aa 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,3 @@
##### create translation templates ##############
-tde_l10n_create_template( "kchmviewer" )
+tde_l10n_create_template( "messages/kchmviewer" )
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644
index fc7e5d3..0000000
--- a/src/Makefile.am
+++ /dev/null
@@ -1,39 +0,0 @@
-if AMC_USE_KDE
-LIB_KDEEXTRADIR = tde
-LIB_KDEEXTRA = tde/libkdeextra.a
-endif
-
-bin_PROGRAMS = kchmviewer
-kchmviewer_SOURCES = iconstorage.cpp kchmbookmarkwindow.cpp kchmconfig.cpp \
- kchmindexwindow.cpp kchmmainwindow.cpp kchmsearchtoolbar.cpp kchmsearchwindow.cpp \
- kchmsettings.cpp kchmsourcefactory.cpp kchmtreeviewitem.cpp kchmviewwindow.cpp main.cpp \
- kchmdialogchooseurlfromlist.cpp tde-tqt.cpp kchmviewwindow_qtextbrowser.cpp \
- kchmsetupdialog.ui kqtempfile.cpp kchmnavtoolbar.cpp kchmviewwindowmgr.cpp \
- kchmkeyeventfilter.cpp kchmcontentswindow.cpp kchmsearchengine_impl.cpp \
- kchmsearchengine.cpp kchmsetupdialog_impl.cpp
-
-# set the include path found by configure
-INCLUDES = $(TQT_INCLUDES) $(CHM_INCLUDES) $(KDE_INCLUDES) $(LIBCHMFILE_INCLUDES)
-
-SUBDIRS = $(LIB_KDEEXTRADIR) . pics
-
-# the library search path.
-kchmviewer_LDADD = $(top_builddir)/lib/libchmfile/libchmfile.a $(LIB_KDEEXTRA) \
- $(CHM_LIBS) $(LIB_TQT) $(LIB_TDEUI) $(LIB_TDEHTML) $(LIB_TDEPARTS) $(LIB_TDEIO)
-kchmviewer_LDFLAGS = $(QT_LDFLAGS) $(KDE_LDFLAGS) $(LIB_TDECORE) -lDCOP $(LIB_TDEUI) $(LIB_TDEPARTS) $(LIB_TDEIO) -L../lib/chmlib/
-
-METASOURCES = AUTO
-KDE_OPTIONS = qtonly
-KDE_ICON = AUTO
-noinst_HEADERS = kchmsettings.h forwarddeclarations.h kchmsourcefactory.h \
- iconstorage.h kchmbookmarkwindow.h kchmconfig.h kchmtreeviewitem.h \
- kchmdialogchooseurlfromlist.h kchmviewwindow.h kchmindexwindow.h \
- kchmmainwindow.h kchmviewwindow_qtextbrowser.h kchmsearchtoolbar.h tde-tqt.h \
- kchmsearchwindow.h kqtempfile.h kqrunprocess.h kchmnavtoolbar.h kchmviewwindowmgr.h \
- kchmkeyeventfilter.h kchmcontentswindow.h kchmlistitemtooltip.h kchmsearchengine_impl.h \
- kchmsearchengine.h kchmsetupdialog_impl.h
-
-messages: rc.cpp
- $(EXTRACTRC) *.rc > rc.cpp
- $(EXTRACTRC) *.ui >> rc.cpp
- $(XGETTEXT) rc.cpp *.h *.cpp -o $(podir)/kchmviewer.pot
diff --git a/src/config.h.in b/src/config.h.in
deleted file mode 100644
index f0c2ac9..0000000
--- a/src/config.h.in
+++ /dev/null
@@ -1,255 +0,0 @@
-/* src/config.h.in. Generated from configure.in by autoheader. */
-
-/* Application version as integer */
-#undef APP_INT_VERSION
-
-/* Application name */
-#undef APP_NAME
-
-/* Application version as text */
-#undef APP_VERSION
-
-/* Define to 1 if you have the <Carbon/Carbon.h> header file. */
-#undef HAVE_CARBON_CARBON_H
-
-/* Define if you have the CoreAudio API */
-#undef HAVE_COREAUDIO
-
-/* Define to 1 if you have the <crt_externs.h> header file. */
-#undef HAVE_CRT_EXTERNS_H
-
-/* Defines if your system has the crypt function */
-#undef HAVE_CRYPT
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#undef HAVE_DLFCN_H
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
-/* Define if you have libjpeg */
-#undef HAVE_LIBJPEG
-
-/* Define if you have libpng */
-#undef HAVE_LIBPNG
-
-/* Define if you have a working libpthread (will enable threaded code) */
-#undef HAVE_LIBPTHREAD
-
-/* Define if you have libz */
-#undef HAVE_LIBZ
-
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
-/* Define if your system needs _NSGetEnviron to set up the environment */
-#undef HAVE_NSGETENVIRON
-
-/* Define if you have res_init */
-#undef HAVE_RES_INIT
-
-/* Define if you have the res_init prototype */
-#undef HAVE_RES_INIT_PROTO
-
-/* Define if you have a STL implementation by SGI */
-#undef HAVE_SGI_STL
-
-/* Define to 1 if you have the `snprintf' function. */
-#undef HAVE_SNPRINTF
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define if you have strlcat */
-#undef HAVE_STRLCAT
-
-/* Define if you have the strlcat prototype */
-#undef HAVE_STRLCAT_PROTO
-
-/* Define if you have strlcpy */
-#undef HAVE_STRLCPY
-
-/* Define if you have the strlcpy prototype */
-#undef HAVE_STRLCPY_PROTO
-
-/* Define to 1 if you have the <sys/bitypes.h> header file. */
-#undef HAVE_SYS_BITYPES_H
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* Define to 1 if you have the `vsnprintf' function. */
-#undef HAVE_VSNPRINTF
-
-/* Suffix for lib directories */
-#undef KDELIBSUFF
-
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* The size of `char *', as computed by sizeof. */
-#undef SIZEOF_CHAR_P
-
-/* The size of `int', as computed by sizeof. */
-#undef SIZEOF_INT
-
-/* The size of `long', as computed by sizeof. */
-#undef SIZEOF_LONG
-
-/* The size of `short', as computed by sizeof. */
-#undef SIZEOF_SHORT
-
-/* The size of `size_t', as computed by sizeof. */
-#undef SIZEOF_SIZE_T
-
-/* The size of `unsigned long', as computed by sizeof. */
-#undef SIZEOF_UNSIGNED_LONG
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* use builtin chmlib */
-#undef USE_BUILTIN_CHMLIB
-
-/* use KDE support */
-#undef USE_KDE
-
-/* Version number of package */
-#undef VERSION
-
-/* Defined if compiling without arts */
-#undef WITHOUT_ARTS
-
-/* Define to 1 if the X Window System is missing or not being used. */
-#undef X_DISPLAY_MISSING
-
-/*
- * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
- * headers and I'm too lazy to write a configure test as long as only
- * unixware is related
- */
-#ifdef _UNIXWARE
-#define HAVE_BOOLEAN
-#endif
-
-
-
-/*
- * AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
- * that defines bzero.
- */
-
-#if defined(_AIX)
-#include <strings.h>
-#endif
-
-
-
-#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
-# include <sys/time.h>
-# include <crt_externs.h>
-# define environ (*_NSGetEnviron())
-#endif
-
-
-
-#if !defined(HAVE_RES_INIT_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-int res_init(void);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-#if !defined(HAVE_STRLCAT_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-unsigned long strlcat(char*, const char*, unsigned long);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-#if !defined(HAVE_STRLCPY_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-unsigned long strlcpy(char*, const char*, unsigned long);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-/*
- * On HP-UX, the declaration of vsnprintf() is needed every time !
- */
-
-#if !defined(HAVE_VSNPRINTF) || defined(hpux)
-#if __STDC__
-#include <stdarg.h>
-#include <stdlib.h>
-#else
-#include <varargs.h>
-#endif
-#ifdef __cplusplus
-extern "C"
-#endif
-int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
-#ifdef __cplusplus
-extern "C"
-#endif
-int snprintf(char *str, size_t n, char const *fmt, ...);
-#endif
-
-
-
-#if defined(__SVR4) && !defined(__svr4__)
-#define __svr4__ 1
-#endif
-
-
-/* type to use in place of socklen_t if not defined */
-#undef kde_socklen_t
-
-/* type to use in place of socklen_t if not defined (deprecated, use
- kde_socklen_t) */
-#undef ksize_t
diff --git a/src/pics/Makefile.am b/src/pics/Makefile.am
deleted file mode 100644
index d085bb3..0000000
--- a/src/pics/Makefile.am
+++ /dev/null
@@ -1,2 +0,0 @@
-# Install the icons into the global KDE directories
-KDE_ICON = AUTO
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_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;
-}
-
-