diff options
author | gregory guy <[email protected]> | 2020-06-12 15:04:23 +0200 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-06-17 10:10:35 +0900 |
commit | 8b1e76886b63284a1db813b3c3502b6dc25f2ac0 (patch) | |
tree | 62ab93c379ed5c915ec735ed6caada3ca2fc17de /src | |
parent | 6309d91c87ea3cf4b61188a0aaa6dcb3e29adc82 (diff) | |
download | kchmviewer-8b1e76886b63284a1db813b3c3502b6dc25f2ac0.tar.gz kchmviewer-8b1e76886b63284a1db813b3c3502b6dc25f2ac0.zip |
Drop automake build support.
Add basic cmake instructions with new file INSTALL.
Add an AUTHOR file.
Rework of the README file.
Removed unnecessary files lchmurlhandler.cpp, lchmurlhandler.h,
qt34.cpp and qt34.h.
Removed the install of the static lib libchmfile.
Removed the kchmdcopiface_skel.cpp file, this file should be created
at build time.
Moved the desktop file kchmviewer.desktop into the XDG_APPS_INSTALL_DIR
directory, see TDE/tde#26 and bug 2408.
Signed-off-by: gregory guy <[email protected]>
(cherry picked from commit ce2ef1f4f8f62e74c007566908e0b1bc83894f87)
Diffstat (limited to 'src')
-rw-r--r-- | src/config.h.in | 255 | ||||
-rw-r--r-- | src/pics/Makefile.am | 2 | ||||
-rw-r--r-- | src/tde/kchmdcopiface_skel.cpp | 98 |
3 files changed, 0 insertions, 355 deletions
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/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; -} - - |