summaryrefslogtreecommitdiffstats
path: root/lib/libchmfile
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2020-06-12 15:04:23 +0200
committergregory guy <gregory-tde@laposte.net>2020-06-16 14:18:31 +0200
commitce2ef1f4f8f62e74c007566908e0b1bc83894f87 (patch)
tree1ee2eaa7091b004c4d570df1fe53d0259d40ac87 /lib/libchmfile
parent84063aa8b6e5d3f73d07934522fb43d387305d93 (diff)
downloadkchmviewer-ce2ef1f4f8f62e74c007566908e0b1bc83894f87.tar.gz
kchmviewer-ce2ef1f4f8f62e74c007566908e0b1bc83894f87.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 <gregory-tde@laposte.net>
Diffstat (limited to 'lib/libchmfile')
-rw-r--r--lib/libchmfile/CMakeLists.txt2
-rw-r--r--lib/libchmfile/Makefile.am10
-rw-r--r--lib/libchmfile/lchmurlhandler.cpp32
-rw-r--r--lib/libchmfile/lchmurlhandler.h36
-rw-r--r--lib/libchmfile/qt34.cpp259
-rw-r--r--lib/libchmfile/qt34.h112
6 files changed, 0 insertions, 451 deletions
diff --git a/lib/libchmfile/CMakeLists.txt b/lib/libchmfile/CMakeLists.txt
index b56565f..cd8990a 100644
--- a/lib/libchmfile/CMakeLists.txt
+++ b/lib/libchmfile/CMakeLists.txt
@@ -23,6 +23,4 @@ tde_add_library( chmfile STATIC_PIC
libchmfileimpl.cpp
libchmtextencoding.cpp
libchmtocimage.cpp
-
- DESTINATION ${LIB_INSTALL_DIR}
)
diff --git a/lib/libchmfile/Makefile.am b/lib/libchmfile/Makefile.am
deleted file mode 100644
index 13e0765..0000000
--- a/lib/libchmfile/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-lib_LIBRARIES=libchmfile.a
-libchmfile_a_SOURCES = libchmfile.cpp libchmfile_search.cpp libchmfileimpl.cpp \
- libchmtextencoding.cpp libchmtocimage.cpp
-noinst_HEADERS = libchmfile.h bitfiddle.h libchmfileimpl.h libchmtextencoding.h \
- libchmtocimage.h libchmurlfactory.h
-
-INCLUDES = $(TQT_INCLUDES) $(CHM_INCLUDES) $(KDE_INCLUDES)
-
-METASOURCES = AUTO
-KDE_OPTIONS = qtonly
diff --git a/lib/libchmfile/lchmurlhandler.cpp b/lib/libchmfile/lchmurlhandler.cpp
deleted file mode 100644
index 6e905f6..0000000
--- a/lib/libchmfile/lchmurlhandler.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2004-2005 by Georgy Yunaev, gyunaev@ulduzsoft.com *
- * Please do not use email address above for bug reports; see *
- * the README file *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-#include "lchmurlhandler.h"
-
-LCHMUrlHandler::LCHMUrlHandler()
-{
-}
-
-
-LCHMUrlHandler::~LCHMUrlHandler()
-{
-}
-
-
diff --git a/lib/libchmfile/lchmurlhandler.h b/lib/libchmfile/lchmurlhandler.h
deleted file mode 100644
index 9eb29ec..0000000
--- a/lib/libchmfile/lchmurlhandler.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2004-2007 by Georgy Yunaev, gyunaev@ulduzsoft.com *
- * Please do not use email address above for bug reports; see *
- * the README file *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-
-#ifndef LCHMURLHANDLER_H
-#define LCHMURLHANDLER_H
-
-/**
- @author tim <tim@krasnogorsk.ru>
-*/
-class LCHMUrlHandler{
-public:
- LCHMUrlHandler();
-
- ~LCHMUrlHandler();
-
-};
-
-#endif
diff --git a/lib/libchmfile/qt34.cpp b/lib/libchmfile/qt34.cpp
deleted file mode 100644
index cb2f3d8..0000000
--- a/lib/libchmfile/qt34.cpp
+++ /dev/null
@@ -1,259 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2007 by Albert Astals Cid, aacid@kde.org *
- * Please do not use email address above for bug reports; see *
- * the README file *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-
-#include <tqdir.h>
-
-#include "tqt34.h"
-
-LIBCHMCString::LIBCHMCString()
-{
-}
-
-LIBCHMCString::LIBCHMCString(const char *string)
-{
-#if defined (USE_TQT_4)
- cs = TQByteArray(string);
-#else
- cs = TQCString(string);
-#endif
-}
-
-
-const char *LIBCHMCString::toCString() const
-{
- return cs.data();
-}
-
-
-void LIBCHMCString::clear()
-{
-#if defined (USE_TQT_4)
- cs = TQByteArray();
-#else
- cs = TQCString();
-#endif
-}
-
-bool LIBCHMCString::operator==(const TQString &string) const
-{
- return TQString(cs) == string;
-}
-
-uint LIBCHMCString::length() const
-{
- return cs.length();
-}
-
-bool LIBCHMCString::isEmpty() const
-{
- return cs.isEmpty();
-}
-
-void LIBCHMCString::prepend(char c)
-{
- cs = c + cs;
-}
-
-char LIBCHMCString::at(uint i) const
-{
- return cs.at(i);
-}
-
-void LIBCHMCString::replace(uint index, uint len, const char *str)
-{
- cs.replace(index, len, str);
-}
-
-void LIBCHMCString::remove(uint index, uint len)
-{
- cs.remove(index, len);
-}
-
-LIBCHMCString LIBCHMCString::lower()
-{
-#if defined (USE_TQT_4)
- return cs.toLower().data();
-#else
- return cs.lower().data();
-#endif
-}
-
-
-
-LIBCHMRegExp::LIBCHMRegExp(const TQString &regexp)
-{
- re = TQRegExp(regexp);
-}
-
-int LIBCHMRegExp::search(const TQString &str, int offset)
-{
-#if defined (USE_TQT_4)
- return re.indexIn(str, offset);
-#else
- return re.search(str, offset);
-#endif
-}
-
-TQString LIBCHMRegExp::cap(int nth)
-{
- return re.cap(nth);
-}
-
-void LIBCHMRegExp::setMinimal(bool minimal)
-{
- return re.setMinimal(minimal);
-}
-
-int LIBCHMRegExp::matchedLength() const
-{
- return re.matchedLength();
-}
-
-
-
-
-LIBCHMString::LIBCHMString()
-{
-}
-
-LIBCHMString::LIBCHMString(const TQString &string)
-{
- s = string;
-}
-
-LIBCHMString::LIBCHMString(const char *string)
-{
- s = TQString(string);
-}
-
-TQString LIBCHMString::lower() const
-{
-#if defined (USE_TQT_4)
- return s.toLower();
-#else
- return s.lower();
-#endif
-}
-
-const char *LIBCHMString::ascii() const
-{
-#if defined (USE_TQT_4)
- return s.toAscii();
-#else
- return s.ascii();
-#endif
-}
-
-int LIBCHMString::find(char c, int index) const
-{
-#if defined (USE_TQT_4)
- return s.indexOf(c, index);
-#else
- return s.find(c, index);
-#endif
-}
-
-int LIBCHMString::find(const TQChar &c, int index) const
-{
-#if defined (USE_TQT_4)
- return s.indexOf(c, index);
-#else
- return s.find(c, index);
-#endif
-}
-
-int LIBCHMString::find(const TQString &string, int index, bool cs) const
-{
-#if defined (USE_TQT_4)
- TQt::CaseSensitivity cse;
- if (cs) cse = TQt::CaseSensitive;
- else cse = TQt::CaseInsensitive;
- return s.indexOf(string, index, cse);
-#else
- return s.find(string, index, cs);
-#endif
-}
-
-int LIBCHMString::findRev(char c) const
-{
-#if defined (USE_TQT_4)
- return s.lastIndexOf(c);
-#else
- return s.findRev(c);
-#endif
-}
-
-TQChar LIBCHMString::at(uint i) const
-{
- return s.at(i);
-}
-
-TQString LIBCHMString::left(uint len) const
-{
- return s.left(len);
-}
-
-LIBCHMString LIBCHMString::mid(uint index, uint len) const
-{
- return s.mid(index, len);
-}
-
-bool LIBCHMString::isEmpty() const
-{
- return s.isEmpty();
-}
-
-TQString LIBCHMString::toString() const
-{
- return s;
-}
-
-bool LIBCHMString::operator==(const TQString &string) const
-{
- return s == string;
-}
-
-
-
-TQString LIBCHMDir::cleanDirPath(const TQString &dir)
-{
-#if defined (USE_TQT_4)
- return TQDir::cleanPath(dir);
-#else
- return TQDir::cleanDirPath(dir);
-#endif
-}
-
-
-
-bool LIBCHMStringList::contains(const TQStringList &list, const TQString &string)
-{
- return list.contains(string);
-}
-
-TQStringList LIBCHMStringList::split(const TQRegExp &regexp, const TQString &string)
-{
-#if defined (USE_TQT_4)
- return string.split(regexp, TQString::SkipEmptyParts);
-#else
- return TQStringList::split(regexp, string);
-#endif
-}
diff --git a/lib/libchmfile/qt34.h b/lib/libchmfile/qt34.h
deleted file mode 100644
index 19233bb..0000000
--- a/lib/libchmfile/qt34.h
+++ /dev/null
@@ -1,112 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2007 by Albert Astals Cid, aacid@kde.org *
- * Please do not use email address above for bug reports; see *
- * the README file *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-
-#ifndef INCLUDE_QT34_H
-#define INCLUDE_QT34_H
-
-#include <tqregexp.h>
-#include <tqstring.h>
-#include <tqvaluevector.h>
-
-#define LIBCHMVector TQValueVector
-#define LIBCHMMemArray TQMemArray
-
-class LIBCHMCString
-{
- public:
- LIBCHMCString();
- LIBCHMCString(const char *string);
-
- const char *toCString() const;
-
- void clear();
-
- bool operator==(const TQString &string) const;
- uint length() const;
- bool isEmpty() const;
- void prepend(char c);
- char at(uint i) const;
- void replace(uint index, uint len, const char *str);
- void remove(uint index, uint len);
- LIBCHMCString lower();
-
- private:
-#if defined (USE_TQT_4)
- TQByteArray cs;
-#else
- TQCString cs;
-#endif
-};
-
-class LIBCHMRegExp
-{
- public:
- LIBCHMRegExp(const TQString &regexp);
-
- int search(const TQString &str, int offset = 0);
- TQString cap(int nth);
- void setMinimal(bool minimal);
- int matchedLength() const;
-
- private:
- TQRegExp re;
-};
-
-class LIBCHMString
-{
- public:
- LIBCHMString();
- LIBCHMString(const TQString &string);
- LIBCHMString(const char *string);
-
- TQString lower() const;
- const char *ascii() const;
- int find(char c, int index = -1) const;
- int find(const TQChar &c, int index) const;
- int find(const TQString &string, int index, bool cs) const;
- int findRev(char c) const;
- TQChar at(uint i) const;
- TQString left(uint len) const;
- LIBCHMString mid(uint index, uint len = 0xffffffff) const;
- bool isEmpty() const;
-
- TQString toString() const;
-
- bool operator==(const TQString &string) const;
-
- private:
- TQString s;
-};
-
-class LIBCHMDir
-{
- public:
- static TQString cleanDirPath(const TQString &dir);
-};
-
-class LIBCHMStringList
-{
- public:
- static bool contains(const TQStringList &list, const TQString &string);
- static TQStringList split(const TQRegExp &regexp, const TQString &string);
-};
-
-#endif