diff options
Diffstat (limited to 'tde-i18n-en_GB/docs/kdebase/ksplashml')
-rw-r--r-- | tde-i18n-en_GB/docs/kdebase/ksplashml/Makefile.am | 4 | ||||
-rw-r--r-- | tde-i18n-en_GB/docs/kdebase/ksplashml/Makefile.in | 635 | ||||
-rw-r--r-- | tde-i18n-en_GB/docs/kdebase/ksplashml/index.cache.bz2 | bin | 0 -> 14656 bytes | |||
-rw-r--r-- | tde-i18n-en_GB/docs/kdebase/ksplashml/index.docbook | 1541 |
4 files changed, 2180 insertions, 0 deletions
diff --git a/tde-i18n-en_GB/docs/kdebase/ksplashml/Makefile.am b/tde-i18n-en_GB/docs/kdebase/ksplashml/Makefile.am new file mode 100644 index 00000000000..36c02102600 --- /dev/null +++ b/tde-i18n-en_GB/docs/kdebase/ksplashml/Makefile.am @@ -0,0 +1,4 @@ +KDE_LANG = en_GB +SUBDIRS = $(AUTODIRS) +KDE_DOCS = ksplashml +KDE_MANS = AUTO diff --git a/tde-i18n-en_GB/docs/kdebase/ksplashml/Makefile.in b/tde-i18n-en_GB/docs/kdebase/ksplashml/Makefile.in new file mode 100644 index 00000000000..5d52a751524 --- /dev/null +++ b/tde-i18n-en_GB/docs/kdebase/ksplashml/Makefile.in @@ -0,0 +1,635 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# KDE tags expanded automatically by am_edit - $Revision: 483858 $ +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 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@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +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 = : +subdir = docs/kdebase/ksplashml +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +#>- RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ +#>- html-recursive info-recursive install-data-recursive \ +#>- install-dvi-recursive install-exec-recursive \ +#>- install-html-recursive install-info-recursive \ +#>- install-pdf-recursive install-ps-recursive install-recursive \ +#>- installcheck-recursive installdirs-recursive pdf-recursive \ +#>- ps-recursive uninstall-recursive +#>+ 7 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive nmcheck-recursive bcheck-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +#>+ 1 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +ARTSCCONFIG = @ARTSCCONFIG@ +AUTOCONF = @AUTOCONF@ +AUTODIRS = @AUTODIRS@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CONF_FILES = @CONF_FILES@ +CYGPATH_W = @CYGPATH_W@ +DCOPIDL = @DCOPIDL@ +DCOPIDL2CPP = @DCOPIDL2CPP@ +DCOPIDLNG = @DCOPIDLNG@ +DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@ +DEFS = @DEFS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +GMSGFMT = @GMSGFMT@ +INSTALL = @INSTALL@ +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_RPATH = @KDE_RPATH@ +KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MAKEKDEWIDGETS = @MAKEKDEWIDGETS@ +MCOPIDL = @MCOPIDL@ +MEINPROC = @MEINPROC@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +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@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +TOPSUBDIRS = @TOPSUBDIRS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XMLLINT = @XMLLINT@ +X_RPATH = @X_RPATH@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +am__leading_dot = @am__leading_dot@ +am__tar = @am__tar@ +am__untar = @am__untar@ +#>- bindir = @bindir@ +#>+ 2 +DEPDIR = .deps +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host_alias = @host_alias@ +htmldir = @htmldir@ +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_kcfgdir = @kde_kcfgdir@ +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_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@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +xdg_appsdir = @xdg_appsdir@ +xdg_directorydir = @xdg_directorydir@ +xdg_menudir = @xdg_menudir@ +KDE_LANG = en_GB +#>- SUBDIRS = $(AUTODIRS) +#>+ 1 +SUBDIRS =. +KDE_DOCS = ksplashml +KDE_MANS = AUTO +#>- all: all-recursive +#>+ 1 +all: docs-am all-recursive + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) +#>- @for dep in $?; do \ +#>- case '$(am__configure_deps)' in \ +#>- *$$dep*) \ +#>- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ +#>- && exit 0; \ +#>- exit 1;; \ +#>- esac; \ +#>- done; \ +#>- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/kdebase/ksplashml/Makefile'; \ +#>- cd $(top_srcdir) && \ +#>- $(AUTOMAKE) --gnu docs/kdebase/ksplashml/Makefile +#>+ 12 + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/kdebase/ksplashml/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu docs/kdebase/ksplashml/Makefile + cd $(top_srcdir) && perl ../scripts/admin/am_edit -p../scripts/admin docs/kdebase/ksplashml/Makefile.in +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +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; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + 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; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + 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; nonempty = 1; } \ + END { if (nonempty) { 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 + +#>- distdir: $(DISTFILES) +#>+ 1 +distdir: distdir-nls $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + 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 + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +#>- uninstall: uninstall-recursive +#>+ 1 +uninstall: uninstall-docs uninstall-nls uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(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-recursive +#>+ 1 +clean: kde-rpo-clean clean-recursive + +#>- clean-am: clean-generic mostlyclean-am +#>+ 1 +clean-am: clean-docs clean-bcheck clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +info: info-recursive + +info-am: + +#>- install-data-am: +#>+ 1 +install-data-am: install-docs install-nls + +install-dvi: install-dvi-recursive + +install-exec-am: + +install-html: install-html-recursive + +install-info: install-info-recursive + +install-man: + +install-pdf: install-pdf-recursive + +install-ps: install-ps-recursive + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ + install-strip + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am check check-am clean clean-generic ctags \ + ctags-recursive distclean distclean-generic distclean-tags \ + distdir dvi dvi-am html html-am info info-am install \ + install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ + tags-recursive uninstall uninstall-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=index.docbook Makefile.in Makefile.am index.cache.bz2 + +#>+ 24 +index.cache.bz2: $(srcdir)/index.docbook $(KDE_XSL_STYLESHEET) index.docbook + @if test -n "$(MEINPROC)"; then echo $(MEINPROC) --check --cache index.cache.bz2 $(srcdir)/index.docbook; $(MEINPROC) --check --cache index.cache.bz2 $(srcdir)/index.docbook; fi + +docs-am: index.cache.bz2 + +install-docs: docs-am install-nls + $(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml + @if test -f index.cache.bz2; then \ + echo $(INSTALL_DATA) index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml/; \ + $(INSTALL_DATA) index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml/; \ + elif test -f $(srcdir)/index.cache.bz2; then \ + echo $(INSTALL_DATA) $(srcdir)/index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml/; \ + $(INSTALL_DATA) $(srcdir)/index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml/; \ + fi + -rm -f $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml/common + $(LN_S) $(kde_libs_htmldir)/$(KDE_LANG)/common $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml/common + +uninstall-docs: + -rm -rf $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml + +clean-docs: + -rm -f index.cache.bz2 + + +#>+ 13 +install-nls: + $(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml + @for base in index.docbook ; do \ + echo $(INSTALL_DATA) $$base $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml/$$base ;\ + $(INSTALL_DATA) $(srcdir)/$$base $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml/$$base ;\ + done + +uninstall-nls: + for base in index.docbook ; do \ + rm -f $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksplashml/$$base ;\ + done + + +#>+ 5 +distdir-nls: + for file in index.docbook ; do \ + cp $(srcdir)/$$file $(distdir); \ + done + +#>+ 15 +force-reedit: + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/kdebase/ksplashml/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu docs/kdebase/ksplashml/Makefile + cd $(top_srcdir) && perl ../scripts/admin/am_edit -p../scripts/admin docs/kdebase/ksplashml/Makefile.in + + +#>+ 21 +clean-bcheck: + rm -f *.bchecktest.cc *.bchecktest.cc.class a.out + +bcheck: bcheck-recursive + +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 ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS) --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 + + +#>+ 3 +final: + $(MAKE) all-am + +#>+ 3 +final-install: + $(MAKE) install-am + +#>+ 3 +no-final: + $(MAKE) all-am + +#>+ 3 +no-final-install: + $(MAKE) install-am + +#>+ 3 +kde-rpo-clean: + -rm -f *.rpo + +#>+ 3 +nmcheck: +nmcheck-am: nmcheck diff --git a/tde-i18n-en_GB/docs/kdebase/ksplashml/index.cache.bz2 b/tde-i18n-en_GB/docs/kdebase/ksplashml/index.cache.bz2 Binary files differnew file mode 100644 index 00000000000..e0a04dfa8e2 --- /dev/null +++ b/tde-i18n-en_GB/docs/kdebase/ksplashml/index.cache.bz2 diff --git a/tde-i18n-en_GB/docs/kdebase/ksplashml/index.docbook b/tde-i18n-en_GB/docs/kdebase/ksplashml/index.docbook new file mode 100644 index 00000000000..d66f211c91e --- /dev/null +++ b/tde-i18n-en_GB/docs/kdebase/ksplashml/index.docbook @@ -0,0 +1,1541 @@ +<?xml version="1.0" ?> +<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [ + <!ENTITY ksplash "KSplash"> + <!ENTITY package "kdebase"> + <!ENTITY % addindex "IGNORE"> + <!ENTITY % British-English "INCLUDE"> +]> + +<book lang="&language;"> + +<bookinfo> +<title +>The &ksplash; Handbook</title> + +<authorgroup> +<author +>&Teemu.Rytilahti; &Teemu.Rytilahti.mail; </author> + +<othercredit role="developer" +>&Brian.C.Ledbetter; &Brian.C.Ledbetter.mail; </othercredit> + +<othercredit role="developer" +>&Ravikiran.Rajagopal; &Ravikiran.Rajagopal.mail; </othercredit> + +<othercredit role="translator" +><firstname +>Jonathan</firstname +><surname +>Riddell</surname +><affiliation +><address +><email +>[email protected]</email +></address +></affiliation +><contrib +>Conversion to British English</contrib +></othercredit +> + +</authorgroup> + +<copyright> +<year +>2003</year> +<holder +>Teemu Rytilahti</holder> +</copyright> +<copyright> +<year +>2003-04</year> +<holder +>Ravikiran Rajagopal</holder> +</copyright> +<legalnotice +>&FDLNotice;</legalnotice> + +<date +>2003-01-10</date> +<releaseinfo +>1.01.00</releaseinfo> + +<abstract> +<para +>&ksplash; is a nice splash screen that shows the progress of an application that is loading.</para> +</abstract> + +<keywordset> +<keyword +>KDE</keyword> +<keyword +>kdebase</keyword> +<keyword +>ksplash</keyword> +<keyword +>ksplashml</keyword> +<keyword +>splashscreen</keyword> +<keyword +>eye candy</keyword> +</keywordset> + +</bookinfo> + +<chapter id="introduction"> +<title +>Introduction</title> + +<para +>&ksplash; is a nice splash screen that shows the progress of an application that is loading. Please report any problems or feature requests to the &kde; mailing lists. The principal features of &ksplash;: </para> +<simplelist> +<member +>Themeable</member> +<member +>Uses plugins to be completely customisable</member> +<member +>Can be used by any application that uses DCOP</member> +</simplelist> + +<para +>This handbook will show you how to create themes for use with plugins that are already available. If none of the plugins available satisfy your tastes, you can learn how to customise the appearance of &ksplash; completely by writing a plugin in C++. </para> +</chapter> + +<chapter id="using-themes"> +<title +>Using themes</title> + +<para +>To use themes from <ulink url="http://www.kde-look.org" +>KDE-Look</ulink +>, extract them to <filename +>~/.kde/share/apps/ksplash/Themes/</filename +> for a single user, or to <filename +>$<envar +>KDEDIR</envar +>/share/apps/ksplash/Themes/</filename +> to make them available to all users of your system.</para> + +<para +>You can also use the <guilabel +>Splash Screen</guilabel +> module under <guilabel +>Appearance</guilabel +> in the &kde; control centre to do this automatically.</para> + +<sect1 id="using-kcontrol-module"> +<title +>Using the &kcontrol; Module</title> + +<para +>This module allows you to install, test and remove &ksplash; themes.</para> + +<para +>Down the side of the module is a list of currently available &ksplash; themes. As you select one, a preview will display in the main part of the window. When you have selected the one you wish to use, press <guibutton +>OK</guibutton +> or <guibutton +>Apply</guibutton +>. Press <guibutton +>Cancel</guibutton +> to exit the module without making changes, and <guibutton +>Defaults</guibutton +> to restore the system default splash screen.</para> + +<para +>To install new modules, press <guibutton +>Add...</guibutton +>, and find the theme on your computer. You do not have to unpack theme files, you can safely select the compressed theme file. Installing a theme does not make it the theme in use until you select it in the list and press either <guibutton +>OK</guibutton +> or <guibutton +>Apply</guibutton +>.</para> + +<para +>Although you can see a preview of the splash screen, you may like to see how it looks in real use, for instance to see what the animation looks like. You can test themes by selecting them in the list and clicking the <guibutton +>Test</guibutton +> button.</para> + +<para +>You can also remove themes you no longer wish to use, by selecting them and pressing the <guibutton +>Remove</guibutton +> button. Note that your user account may not have the right to remove themes installed system-wide. It is also recommended you do not uninstall the <guilabel +>Default</guilabel +> splash screen.</para> + +</sect1> + +</chapter> + +<chapter id="themes"> +<title +>How to make themes for &ksplash;</title> +<sect1 id="themes-general"> +<title +>General</title> +<para +>Making your own themes for &ksplash; is easy. After you have finished your themes you can post them on the <ulink url="http://www.kde-look.org" +>KDE-Look</ulink +> so that others can use it.</para> + +<sect2 id="theme-syntax"> +<title +>Identifying your theme</title> + +<para +>Let us create a theme called <literal +>MyCoolTheme</literal +>. For the theme to be recognised by &ksplash;, it should be stored in a folder called <filename class="directory" +>MyCoolTheme</filename +> under <filename class="directory" +>~/.kde/apps/ksplash/Themes/</filename +>. It should have a file called <filename +>Theme.rc</filename +>, containing the settings of the theme. You can specify large numbers of special things to theme, change the plugin engine to use, and so on. You do not have to use all the settings available; usually, the settings have an acceptable default value. The basic syntax for entries in the <filename +>Theme.rc</filename +> file is <literal +>[option] = [value]</literal +> You can find the definitions of the various options in the following sections.</para> + +<example> +<title +>Simple <filename +>Theme.rc</filename +> file</title> +<programlisting +>[KSplash Theme: MyCoolTheme] +Name = MyCoolTheme +Description = A nice theme using XpLike engine +Version = 1.0 +Author = Real Name <[email protected]> +## Use the XpLike engine for this theme. +Engine = XpLike +Show Icon = false +Welcome Text = Loading KDE +</programlisting> +</example> + +<para +>After specifying the name, the description and the author of the theme, you should first choose a theme engine (also known as a plugin). Then, you can customise various features of the theme engine by assigning key-value pairs as in the example file above.</para> + +<para +>It is important that the name of the directory under which the theme files are stored (<filename class="directory" +>~/.kde/apps/ksplash/Themes/MyCoolTheme</filename +> in our case) and the identifier (<literal +>[KSplash Theme: MyCoolTheme] </literal +> in our case) of the theme in the <filename +>Theme.rc</filename +> file are identical. Otherwise, &ksplash; will not recognise the theme. </para> + +</sect2> + +<sect2 id="theme-files"> +<title +>Background files</title> + +<para +>When &ksplash; starts, it tries to find a background image for your current screen resolution, if the theme engine uses one. The background image file should be named in the following format: <filename +>Background-<replaceable +>WWWxHHH</replaceable +>.png</filename +>.</para> + +<para +>For example, you might use a file called <filename +>Background-1024x768</filename +>. If the background image for your screen resolution cannot be found, it tries to resize the original <filename +>Background.png</filename +> or the file specified in <filename +>Theme.rc</filename +> to suit the current resolution. Resizing on-the-fly will certainly take some time, so you should provide background images for at least the following sizes: 1280x1024, 1024x768 and 800x600.</para> +</sect2> +</sect1> + +<sect1 id="theme-engines"> +<title +>Options for Theme Engines</title> + +<sect2 id="standard-themes"> +<title +>Standard Theme</title> +<table> +<title +>Standard Theme Options</title> +<tgroup cols="3"> +<tbody> +<row> +<entry +>Name</entry> +<entry +>Argument</entry> +<entry +>Explanation</entry> +</row> +<!-- Statusbar --> +<row> +<entry +>Statusbar Position</entry> +<entry +>[top/bottom]</entry> +<entry +>Toggles the position of the statusbar on the screen. Default is bottom.</entry> +</row> +<row> +<entry +>Statusbar Visible</entry> +<entry +>[true/false]</entry> +<entry +>Indicates whether the statusbar should be shown. Default is true.</entry> +</row> +<row> +<entry +>Progress Visible</entry> +<entry +>[true/false]</entry> +<entry +>Indicates whether loading progress should be shown. Default is true.</entry> +</row> +<!-- Fonts --> +<row> +<entry +>Statusbar Font</entry> +<entry +>[fontname]</entry> +<entry +>The font used in statusbar. Default is Helvetica.</entry> +</row> +<row> +<entry +>Statusbar Font Size</entry> +<entry +>[size]</entry> +<entry +>The font size for the statusbar. Default is 16.</entry> +</row> +<row> +<entry +>Statusbar Font Bold</entry> +<entry +>[true/false]</entry> +<entry +>Indicates whether the statusbar font should be bold. Default is true.</entry> +</row> +<row> +<entry +>Statusbar Font Italic</entry> +<entry +>[true/false]</entry> +<entry +>Indicates whether the statusbar font should be italic. Default is false.</entry> +</row> +<!-- Misc. things --> +<row> +<entry +>Statusbar Foreground</entry> +<entry +>[color]</entry> +<entry +>The foreground colour of statusbar. Default is white.</entry> +</row> +<row> +<entry +>Statusbar Background</entry> +<entry +>[color]</entry> +<entry +>The background colour of statusbar. Default is black.</entry> +</row> +<row> +<entry +>Statusbar Icon</entry> +<entry +>[true/false]</entry> +<entry +>Indicates whether the statusbar should have an icon.</entry> +</row> +<row> +<entry +>Icons Visible</entry> +<entry +>[true/false]</entry> +<entry +>Indicates whether icons should be visible. Default is true.</entry> +</row> +<row> +<entry +>Icons Jumping</entry> +<entry +>[true/false]</entry> +<entry +>Indicates whether icons should be jumping. Default is true.</entry> +</row> +<row> +<entry +>Icon Position</entry> +<entry +>[0-3,10-13]</entry> +<entry +>Position where the icons are shown. Default is bottom-left.</entry> +</row> +<row> +<entry +>Splash Screen</entry> +<entry +>[name]</entry> +<entry +>Changes the splash screen image that is shown.</entry> +</row> +</tbody> +</tgroup> +</table> +</sect2> + +<sect2 id="redmond-themes"> +<title +>Redmond theme</title> +<table> +<title +>Redmond theme options</title> +<tgroup cols="3"> +<tbody> +<row> +<entry +>Name</entry> +<entry +>Argument</entry> +<entry +>Explanation</entry> +</row> +<!-- Main elements --> +<row> +<entry +>Background Image</entry> +<entry +>[filename]</entry> +<entry +>User defined background image to use.</entry> +</row> +<row> +<entry +>User Icon</entry> +<entry +>[Iconname]</entry> +<entry +>Name of standard icon to show for user. Default is <constant +>go</constant +>.</entry> +</row> +<row> +<entry +>Welcome Text</entry> +<entry +>[text]</entry> +<entry +>Text shown in splash screen. Default is "Welcome".</entry> +</row> +<row> +<entry +>Username Text</entry> +<entry +>[text]</entry> +<entry +>Text shown instead of user's real name.</entry> +</row> +<!-- Positioning elements --> +<row> +<entry +>Welcome Text Position</entry> +<entry +>[x,y]</entry> +<entry +>Position on the screen where the Welcome Text is shown.</entry> +</row> +<row> +<entry +>Username Text Position</entry> +<entry +>[x,y]</entry> +<entry +>Position on the screen where the username is shown.</entry> +</row> +<row> +<entry +>Action Text Position</entry> +<entry +>[x,y]</entry> +<entry +>Position on the screen where the current action is shown.</entry> +</row> +<row> +<entry +>Icon Position</entry> +<entry +>[x,y]</entry> +<entry +>Position on the screen where the user icon is shown.</entry> +</row> +<!-- Show to show.. --> +<row> +<entry +>Show Welcome Text</entry> +<entry +>[true/false]</entry> +<entry +>Toggles showing of welcome text. Default is true.</entry> +</row> +<row> +<entry +>Show Welcome Shadow</entry> +<entry +>[true/false]</entry> +<entry +>Toggles showing of welcome text's shadow. Default is true.</entry> +</row> +<row> +<entry +>Show Username</entry> +<entry +>[true/false]</entry> +<entry +>Toggles showing of username. Default is true.</entry> +</row> +<row> +<entry +>Show Action</entry> +<entry +>[true/false]</entry> +<entry +>Toggles showing of action currently being performed. Default is true.</entry> +</row> +<row> +<entry +>Show Icon</entry> +<entry +>[true/false]</entry> +<entry +>Indicates whether icon should be shown. Default is true</entry> +</row> +<row> +<entry +>Use KDM User Icon</entry> +<entry +>[true/false]</entry> +<entry +>Show user's login icon. Default is true.</entry> +</row> +</tbody> +</tgroup> +</table> +</sect2> + +<sect2 id="macx-themes"> +<title +>MacX Theme</title> +<table> +<title +>MacX Theme Options</title> +<tgroup cols="3"> +<tbody> +<row> +<entry +>Name</entry> +<entry +>Argument</entry> +<entry +>Explanation</entry> +</row> +<row> +<entry +>Icon Size Minimum</entry> +<entry +>[size]</entry> +<entry +>Assign the minimum size for icons. Default is 16.</entry> +</row> +<row> +<entry +>Icon Size Maximum</entry> +<entry +>[size]</entry> +<entry +>Assign the maximum size for icons. Default is 64.</entry> +</row> +<row> +<entry +>Optimised Icon Rendering</entry> +<entry +>[true/false]</entry> +<entry +>Optimise icon rendering. Default is true.</entry> +</row> +<row> +<entry +>Progress Bar Visible</entry> +<entry +>[true/false]</entry> +<entry +>Default is true.</entry> +</row> +<row> +<entry +>Progress Bar Position</entry> +<entry +>[top/bottom]</entry> +<entry +>Toggles whether statusbar should be in bottom or top. Default is bottom.</entry> +</row> +<row> +<entry +>Icons Jumping</entry> +<entry +>[true/false]</entry> +<entry +>Indicates whether icons should be jumping. Default is false.</entry> +</row> +</tbody> +</tgroup> +</table> +</sect2> + +<sect2 id="mac-classic-themes"> +<title +>MacClassic Theme</title> +<table> +<title +>MacClassic Theme Options</title> +<tgroup cols="3"> +<tbody> +<row> +<entry +>Name</entry> +<entry +>Argument</entry> +<entry +>Explanation</entry> +</row> +<row> +<entry +>Icon Position</entry> +<entry +>[0-3,10-13]</entry> +<entry +>Position of the icons on the screen. Default is bottom left.</entry> +</row> +<row> +<entry +>Icons Jumping</entry> +<entry +>[true/false]</entry> +<entry +>Indicates whether icons should be jumping. Default is false.</entry> +</row> +<row> +<entry +>Icons Visible</entry> +<entry +>[true/false]</entry> +<entry +>Indicates whether icons should be visible. Default is true.</entry> +</row> +<row> +<entry +>Splash Screen</entry> +<entry +>[name]</entry> +<entry +>Changes the splash screen image that is shown.</entry> +</row> +</tbody> +</tgroup> +</table> +</sect2> + +<sect2 id="themes-2k"> +<title +>2k theme</title> +<table> +<title +>2k theme options</title> +<tgroup cols="3"> +<tbody> +<row> +<entry +>Name</entry> +<entry +>Argument</entry> +<entry +>Explanation</entry> +</row> +<row> +<entry +>Title Background Colour</entry> +<entry +>[color]</entry> +<entry +>The background colour of title. Default is dark blue.</entry> +</row> +<row> +<entry +>Title Foreground Colour</entry> +<entry +>[color]</entry> +<entry +>The foreground colour of title. Default is white.</entry> +</row> +<row> +<entry +>Status Text Colour</entry> +<entry +>[color]</entry> +<entry +>The colour of status texts. Default is the same as Title Background Colour.</entry> +</row> +<row> +<entry +>Rotator Colour 1</entry> +<entry +>[color]</entry> +<entry +>Defines the colour of rotator 1. Default is dark blue.</entry> +</row> +<row> +<entry +>Rotator Colour 2</entry> +<entry +>[color]</entry> +<entry +>Defines the colour of rotator 2. Default is cyan.</entry> +</row> +<row> +<entry +>Rotator Speed</entry> +<entry +>[value]</entry> +<entry +>Defines the speed of the rotator. Default is 30.</entry> +</row> +<row> +<entry +>Window Title</entry> +<entry +>[text]</entry> +<entry +>Specifies the title text of the window.</entry> +</row> +<row> +<entry +>Logo File</entry> +<entry +>[filename]</entry> +<entry +>Defines the logo used.</entry> +</row> +</tbody> +</tgroup> +</table> +</sect2> +</sect1> +</chapter> + +<chapter id="from-other-applications"> +<title +>Using &ksplash; From Within Your Own Application</title> + +<para +>In this chapter, we describe a simple method for using &ksplash; as the splash screen for your &kde; application. If you do not develop applications for &kde;, you can skip this chapter.</para> + +<sect1 id="basic-other-reqs"> +<title +>Basic Requirements</title> + +<para +>Your &kde; application must be &DCOP;-aware. &DCOP; is the &kde; technology used to communicate between applications. If you use the standard <ulink url="http://developer.kde.org" +>&kde; application framework</ulink +>, this is taken care of automatically. For information about &DCOP; and related &kde; technologies, please visit the <ulink url="http://developer.kde.org" +>&kde; developers' corner</ulink +>.</para> +</sect1> + +<sect1 id="other-using"> +<title +>Starting &ksplash;</title> + +<para +>Before your application starts its computation intensive work, or before it starts loading plugins, &etc;, invoke &ksplash; as follows:</para> + +<programlisting +>DCOPClient *c = kapp->dcopClient(); +QString error; +QCString KSplashName; +int pid = 0; +QStringList args; +args << "--theme=MyCoolTheme" << "--managed"; +if (kapp->startServiceByDesktopName("ksplash", args, &error, &KSplashName, &pid)) +{ + KMessageBox::sorry(0, error, "Unable to invoke KSplash"); + // Some error processing here. +} +</programlisting> + +<para +>We will assume that there is only one instance of &ksplash; running. Other cases are slightly more complex. Please see the &DCOP; documentation for further details.</para> +</sect1> + +<sect1 id="show-messages"> +<title +>Showing messages</title> + +<para +>Before you show any messages, you need to set up the number of steps you will show. For example, the &kde; startup procedure uses 7 steps.</para> + +<programlisting +>QByteArray data; + QDataStream arg(data,IO_WriteOnly); + arg << someNumber; + if (!(c->send(KSplashName, "KSplashIface", "setStartupItemCount(int)", data)) + // Some error processing here. +</programlisting> + +<para +>Whenever you want to display a message with or without an icon, use</para> + +<programlisting +>arg << QString("iconName") << QString("programName") << QString("Some description"); + if (!(c->send(KSplashName, "KSplashIface", "programStarted(QString,QString,QString)", data)) + { + // Some error processing here. + } +</programlisting> + +<para +>Each time you call <constant +>programStarted</constant +>, the steps completed is incremented. When your program has finished its startup, do the following to make the splash screen go away:</para> + +<programlisting +>if (!(c->send(KSplashName, "KSplashIface", "startupComplete()", data)) + { + // Some error processing here. + } +</programlisting> + +<para +>That's it! You don't need anything more to take advantage of all that &ksplash; has to offer you.</para> + +</sect1> +</chapter> + +<!-- FIXME: Better to leave this out until it's written, or the translators --> +<!-- will have to still translate it ... --> + +<chapter id="wrplugins"> +<title +>Writing new &ksplash; plugins</title> + +<para +>Writing new &ksplash; plugins is not difficult. In this chapter, we will write a simple plugin that will emulate the splash screen of a well known operating system. This tutorial assumes that you know the basics of C++, and a little bit of KDE/Qt programming.</para> + +<sect1 id="basic-requirements"> +<title +>Basic Requirements</title> +<para +>We will create a plugin called <literal +>2k</literal +>. The plugin name is used in various places, and is important that you consistently use it so that the plugin is recognised by &ksplash;. &ksplash; plugins are actually dynamically loadable libraries with the following naming convention: </para> +<simplelist> +<member +>The library should be named as <filename +>ksplash+lowercasethemename</filename +>. For our theme, it will be <filename +>ksplash2k</filename +>.</member> +<member +>It should have a corresponding desktop file which is named as <filename +>ksplash+lowercasethemename.desktop</filename +>. For our theme, it will be <filename +>ksplash2k.desktop</filename +>. </member> +<member +>Finally, the object that is returned by the library should be a class which is named <literal +>Theme+themename</literal +>. For our example, it will be <literal +>Theme2k</literal +>.</member> +</simplelist> +<para +>Do not worry about it if you don't understand all of the above. We will consider each of those points in detail later. The other very important detail is that the plugin class should be derived from <literal +>ThemeEngine</literal +>. </para> +</sect1> +<sect1 id="skeleton"> +<title +>Building the skeleton framework</title> +<para +>We will use the &kde; application framework which will take care of building the plugin and will provide us with platform independence without any work on our part. To do that, make sure you have the <filename +>kdesdk</filename +> package installed. Run the command <literal +>kapptemplate</literal +> to produce an application named "2k". It will create a toplevel folder which contains generic files such as AUTHORS, &etc;. We are most interested in the subfolder called <filename class="directory" +>2k</filename +>. Go into that subfolder and delete all the files there. Now we have the skeleton we require. </para> +<para +>The next step is to create a <filename +>.desktop</filename +> file which, when installed, will tell &ksplash; that our plugin is available. Consistent with the naming conventions laid out in <link linkend="basic-requirements" +>the preceding section</link +>, create a file called <filename +>ksplash2k.desktop</filename +> in that folder. It should contain the following lines: </para> +<programlisting +><literal> +[Desktop Entry] +Encoding=UTF-8 +Type=Service +Comment=KSplash Plugin +Name=KSplash2k +ServiceTypes=KSplash/Plugin +X-KDE-Library=ksplash2k +X-KSplash-Default=true +X-KSplash-PluginName=2k +X-KSplash-ObjectName=Theme2k +</literal +> +</programlisting> +<para +>The <literal +>Encoding</literal +>, <literal +>Type</literal +>, <literal +>Comment</literal +> and <literal +>ServiceTypes</literal +> are the same for all plugins. The plugin name and the library name follow the conventions noted earlier. The entry <literal +>X-KSplash-Default</literal +> takes a boolean value which determines whether it is shown in the control panel configuration module by default. Except for some very rare cases, it should be <constant +>true</constant +>. </para> +</sect1> +<sect1 id="headerfile"> +<title +>Declaration of plugin class</title> +<para +>Now that we have the preliminary work done, let us get into the actual fun part - creating a class that will provide the behaviour we want. While we are free to make this class do almost anything we want it to do, there are a few restrictions.</para> +<orderedlist> +<listitem +><para +>Plugin classes must inherit the <constant +>ThemeEngine</constant +> class.</para +></listitem> +<listitem +><para +>Plugin classes must be named according to the rule: <classname +>Theme+PluginName</classname +>.</para +></listitem> +<listitem +><para +>Plugin classes should provide a <literal +>static</literal +> function called <function +>names</function +> that returns a list of names by which it can be invoked.</para +></listitem> +<listitem +><para +>If the plugin can be configured in the control centre module, it should provide a <literal +>ThemeEngineConfig</literal +>-based class for the configuration.</para +></listitem> +<listitem +><para +>Plugin classes must override at least one of the virtual functions <function +>slotSetText</function +>, <function +>slotSetPixmap</function +>, <function +>slotUpdateProgress</function +> and <function +>slotUpdateSteps</function +> to make it usable.</para +></listitem> +<listitem +><para +>The constructor should take the form <literal +>ThemeEngine( QWidget *parent, const char *name, const QStringList &args )</literal +> so that it can be used with <classname +>KGenericFactory</classname +>.</para +></listitem> +</orderedlist> +<para +>The last requirement may seem complicated, but, as we will see later, by adding a single line to your source files, you can usually ignore it.</para> +</sect1> +<sect1 id="headercode"> +<title +>Code for the header file</title> +<para +>Given the constaints, we will now see what the header file <filename +>theme2k.h</filename +> looks like this:</para> +<example> +<title +>Listing for <filename +>theme2k.h</filename +></title> +<programlisting +>#ifndef __THEME2K_H__ +#define __THEME2K_H__ + +#include <qlabel.h> +#include <qwidget.h> + +#include <kdialogbase.h> +#include <kpixmap.h> +#include <ksplash/themeengine.h> + +class RotWidget; + +class Cfg2k: public ThemeEngineConfig +{ + Q_OBJECT +public: + Cfg2k( KConfig * ); +}; + +class ObjKsTheme; +class Theme2k: public ThemeEngine +{ + Q_OBJECT +public: + Theme2k( QWidget *, const char *, const QStringList& ); + + inline const QString name() + { + return( QString("KSplash2k") ); + } + inline const KDialogBase *config( KConfig *kc ) + { + return new Cfg2k( kc ); + } + static QStringList names() + { + QStringList Names; + Names << "KSplash2k"; + Names << "ks2k"; + Names << "2k"; + Names << "2000"; + return( Names ); + }; + +public slots: + inline void slotSetText( const QString& s ) + { + if( mText && mText->text() != s ) mText->setText( s ); + }; + +private: + void initUi(); + void readSettings(); + + QLabel *mText; + RotWidget *mRotator; + QColor mTBgColor, mTFgColor, mRotColor1, mRotColor2, mStatusColor; + int mRotSpeed; + QString mWndTitle, mLogoFile; +}; + +#endif +</programlisting> +</example> +<para +>Let us analyse the listing above. The <classname +>Theme2k</classname +> class satisfies the naming conventions, and is inherited from <classname +>ThemeEngine</classname +>. It provides a <methodname +>Theme2k::names()</methodname +>, and has a constructor that takes the required parameters: <function +>Theme2k( QWidget *, const char *, const QStringList& );</function +> and also provides a simple <methodname +>Theme2k::slotSetText()</methodname +> method. For the moment, do not worry about the <classname +>RotWidget</classname +> class. It is a small widget that provides some eye candy for the user. Our plugin is very simple and does not display any icons or show a progressbar. If you would like to display icons, override the <function +>slotSetPixmap</function +> function. Similar functions exist for setting the progressbar range (<function +>slotUpdateSteps</function +>) and incrementing(<function +>slotUpdateProgress</function +>) the current step. </para> +</sect1> +<sect1 id="Implementation"> +<title +>Implementation of the plugin</title> +<para +>We will examine only the relevant parts of the implementation. For a listing of the whole implementation, please see the appendix. The first thing we will do is to get the library requirement out of the way:</para> +<example> +<title +>Library requirement</title> +<programlisting +>K_EXPORT_COMPONENT_FACTORY( ksplash2k, KGenericFactory<Theme2k> ); +</programlisting> +</example> +<para +>The macro <constant +>K_EXPORT_COMPONENT_FACTORY</constant +> is declared in <filename +>kgenericfactory.h</filename +>. Onwards to the constructor! Since this is a very simple plugin, the constructor is pretty straightforward.</para> +<example> +<title +>Plugin constructor</title> +<programlisting +>Theme2k::Theme2k( QWidget *parent, const char *name, const QStringList &args ) + :ThemeEngine( parent, name, args ) +{ + readSettings(); + initUi(); +} +</programlisting> +</example> +<para +>The method <function +>readSettings()</function +> illustrates the proper way to obtain your theme settings. (You do want people to use your plugins in their themes, don't you?)</para> +<example> +<title +>Obtaining theme settings</title> +<programlisting +>void Theme2k::readSettings() +{ + if( !mTheme ) + return; + + KConfig *cfg = mTheme->themeConfig(); + if( !cfg ) + return; + + cfg->setGroup( QString("KSplash Theme: %1").arg(mTheme->theme()) ); + + QColor DefaultTBgColor( Qt::darkBlue ); + QColor DefaultTFgColor( Qt::white ); + + mTBgColor = cfg->readColorEntry( "Title Background Color", &DefaultTBgColor ); + mTFgColor = cfg->readColorEntry( "Title Foreground Color", &DefaultTFgColor ); + mStatusColor = cfg->readColorEntry("Status Text Color", &mTBgColor ); + + QColor DefaultRot1( Qt::darkBlue ); + QColor DefaultRot2( Qt::cyan ); + mRotColor1 = cfg->readColorEntry( "Rotator Color 1", &DefaultRot1 ); + mRotColor2 = cfg->readColorEntry( "Rotator Color 2", &DefaultRot2 ); + + mRotSpeed = cfg->readNumEntry( "Rotator Speed", 30 ); + mWndTitle = cfg->readEntry( "Window Title", i18n("Please wait...") ); + mLogoFile = cfg->readEntry( "Logo File", QString::null ); +} +</programlisting> +</example> +<para +>Since we like our users, we provide sensible defaults for parameters that are not present in the theme file. Note that we should always set our group to "KSplash Theme: themename" to remain compatible with future theme specifications. The <function +>initUI()</function +> method is not very interesting, as it merely builds up the widgets. Please see the appendix for details. </para> +</sect1> +<sect1 id="compilingfile"> +<title +>Compiling the plugin</title> +<para +>Since we decided to use the &kde; framework for compiling the plugin, we need to create a <filename +>Makefile.am</filename +>. It should look like this:</para> +<example> +<title +>Listing of <filename +>Makefile.am</filename +></title> +<programlisting +>INCLUDES = $(all_includes) + +kde_module_LTLIBRARIES = ksplash2k.la + +ksplash2k_la_SOURCES = theme2k.cpp rotwidget.cpp +ksplash2k_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) +ksplash2k_la_LIBADD = $(LIB_KDEUI) -lksplashthemes + +METASOURCES = AUTO + +noinst_HEADERS = theme2k.h rotwidget.h + +servicesdir = $(kde_servicesdir) +services_DATA = ksplash2k.desktop + +themedir = $(kde_datadir)/ksplash/Themes/2k +theme_DATA = Theme.rc Preview.png +</programlisting> +</example> +<para +>For more information on writing <filename +>Makefile.am</filename +> files for &kde;, please see the &kde; developers' <ulink url="http://developer.kde.org/documentation/other/makefile_am_howto.html" +>website</ulink +>. The only thing of note is that we provide a default theme based on this plugin, and provide a preview image for it. As a matter of courtesy to your users, you should provide an example <filename +>Theme.rc</filename +> file illustrating the use of the various options.</para> +</sect1> +</chapter> + +<chapter id="faq"> +<title +>Questions and Answers</title> +&reporting.bugs; &updating.documentation; <qandaset id="faqlist"> +<qandaentry> +<question> +<para +>I can't find any themes that work in &ksplash;. Why is that?</para> +</question> +<answer> +<para +>You probably don't have the correct plugins for the theme. The plugins are in the <literal +>kde-artwork</literal +> package. Download and install it, and try then again.</para> +</answer> +</qandaentry> +<qandaentry> +<question> +<para +>What is file <filename +>Theme.rc</filename +> and how do I make one?</para> +</question> +<answer> +<para +><filename +>Theme.rc</filename +> is the file where you can specify a theme's settings. For more information, take a look at <link linkend="themes" +>How to make themes for &ksplash;</link +>. </para> +</answer> +</qandaentry> +</qandaset> +</chapter> + +<chapter id="credits"> +<title +>Credits and Licence</title> + +<para +>&ksplash;</para> + +<para +>Program Copyright © 2003 &Ravikiran.Rajagopal; &Ravikiran.Rajagopal.mail;</para> + +<itemizedlist> +<title +>Contributors</title> +<listitem +><para +>&Brian.C.Ledbetter; &Brian.C.Ledbetter.mail;</para> +</listitem> +</itemizedlist> + +<para +>Documentation Copyright © 2003 &Teemu.Rytilahti; &Teemu.Rytilahti.mail;</para> +&underFDL; &underGPL; </chapter> + +<appendix id="installation"> +<title +>Installation</title> + +<sect1 id="requirements"> +<title +>Requirements</title> + +<para +>In order to successfully use &ksplash;, you need &kde; version 3.2 or higher. Some themes may require specific plugins. If a theme does not work, please contact the theme author to find out where to obtain the appropriate plugin.</para> + +</sect1> + +<sect1 id="compilation"> +<title +>Compilation and Installation</title> +&install.compile.documentation; </sect1> +</appendix> +<appendix id="srccode"> +<title +>Source code</title> +<sect1 id="theme2kcpp"> +<title +>Listing of <filename +>theme2k.cpp</filename +></title> +<programlisting +>#include <qlabel.h> +#include <qwidget.h> + +#include <kapplication.h> +#include <kconfig.h> +#include <kdebug.h> +#include <kdialogbase.h> +#include <kgenericfactory.h> +#include <kglobalsettings.h> +#include <klocale.h> +#include <ksplash/objkstheme.h> +#include <kstandarddirs.h> + +#include "rotwidget.h" +#include "theme2k.h" +#include "theme2k.moc" + +K_EXPORT_COMPONENT_FACTORY( ksplash2k, KGenericFactory<Theme2k> ); + +Cfg2k::Cfg2k( KConfig * ) +{} + +Theme2k::Theme2k( QWidget *parent, const char *name, const QStringList &args ) + :ThemeEngine( parent, name, args ) +{ + readSettings(); + initUi(); +} + +void Theme2k::initUi() +{ + QVBox *vbox = new QVBox( this ); + vbox->setFrameShape( QFrame::WinPanel ); + vbox->setFrameShadow( QFrame::Raised ); + + QHBox *labelBox = new QHBox( vbox ); + labelBox->setPalette( mTBgColor ); + labelBox->setMargin( 1 ); + QLabel *lbl = new QLabel( mWndTitle, labelBox ); + lbl->setFont( QFont( "Arial", 12, QFont::Bold ) ); + lbl->setPaletteForegroundColor( mTFgColor ); + + QLabel *logo = new QLabel( vbox ); + logo->setPalette( Qt::white ); + + QString px( locate( "appdata", mTheme->themeDir() + (mLogoFile.isNull()?QString("/Logo.png"):mLogoFile) ) ); + if (px.isNull()) + px = locate("appdata","Themes/Default/splash_top.png"); + if( !px.isNull() ) + { + QPixmap pix( px ); + logo->setPixmap( pix ); + } + else + { + logo->setText( "<B>KDE</B>2000" ); + logo->setAlignment( AlignCenter|AlignVCenter ); + } + + mRotator = new RotWidget( vbox, mRotColor1, mRotColor2, mRotSpeed ); + + QHBox *hbox = new QHBox( vbox ); + labelBox->setSpacing( 4 ); + labelBox->setMargin( 4 ); + + mText = new QLabel( hbox ); + mText->setPaletteForegroundColor( mStatusColor ); + mText->setPaletteBackgroundColor( mTFgColor ); + mText->setText( mWndTitle ); + mText->setFixedHeight( 48 ); + + setFixedSize( vbox->sizeHint() ); + QRect rect(KGlobalSettings::splashScreenDesktopGeometry()); + move( rect.x() + (rect.width() - size().width())/2, + rect.y() + (rect.height() - size().height())/2 ); +} + +void Theme2k::readSettings() +{ + if( !mTheme ) + return; + + KConfig *cfg = mTheme->themeConfig(); + if( !cfg ) + return; + + cfg->setGroup( QString("KSplash Theme: %1").arg(mTheme->theme()) ); + + QColor DefaultTBgColor( Qt::darkBlue ); + QColor DefaultTFgColor( Qt::white ); + + mTBgColor = cfg->readColorEntry( "Title Background Color", &DefaultTBgColor ); + mTFgColor = cfg->readColorEntry( "Title Foreground Color", &DefaultTFgColor ); + mStatusColor = cfg->readColorEntry("Status Text Color", &mTBgColor ); + + QColor DefaultRot1( Qt::darkBlue ); + QColor DefaultRot2( Qt::cyan ); + mRotColor1 = cfg->readColorEntry( "Rotator Color 1", &DefaultRot1 ); + mRotColor2 = cfg->readColorEntry( "Rotator Color 2", &DefaultRot2 ); + + mRotSpeed = cfg->readNumEntry( "Rotator Speed", 30 ); + mWndTitle = cfg->readEntry( "Window Title", i18n("Please wait...") ); + mLogoFile = cfg->readEntry( "Logo File", QString::null ); +} +</programlisting> +</sect1> +<sect1 id="rotwidgeth"> +<title +>Listing of <filename +>rotwidget.h</filename +></title> +<programlisting +>#ifndef __ROTWIDGET_H__ +#define __ROTWIDGET_H__ + +#include <qlabel.h> +#include <qtimer.h> +#include <qwidget.h> + +#include <kdialogbase.h> +#include <kpixmap.h> + +/** + * @short Display a rotating-gradient widget. + */ +class RotWidget: public QWidget +{ + Q_OBJECT +public: + RotWidget( QWidget *, const QColor&, const QColor&, int ); + ~RotWidget(); + +private slots: + void stepEvent(); + +protected: + void preparePixmap( int ); + void paintEvent( QPaintEvent * ); + void resizeEvent( QResizeEvent * ); + + QColor m_color1, m_color2; + int m_step, m_speed; + QTimer *m_stepTimer; + + QList<KPixmap> m_stepPixmap; +}; + +#endif +</programlisting> +</sect1> +<sect1 id="rotwidgetcpp"> +<title +>Listing of <filename +>rotwidget.cpp</filename +></title> +<programlisting +>#include <kdebug.h> +#include <kdialogbase.h> +#include <kpixmapeffect.h> + +#include <qlabel.h> +#include <qpainter.h> +#include <qwidget.h> + +#include "rotwidget.h" +#include "rotwidget.moc" + +RotWidget::RotWidget( QWidget *parent, const QColor& c1, const QColor& c2, int sp ) + :QWidget(parent), m_color1(c1), m_color2(c2), m_step(0), m_speed(sp) +{ + if( (m_speed <= 0) || (m_speed > 20) ) + m_speed = 1; + setFixedHeight( 6 ); + + for( int i = 0; i <= width(); i++ ) + preparePixmap( i ); + + m_stepTimer = new QTimer( this ); + connect(m_stepTimer, SIGNAL(timeout()), this, SLOT(stepEvent())); + m_stepTimer->start( 50 ); +} + +RotWidget::~RotWidget() +{ +} + +void RotWidget::stepEvent() +{ + // This is inefficient as we create too many pixmaps, optimise later. + m_step += m_speed; + if( m_step > width() ) + m_step = 0; + repaint( true ); +} + +// Todo: Optimize drawing. +void RotWidget::paintEvent( QPaintEvent *pe ) +{ + QPainter p; + p.begin( this ); + + QRect r = pe->rect(); + + if( m_stepPixmap.at( m_step ) ) + bitBlt( this, r.x(), r.y(), m_stepPixmap.at( m_step ), r.x(), r.y(), r.width(), r.height() ); + else + p.fillRect( rect(), Qt::black ); + p.end(); +} + +void RotWidget::resizeEvent( QResizeEvent *re ) +{ + m_stepPixmap.clear(); + for( int i = 0; i <= re->size().width(); i++ ) + preparePixmap( i ); +} + +void RotWidget::preparePixmap( int step ) +{ + if( step < 0 ) + return; + + // Explicitly draw our first pixmap. The rest we will bitBlt() from here. + if( step == 0 ) + { + KPixmap tmp; tmp.resize( size().width() / 2, size().height() ); + KPixmap tmp2(tmp); + KPixmapEffect::gradient( tmp, m_color1, m_color2, KPixmapEffect::HorizontalGradient ); + KPixmapEffect::gradient( tmp2, m_color2, m_color1, KPixmapEffect::HorizontalGradient ); + KPixmap *px = new KPixmap( size() ); + QPainter p; + p.begin( px ); + p.drawPixmap( 0, 0, tmp ); + p.drawPixmap( size().width()/2, 0, tmp2 ); + p.end(); + m_stepPixmap.append( px ); + } + else if( m_stepPixmap.at( step-1 ) ) + { + QPixmap *prev = m_stepPixmap.at( step-1 ); + QPixmap next; next.resize( size() ); + // convert + // prev = "[------------]" + // to + // next = "------------][" + bitBlt( &next, 0, 0, prev, 1, 0, prev->width()-1, prev->height() ); + bitBlt( &next, width()-1, 0, prev, 0, 0, 1, prev->height() ); + KPixmap *n = new KPixmap( next ); + m_stepPixmap.append( n ); + } +} +</programlisting> +</sect1> +</appendix> + +&documentation.index; +</book> + +<!-- +Local Variables: +mode: xml +sgml-minimize-attributes:nil +sgml-general-insert-case:lower +sgml-indent-step:0 +sgml-indent-data:nil +End: + +vim:tabstop=2:shiftwidth=2:expandtab +--> |