summaryrefslogtreecommitdiff
path: root/bibletime/util
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-10-21 22:48:14 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-10-21 22:48:14 -0400
commit3edaf04fe3c966997d7c84a8973c62ab5df500bb (patch)
tree46865fe911db1fca1c6a8678795bae46a19d9f1b /bibletime/util
parent472963ff3697fb12af111e4a8fa2b985216826d5 (diff)
Imported Upstream version 1.5
Diffstat (limited to 'bibletime/util')
-rw-r--r--bibletime/util/Makefile.am16
-rw-r--r--bibletime/util/Makefile.in679
-rw-r--r--bibletime/util/cpointers.cpp65
-rw-r--r--bibletime/util/cpointers.h54
-rw-r--r--bibletime/util/cresmgr.cpp1632
-rw-r--r--bibletime/util/cresmgr.h890
-rw-r--r--bibletime/util/ctoolclass.cpp196
-rw-r--r--bibletime/util/ctoolclass.h87
-rw-r--r--bibletime/util/scoped_resource.h160
9 files changed, 0 insertions, 3779 deletions
diff --git a/bibletime/util/Makefile.am b/bibletime/util/Makefile.am
deleted file mode 100644
index c96f870..0000000
--- a/bibletime/util/Makefile.am
+++ /dev/null
@@ -1,16 +0,0 @@
-INCLUDES = $(all_includes)
-libutil_a_METASOURCES = AUTO
-noinst_LIBRARIES = libutil.a
-
-libutil_a_SOURCES = \
-cpointers.cpp \
-cresmgr.cpp \
-ctoolclass.cpp
-
-all_headers = \
-scoped_resource.h \
-cpointers.h \
-cresmgr.h \
-ctoolclass.h
-
-EXTRA_DIST = $(libutil_a_SOURCES) $(all_headers)
diff --git a/bibletime/util/Makefile.in b/bibletime/util/Makefile.in
deleted file mode 100644
index 473bddd..0000000
--- a/bibletime/util/Makefile.in
+++ /dev/null
@@ -1,679 +0,0 @@
-# Makefile.in generated by automake 1.7.6 from Makefile.am.
-# KDE tags expanded automatically by am_edit - $Revision: 1.22 $
-# @configure_input@
-
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
-# Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ../..
-
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-INSTALL = @INSTALL@
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-target_triplet = @target@
-ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
-AMTAR = @AMTAR@
-AR = @AR@
-ARTSCCONFIG = @ARTSCCONFIG@
-AUTOCONF = @AUTOCONF@
-AUTODIRS = @AUTODIRS@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BT_LDFLAGS = @BT_LDFLAGS@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CONF_FILES = @CONF_FILES@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CXX = @CXX@
-CXXCPP = @CXXCPP@
-CXXDEPMODE = @CXXDEPMODE@
-CXXFLAGS = @CXXFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DCOPIDL = @DCOPIDL@
-DCOPIDL2CPP = @DCOPIDL2CPP@
-DCOPIDLNG = @DCOPIDLNG@
-DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DISTRIBUTION = @DISTRIBUTION@
-DISTRIBUTION_VERSION = @DISTRIBUTION_VERSION@
-ECHO = @ECHO@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-F77 = @F77@
-FFLAGS = @FFLAGS@
-FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
-GMSGFMT = @GMSGFMT@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-KCFG_DEPENDENCIES = @KCFG_DEPENDENCIES@
-KCONFIG_COMPILER = @KCONFIG_COMPILER@
-KDECONFIG = @KDECONFIG@
-KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
-KDE_INCLUDES = @KDE_INCLUDES@
-KDE_LDFLAGS = @KDE_LDFLAGS@
-KDE_MT_LDFLAGS = @KDE_MT_LDFLAGS@
-KDE_MT_LIBS = @KDE_MT_LIBS@
-KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
-KDE_PLUGIN = @KDE_PLUGIN@
-KDE_RPATH = @KDE_RPATH@
-KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
-KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
-KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
-KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
-KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
-KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
-KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
-LDFLAGS = @LDFLAGS@
-LIBCOMPAT = @LIBCOMPAT@
-LIBCRYPT = @LIBCRYPT@
-LIBDL = @LIBDL@
-LIBJPEG = @LIBJPEG@
-LIBOBJS = @LIBOBJS@
-LIBPNG = @LIBPNG@
-LIBPTHREAD = @LIBPTHREAD@
-LIBRESOLV = @LIBRESOLV@
-LIBS = @LIBS@
-LIBSM = @LIBSM@
-LIBSOCKET = @LIBSOCKET@
-LIBTOOL = @LIBTOOL@
-LIBUCB = @LIBUCB@
-LIBUTIL = @LIBUTIL@
-LIBZ = @LIBZ@
-LIB_KAB = @LIB_KAB@
-LIB_KABC = @LIB_KABC@
-LIB_KDECORE = @LIB_KDECORE@
-LIB_KDEPIM = @LIB_KDEPIM@
-LIB_KDEPRINT = @LIB_KDEPRINT@
-LIB_KDEUI = @LIB_KDEUI@
-LIB_KFILE = @LIB_KFILE@
-LIB_KFM = @LIB_KFM@
-LIB_KHTML = @LIB_KHTML@
-LIB_KIO = @LIB_KIO@
-LIB_KPARTS = @LIB_KPARTS@
-LIB_KSPELL = @LIB_KSPELL@
-LIB_KSYCOCA = @LIB_KSYCOCA@
-LIB_KUTILS = @LIB_KUTILS@
-LIB_POLL = @LIB_POLL@
-LIB_QPE = @LIB_QPE@
-LIB_QT = @LIB_QT@
-LIB_SMB = @LIB_SMB@
-LIB_SWORD = @LIB_SWORD@
-LIB_X11 = @LIB_X11@
-LIB_XEXT = @LIB_XEXT@
-LIB_XRENDER = @LIB_XRENDER@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
-MAKEINFO = @MAKEINFO@
-MCOPIDL = @MCOPIDL@
-MEINPROC = @MEINPROC@
-MOC = @MOC@
-MSGFMT = @MSGFMT@
-NOOPT_CFLAGS = @NOOPT_CFLAGS@
-NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-QTE_NORTTI = @QTE_NORTTI@
-QT_INCLUDES = @QT_INCLUDES@
-QT_LDFLAGS = @QT_LDFLAGS@
-RANLIB = @RANLIB@
-RPM_GROUP = @RPM_GROUP@
-RPM_PREFIX = @RPM_PREFIX@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-SWORD_INCLUDES = @SWORD_INCLUDES@
-SWORD_LIBRARY_PATH = @SWORD_LIBRARY_PATH@
-TOPSUBDIRS = @TOPSUBDIRS@
-UIC = @UIC@
-UIC_TR = @UIC_TR@
-USER_INCLUDES = @USER_INCLUDES@
-USER_LDFLAGS = @USER_LDFLAGS@
-USE_EXCEPTIONS = @USE_EXCEPTIONS@
-USE_RTTI = @USE_RTTI@
-USE_THREADS = @USE_THREADS@
-VERSION = @VERSION@
-WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
-XGETTEXT = @XGETTEXT@
-XMLLINT = @XMLLINT@
-X_EXTRA_LIBS = @X_EXTRA_LIBS@
-X_INCLUDES = @X_INCLUDES@
-X_LDFLAGS = @X_LDFLAGS@
-X_PRE_LIBS = @X_PRE_LIBS@
-X_RPATH = @X_RPATH@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_CXX = @ac_ct_CXX@
-ac_ct_F77 = @ac_ct_F77@
-ac_ct_RANLIB = @ac_ct_RANLIB@
-ac_ct_STRIP = @ac_ct_STRIP@
-all_includes = @all_includes@
-all_libraries = @all_libraries@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-datadir = @datadir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-include_ARTS_FALSE = @include_ARTS_FALSE@
-include_ARTS_TRUE = @include_ARTS_TRUE@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-kde_appsdir = @kde_appsdir@
-kde_bindir = @kde_bindir@
-kde_confdir = @kde_confdir@
-kde_datadir = @kde_datadir@
-kde_htmldir = @kde_htmldir@
-kde_icondir = @kde_icondir@
-kde_includes = @kde_includes@
-kde_kcfgdir = @kde_kcfgdir@
-kde_libraries = @kde_libraries@
-kde_libs_htmldir = @kde_libs_htmldir@
-kde_libs_prefix = @kde_libs_prefix@
-kde_locale = @kde_locale@
-kde_mimedir = @kde_mimedir@
-kde_moduledir = @kde_moduledir@
-kde_qtver = @kde_qtver@
-kde_servicesdir = @kde_servicesdir@
-kde_servicetypesdir = @kde_servicetypesdir@
-kde_sounddir = @kde_sounddir@
-kde_styledir = @kde_styledir@
-kde_templatesdir = @kde_templatesdir@
-kde_wallpaperdir = @kde_wallpaperdir@
-kde_widgetdir = @kde_widgetdir@
-kdeinitdir = @kdeinitdir@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-oldincludedir = @oldincludedir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-qt_includes = @qt_includes@
-qt_libraries = @qt_libraries@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-sysconfdir = @sysconfdir@
-target = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-x_includes = @x_includes@
-x_libraries = @x_libraries@
-xdg_appsdir = @xdg_appsdir@
-xdg_directorydir = @xdg_directorydir@
-xdg_menudir = @xdg_menudir@
-INCLUDES = $(all_includes)
-#>- libutil_a_METASOURCES = AUTO
-noinst_LIBRARIES = libutil.a
-
-libutil_a_SOURCES = \
-cpointers.cpp \
-cresmgr.cpp \
-ctoolclass.cpp
-
-
-all_headers = \
-scoped_resource.h \
-cpointers.h \
-cresmgr.h \
-ctoolclass.h
-
-
-EXTRA_DIST = $(libutil_a_SOURCES) $(all_headers)
-subdir = bibletime/util
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-
-libutil_a_AR = $(AR) cru
-libutil_a_LIBADD =
-am_libutil_a_OBJECTS = cpointers.$(OBJEXT) cresmgr.$(OBJEXT) \
- ctoolclass.$(OBJEXT)
-#>- libutil_a_OBJECTS = $(am_libutil_a_OBJECTS)
-#>+ 5
-libutil_a_final_OBJECTS = libutil_a.all_cpp.o
-libutil_a_nofinal_OBJECTS = cpointers.$(OBJEXT) cresmgr.$(OBJEXT) \
- ctoolclass.$(OBJEXT)
-@KDE_USE_FINAL_FALSE@libutil_a_OBJECTS = $(libutil_a_nofinal_OBJECTS)
-@KDE_USE_FINAL_TRUE@libutil_a_OBJECTS = $(libutil_a_final_OBJECTS)
-
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
-am__depfiles_maybe = depfiles
-#>- @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/cpointers.Po ./$(DEPDIR)/cresmgr.Po \
-#>- @AMDEP_TRUE@ ./$(DEPDIR)/ctoolclass.Po
-#>+ 4
-@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@DEP_FILES = $(DEPDIR)/libutil_a.all_cpp.P ./$(DEPDIR)/cpointers.Po ./$(DEPDIR)/cresmgr.Po \
-@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/ctoolclass.Po
-@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@DEP_FILES = ./$(DEPDIR)/cpointers.Po ./$(DEPDIR)/cresmgr.Po \
-@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/ctoolclass.Po
-#>- CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
-#>- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
-#>+ 2
-CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
-#>- LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
-#>- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
-#>- $(AM_CXXFLAGS) $(CXXFLAGS)
-#>+ 3
-LTCXXCOMPILE = $(LIBTOOL) --mode=compile --tag=CXX $(CXX) $(DEFS) \
- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
-CXXLD = $(CXX)
-#>- CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
-#>- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-#>+ 2
-CXXLINK = $(LIBTOOL) --mode=link --tag=CXX $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-DIST_SOURCES = $(libutil_a_SOURCES)
-DIST_COMMON = Makefile.am Makefile.in
-SOURCES = $(libutil_a_SOURCES)
-
-#>- all: all-am
-#>+ 1
-all: docs-am all-am
-
-.SUFFIXES:
-.SUFFIXES: .cpp .lo .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
-#>- cd $(top_srcdir) && \
-#>- $(AUTOMAKE) --gnu bibletime/util/Makefile
-#>+ 3
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu bibletime/util/Makefile
- cd $(top_srcdir) && perl admin/am_edit bibletime/util/Makefile.in
-Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-libutil.a: $(libutil_a_OBJECTS) $(libutil_a_DEPENDENCIES)
- -rm -f libutil.a
- $(libutil_a_AR) libutil.a $(libutil_a_OBJECTS) $(libutil_a_LIBADD)
- $(RANLIB) libutil.a
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT) core *.core
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpointers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cresmgr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctoolclass.Po@am__quote@
-
-distclean-depend:
- -rm -rf ./$(DEPDIR)
-
-.cpp.o:
-@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-@am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
-@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
-@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@am__fastdepCXX_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
-
-.cpp.obj:
-@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-@am__fastdepCXX_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
-@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
-@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@am__fastdepCXX_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
-
-.cpp.lo:
-@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-@am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
-@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
-@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@am__fastdepCXX_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-distclean-libtool:
- -rm -f libtool
-uninstall-info-am:
-
-ETAGS = etags
-ETAGSFLAGS =
-
-CTAGS = ctags
-CTAGSFLAGS =
-
-tags: TAGS
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- mkid -fID $$unique
-
-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- tags=; \
- here=`pwd`; \
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- test -z "$(ETAGS_ARGS)$$tags$$unique" \
- || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique
-
-ctags: CTAGS
-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- tags=; \
- here=`pwd`; \
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- test -z "$(CTAGS_ARGS)$$tags$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-#>+ 1
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
-
-top_distdir = ../..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
- esac; \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test "$$dir" != "$$file" && test "$$dir" != "."; then \
- dir="/$$dir"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
- if test -d $$d/$$file; then \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES)
-
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-#>- clean: clean-am
-#>+ 1
-clean: kde-rpo-clean clean-am
-
-#>- clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
-#>- mostlyclean-am
-#>+ 2
-clean-am: clean-bcheck clean-final clean-generic clean-libtool clean-noinstLIBRARIES \
- mostlyclean-am
-
-distclean: distclean-am
-
-distclean-am: clean-am distclean-compile distclean-depend \
- distclean-generic distclean-libtool distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-exec-am:
-
-install-info: install-info-am
-
-install-man:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-info-am
-
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
- clean-libtool clean-noinstLIBRARIES ctags distclean \
- distclean-compile distclean-depend distclean-generic \
- distclean-libtool distclean-tags distdir dvi dvi-am info \
- info-am install install-am install-data install-data-am \
- install-exec install-exec-am install-info install-info-am \
- install-man install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-compile mostlyclean-generic \
- mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
- uninstall-am uninstall-info-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
-
-#>+ 2
-KDE_DIST=cresmgr.h scoped_resource.h ctoolclass.h cpointers.h
-
-#>+ 2
-docs-am:
-
-#>+ 6
-force-reedit:
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu bibletime/util/Makefile
- cd $(top_srcdir) && perl admin/am_edit bibletime/util/Makefile.in
-
-
-#>+ 21
-clean-bcheck:
- rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
-
-bcheck: bcheck-am
-
-bcheck-am:
- @for i in ; do \
- if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
- echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
- echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
- echo "$$i"; \
- if ! $(CXXCOMPILE) --dump-class-hierarchy -c $$i.bchecktest.cc; then \
- rm -f $$i.bchecktest.cc; exit 1; \
- fi ; \
- echo "" >> $$i.bchecktest.cc.class; \
- perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
- rm -f a.out; \
- fi ; \
- done
-
-
-#>+ 11
-libutil_a.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/cpointers.cpp $(srcdir)/cresmgr.cpp $(srcdir)/ctoolclass.cpp
- @echo 'creating libutil_a.all_cpp.cpp ...'; \
- rm -f libutil_a.all_cpp.files libutil_a.all_cpp.final; \
- echo "#define KDE_USE_FINAL 1" >> libutil_a.all_cpp.final; \
- for file in cpointers.cpp cresmgr.cpp ctoolclass.cpp ; do \
- echo "#include \"$$file\"" >> libutil_a.all_cpp.files; \
- test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> libutil_a.all_cpp.final; \
- done; \
- cat libutil_a.all_cpp.final libutil_a.all_cpp.files > libutil_a.all_cpp.cpp; \
- rm -f libutil_a.all_cpp.final libutil_a.all_cpp.files
-
-#>+ 3
-clean-final:
- -rm -f libutil_a.all_cpp.cpp
-
-#>+ 3
-final:
- $(MAKE) libutil_a_OBJECTS="$(libutil_a_final_OBJECTS)" all-am
-
-#>+ 3
-final-install:
- $(MAKE) libutil_a_OBJECTS="$(libutil_a_final_OBJECTS)" install-am
-
-#>+ 3
-no-final:
- $(MAKE) libutil_a_OBJECTS="$(libutil_a_nofinal_OBJECTS)" all-am
-
-#>+ 3
-no-final-install:
- $(MAKE) libutil_a_OBJECTS="$(libutil_a_nofinal_OBJECTS)" install-am
-
-#>+ 3
-cvs-clean:
- $(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean
-
-#>+ 3
-kde-rpo-clean:
- -rm -f *.rpo
-
-#>+ 3
-nmcheck:
-nmcheck-am: nmcheck
diff --git a/bibletime/util/cpointers.cpp b/bibletime/util/cpointers.cpp
deleted file mode 100644
index ea1aad3..0000000
--- a/bibletime/util/cpointers.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-/***************************************************************************
- cpointers.cpp - description
- -------------------
- begin : Sun Feb 17 2002
- copyright : (C) 2002 by The BibleTime team
- email : info@bibletime.de
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * 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. *
- * *
- ***************************************************************************/
-
-#include "cpointers.h"
-
-#include "backend/cswordbackend.h"
-
-#include "printing/cprinter.h"
-
-static CSwordBackend* m_backend = 0;
-static CPrinter* m_printer = 0;
-static CLanguageMgr* m_langMgr = 0;
-
-
-void CPointers::setPrinter(CPrinter* const printer) {
- m_printer = printer;
-}
-
-void CPointers::setBackend(CSwordBackend* const backend) {
- m_backend = backend;
-}
-
-void CPointers::deletePrinter() {
- delete m_printer;
- m_printer = 0;
-}
-
-void CPointers::deleteBackend() {
- delete m_backend;
- m_backend = 0;
-}
-
-
-/** Returns a pointer to the backend ... */
-CSwordBackend* const CPointers::backend() {
- return m_backend;
-}
-
-/** Returns a pointer to the backend ... */
-CLanguageMgr* const CPointers::languageMgr() {
- if (!m_langMgr) {
- m_langMgr = new CLanguageMgr();
- }
- return m_langMgr;
-}
-
-/** Returns a pointer to the printer object. */
-CPrinter* const CPointers::printer() {
- return m_printer;
-}
-
diff --git a/bibletime/util/cpointers.h b/bibletime/util/cpointers.h
deleted file mode 100644
index 1cf6f15..0000000
--- a/bibletime/util/cpointers.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/***************************************************************************
- cpointers.h - description
- -------------------
- begin : Sun Feb 17 2002
- copyright : (C) 2002 by The BibleTime team
- email : info@bibletime.de
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * 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. *
- * *
- ***************************************************************************/
-
-#ifndef CPOINTERS_H
-#define CPOINTERS_H
-
-//BibleTime includes
-#include "backend/clanguagemgr.h"
-
-class CSwordBackend;
-class CPrinter;
-class CLanguageMgr;
-
-/** Holds the pointers to important classes like modules, backend etc.
- * @author The BibleTime team
- */
-class CPointers {
-protected:
- friend class BibleTime; //BibleTime may initialize this object
- friend class BibleTimeApp; //BibleTime may initialize this object
- friend int main(int argc, char* argv[]);
-
- static void setBackend(CSwordBackend* const);
- static void setPrinter(CPrinter* const);
- static void deleteBackend();
- static void deletePrinter();
-
-public: // Public methods
- /**
- * Returns a pointer to the printer object.
- */
- static CPrinter* const printer();
- /**
- * Returns a pointer to the backend ...
- */
- static CSwordBackend* const backend();
- static CLanguageMgr* const languageMgr();
-};
-
-#endif
diff --git a/bibletime/util/cresmgr.cpp b/bibletime/util/cresmgr.cpp
deleted file mode 100644
index 4e88d62..0000000
--- a/bibletime/util/cresmgr.cpp
+++ /dev/null
@@ -1,1632 +0,0 @@
-/***************************************************************************
- cresmgr.cpp - description
- -------------------
- begin : Tue Jan 25 2000
- copyright : (C) 2000 by The BibleTime Team
- email : Info@bibletime.de
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * 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. *
- * *
- ***************************************************************************/
-
-//own includes
-#include "cresmgr.h"
-
-#include "backend/cswordbackend.h"
-
-//KDE includes
-#include <kglobal.h>
-#include <klocale.h>
-
-inline const QString makeToolTip( const QString& text ) {
- return text;
-};
-
-inline const QString makeWhatsThis( const QString& title, const QString& description ) {
- return QString::fromLatin1("<center><B>%1</B></center><HR>%2").arg(title).arg(description);
-};
-
-
-
-namespace CResMgr {
- namespace modules {
- namespace bible {
- const QString icon_unlocked = "bt_bible";
- const QString icon_locked = "bt_bible_locked";
- const QString icon_add = "bt_bible_add";
- };
- namespace commentary {
- const QString icon_unlocked = "bt_commentary";
- const QString icon_locked = "bt_commentary_locked";
- const QString icon_add = "bt_commentary_add";
- };
- namespace lexicon {
- const QString icon_unlocked = "bt_lexicon";
- const QString icon_locked = "bt_lexicon_locked";
- const QString icon_add = "bt_lexicon_add";
- };
- namespace book {
- const QString icon_unlocked = "bt_book";
- const QString icon_locked = "bt_book_locked";
- const QString icon_add = "bt_book_add";
- };
- };
-
- namespace mainMenu { //Main menu
- namespace file { //Main menu->File
- namespace clearQueue {
- QString tooltip;
- QString whatsthis;
- const QString icon = QString::fromLatin1("button_cancel");
- const KShortcut accel = KKeySequence();
- const char* actionName = "file_clear_queue_action";
- }
- namespace print { //a standard action
- QString tooltip;
- QString whatsthis;
- }
- namespace quit { //a standard action
- QString tooltip;
- QString whatsthis;
- }
- }
-
- namespace view { //Main menu->View
- namespace showMainIndex {
- QString tooltip;
- QString whatsthis;
- const QString icon = "view_sidetree";
- const KShortcut accel = Qt::Key_F9;
- const char* actionName = "viewMainIndex_action";
- }
- namespace showToolBar { //a standard action
- QString tooltip;
- QString whatsthis;
- }
- }
-
- namespace mainIndex { //Main menu->Settings
- namespace search {
- QString tooltip;
- QString whatsthis;
- const QString icon = "find";
- const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_M;
- const char* actionName = "groupmanager_search_action";
- }
- namespace searchdefaultbible {
- QString tooltip;
- QString whatsthis;
- const QString icon = "find";
- const KShortcut accel = Qt::CTRL + Qt::Key_F;
- const char* actionName = "groupmanager_searchdefaultbible_action";
- }
- };
-
- namespace window { //Main menu->Window
- namespace loadProfile {
- QString tooltip;
- QString whatsthis;
- const QString icon = "view_sidetree";
- const char* actionName = "windowLoadProfile_action";
- }
- namespace saveProfile {
- QString tooltip;
- QString whatsthis;
- const QString icon = "view_sidetree";
- const char* actionName = "windowSaveProfile_action";
- }
- namespace saveToNewProfile {
- QString tooltip;
- QString whatsthis;
- const QString icon = "view_sidetree";
- const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_S;
- const char* actionName = "windowSaveToNewProfile_action";
- }
- namespace setupProfiles {
- QString tooltip;
- QString whatsthis;
- const QString icon = "view_sidetree";
- const KShortcut accel = KKeySequence();
- const char* actionName = "windowEditProfiles_action";
- }
- namespace showFullscreen {
- QString tooltip;
- QString whatsthis;
- const QString icon = "window_fullscreen";
- const KShortcut accel = Qt::CTRL + Qt::SHIFT + Qt::Key_F;
- const char* actionName = "windowFullscreen_action";
- }
- namespace tile {
- QString tooltip;
- QString whatsthis;
- const QString icon = "bt_tile";
- const KShortcut accel = Qt::CTRL + Qt::Key_T;
- const char* actionName = "windowTile_action";
- }
- namespace cascade {
- QString tooltip;
- QString whatsthis;
- const QString icon = "bt_cascade";
- const KShortcut accel = Qt::CTRL + Qt::Key_A;
- const char* actionName = "windowCascade_action";
- }
- namespace autoTile {
- QString tooltip;
- QString whatsthis;
- const QString icon = "bt_tile_auto";
- const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_T;
- const char* actionName = "windowAutoTile_action";
- }
- namespace autoCascade {
- QString tooltip;
- QString whatsthis;
- const QString icon = "bt_cascade_auto";
- const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_A;
- const char* actionName = "windowAutoCascade_action";
- }
- namespace closeAll {
- QString tooltip;
- QString whatsthis;
- const QString icon = "fileclose";
- const KShortcut accel = Qt::CTRL + Qt::Key_K;
- const char* actionName = "windowCloseAll_action";
- }
- }
-
- namespace settings { //Main menu->Settings
- namespace editToolBar { // available as KStdAction
- QString tooltip;
- QString whatsthis;
- }
- namespace optionsDialog { // available as KStdAction
- QString tooltip;
- QString whatsthis;
- };
- namespace swordSetupDialog {
- QString tooltip;
- QString whatsthis;
- const QString icon = "bt_swordconfig";
- const KShortcut accel = Qt::Key_F4;
- const char* actionName = "options_sword_setup";
- }
-
- };
-
- namespace help { //Main menu->Help
- namespace handbook {
- QString tooltip;
- QString whatsthis;
- const QString icon = "contents";
- const KShortcut accel = Qt::Key_F1;
- const char* actionName = "helpHandbook_action";
- };
- namespace bibleStudyHowTo {
- QString tooltip;
- QString whatsthis;
- const QString icon = "contents";
- const KShortcut accel = Qt::Key_F2;
- const char* actionName = "helpHowTo_action";
- };
- namespace whatsThis { // available as KStdAction
- QString tooltip;
- QString whatsthis;
- };
- namespace bugreport { // available as KStdAction
- QString tooltip;
- QString whatsthis;
- };
- namespace dailyTip {
- QString tooltip;
- QString whatsthis;
- const QString icon = "idea";
- const KShortcut accel = KKeySequence();
- const char* actionName = "helpDailyTip_action";
- };
- namespace aboutBibleTime { // available as KStdAction
- QString tooltip;
- QString whatsthis;
- };
- namespace aboutKDE { // available as KStdAction
- QString tooltip;
- QString whatsthis;
- };
- };
- } //end of main menu
-
- namespace searchdialog {
- const QString icon = "find";
-
- namespace searchButton {
- QString tooltip;
- QString whatsthis;
- };
- namespace cancelSearchButton {
- QString tooltip;
- QString whatsthis;
- };
-
- namespace options {
- namespace moduleChooserButton {
- QString tooltip;
- QString whatsthis;
- };
- namespace searchedText {
- QString tooltip;
- QString whatsthis;
- };
- namespace searchType {
- namespace multipleWords_and {
- QString tooltip;
- QString whatsthis;
- };
- namespace multipleWords_or {
- QString tooltip;
- QString whatsthis;
- };
- namespace exactMatch {
- QString tooltip;
- QString whatsthis;
- };
- namespace regExp {
- QString tooltip;
- QString whatsthis;
- };
- };
-
- namespace searchOptions {
- namespace caseSensitive {
- QString tooltip;
- QString whatsthis;
- };
- };
- namespace chooseScope {
- QString tooltip;
- QString whatsthis;
- };
- namespace scopeEditor {
- namespace rangeList {
- QString tooltip;
- QString whatsthis;
- };
- namespace nameEdit {
- QString tooltip;
- QString whatsthis;
- };
- namespace editRange {
- QString tooltip;
- QString whatsthis;
- };
- namespace parsedResult {
- QString tooltip;
- QString whatsthis;
- };
- namespace addNewRange {
- QString tooltip;
- QString whatsthis;
- };
- namespace deleteCurrentRange {
- QString tooltip;
- QString whatsthis;
- };
-
- };
- }
- namespace result {
- namespace moduleList {
- QString tooltip;
- QString whatsthis;
-
- namespace copyMenu {
- const QString icon = "editcopy";
- };
- namespace saveMenu {
- const QString icon = "filesave";
- };
- namespace printMenu {
- const QString icon = "fileprint";
- };
- };
- namespace foundItems {
- QString tooltip;
- QString whatsthis;
-
- namespace copyMenu {
- const QString icon = "editcopy";
- };
- namespace saveMenu {
- const QString icon = "filesave";
- };
- namespace printMenu {
- const QString icon = "fileprint";
- };
- };
- namespace textPreview {
- QString tooltip;
- QString whatsthis;
- };
- };
- };
-
- namespace workspace {
- };
-
- namespace displaywindows {
- namespace transliteration {
- const QString icon = "bt_displaytranslit";
- };
- namespace displaySettings {
- const QString icon = "bt_displayconfig";
- };
-
- namespace general {
- namespace scrollButton {
- QString tooltip;
- QString whatsthis;
-
- };
- };
- namespace bibleWindow {
- namespace bookList {
- QString tooltip;
- QString whatsthis;
- };
- namespace nextBook {
- QString tooltip;
- QString whatsthis;
- const KShortcut accel = Qt::CTRL + Qt::Key_B;
- }
- namespace previousBook {
- QString tooltip;
- QString whatsthis;
- const KShortcut accel = Qt::CTRL + Qt::SHIFT + Qt::Key_B;
- }
-
-
- namespace chapterList {
- QString tooltip;
- QString whatsthis;
- };
- namespace nextChapter {
- QString tooltip;
- QString whatsthis;
- const KShortcut accel = Qt::CTRL + Qt::Key_H;
- }
- namespace previousChapter {
- QString tooltip;
- QString whatsthis;
- const KShortcut accel = Qt::CTRL + Qt::SHIFT + Qt::Key_H;
- }
-
- namespace verseList {
- QString tooltip;
- QString whatsthis;
- };
- namespace nextVerse {
- QString tooltip;
- QString whatsthis;
- const KShortcut accel = Qt::CTRL + Qt::SHIFT + Qt::Key_V;
- }
- namespace previousVerse {
- QString tooltip;
- QString whatsthis;
- const KShortcut accel = Qt::CTRL + Qt::SHIFT + Qt::Key_V;
- }
-
- namespace copyMenu {
- const QString icon = "editcopy";//CResMgr::displaywindows::lexiconWindow::copyMenu::icon;
- };
- namespace saveMenu {
- const QString icon = "filesave";//CResMgr::displaywindows::lexiconWindow::saveMenu::icon;
- }
- namespace printMenu {
- const QString icon = "fileprint";//CResMgr::displaywindows::lexiconWindow::printMenu::icon;
- }
- };
- namespace commentaryWindow {
- namespace syncWindow {
- QString tooltip;
- QString whatsthis;
- const QString icon = "bt_sync";
- const KShortcut accel = KKeySequence(); //CResMgr::displaywindows::biblewindow::nextBook::accel;
- const char* actionName = "commentary_syncWindow";
- }
-
- };
- namespace lexiconWindow {
- namespace entryList {
- QString tooltip;
- QString whatsthis;
- };
- namespace nextEntry {
- QString tooltip;
- QString whatsthis;
- const KShortcut accel = KKeySequence();
- }
- namespace previousEntry {
- QString tooltip;
- QString whatsthis;
- const KShortcut accel = KKeySequence();
- }
-
- namespace copyMenu {
- const QString icon = "editcopy";
- };
- namespace saveMenu {
- const QString icon = "filesave";
- }
- namespace printMenu {
- const QString icon = "fileprint";
- }
- };
- namespace bookWindow {
- namespace toggleTree {
- const QString icon = "view_sidetree";
- const KShortcut accel = KKeySequence();
- };
- };
-
- namespace writeWindow {
- namespace saveText {
- QString tooltip;
- QString whatsthis;
- const QString icon = "filesave";
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_saveText";
- };
- namespace restoreText {
- QString tooltip;
- QString whatsthis;
- const QString icon = "undo";
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_restoreText";
- };
- namespace deleteEntry {
- QString tooltip;
- QString whatsthis;
- const QString icon = "editdelete";
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_deleteEntry";
- };
-
- //formatting buttons
- namespace boldText {
- QString tooltip;
- QString whatsthis;
- const QString icon = "text_bold";
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_boldText";
- };
- namespace italicText {
- QString tooltip;
- QString whatsthis;
- const QString icon = "text_italic";
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_italicText";
- };
- namespace underlinedText {
- QString tooltip;
- QString whatsthis;
- const QString icon = "text_under";
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_underlineText";
- };
-
- namespace alignLeft {
- QString tooltip;
- QString whatsthis;
- const QString icon = "text_left";
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_alignLeft";
- };
- namespace alignCenter {
- QString tooltip;
- QString whatsthis;
- const QString icon = "text_center";
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_alignCenter";
- };
- namespace alignRight {
- QString tooltip;
- QString whatsthis;
- const QString icon = "rightjust";
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_alignRight";
- };
- namespace alignJustify {
- QString tooltip;
- QString whatsthis;
- const QString icon = "text_block";
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_alignJustify";
- };
-
- namespace fontFamily {
- QString tooltip;
- QString whatsthis;
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_fontFamily";
- };
- namespace fontSize {
- QString tooltip;
- QString whatsthis;
- const KShortcut accel = KKeySequence();
- const char* actionName = "writeWindow_fontSize";
- };
- namespace fontColor {
- QString tooltip;
- QString whatsthis;
- };
-
- };
- };
-
- namespace printing {
- namespace itemPage {
- namespace styleChooser {
- QString tooltip;
- QString whatsthis;
- };
- namespace itemList {
- QString tooltip;
- QString whatsthis;
- };
- namespace itemUp {
- const QString icon = "up";
- QString tooltip;
- QString whatsthis;
- };
- namespace itemDown {
- const QString icon = "down";
- QString tooltip;
- QString whatsthis;
- };
- namespace itemDelete {
- const QString icon = "edittrash";
- QString tooltip;
- QString whatsthis;
- };
- };
-
- namespace styleList {
- namespace newStyle {
- QString tooltip;
- QString whatsthis;
- const QString icon = "filenew";
- };
- namespace deleteStyle {
- QString tooltip;
- QString whatsthis;
- const QString icon = "editdelete";
- };
- namespace editStyle {
- QString tooltip;
- QString whatsthis;
- const QString icon = "pencil";
- };
- };
- namespace printerSettings {
- namespace margins {
- QString whatsthis;
-
- namespace upper {
- QString tooltip;
- QString whatsthis;
- };
- namespace lower {
- QString tooltip;
- QString whatsthis;
- };
- namespace left {
- QString tooltip;
- QString whatsthis;
- };
- namespace right {
- QString tooltip;
- QString whatsthis;
- };
- };
- };
- };
- namespace settings {
- namespace startup {
- const QString icon = "bt_startconfig";
- namespace dailyTip {
- QString tooltip;
- QString whatsthis;
- };
- namespace showLogo {
- QString tooltip;
- QString whatsthis;
- };
- namespace restoreWorkingArea {
- QString tooltip;
- QString whatsthis;
- };
- };
- namespace fonts {
- const QString icon = "fonts";
-
- namespace typeChooser {
- QString tooltip;
- QString whatsthis;
- };
- };
- namespace colors {
- const QString icon = "colorize";
-
- namespace text {
- QString tooltip;
- QString whatsthis;
- };
- namespace background {
- QString tooltip;
- QString whatsthis;
- };
- namespace links {
- QString tooltip;
- QString whatsthis;
- };
- namespace footnotes {
- QString tooltip;
- QString whatsthis;
- };
- namespace strongNumbers {
- QString tooltip;
- QString whatsthis;
- };
- namespace highlightedVerse {
- QString tooltip;
- QString whatsthis;
- };
- namespace jesusWords {
- QString tooltip;
- QString whatsthis;
- };
- namespace morphTags {
- QString tooltip;
- QString whatsthis;
- };
- };
- namespace profiles {
- const QString icon = "view_sidetree";
-
- namespace list {
- QString tooltip;
- QString whatsthis;
- };
- namespace createNew {
- QString tooltip;
- QString whatsthis;
- };
- namespace deleteCurrent {
- QString tooltip;
- QString whatsthis;
- };
- namespace renameCurrent {
- QString tooltip;
- QString whatsthis;
- };
- };
- namespace sword {
- const QString icon = "bt_swordconfig";
-
- namespace general {
- namespace cacheKeys {
- QString tooltip;
- QString whatsthis;
- };
- namespace scrolling {
- QString tooltip;
- QString whatsthis;
- };
- namespace language {
- QString tooltip;
- QString whatsthis;
- };
- };
- namespace modules {
- namespace bible {
- QString tooltip;
- QString whatsthis;
- };
- namespace commentary {
- QString tooltip;
- QString whatsthis;
- };
- namespace lexicon {
- QString tooltip;
- QString whatsthis;
- };
- namespace dailyDevotional {
- QString tooltip;
- QString whatsthis;
- };
- namespace hebrewStrongs {
- QString tooltip;
- QString whatsthis;
- };
- namespace greekStrongs {
- QString tooltip;
- QString whatsthis;
- };
- namespace hebrewMorph {
- QString tooltip;
- QString whatsthis;
- };
- namespace greekMorph {
- QString tooltip;
- QString whatsthis;
- };
- };
- namespace filters {
- namespace lineBreaks {
- QString tooltip;
- QString whatsthis;
- };
- namespace verseNumbers {
- QString tooltip;
- QString whatsthis;
- };
- namespace footnotes {
- QString tooltip;
- QString whatsthis;
- };
- namespace strongsNumbers {
- QString tooltip;
- QString whatsthis;
- };
- namespace morphTags {
- QString tooltip;
- QString whatsthis;
- };
- namespace headings {
- QString tooltip;
- QString whatsthis;
- };
- namespace lemmas {
- QString tooltip;
- QString whatsthis;
- };
- namespace hebrewVowelPoints {
- QString tooltip;
- QString whatsthis;
- };
- namespace hebrewCantillation {
- QString tooltip;
- QString whatsthis;
- };
- namespace greekAccents {
- QString tooltip;
- QString whatsthis;
- };
- namespace textualVariants {
- QString tooltip;
- QString whatsthis;
- };
- };
- };
- namespace keys {
- const QString icon = "key_bindings";
- };
- };
-
- namespace mainIndex { //Main menu->Settings
- namespace search {
- QString tooltip;
- QString whatsthis;
- const QString icon = "find";
- const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_M;
- const char* actionName = "GMsearch_action";
- }
- namespace newFolder {
- const QString icon = "folder_new";
- }
- namespace changeFolder {
- const QString icon = "folder";
- }
- namespace openedFolder {
- const QString icon = "folder_open";
- }
- namespace closedFolder {
- const QString icon = "folder";
- }
-
- namespace bookmark {
- const QString icon = "bookmark";
- }
- namespace changeBookmark {
- const QString icon = "bookmark";
- }
- namespace importBookmarks {
- const QString icon = "bookmark";
- }
- namespace exportBookmarks {
- const QString icon = "bookmark";
- }
- namespace printBookmarks {
- const QString icon = "fileprint";
- }
- namespace deleteItems {
- const QString icon = "filedelete";
- }
-
- namespace editModuleMenu {
- const QString icon = "pencil";
- }
- namespace editModulePlain {
- const QString icon = "pencil";
- }
- namespace editModuleHTML {
- const QString icon = "pencil";
- }
-
- namespace unlockModule {
- const QString icon = "unlock";
- }
- namespace aboutModule {
- const QString icon = "info";
- }
- };
-
- namespace helpDialog {
- const QString moduleLocked = "bibletime/helpdialog/help-module-encrypted.html";
- const QString firstStart = "bibletime/helpdialog/help-first-startup.html";
- const QString noSwordModules = "bibletime/helpdialog/help-no-modules.html";
- const QString noSwordModuleConfigDir = "bibletime/helpdialog/help-no-mods-d.html";
- const QString initBackendFailed = "bibletime/helpdialog/help-initbackend-failed.html";
- const QString firstTimeSearchDialog = "bibletime/helpdialog/help-first-time-search.html";
- };
-
-};
-
-
-
-namespace CResMgr {
- void init_i18n() {
- using namespace CResMgr;
- {
- using namespace mainMenu;
- {
- using namespace file;
- {
- using namespace clearQueue;
- tooltip = makeToolTip( i18n("Clear print queue") );
- whatsthis = makeWhatsThis( tooltip, i18n("Clear the print queue of BibleTime.") );
- };
- {
- using namespace print;
- tooltip = makeToolTip( i18n("Open the printer dialog") );
- whatsthis = makeWhatsThis( tooltip, i18n("Open the printer dialog of BibleTime, where you can edit the print queue, assign styles to the items and print them.") );
- };
- {
- using namespace quit;
- tooltip = makeToolTip( i18n("Close BibleTime") );
- whatsthis = makeWhatsThis( tooltip, i18n("Close BibleTime and save the settings.") );
- };
-
- {
- using namespace view;
- {
- using namespace showMainIndex;
- tooltip = makeToolTip(i18n("Show main index"));
- whatsthis = makeWhatsThis(tooltip, i18n("Toggle the main index view."));
- }
- {
- using namespace showToolBar;
- tooltip = makeToolTip(i18n("Show main toolbar"));
- whatsthis = makeWhatsThis(tooltip, i18n("Toggle the main toolbar view."));
- }
- }
-
- {
- using namespace mainMenu::mainIndex;
- {
- using namespace search;
- tooltip = makeToolTip(i18n("Search in open modules"));
- whatsthis = makeWhatsThis(tooltip, i18n("Open the search dialog to search in all modules that are currently open."));
- }
- {
- using namespace searchdefaultbible;
- tooltip = makeToolTip(i18n("Search default bible"));
- whatsthis = makeWhatsThis(tooltip, i18n("Open the search dialog to search in the default bible."));
- }
- };
-
- {
- using namespace window;
- {
- using namespace loadProfile;
- tooltip = makeToolTip( i18n("Load a session") );
- whatsthis = makeWhatsThis(tooltip,i18n("Restore a saved BibleTime session.") );
- }
- {
- using namespace saveProfile;
- tooltip = makeToolTip(i18n("Save current session"));
- whatsthis = makeWhatsThis(tooltip, i18n("Save current BibleTime session so that it can be reused later."));
- }
- {
- using namespace saveToNewProfile;
- tooltip = makeToolTip(i18n("Save as new session"));
- whatsthis = makeWhatsThis(tooltip, i18n("Create and save a new session."));
- }
- {
- using namespace setupProfiles;
- tooltip = makeToolTip(i18n("Edit sessions"));
- whatsthis = makeWhatsThis(tooltip, i18n("Create new, delete or rename existing sessions."));
- }
- {
- using namespace showFullscreen;
- tooltip = makeToolTip(i18n("Toggle fullscreen mode"));
- whatsthis = makeWhatsThis(tooltip,i18n("Toggle fullscreen mode of the main window."));
- }
- {
- using namespace tile;
- tooltip = makeToolTip(i18n("Tile windows"));
- whatsthis = makeWhatsThis(tooltip,i18n("Tile the open display windows."));
- }
- {
- using namespace cascade;
- tooltip = makeToolTip(i18n("Cascade windows"));
- whatsthis = makeWhatsThis(tooltip,i18n("Cascade the open display windows."));
- }
- {
- using namespace autoTile;
- tooltip = makeToolTip(i18n("Automatically tile windows"));
- whatsthis = makeWhatsThis(tooltip,i18n("Automatically tile the open display windows."));
- }
- {
- using namespace autoCascade;
- tooltip = makeToolTip(i18n("Automatically cascade windows"));
- whatsthis = makeWhatsThis(tooltip, i18n("Automatically cascade the open display windows."));
- }
- {
- using namespace closeAll;
- tooltip = makeToolTip(i18n("Close all windows"));
- whatsthis = makeWhatsThis(tooltip, i18n("Close all open display windows."));
- }
- }
-
- {
- using namespace mainMenu::settings;
- {
- using namespace editToolBar;
- tooltip = makeToolTip(i18n("Edit toolbar"));
- whatsthis = makeWhatsThis(tooltip, i18n("Open BibleTime's toolbar editor."));
- }
- {
- using namespace optionsDialog;
- tooltip = makeToolTip(i18n("Configure BibleTime"));
- whatsthis = makeWhatsThis(tooltip, i18n("Open the dialog to set most of BibleTime's preferences."));
- };
- {
- using namespace swordSetupDialog;
- tooltip = makeToolTip(i18n("Configure Sword"));
- whatsthis = makeWhatsThis(tooltip, i18n("Open the dialog to configure Sword and install/update/remove Sword modules."));
- };
-
- };
-
- {
- using namespace help;
- {
- using namespace handbook;
- tooltip = makeToolTip(i18n("BibleTime's handbook"));
- whatsthis = makeWhatsThis(tooltip,i18n("Open BibleTime's handbook in the KDE helpbrowser.<BR>The handbook explains how to use BibleTime in the best way."));
- };
- {
- using namespace bibleStudyHowTo;
- tooltip = makeToolTip(i18n("BibleTime's Bible study HowTo"));
- whatsthis = makeWhatsThis(tooltip, i18n("Open the Bible study HowTo included with BibleTime in the KDE helpbrowser.<BR>This HowTo is an introduction on how to study the Bible in an efficient way."));
- };
- {
- using namespace whatsThis;
- tooltip = makeToolTip(i18n("Enter \"What's this?\" mode"));
- whatsthis = makeWhatsThis(tooltip, i18n("Switch into the <B>\"What's this?\"</B> mode.<BR>All important elements of BibleTime's GUI offer a \"What's this?\" help message."));
- };
- {
- using namespace bugreport;
- tooltip = makeToolTip(i18n("Send bugreport"));
- whatsthis = makeWhatsThis(tooltip, i18n("Send a bugreport to the developers of BibleTime."));
- };
- {
- using namespace dailyTip;
- tooltip = makeToolTip(i18n("Show daily tips at startup"));
- whatsthis = makeWhatsThis(tooltip, i18n("Show a daily tip each time BibleTime starts.<BR>The tips contain important Bible quotations and helpful tips for using BibleTime."));
- };
- {
- using namespace aboutBibleTime;
- tooltip = makeToolTip(i18n("About BibleTime"));
- whatsthis = makeWhatsThis(tooltip, i18n("Show detailed information about BibleTime."));
- };
- {
- using namespace aboutKDE;
- tooltip = makeToolTip(i18n("About KDE"));
- whatsthis = makeWhatsThis(tooltip, i18n("Show detailed information about the KDE project."));
- };
- };
- };
- };
-
- {
- using namespace searchdialog;
- {
- using namespace searchButton;
- tooltip = makeToolTip(i18n("Start the search"));
- whatsthis = makeWhatsThis(tooltip, i18n("Start to search the text in each of the chosen modules."));
- };
- {
- using namespace cancelSearchButton;
- tooltip = makeToolTip(i18n("Stop search"));
- whatsthis = makeWhatsThis(tooltip, i18n("Stop the active search."));
- };
-
- {
- using namespace options;
- {
- using namespace moduleChooserButton;
- tooltip = makeToolTip(i18n("Choose modules"));
- whatsthis = makeWhatsThis(tooltip, i18n("Open a dialog to choose modules for the search."));
- };
- {
- using namespace searchedText;
- tooltip = makeToolTip(i18n("Search text"));
- whatsthis = makeWhatsThis(tooltip, i18n("Enter the text you want to search in the chosen modules here."));
- };
- {
- using namespace searchType;
- {
- using namespace multipleWords_and;
- tooltip = makeToolTip(i18n("Multiple words (AND)"));
- whatsthis = makeWhatsThis(tooltip, i18n("Treat the search text as multiple words. A text must contain all of the words to match. The order of the words is unimportant."));
- };
- {
- using namespace multipleWords_or;
- tooltip = makeToolTip(i18n("Multiple words (OR)"));
- whatsthis = makeWhatsThis(tooltip, i18n("Treat the search text as multiple words. A text must contain one or more words of to match. The order is unimportant."));
- };
- {
- using namespace exactMatch;
- tooltip = makeToolTip(i18n("Exact match"));
- whatsthis = makeWhatsThis(tooltip, i18n("The search text will be used exactly as entered."));
- };
- {
- using namespace regExp;
- tooltip = makeToolTip(i18n("Regular expression"));
- whatsthis = makeWhatsThis(tooltip, i18n("Treat the search string as a GNU regular expression. The BibleTime handbook contains an introduction to regular expressions."));
- };
- };
-
- {
- using namespace searchOptions;
- {
- using namespace caseSensitive;
- tooltip = makeToolTip(i18n("Case sensitive matching"));
- whatsthis = makeWhatsThis(tooltip, i18n("If you choose this option the search will distinguish between upper and lowercase characters."));
- };
- };
- {
- using namespace chooseScope;
- tooltip = makeToolTip(i18n("Choose a search scope"));
- whatsthis = makeWhatsThis(tooltip, i18n("Choose a scope from the list. Select the first item to use no scope, the second one is to use each module's last search result as search scope. The others are user defined search scopes."));
- };
- {
- using namespace scopeEditor;
- {
- using namespace rangeList;
- tooltip = makeToolTip(i18n("Available search scopes"));
- whatsthis = makeWhatsThis(tooltip, i18n("Select an item from the list to edit the search scope."));
- };
- {
- using namespace nameEdit;
- tooltip = makeToolTip(i18n("Search scope name"));
- whatsthis = makeWhatsThis(tooltip, i18n("Change the name of the selected search scope."));
- };
- {
- using namespace editRange;
- tooltip = makeToolTip(i18n("Edit search scope ranges"));
- whatsthis = makeWhatsThis(tooltip, i18n("Change the search ranges of the selected search scope item. Have a look at the predefined search scopes to see how search ranges are constructed."));
- };
- {
- using namespace parsedResult;
- tooltip = makeToolTip(i18n("Parsed search ranges"));
- whatsthis = makeWhatsThis(tooltip, i18n("Contains the search ranges which will be used for the search."));
- };
- {
- using namespace addNewRange;
- tooltip = makeToolTip(i18n("Add a new search scope"));
- whatsthis = makeWhatsThis(tooltip, i18n("Add a new search scope. First enter an appropriate name, then edit the search ranges."));
- };
- {
- using namespace deleteCurrentRange;
- tooltip = makeToolTip(i18n("Delete current search scope"));
- whatsthis = makeWhatsThis(tooltip, i18n("Deletes the selected search scope. If you close the dialog using Cancel the settings won't be saved."));
- };
- };
- }
- {
- using namespace result;
- {
- using namespace moduleList;
- tooltip = makeToolTip(i18n("Used modules"));
- whatsthis = makeWhatsThis(tooltip, i18n("The list of modules chosen for the search."));
- };
- {
- using namespace foundItems;
- tooltip = makeToolTip(i18n("Found items of selected module"));
- whatsthis = makeWhatsThis(tooltip, i18n("This list contains the search result of the selected module."));
- };
- {
- using namespace textPreview;
- tooltip = makeToolTip(i18n("Text preview"));
- whatsthis = makeWhatsThis(tooltip, i18n("The text preview of the selected search result item."));
- };
- };
- };
-
- {
- using namespace displaywindows;
- {
- using namespace general;
- {
- using namespace scrollButton;
- tooltip = makeToolTip( i18n("Scroll through the list") );
- whatsthis = makeWhatsThis(tooltip, i18n("This button is useful to scroll through the entries of the list. Press the button and move the mouse to increase or decrease the item."));
- };
- using namespace bibleWindow;
- {
- using namespace bookList;
- tooltip = makeToolTip( i18n("List of books") );
- whatsthis = makeWhatsThis(tooltip, i18n("This list contains the books which are available in this module."));
- };
- {
- using namespace nextBook;
- tooltip = makeToolTip( i18n("Show the next book") );
- whatsthis = makeWhatsThis(tooltip, i18n("Show the next book of this module."));
- }
- {
- using namespace previousBook;
- tooltip = makeToolTip( i18n("Show the previous book") );
- whatsthis = makeWhatsThis(tooltip, i18n("Show the previous book of this module."));
- }
- {
- using namespace chapterList;
- tooltip = makeToolTip( i18n("List of chapters") );
- whatsthis = makeWhatsThis(tooltip, i18n("This list contains the chapters which are available in the current book."));
- };
- {
- using namespace nextChapter;
- tooltip = makeToolTip( i18n("Show the next chapter") );
- whatsthis = makeWhatsThis(tooltip, i18n("Show the previous chapter of the module."));
- }
- {
- using namespace previousChapter;
- tooltip = makeToolTip( i18n("Show the previous chapter") );
- whatsthis = makeWhatsThis(tooltip, i18n("Show the next chapter of the module."));
- }
- {
- using namespace verseList;
- tooltip = makeToolTip( i18n("List of verses") );
- whatsthis = makeWhatsThis(tooltip, i18n("This list contains the verses which are available in the current chapter."));
- };
- {
- using namespace nextVerse;
- tooltip = makeToolTip( i18n("Jump to the next verse") );
- whatsthis = makeWhatsThis(tooltip, i18n("In Bible texts, the next verse will be highlighted. In commentaries, the next entry will be shown."));
-
- }
- { using namespace previousVerse;
- tooltip = makeToolTip( i18n("Jump to the previous verse") );
- whatsthis = makeWhatsThis(tooltip, i18n("In Bible texts, the previous verse will be highlighted. In commentaries, the previous entry will be shown."));
- }
- };
- {
- using namespace commentaryWindow;
- {
- using namespace syncWindow;
- tooltip = makeToolTip(i18n("Synchronize with Bible windows"));
- whatsthis = makeWhatsThis(tooltip, i18n("Synchronize the displayed entry of this module with the active Bible window."));
- }
- };
- {
- using namespace lexiconWindow;
- {
- using namespace entryList;
- tooltip = makeToolTip( i18n("List of entries") );
- whatsthis = makeWhatsThis(tooltip, i18n("This list contains the entries of the current module."));
- };
- {
- using namespace nextEntry;
- tooltip = makeToolTip( i18n("Show the next entry") );
- whatsthis = makeWhatsThis(tooltip, i18n("The next entry of the module will be shown."));
- };
- {
- using namespace previousEntry;
- tooltip = makeToolTip( i18n("Show the previous entry") );
- whatsthis = makeWhatsThis(tooltip, i18n("The previous entry of the module will be shown."));
- };
- };
-
- {
- using namespace writeWindow;
- {
- using namespace saveText;
- tooltip = makeToolTip( i18n("Save the current text") );
- whatsthis = makeWhatsThis( tooltip, i18n("Save the curent text into the module. The old text will be overwritten.") );
- };
- {
- using namespace restoreText;
- tooltip = makeToolTip( i18n("Restore the old text") );
- whatsthis = makeWhatsThis( tooltip, i18n("Loads the old text from the module and loads it into the edit area. The unsaved text will be lost.") );
- };
- {
- using namespace deleteEntry;
- tooltip = makeToolTip( i18n("Delete the current entry") );
- whatsthis = makeWhatsThis( tooltip, i18n("Deletes the current entry out of the module. The text will be lost.") );
- };
-
- //formatting buttons
- {
- using namespace boldText;
- tooltip = makeToolTip( i18n("Bold text") );
- whatsthis = makeWhatsThis( tooltip, i18n("Toggle bold formatting of the selected text.") );
- };
- {
- using namespace italicText;
- tooltip = makeToolTip( i18n("Italic text") );
- whatsthis = makeWhatsThis( tooltip, i18n("Toggle italic formatting of the selected text.") );
- };
- {
- using namespace underlinedText;
- tooltip = makeToolTip( i18n("Underline text") );
- whatsthis = makeWhatsThis( tooltip, i18n("Toggle underlined formatting of the selected text.") );
- };
-
- {
- using namespace alignLeft;
- tooltip = makeToolTip( i18n("Align left") );
- whatsthis = makeWhatsThis( tooltip, i18n("The text will be aligned on the left side of the page.") );
- };
- {
- using namespace alignCenter;
- tooltip = makeToolTip( i18n("Center") );
- whatsthis = makeWhatsThis( tooltip, i18n("Centers the text horizontally.") );
- };
- {
- using namespace alignRight;
- tooltip = makeToolTip( i18n("Align right") );
- whatsthis = makeWhatsThis( tooltip, i18n("Aligns the text on the right side of the page.") );
- };
- {
- using namespace alignJustify;
- tooltip = makeToolTip( i18n("Justify") );
- whatsthis = makeWhatsThis( tooltip, i18n("Justifies the text on the page.") );
- };
-
- {
- using namespace fontFamily;
- tooltip = makeToolTip( i18n("Set the font") );
- whatsthis = makeWhatsThis( tooltip, i18n("Choose a new font for the selected text.") );
- };
- { using namespace fontSize;
- tooltip = makeToolTip( i18n("Set the font size") );
- whatsthis = makeWhatsThis( tooltip, i18n("Choose a new font size for the selected text.") );
- };
- { using namespace fontColor;
- tooltip = makeToolTip( i18n("Set the color") );
- whatsthis = makeWhatsThis( tooltip, i18n("Choose a new color for the selected text.") );
- };
- };
- };
-
- {
- using namespace printing;
- {
- using namespace itemPage;
- {
- using namespace styleChooser;
- tooltip = makeToolTip(i18n("Styles"));
- whatsthis = makeWhatsThis(tooltip,i18n("This list contains the available print styles."));
- };
- {
- using namespace itemList;
- tooltip = makeToolTip(i18n("List of print items"));
- whatsthis = makeWhatsThis(tooltip,i18n("This is the list which contains the items to be printed."));
- };
- {
- using namespace itemUp;
- tooltip = makeToolTip(i18n("Move item up"));
- whatsthis = makeWhatsThis(tooltip,i18n("Move the selected item up one line."));
- };
- {
- using namespace itemDown;
- tooltip = makeToolTip(i18n("Move item down"));
- whatsthis = makeWhatsThis(tooltip,i18n("Move the selected item down one line."));
- };
- {
- using namespace itemDelete;
- tooltip = makeToolTip(i18n("Delete items"));
- whatsthis = makeWhatsThis(tooltip,i18n("Delete the selected items."));
- };
- };
-
- {
- using namespace styleList;
- {
- using namespace newStyle;
- tooltip = makeToolTip( i18n("New printing style") );
- whatsthis = makeWhatsThis( tooltip, i18n("Create a new printing style.") );
-
- };
- {
- using namespace deleteStyle;
- tooltip = makeToolTip( i18n("Delete printing style") );
- whatsthis = makeWhatsThis( tooltip, i18n("Remove the selected printing style from the list.") );
-
- };
- {
- using namespace editStyle;
- tooltip = makeToolTip( i18n("Edit printing style") );
- whatsthis = makeWhatsThis( tooltip, i18n("Change the properties of the selected printing style.") );
-
- };
- };
- {
- using namespace printerSettings;
- {
- margins::whatsthis = makeWhatsThis( makeToolTip(i18n("Size of page borders")), i18n("This group contains the page borders of the page measured in millimeters.") );
- {
- using namespace margins::upper;
- tooltip = makeToolTip( i18n("Upper border") );
- whatsthis = makeWhatsThis( tooltip, i18n("The size of the border on the top of the paper.") );
- };
- {
- using namespace margins::lower;
- tooltip = makeToolTip( i18n("Lower border") );
- whatsthis = makeWhatsThis( tooltip, i18n("The size of the border on the bottom of the paper.") );
- };
- {
- using namespace margins::left;
- tooltip = makeToolTip( i18n("Left border") );
- whatsthis = makeWhatsThis( tooltip, i18n("The size of the border on the left side of the paper.") );
- };
- {
- using namespace margins::right;
- tooltip = makeToolTip( i18n("Right border") );
- whatsthis = makeWhatsThis( tooltip, i18n("The size of the border on the right side of the paper.") );
- };
- };
- };
- };
- {
- using namespace settings;
- {
- using namespace startup;
- {
- using namespace dailyTip;
- tooltip = makeToolTip( i18n("Show daily tip") );
- whatsthis = makeWhatsThis( tooltip, i18n("Activate this box to see a daily tip on startup."));
- };
- {
- using namespace showLogo;
- tooltip = makeToolTip( i18n("Show startup logo") );
- whatsthis = makeWhatsThis( tooltip, i18n("Activate this to see the BibleTime logo on startup."));
- };
- {
- using namespace restoreWorkingArea;
- tooltip = makeToolTip( i18n("Restore the last BibleTime session on startup") );
- whatsthis = makeWhatsThis( tooltip, i18n("Save the user's session when BibleTime is closed and restore it on the next startup."));
- };
- };
- {
- using namespace fonts;
- {
- using namespace typeChooser;
- tooltip = makeToolTip( i18n("Choose a language") );
- whatsthis = makeWhatsThis( tooltip, i18n("The font selection below will apply to all texts in this language."));
- };
- };
- {
- using namespace colors;
- {
- using namespace text;
- tooltip = makeToolTip( i18n("Text color") );
- whatsthis = makeWhatsThis( tooltip, i18n("The color used for normal text in the display windows."));
- };
- {
- using namespace background;
- tooltip = makeToolTip( i18n("Color of the background") );
- whatsthis = makeWhatsThis( tooltip, i18n("This is the background color used in display windows."));
- };
- {
- using namespace links;
- tooltip = makeToolTip( i18n("Link color") );
- whatsthis = makeWhatsThis( tooltip, i18n("The color used for all references into Sword modules."));
- };
- {
- using namespace footnotes;
- tooltip = makeToolTip( i18n("Footnote color") );
- whatsthis = makeWhatsThis( tooltip, i18n("This color will be used for all footnotes in the display windows."));
- };
- {
- using namespace strongNumbers;
- tooltip = makeToolTip( i18n("Strong's Numbers") );
- whatsthis = makeWhatsThis( tooltip, i18n("This color will be used for every Strong's Number in the display windows."));
- };
- {
- using namespace highlightedVerse;
- tooltip = makeToolTip( i18n("Color of the highlighted verse") );
- whatsthis = makeWhatsThis( tooltip, i18n("This is the color of the highlighted verse used in display windows."));
- };
- {
- using namespace jesusWords;
- tooltip = makeToolTip( i18n("Words of Jesus") );
- whatsthis = makeWhatsThis( tooltip, i18n("All words spoken by Jesus will appear in this color."));
- };
- {
- using namespace morphTags;
- tooltip = makeToolTip( i18n("Morphological tags") );
- whatsthis = makeWhatsThis( tooltip, i18n("All morphological tags will appear in this color."));
- };
- };
- {
- using namespace profiles;
- {
- using namespace list;
- tooltip = makeToolTip( i18n("List of sessions") );
- whatsthis = makeWhatsThis( tooltip, i18n("The list of available sessions."));
- };
- {
- using namespace createNew;
- tooltip = makeToolTip( i18n("Create new session") );
- whatsthis = makeWhatsThis( tooltip, i18n("Create a new, empty session with default settings."));
- };
- {
- using namespace deleteCurrent;
- tooltip = makeToolTip( i18n("Delete session") );
- whatsthis = makeWhatsThis( tooltip, i18n("Delete the selected session."));
- };
- {
- using namespace renameCurrent;
- tooltip = makeToolTip( i18n("Rename session") );
- whatsthis = makeWhatsThis( tooltip, i18n("Rename the selected session."));
- };
- };
- {
- using namespace settings::sword;
- {
- using namespace general;
- {
- using namespace cacheKeys;
- tooltip = makeToolTip( i18n("Use cache files for the lexicon entries") );
- whatsthis = makeWhatsThis( tooltip, i18n("Activate this to let BibleTime create index files for the lexicon entries. This increases the speed of opening large lexicon modules significantly, but does consume some disk space. Recommended."));
- };
- {
- using namespace scrolling;
- tooltip = makeToolTip( i18n("Use down arrow to scroll to next verse") );
- whatsthis = makeWhatsThis( tooltip, i18n("Check this to use the down arrow to scroll to the next verse."));
- };
- {
- using namespace language;
- tooltip = makeToolTip( i18n("List of languages") );
- whatsthis = makeWhatsThis( tooltip, i18n("Contains the languages which can be used for the biblical booknames."));
- };
- };
- {
- using namespace settings::sword::modules;
- {
- using namespace bible;
- tooltip = makeToolTip( i18n("The default bible used in the workspace area") );
- whatsthis = makeWhatsThis( tooltip, i18n("The default Bible is used when a hyperlink into a Bible is clicked."));
- };
- {
- using namespace commentary;
- tooltip = makeToolTip( i18n("The default commentary used in the workspace area") );
- whatsthis = makeWhatsThis( tooltip, i18n("The default commentary is used when a hyperlink into a commentary is clicked."));
- };
- {
- using namespace lexicon;
- tooltip = makeToolTip( i18n("The default lexicon used in the workspace area") );
- whatsthis = makeWhatsThis( tooltip, i18n("The default lexicon is used when a hyperlink into a lexicon is clicked."));
- };
- {
- using namespace dailyDevotional;
- tooltip = makeToolTip( i18n("The default daily devotional module") );
- whatsthis = makeWhatsThis( tooltip, i18n("The default devotional will be used to display a short start up devotional."));
- };
- {
- using namespace hebrewStrongs;
- tooltip = makeToolTip( i18n("The default Hebrew lexicon used in the workspace area") );
- whatsthis = makeWhatsThis( tooltip, i18n("The default Hebrew lexicon is used when a hyperlink into a Hebrew lexicon is clicked."));
- };
- {
- using namespace greekStrongs;
- tooltip = makeToolTip( i18n("The default Greek lexicon used in the workspace area") );
- whatsthis = makeWhatsThis( tooltip, i18n("The default Greek lexicon is used when a hyperlink into a Greek lexicon is clicked."));
- };
- {
- using namespace hebrewMorph;
- tooltip = makeToolTip( i18n("The default Morphological lexicon for Hebrew texts used in the workspace area") );
- whatsthis = makeWhatsThis( tooltip, i18n("The standard morphological lexicon for Hebrew texts is used when a hyperlink of a morphological tag in a Hebrew text is clicked."));
- };
- {
- using namespace greekMorph;
- tooltip = makeToolTip( i18n("The default Morphological lexicon for Greek texts used in the workspace area") );
- whatsthis = makeWhatsThis( tooltip, i18n("The standard morphological lexicon for Greek texts is used when a hyperlink of a morphological tag in a Greek text is clicked."));
- };
- };
- {
- using namespace filters;
- {
- using namespace lineBreaks;
- tooltip = makeToolTip( i18n("Line breaks") );
- whatsthis = makeWhatsThis( tooltip, i18n("Insert line breaks after each verse."));
- };
- {
- using namespace verseNumbers;
- tooltip = makeToolTip( i18n("Verse numbers") );
- whatsthis = makeWhatsThis( tooltip, i18n("Show the verse number before each verse in Bibles."));
- };
- {
- using namespace footnotes;
- tooltip = makeToolTip( CSwordBackend::translatedOptionName(CSwordBackend::footnotes) );
- whatsthis = makeWhatsThis( tooltip, i18n("Show footnotes embedded in the module's text."));
- };
- {
- using namespace strongsNumbers;
- tooltip = makeToolTip( CSwordBackend::translatedOptionName(CSwordBackend::strongNumbers) );
- whatsthis = makeWhatsThis( tooltip, i18n("Show Strong's Numbers embedded in the text of modules which support this feature."));
- };
- {
- using namespace morphTags;
- tooltip = makeToolTip( CSwordBackend::translatedOptionName(CSwordBackend::morphTags) );
- whatsthis = makeWhatsThis( tooltip, i18n("Show tags providing morphological information in the text of modules which support this feature."));
- };
- {
- using namespace headings;
- tooltip = makeToolTip( CSwordBackend::translatedOptionName(CSwordBackend::headings) );
- whatsthis = makeWhatsThis( tooltip, i18n("Show section headings in the text in the text of modules which support this feature."));
- };
- {
- using namespace lemmas;
- tooltip = makeToolTip( CSwordBackend::translatedOptionName(CSwordBackend::lemmas) );
- whatsthis = makeWhatsThis( tooltip, i18n("Show root words."));
- };
- {
- using namespace hebrewVowelPoints;
- tooltip = makeToolTip( CSwordBackend::translatedOptionName(CSwordBackend::hebrewPoints) );
- whatsthis = makeWhatsThis( tooltip, i18n("Show hebrew vowel points in the text."));
- };
- {
- using namespace hebrewCantillation;
- tooltip = makeToolTip( CSwordBackend::translatedOptionName(CSwordBackend::hebrewCantillation) );
- whatsthis = makeWhatsThis( tooltip, i18n("Show hebrew cantillation marks in the text."));
- };
- {
- using namespace greekAccents;
- tooltip = makeToolTip( CSwordBackend::translatedOptionName(CSwordBackend::greekAccents) );
- whatsthis = makeWhatsThis( tooltip, i18n("Show greek accents in the text."));
- };
- {
- using namespace textualVariants;
- tooltip = makeToolTip( CSwordBackend::translatedOptionName(CSwordBackend::textualVariants) );
- whatsthis = makeWhatsThis( tooltip, i18n("Use different variants from the textual sources."));
- };
- };
- };
- };
- {
- using namespace mainIndex;
- {
- using namespace search;
- tooltip = makeToolTip(i18n("Search in open modules"));
- whatsthis = makeWhatsThis(tooltip, i18n("Opens the search dialog to search in the modules that are currently open."));
- };
- };
- };
-};
diff --git a/bibletime/util/cresmgr.h b/bibletime/util/cresmgr.h
deleted file mode 100644
index d09a429..0000000
--- a/bibletime/util/cresmgr.h
+++ /dev/null
@@ -1,890 +0,0 @@
-/***************************************************************************
- chelpmgr.h - description
- -------------------
- begin : Mon Sep 16 2002
- copyright : (C) 2002 by The BibleTime team
- email : info@bibletime.de
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * 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. *
- * *
- ***************************************************************************/
-
-#ifndef CRESMGR_H
-#define CRESMGR_H
-
-//Qt includes
-#include <qstring.h>
-#include <qkeysequence.h>
-
-//KDE includes
-#include <kshortcut.h>
-
-/** Provides static functions to easily access the Tooltip and WhatsThis texts for all the frontend parts.
- * @author The BibleTime team
- */
-namespace CResMgr {
- void init_i18n();
-
- namespace modules {
- namespace bible {
- extern const QString icon_unlocked;
- extern const QString icon_locked;
- extern const QString icon_add;
- };
- namespace commentary {
- extern const QString icon_unlocked;
- extern const QString icon_locked;
- extern const QString icon_add;
- };
- namespace lexicon {
- extern const QString icon_unlocked;
- extern const QString icon_locked;
- extern const QString icon_add;
- };
- namespace book {
- extern const QString icon_unlocked;
- extern const QString icon_locked;
- extern const QString icon_add;
- };
- };
-
- namespace mainMenu { //Main menu
- namespace file { //Main menu->File
- namespace clearQueue {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- namespace print { //a standard action
- extern QString tooltip;
- extern QString whatsthis;
- }
- namespace quit { //a standard action
- extern QString tooltip;
- extern QString whatsthis;
- }
- }
-
- namespace view { //Main menu->View
- namespace showMainIndex {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- namespace showToolBar { //a standard action
- extern QString tooltip;
- extern QString whatsthis;
- }
- }
-
- namespace mainIndex { //configuration for the main index and the view->search menu
- namespace search {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- namespace searchdefaultbible {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- };
-
- namespace window { //Main menu->Window
- namespace loadProfile {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const char* actionName;
- }
- namespace saveProfile {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const char* actionName;
- }
- namespace saveToNewProfile {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- namespace setupProfiles {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- namespace showFullscreen {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- namespace tile {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- namespace cascade {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- namespace autoTile {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- namespace autoCascade {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- namespace closeAll {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- }
-
- namespace settings { //Main menu->Settings
- namespace editToolBar { // available as KStdAction
- extern QString tooltip;
- extern QString whatsthis;
- }
- namespace optionsDialog { // available as KStdAction
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace swordSetupDialog {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- };
-
- namespace help { //Main menu->Help
- namespace handbook {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace bibleStudyHowTo {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace whatsThis { // available as KStdAction
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace bugreport { // available as KStdAction
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace dailyTip {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace aboutBibleTime { // available as KStdAction
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace aboutKDE { // available as KStdAction
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- } //end of main menu
-
- namespace searchdialog {
- extern const QString icon;
-
- namespace searchButton {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace cancelSearchButton {
- extern QString tooltip;
- extern QString whatsthis;
- };
-
- namespace options {
-// namespace moduleChooserDialog {
-// extern QString tooltip;
-// extern QString whatsthis;
-// };
- namespace moduleChooserButton {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace searchedText {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace searchType {
- namespace multipleWords_and {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace multipleWords_or {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace exactMatch {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace regExp {
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
-
- namespace searchOptions {
- namespace caseSensitive {
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- namespace chooseScope {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace scopeEditor {
- namespace rangeList {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace nameEdit {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace editRange {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace parsedResult {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace addNewRange {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace deleteCurrentRange {
- extern QString tooltip;
- extern QString whatsthis;
- };
-
- };
- }
- namespace result {
- namespace moduleList {
- extern QString tooltip;
- extern QString whatsthis;
-
- namespace copyMenu {
- extern const QString icon;
- };
- namespace saveMenu {
- extern const QString icon;
- };
- namespace printMenu {
- extern const QString icon;
- };
- };
- namespace foundItems {
- extern QString tooltip;
- extern QString whatsthis;
-
- namespace copyMenu {
- extern const QString icon;
- };
- namespace saveMenu {
- extern const QString icon;
- };
- namespace printMenu {
- extern const QString icon;
- };
-
- };
- namespace textPreview {
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- };
-
- namespace workspace {
- };
-
- namespace displaywindows {
- namespace transliteration {
- extern const QString icon;
- };
- namespace displaySettings {
- extern const QString icon;
- };
-
- namespace general {
- namespace scrollButton{
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
-
- namespace bibleWindow {
- namespace bookList {
- extern QString tooltip;
- extern QString whatsthis;
- }
- namespace nextBook {
- extern QString tooltip;
- extern QString whatsthis;
- extern const KShortcut accel;
- }
- namespace previousBook {
- extern QString tooltip;
- extern QString whatsthis;
- extern const KShortcut accel;
- }
-
- namespace chapterList {
- extern QString tooltip;
- extern QString whatsthis;
- }
- namespace nextChapter {
- extern QString tooltip;
- extern QString whatsthis;
- extern const KShortcut accel;
- }
- namespace previousChapter {
- extern QString tooltip;
- extern QString whatsthis;
- extern const KShortcut accel;
- }
-
- namespace verseList {
- extern QString tooltip;
- extern QString whatsthis;
- }
- namespace nextVerse {
- extern QString tooltip;
- extern QString whatsthis;
- extern const KShortcut accel;
- }
- namespace previousVerse {
- extern QString tooltip;
- extern QString whatsthis;
- extern const KShortcut accel;
- }
-
- namespace copyMenu {
- extern const QString icon;
- };
- namespace saveMenu {
- extern const QString icon;
- }
- namespace printMenu {
- extern const QString icon;
- }
- };
- namespace commentaryWindow {
- namespace syncWindow {
- extern const QString icon;
- extern QString tooltip;
- extern QString whatsthis;
- extern const KShortcut accel;
- extern const char* actionName;
- }
-
- };
-
- namespace lexiconWindow {
- namespace entryList {
- extern QString tooltip;
- extern QString whatsthis;
- }
- namespace nextEntry {
- extern QString tooltip;
- extern QString whatsthis;
- extern const KShortcut accel;
- }
- namespace previousEntry {
- extern QString tooltip;
- extern QString whatsthis;
- extern const KShortcut accel;
- }
-
- namespace copyMenu {
- extern const QString icon;
- }
- namespace saveMenu {
- extern const QString icon;
- }
- namespace printMenu {
- extern const QString icon;
- }
- };
- namespace bookWindow {
- namespace toggleTree {
- extern const QString icon;
- extern const KShortcut accel;
- };
- };
-
-
- namespace writeWindow {
- namespace saveText {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace restoreText {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace deleteEntry {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
-
- //formatting buttons
- namespace boldText {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace italicText {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace underlinedText {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
-
- namespace alignLeft {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace alignCenter {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace alignRight {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace alignJustify {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- };
-
- namespace fontFamily {
- extern QString tooltip;
- extern QString whatsthis;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace fontSize {
- extern QString tooltip;
- extern QString whatsthis;
- extern const KShortcut accel;
- extern const char* actionName;
- };
- namespace fontColor {
- extern QString tooltip;
- extern QString whatsthis;
- };
-
- };
- };
-
- namespace printing {
- namespace itemPage {
- namespace styleChooser {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace itemList {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace itemUp {
- extern const QString icon;
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace itemDown {
- extern const QString icon;
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace itemDelete {
- extern const QString icon;
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
-
- namespace styleList {
- namespace newStyle {
- extern const QString icon;
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace deleteStyle {
- extern const QString icon;
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace editStyle {
- extern const QString icon;
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- namespace printerSettings {
- namespace margins {
- extern QString whatsthis;
-
- namespace upper {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace lower {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace left {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace right {
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- };
- };
-
- namespace settings {
- namespace startup {
- extern const QString icon;
-
- namespace dailyTip {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace showLogo {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace restoreWorkingArea {
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- namespace fonts {
- extern const QString icon;
-
- namespace typeChooser {
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- namespace colors {
- extern const QString icon;
-
- namespace text {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace background {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace links {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace footnotes {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace strongNumbers {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace highlightedVerse {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace jesusWords {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace morphTags {
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- namespace profiles {
- extern const QString icon;
-
- namespace list {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace createNew {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace deleteCurrent {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace renameCurrent {
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- namespace sword {
- extern const QString icon;
-
- namespace general {
- namespace cacheKeys {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace scrolling {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace language {
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- namespace modules {
- namespace bible {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace commentary {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace lexicon {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace dailyDevotional {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace hebrewStrongs {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace greekStrongs {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace hebrewMorph {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace greekMorph {
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- namespace filters {
- namespace lineBreaks {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace verseNumbers {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace footnotes {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace strongsNumbers {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace morphTags {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace headings {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace lemmas {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace hebrewVowelPoints {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace hebrewCantillation {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace greekAccents {
- extern QString tooltip;
- extern QString whatsthis;
- };
- namespace textualVariants {
- extern QString tooltip;
- extern QString whatsthis;
- };
- };
- };
- namespace keys {
- extern const QString icon;
- };
- };
-
- namespace mainIndex { //configuration for the main index and the view->search menu
- namespace search {
- extern QString tooltip;
- extern QString whatsthis;
- extern const QString icon;
- extern const KShortcut accel;
- extern const char* actionName;
- }
- namespace newFolder {
- extern const QString icon;
- }
- namespace changeFolder {
- extern const QString icon;
- }
- namespace openedFolder {
- extern const QString icon;
- }
- namespace closedFolder {
- extern const QString icon;
- }
-
- namespace bookmark {
- extern const QString icon;
- }
- namespace changeBookmark {
- extern const QString icon;
- }
- namespace importBookmarks {
- extern const QString icon;
- }
- namespace exportBookmarks {
- extern const QString icon;
- }
- namespace printBookmarks {
- extern const QString icon;
- }
- namespace deleteItems {
- extern const QString icon;
- }
-
- namespace editModuleMenu {
- extern const QString icon;
- }
- namespace editModulePlain {
- extern const QString icon;
- }
- namespace editModuleHTML {
- extern const QString icon;
- }
-
- namespace unlockModule {
- extern const QString icon;
- }
- namespace aboutModule {
- extern const QString icon;
- }
- };
-
- namespace helpDialog {
- extern const QString moduleLocked;
- extern const QString firstStart;
- extern const QString noSwordModules;
- extern const QString noSwordModuleConfigDir;
- extern const QString initBackendFailed;
- extern const QString firstTimeSearchDialog;
- };
-}
-
-#endif
diff --git a/bibletime/util/ctoolclass.cpp b/bibletime/util/ctoolclass.cpp
deleted file mode 100644
index d2caf7a..0000000
--- a/bibletime/util/ctoolclass.cpp
+++ /dev/null
@@ -1,196 +0,0 @@
-/***************************************************************************
- ctoolclass.cpp - some methods,that would be normal global,but
- I hate global function :-)
-
- begin : 20 Jan 1999
- copyright : (C) 1999 by Sandy Meier
- email : smeier@rz.uni-potsdam.de
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * 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. *
- * *
- ***************************************************************************/
-
-//own includes
-#include "ctoolclass.h"
-
-#include "util/cresmgr.h"
-#include "backend/cswordmoduleinfo.h"
-
-//QT includes
-#include <qlabel.h>
-#include <qfile.h>
-#include <qfiledialog.h>
-#include <qtextstream.h>
-#include <qregexp.h>
-
-//KDE includes
-#include <klocale.h>
-#include <kglobal.h>
-#include <kiconloader.h>
-#include <kstandarddirs.h>
-#include <kmessagebox.h>
-#include <kurl.h>
-#include <kfiledialog.h>
-#include <kapplication.h>
-
-
-QString CToolClass::locatehtml(const QString &filename) {
- QString path = locate("html", KGlobal::locale()->language() + '/' + filename);
- if (path.isNull())
- path = locate("html", "default/" + filename);
- if (path.isNull())
- path = locate("html", "en/" + filename);
- return path;
-}
-
-/** Converts HTML text to plain text */
-QString CToolClass::htmlToText(const QString& html) {
- QString newText = html;
- // convert some tags we need in code
- newText.replace( QRegExp(" "),"#SPACE#" );
- newText.replace( QRegExp("<BR>\\s*"), "<BR>\n" );
- newText.replace( QRegExp("#SPACE#")," " );
-
- QRegExp re("<.+>");
- re.setMinimal(true);
- newText.replace( re,"" );
- return newText;
-}
-
-/** Converts text to HTML (\n to <BR>) */
-QString CToolClass::textToHTML(const QString& text){
- QString newText = text;
- newText.replace( QRegExp("<BR>\n"),"#NEWLINE#" );
- newText.replace( QRegExp("\n"),"<BR>\n" );
- newText.replace( QRegExp("#NEWLINE#"),"<BR>\n");
- return newText;
-}
-
-/** Creates the file filename and put text into the file.
- */
-bool CToolClass::savePlainFile( const QString& filename, const QString& text, const bool& forceOverwrite, const QTextStream::Encoding& fileEncoding){
- QFile saveFile(filename);
- bool ret;
-
- if (saveFile.exists()) {
- if (!forceOverwrite && KMessageBox::warningYesNo(0,
- QString::fromLatin1("<qt><B>%1</B><BR>%2</qt>")
- .arg( i18n("The file already exists.") )
- .arg( i18n("Do you want to overwrite it?")
- )
- ) == KMessageBox::No
- ) {
- return false;
- }
- else { //either the user chose yes or forceOverwrite is set
- saveFile.remove();
- }
- };
-
- if ( saveFile.open(IO_ReadWrite) ) {
- QTextStream textstream( &saveFile );
- textstream.setEncoding(fileEncoding);
- textstream << text;
- saveFile.close();
- ret = true;
- }
- else {
- KMessageBox::error(0, QString::fromLatin1("<qt>%1<BR><B>%2</B></qt>")
- .arg( i18n("The file couldn't be saved.") )
- .arg( i18n("Please check permissions etc.")));
- saveFile.close();
- ret = false;
- }
- return ret;
-}
-
-
-/** Returns the icon used for the module given as aparameter. */
-QPixmap CToolClass::getIconForModule( CSwordModuleInfo* module_info ){
- if (!module_info)
- return SmallIcon(CResMgr::modules::book::icon_locked, 16);
-
- if (module_info->category() == CSwordModuleInfo::Cult) {
- return SmallIcon("stop.png", 16);
- };
-
-
- QPixmap img;
-
- switch (module_info->type()){
- case CSwordModuleInfo::Bible:
- if (module_info->isLocked())
- img = SmallIcon(CResMgr::modules::bible::icon_locked, 16);
- else
- img = SmallIcon(CResMgr::modules::bible::icon_unlocked, 16);
- break;
-
- case CSwordModuleInfo::Lexicon:
- if (module_info->isLocked())
- img = SmallIcon(CResMgr::modules::lexicon::icon_locked, 16);
- else
- img = SmallIcon(CResMgr::modules::lexicon::icon_unlocked, 16);
- break;
-
- case CSwordModuleInfo::Commentary:
- if (module_info->isLocked())
- img = SmallIcon(CResMgr::modules::commentary::icon_locked, 16);
- else
- img = SmallIcon(CResMgr::modules::commentary::icon_unlocked, 16);
- break;
-
- case CSwordModuleInfo::GenericBook:
- if (module_info->isLocked())
- img = SmallIcon(CResMgr::modules::book::icon_locked, 16);
- else
- img = SmallIcon(CResMgr::modules::book::icon_unlocked, 16);
- break;
-
- case CSwordModuleInfo::Unknown: //fall though to default
- default:
- if (module_info->isLocked())
- img = SmallIcon(CResMgr::modules::book::icon_locked, 16);
- else
- img = SmallIcon(CResMgr::modules::book::icon_unlocked, 16);
- break;
- }
-
-
- return img;
-}
-
-QLabel* CToolClass::explanationLabel(QWidget* parent, const QString& heading, const QString& text ){
- QLabel* label = new QLabel( QString::fromLatin1("<B>%1</B><BR>%2").arg(heading).arg(text),parent );
- label->setAutoResize(true);
- label->setMargin(1);
- label->setFrameStyle(QFrame::Box | QFrame::Plain);
- return label;
-}
-
-/** No descriptions */
-bool CToolClass::inHTMLTag(int pos, QString & text){
- int i1=text.findRev("<",pos);
- int i2=text.findRev(">",pos);
- int i3=text.find(">",pos);
- int i4=text.find("<",pos);
-
-
-// if ((i1>0) && (i2==-1)) //we're in th first html tag
-// i2=i1; // not ncessary, just for explanation
-
- if ((i3>0) && (i4==-1)) //we're in the last html tag
- i4=i3+1;
-
-// qWarning("%d > %d && %d < %d",i1,i2,i3,i4);
-
- if ( (i1>i2) && (i3<i4) )
- return true; //yes, we're in a tag
-
- return false;
-}
diff --git a/bibletime/util/ctoolclass.h b/bibletime/util/ctoolclass.h
deleted file mode 100644
index f7c7453..0000000
--- a/bibletime/util/ctoolclass.h
+++ /dev/null
@@ -1,87 +0,0 @@
-/***************************************************************************
- ctoolclass.h - some methods,that would be normal global, but
- I hate global function :-)
- -------------------
-
- begin : 20 Jan 1999
- copyright : (C) 1999 by Joachim Ansorg
- email : Jockel123@gmx.de
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * 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. *
- * *
- ***************************************************************************/
-
-//BibleTime includes
-
-
-//Qt includes
-#include <qstring.h>
-#include <qpixmap.h>
-#include <qtextstream.h>
-
-
-#ifndef CTOOLCLASS_H
-#define CTOOLCLASS_H
-
-
-class CSwordModuleInfo;
-class QLabel;
-
-/**
- * Provides some useful functions which would be normally global.
- *
- * Some methods,that would be normaly global, but I hate global functions :-)
- * (the function locateHTML is from Sandy Meier (KDevelop))
- *
- * @short A class which contains static members to do small things.
- * @author Joachim Ansorg <jansorg@gmx.de>
- */
-class CToolClass {
-
-public:
- /**
- * @return The path of the HTML file "filename". This function searches only in $KDEDIR.
- * @author Sandy Meier of the KDevelop team.
- */
- static QString locatehtml(const QString &filename);
- /**
- * Converts HTML text to plain text.
- * This function converts some HTML tags in text (e.g. <BR> to \n)
- * @return The text withput HTML tags and with converted <BR> to \n
- * @author Joachim Ansorg
- */
- static QString htmlToText(const QString&);
- /**
- * Converts text to HTML converting some text commands into HTML tags (e.g. \n to <BR>)
- * @return The HTML formatted text we got after changing \n to <BR>
- * @author Joachim Ansorg
- */
- static QString textToHTML(const QString&);
- /**
- * Creates the file filename and put the text of parameter "text" into the file.
- * @return True if saving was sucessful, otherwise false
- * @author Joachim Ansorg
- */
- static bool savePlainFile( const QString& filename, const QString& text, const bool& forceOverwrite = false, const QTextStream::Encoding& fileEncoding = QTextStream::Locale);
- /**
- * Returns the icon used for the module given as aparameter.
- */
- static QPixmap getIconForModule( CSwordModuleInfo* );
- /** Returns a label to explain difficult things of dialogs.
- * This function returns a label with heading "heading" and explanation "text". This label should be used to
- * explain difficult things of the GUI, e.g. in the optionsdialog.
- */
- static QLabel* explanationLabel(QWidget* parent, const QString& heading, const QString& text );
- /**
- * Returns true if the character at position "pos" of text is inside an HTML tag. Returns false if it's not inside an HTML tag.
- */
- static bool inHTMLTag(int pos, QString & text);
-};
-
-#endif
diff --git a/bibletime/util/scoped_resource.h b/bibletime/util/scoped_resource.h
deleted file mode 100644
index 351667c..0000000
--- a/bibletime/util/scoped_resource.h
+++ /dev/null
@@ -1,160 +0,0 @@
-#ifndef SCOPED_RESOURCE_H_INCLUDED
-#define SCOPED_RESOURCE_H_INCLUDED
-
-/**
-* The util namespace should take all classes which are of a generic type,
-* used to perform common tasks which are not BibleTime-specific. See
-* @ref scoped_resource for an example.
-*/
-namespace util
-{
-/**
-* A class template, scoped_resource, designed to
-* implement the Resource Acquisition Is Initialization (RAII) approach
-* to resource management. scoped_resource is designed to be used when
-* a resource is initialized at the beginning or middle of a scope,
-* and released at the end of the scope. The template argument
-* ReleasePolicy is a functor which takes an argument of the
-* type of the resource, and releases it.
-*
-* Usage example, for working with files:
-*
-* @code
-* struct close_file { void operator(int fd) const {close(fd);} };
-* ...
-* {
-* const scoped_resource<int,close_file> file(open("file.txt",O_RDONLY));
-* read(file, buf, 1000);
-* } // file is automatically closed here
-* @endcode
-*
-* Note that scoped_resource has an explicit constructor, and prohibits
-* copy-construction, and thus the initialization syntax, rather than
-* the assignment syntax must be used when initializing.
-*
-* i.e. using scoped_resource<int,close_file> file = open("file.txt",O_RDONLY);
-* in the above example is illegal.
-*
-*/
-template<typename T,typename ReleasePolicy>
-class scoped_resource
-{
- T resource;
- ReleasePolicy release;
-
- //prohibited operations
- scoped_resource(const scoped_resource&);
- scoped_resource& operator=(const scoped_resource&);
-public:
- typedef T resource_type;
- typedef ReleasePolicy release_type;
-
- /**
- * Constructor
- *
- * @ param res This is the resource to be managed
- * @ param rel This is the functor to release the object
- */
- explicit scoped_resource(resource_type res,release_type rel=release_type())
- : resource(res), release(rel) {}
-
- /**
- * The destructor is the main point in this class. It takes care of proper
- * deletion of the resource, using the provided release policy.
- */
- ~scoped_resource()
- {
- release(resource);
- }
-
- /**
- * This operator makes sure you can access and use the scoped_resource
- * just like you were using the resource itself.
- *
- * @ret the underlying resource
- */
- operator resource_type() const { return resource; }
-
- /**
- * This function provides explicit access to the resource. Its behaviour
- * is identical to operator resource_type()
- *
- * @ret the underlying resource
- */
- resource_type get() const { return resource; }
-
- /**
- * This function provides convenient direct access to the -> operator
- * if the underlying resource is a pointer. Only call this function
- * if resource_type is a pointer type.
- */
- resource_type operator->() const { return resource; }
-
-};
-
-/**
-* A helper policy for scoped_ptr.
-* It will call the delete operator on a pointer, and assign the pointer to 0
-*/
-struct delete_item {
- template<typename T>
- void operator()(T*& p) const { delete p; p = 0; }
-};
-/**
-* A helper policy for scoped_array.
-* It will call the delete[] operator on a pointer, and assign the pointer to 0
-*/
-struct delete_array {
- template<typename T>
- void operator()(T*& p) const { delete [] p; p = 0; }
-};
-
-/**
-* A class which implements an approximation of
-* template<typename T>
-* typedef scoped_resource<T*,delete_item> scoped_ptr<T>;
-*
-* It is a convenient synonym for a common usage of @ref scoped_resource.
-* See scoped_resource for more details on how this class behaves.
-*
-* Usage example:
-* @code
-* {
-* const scoped_ptr<Object> ptr(new Object);
-* ...use ptr as you would a normal Object*...
-* } // ptr is automatically deleted here
-* @endcode
-*
-* NOTE: use this class only to manage a single object, *never* an array.
-* Use scoped_array to manage arrays. This distinction is because you
-* may call delete only on objects allocated with new, delete[] only
-* on objects allocated with new[].
-*/
-template<typename T>
-struct scoped_ptr : public scoped_resource<T*,delete_item>
-{
- explicit scoped_ptr(T* p) : scoped_resource<T*,delete_item>(p) {}
-};
-
-/**
-* This class has identical behaviour to @ref scoped_ptr, except it manages
-* heap-allocated arrays instead of heap-allocated single objects
-*
-* Usage example:
-* @code
-* {
-* const scoped_array<char> ptr(new char[n]);
-* ...use ptr as you would a normal char*...
-* } // ptr is automatically deleted here
-* @endcode
-*
-*/
-template<typename T>
-struct scoped_array : public scoped_resource<T*,delete_array>
-{
- explicit scoped_array(T* p) : scoped_resource<T*,delete_array>(p) {}
-};
-
-}
-
-#endif