kreetingkard/ 0000755 0000764 0000764 00000000000 10141743562 013725 5 ustar tasuku www 0000000 0000000 kreetingkard/po/ 0000755 0000764 0000764 00000000000 10141743562 014343 5 ustar tasuku www 0000000 0000000 kreetingkard/po/Makefile.am 0000644 0000764 0000764 00000000017 10126544404 016372 0 ustar tasuku www 0000000 0000000 POFILES = AUTO
kreetingkard/po/Makefile.in 0000644 0000764 0000764 00000026516 10141742125 016414 0 ustar tasuku www 0000000 0000000 # Makefile.in generated by automake 1.6.3 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.7 $
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# 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@
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
AR = @AR@
ARTSCCONFIG = @ARTSCCONFIG@
AS = @AS@
AUTODIRS = @AUTODIRS@
AWK = @AWK@
CC = @CC@
CONF_FILES = @CONF_FILES@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
DCOPIDL = @DCOPIDL@
DCOPIDL2CPP = @DCOPIDL2CPP@
DCOPIDLNG = @DCOPIDLNG@
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN = @DOXYGEN@
DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
DPMSINC = @DPMSINC@
DPMSLIB = @DPMSLIB@
ECHO = @ECHO@
EGREP = @EGREP@
F77 = @F77@
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GLINC = @GLINC@
GLLIB = @GLLIB@
GMSGFMT = @GMSGFMT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAR = @JAR@
JAVAC = @JAVAC@
JAVAH = @JAVAH@
JVMLIBS = @JVMLIBS@
KCFG_DEPENDENCIES = @KCFG_DEPENDENCIES@
KCONFIG_COMPILER = @KCONFIG_COMPILER@
KDECONFIG = @KDECONFIG@
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
KDE_HAVE_DOT = @KDE_HAVE_DOT@
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@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBBZ2 = @LIBBZ2@
LIBCOMPAT = @LIBCOMPAT@
LIBCRYPT = @LIBCRYPT@
LIBDL = @LIBDL@
LIBGEN = @LIBGEN@
LIBJPEG = @LIBJPEG@
LIBOBJS = @LIBOBJS@
LIBPNG = @LIBPNG@
LIBPTHREAD = @LIBPTHREAD@
LIBPYTHON = @LIBPYTHON@
LIBQIMGIO = @LIBQIMGIO@
LIBRESOLV = @LIBRESOLV@
LIBSHADOW = @LIBSHADOW@
LIBSM = @LIBSM@
LIBSOCKET = @LIBSOCKET@
LIBSSL = @LIBSSL@
LIBTIFF = @LIBTIFF@
LIBTOOL = @LIBTOOL@
LIBUCB = @LIBUCB@
LIBUTIL = @LIBUTIL@
LIBZ = @LIBZ@
LIB_JASPER = @LIB_JASPER@
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_QTOPIA = @LIB_QTOPIA@
LIB_SMB = @LIB_SMB@
LIB_X11 = @LIB_X11@
LIB_XEXT = @LIB_XEXT@
LIB_XRENDER = @LIB_XRENDER@
LN_S = @LN_S@
MCOPIDL = @MCOPIDL@
MEINPROC = @MEINPROC@
MOC = @MOC@
MSGFMT = @MSGFMT@
NOOPT_CFLAGS = @NOOPT_CFLAGS@
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
OBJC = @OBJC@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
PAMLIBS = @PAMLIBS@
PASSWDLIBS = @PASSWDLIBS@
PERL = @PERL@
PYTHONINC = @PYTHONINC@
PYTHONLIB = @PYTHONLIB@
PYTHONMODDIR = @PYTHONMODDIR@
QTDOCDIR = @QTDOCDIR@
QTE_NORTTI = @QTE_NORTTI@
QTOPIA_INCLUDES = @QTOPIA_INCLUDES@
QT_INCLUDES = @QT_INCLUDES@
QT_LDFLAGS = @QT_LDFLAGS@
RANLIB = @RANLIB@
RC = @RC@
SETUIDFLAGS = @SETUIDFLAGS@
SSL_INCLUDES = @SSL_INCLUDES@
SSL_LDFLAGS = @SSL_LDFLAGS@
STRIP = @STRIP@
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@
XPMINC = @XPMINC@
XPMLIB = @XPMLIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_INCLUDES = @X_INCLUDES@
X_LDFLAGS = @X_LDFLAGS@
X_PRE_LIBS = @X_PRE_LIBS@
X_RPATH = @X_RPATH@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__quote = @am__quote@
install_sh = @install_sh@
jni_includes = @jni_includes@
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@
qt_includes = @qt_includes@
qt_libraries = @qt_libraries@
x_includes = @x_includes@
x_libraries = @x_libraries@
xdg_appsdir = @xdg_appsdir@
xdg_directorydir = @xdg_directorydir@
xdg_menudir = @xdg_menudir@
POFILES = AUTO
subdir = po
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DIST_COMMON = Makefile.am Makefile.in
#>- all: all-am
#>+ 1
all: docs-am all-am
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu po/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu po/Makefile
cd $(top_srcdir) && perl admin/am_edit po/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
tags: TAGS
TAGS:
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
@list='$(DISTFILES)'; for file in $$list; do \
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
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 mostlyclean-am
#>+ 1
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
distclean-am: clean-am distclean-generic distclean-libtool
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-generic mostlyclean-libtool
uninstall-am: uninstall-info-am
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
distclean distclean-generic distclean-libtool 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-generic \
mostlyclean-libtool 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
docs-am:
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu po/Makefile
cd $(top_srcdir) && perl admin/am_edit po/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 ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(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
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
kreetingkard/doc/ 0000755 0000764 0000764 00000000000 10141743562 014472 5 ustar tasuku www 0000000 0000000 kreetingkard/doc/en/ 0000755 0000764 0000764 00000000000 10141743562 015074 5 ustar tasuku www 0000000 0000000 kreetingkard/doc/en/Makefile.am 0000644 0000764 0000764 00000000046 10127562235 017130 0 ustar tasuku www 0000000 0000000 KDE_DOCS = kreetingkard
KDE_LANG = en
kreetingkard/doc/en/Makefile.in 0000644 0000764 0000764 00000032446 10141742125 017144 0 ustar tasuku www 0000000 0000000 # Makefile.in generated by automake 1.6.3 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.7 $
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# 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@
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
AR = @AR@
ARTSCCONFIG = @ARTSCCONFIG@
AS = @AS@
AUTODIRS = @AUTODIRS@
AWK = @AWK@
CC = @CC@
CONF_FILES = @CONF_FILES@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
DCOPIDL = @DCOPIDL@
DCOPIDL2CPP = @DCOPIDL2CPP@
DCOPIDLNG = @DCOPIDLNG@
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN = @DOXYGEN@
DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
DPMSINC = @DPMSINC@
DPMSLIB = @DPMSLIB@
ECHO = @ECHO@
EGREP = @EGREP@
F77 = @F77@
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GLINC = @GLINC@
GLLIB = @GLLIB@
GMSGFMT = @GMSGFMT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAR = @JAR@
JAVAC = @JAVAC@
JAVAH = @JAVAH@
JVMLIBS = @JVMLIBS@
KCFG_DEPENDENCIES = @KCFG_DEPENDENCIES@
KCONFIG_COMPILER = @KCONFIG_COMPILER@
KDECONFIG = @KDECONFIG@
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
KDE_HAVE_DOT = @KDE_HAVE_DOT@
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@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBBZ2 = @LIBBZ2@
LIBCOMPAT = @LIBCOMPAT@
LIBCRYPT = @LIBCRYPT@
LIBDL = @LIBDL@
LIBGEN = @LIBGEN@
LIBJPEG = @LIBJPEG@
LIBOBJS = @LIBOBJS@
LIBPNG = @LIBPNG@
LIBPTHREAD = @LIBPTHREAD@
LIBPYTHON = @LIBPYTHON@
LIBQIMGIO = @LIBQIMGIO@
LIBRESOLV = @LIBRESOLV@
LIBSHADOW = @LIBSHADOW@
LIBSM = @LIBSM@
LIBSOCKET = @LIBSOCKET@
LIBSSL = @LIBSSL@
LIBTIFF = @LIBTIFF@
LIBTOOL = @LIBTOOL@
LIBUCB = @LIBUCB@
LIBUTIL = @LIBUTIL@
LIBZ = @LIBZ@
LIB_JASPER = @LIB_JASPER@
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_QTOPIA = @LIB_QTOPIA@
LIB_SMB = @LIB_SMB@
LIB_X11 = @LIB_X11@
LIB_XEXT = @LIB_XEXT@
LIB_XRENDER = @LIB_XRENDER@
LN_S = @LN_S@
MCOPIDL = @MCOPIDL@
MEINPROC = @MEINPROC@
MOC = @MOC@
MSGFMT = @MSGFMT@
NOOPT_CFLAGS = @NOOPT_CFLAGS@
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
OBJC = @OBJC@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
PAMLIBS = @PAMLIBS@
PASSWDLIBS = @PASSWDLIBS@
PERL = @PERL@
PYTHONINC = @PYTHONINC@
PYTHONLIB = @PYTHONLIB@
PYTHONMODDIR = @PYTHONMODDIR@
QTDOCDIR = @QTDOCDIR@
QTE_NORTTI = @QTE_NORTTI@
QTOPIA_INCLUDES = @QTOPIA_INCLUDES@
QT_INCLUDES = @QT_INCLUDES@
QT_LDFLAGS = @QT_LDFLAGS@
RANLIB = @RANLIB@
RC = @RC@
SETUIDFLAGS = @SETUIDFLAGS@
SSL_INCLUDES = @SSL_INCLUDES@
SSL_LDFLAGS = @SSL_LDFLAGS@
STRIP = @STRIP@
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@
XPMINC = @XPMINC@
XPMLIB = @XPMLIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_INCLUDES = @X_INCLUDES@
X_LDFLAGS = @X_LDFLAGS@
X_PRE_LIBS = @X_PRE_LIBS@
X_RPATH = @X_RPATH@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__quote = @am__quote@
install_sh = @install_sh@
jni_includes = @jni_includes@
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@
qt_includes = @qt_includes@
qt_libraries = @qt_libraries@
x_includes = @x_includes@
x_libraries = @x_libraries@
xdg_appsdir = @xdg_appsdir@
xdg_directorydir = @xdg_directorydir@
xdg_menudir = @xdg_menudir@
KDE_DOCS = kreetingkard
KDE_LANG = en
subdir = doc/en
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DIST_COMMON = Makefile.am Makefile.in
#>- all: all-am
#>+ 1
all: docs-am all-am
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu doc/en/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/en/Makefile
cd $(top_srcdir) && perl admin/am_edit doc/en/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
tags: TAGS
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)
#>+ 1
distdir: distdir-nls $(DISTFILES)
@list='$(DISTFILES)'; for file in $$list; do \
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
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
#>- uninstall: uninstall-am
#>+ 1
uninstall: uninstall-docs uninstall-nls 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 mostlyclean-am
#>+ 1
clean-am: clean-docs clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
distclean-am: clean-am distclean-generic distclean-libtool
dvi: dvi-am
dvi-am:
info: info-am
info-am:
#>- install-data-am:
#>+ 1
install-data-am: install-docs install-nls
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-generic mostlyclean-libtool
uninstall-am: uninstall-info-am
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
distclean distclean-generic distclean-libtool 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-generic \
mostlyclean-libtool 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=index.docbook
#>+ 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)/kreetingkard
@if test -f index.cache.bz2; then \
echo $(INSTALL_DATA) index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kreetingkard/; \
$(INSTALL_DATA) index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kreetingkard/; \
elif test -f $(srcdir)/index.cache.bz2; then \
echo $(INSTALL_DATA) $(srcdir)/index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kreetingkard/; \
$(INSTALL_DATA) $(srcdir)/index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kreetingkard/; \
fi
-rm -f $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kreetingkard/common
$(LN_S) $(kde_libs_htmldir)/$(KDE_LANG)/common $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kreetingkard/common
uninstall-docs:
-rm -rf $(kde_htmldir)/$(KDE_LANG)/kreetingkard
clean-docs:
-rm -f index.cache.bz2
#>+ 13
install-nls:
$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kreetingkard
@for base in index.docbook ; do \
echo $(INSTALL_DATA) $$base $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kreetingkard/$$base ;\
$(INSTALL_DATA) $(srcdir)/$$base $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kreetingkard/$$base ;\
done
uninstall-nls:
for base in index.docbook ; do \
rm -f $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/kreetingkard/$$base ;\
done
#>+ 5
distdir-nls:
for file in index.docbook ; do \
cp $(srcdir)/$$file $(distdir); \
done
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/en/Makefile
cd $(top_srcdir) && perl admin/am_edit doc/en/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 ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(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
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
kreetingkard/doc/en/index.docbook 0000644 0000764 0000764 00000040546 10127561370 017555 0 ustar tasuku www 0000000 0000000
KreetingKard 0.1.0">
]>
The &kreetingkard; Handbook
Tasuku Suzuki
tasuku@linux-life.net
1999
%{YEAR}
Tasuku Suzuki
&FDLNotice;
2001-10-18
0.1.0
&kreetingkard; is an application specially designed to do nothing you would
ever want.
KDE
KreetingKard
nothing
nothing else
Introduction
&kreetingkard; is a program that lets you do absolutely nothing. Please report
any problems or feature requests to the &kde; mailing lists.
Using &kreetingkard;
Here's a screenshot of &kreetingkard;
Screenshot
More &kreetingkard; features
It slices! It dices! and it comes with a free toaster!
The Squiggle Tool
Squiggle
is used to draw squiggly lines all over
the &kreetingkard; main window. It's not a bug, it's a feature!
Command Reference
The main &kreetingkard; window
The File Menu
&Ctrl;N
File
New
Creates a new document
&Ctrl;S
File
Save
Saves the document
&Ctrl;Q
File
Quit
Quits &kreetingkard;
The Help Menu
&help.menu.documentation;
Developer's Guide to &kreetingkard;
Programming &kreetingkard; plugins is a joy to behold. Just read through the next
66 pages of API's to learn how!
XtUnmanageChildren
Xt - Geometry Management
XtUnmanageChildren
remove a list of children from a parent widget's managed
list.
widgetsremoving
XtUnmanageChildren
4 March 1996
void XtUnmanageChildren(children, num_children)
WidgetList children;
Cardinal num_children;
Inputs
children
Specifies an array of child widgets. Each child must be of
class RectObj or any subclass thereof.
num_children
Specifies the number of elements in children.
Description
XtUnmanageChildren() unmaps the specified widgets
and removes them from their parent's geometry management.
The widgets will disappear from the screen, and (depending
on its parent) may no longer have screen space allocated for
them.
Each of the widgets in the children array must have
the same parent.
See the “Algorithm” section below for full details of the
widget unmanagement procedure.
Usage
Unmanaging widgets is the usual method for temporarily
making them invisible. They can be re-managed with
XtManageChildren().
You can unmap a widget, but leave it under geometry
management by calling XtUnmapWidget(). You can
destroy a widget's window without destroying the widget by
calling XtUnrealizeWidget(). You can destroy a
widget completely with XtDestroyWidget().
If you are only going to unmanage a single widget, it is
more convenient to call XtUnmanageChild(). It is
often more convenient to call XtUnmanageChild()
several times than it is to declare and initialize an array
of widgets to pass to XtUnmanageChildren(). Calling
XtUnmanageChildren() is more efficient, however,
because it only calls the parent's change_managed()
method once.
Algorithm
XtUnmanageChildren() performs the following:
-
Ignores the child if it already is unmanaged or is being
destroyed.
-
Otherwise, if the child is realized, it makes it nonvisible
by unmapping it.
Structures
The WidgetList type is simply an array of widgets:
typedef Widget *WidgetList;
Questions and Answers
&reporting.bugs;
&updating.documentation;
My Mouse doesn't work. How do I quit &kreetingkard;?
You silly goose! Check out the Commands
Section for the answer.
Why can't I twiddle my documents?
You can only twiddle your documents if you have the foobar.lib
installed.
Credits and License
&kreetingkard;
Program copyright %{YEAR} Tasuku Suzuki tasuku@linux-life.net
Contributors:
Konqui the KDE Dragon konqui@kde.org
Tux the Linux Penguin tux@linux.org
Documentation copyright %{YEAR} Tasuku Suzuki tasuku@linux-life.net
&underFDL;
&underGPL;
&underBSDLicense;
&underArtisticLicense;
&underX11License;
Installation
How to obtain &kreetingkard;
&install.intro.documentation;
Requirements
In order to successfully use &kreetingkard;, you need &kde; 1.1. Foobar.lib is
required in order to support the advanced &kreetingkard; features. &kreetingkard; uses
about 5 megs of memory to run, but this may vary depending on your
platform and configuration.
All required libraries as well as &kreetingkard; itself can be found
on The &kreetingkard; home page.
You can find a list of changes at http://apps.kde.org/kreetingkard.
Compilation and Installation
&install.compile.documentation;
Configuration
Don't forget to tell your system to start the dtd
dicer-toaster daemon first, or &kreetingkard; won't work !
&documentation.index;
kreetingkard/doc/Makefile.am 0000644 0000764 0000764 00000000273 10127561721 016527 0 ustar tasuku www 0000000 0000000 # the SUBDIRS is filled automatically by am_edit. If files are
# in this directory they are installed into the english dir
KDE_LANG = en
KDE_DOCS = kreetingkard
SUBDIRS = $(AUTODIRS)
kreetingkard/doc/Makefile.in 0000644 0000764 0000764 00000040206 10141742125 016533 0 ustar tasuku www 0000000 0000000 # Makefile.in generated by automake 1.6.3 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.7 $
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# 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@
# the SUBDIRS is filled automatically by am_edit. If files are
# in this directory they are installed into the english dir
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
AR = @AR@
ARTSCCONFIG = @ARTSCCONFIG@
AS = @AS@
AUTODIRS = @AUTODIRS@
AWK = @AWK@
CC = @CC@
CONF_FILES = @CONF_FILES@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
DCOPIDL = @DCOPIDL@
DCOPIDL2CPP = @DCOPIDL2CPP@
DCOPIDLNG = @DCOPIDLNG@
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN = @DOXYGEN@
DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
DPMSINC = @DPMSINC@
DPMSLIB = @DPMSLIB@
ECHO = @ECHO@
EGREP = @EGREP@
F77 = @F77@
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GLINC = @GLINC@
GLLIB = @GLLIB@
GMSGFMT = @GMSGFMT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAR = @JAR@
JAVAC = @JAVAC@
JAVAH = @JAVAH@
JVMLIBS = @JVMLIBS@
KCFG_DEPENDENCIES = @KCFG_DEPENDENCIES@
KCONFIG_COMPILER = @KCONFIG_COMPILER@
KDECONFIG = @KDECONFIG@
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
KDE_HAVE_DOT = @KDE_HAVE_DOT@
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@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBBZ2 = @LIBBZ2@
LIBCOMPAT = @LIBCOMPAT@
LIBCRYPT = @LIBCRYPT@
LIBDL = @LIBDL@
LIBGEN = @LIBGEN@
LIBJPEG = @LIBJPEG@
LIBOBJS = @LIBOBJS@
LIBPNG = @LIBPNG@
LIBPTHREAD = @LIBPTHREAD@
LIBPYTHON = @LIBPYTHON@
LIBQIMGIO = @LIBQIMGIO@
LIBRESOLV = @LIBRESOLV@
LIBSHADOW = @LIBSHADOW@
LIBSM = @LIBSM@
LIBSOCKET = @LIBSOCKET@
LIBSSL = @LIBSSL@
LIBTIFF = @LIBTIFF@
LIBTOOL = @LIBTOOL@
LIBUCB = @LIBUCB@
LIBUTIL = @LIBUTIL@
LIBZ = @LIBZ@
LIB_JASPER = @LIB_JASPER@
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_QTOPIA = @LIB_QTOPIA@
LIB_SMB = @LIB_SMB@
LIB_X11 = @LIB_X11@
LIB_XEXT = @LIB_XEXT@
LIB_XRENDER = @LIB_XRENDER@
LN_S = @LN_S@
MCOPIDL = @MCOPIDL@
MEINPROC = @MEINPROC@
MOC = @MOC@
MSGFMT = @MSGFMT@
NOOPT_CFLAGS = @NOOPT_CFLAGS@
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
OBJC = @OBJC@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
PAMLIBS = @PAMLIBS@
PASSWDLIBS = @PASSWDLIBS@
PERL = @PERL@
PYTHONINC = @PYTHONINC@
PYTHONLIB = @PYTHONLIB@
PYTHONMODDIR = @PYTHONMODDIR@
QTDOCDIR = @QTDOCDIR@
QTE_NORTTI = @QTE_NORTTI@
QTOPIA_INCLUDES = @QTOPIA_INCLUDES@
QT_INCLUDES = @QT_INCLUDES@
QT_LDFLAGS = @QT_LDFLAGS@
RANLIB = @RANLIB@
RC = @RC@
SETUIDFLAGS = @SETUIDFLAGS@
SSL_INCLUDES = @SSL_INCLUDES@
SSL_LDFLAGS = @SSL_LDFLAGS@
STRIP = @STRIP@
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@
XPMINC = @XPMINC@
XPMLIB = @XPMLIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_INCLUDES = @X_INCLUDES@
X_LDFLAGS = @X_LDFLAGS@
X_PRE_LIBS = @X_PRE_LIBS@
X_RPATH = @X_RPATH@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__quote = @am__quote@
install_sh = @install_sh@
jni_includes = @jni_includes@
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@
qt_includes = @qt_includes@
qt_libraries = @qt_libraries@
x_includes = @x_includes@
x_libraries = @x_libraries@
xdg_appsdir = @xdg_appsdir@
xdg_directorydir = @xdg_directorydir@
xdg_menudir = @xdg_menudir@
KDE_LANG = en
KDE_DOCS = kreetingkard
#>- SUBDIRS = $(AUTODIRS)
#>+ 1
SUBDIRS =. en
subdir = doc
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
#>- RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
#>- uninstall-info-recursive all-recursive install-data-recursive \
#>- install-exec-recursive installdirs-recursive install-recursive \
#>- uninstall-recursive check-recursive installcheck-recursive
#>+ 4
RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
uninstall-info-recursive all-recursive install-data-recursive \
install-exec-recursive installdirs-recursive install-recursive \
uninstall-recursive check-recursive installcheck-recursive nmcheck-recursive bcheck-recursive
DIST_COMMON = Makefile.am Makefile.in
DIST_SUBDIRS = $(SUBDIRS)
#>- all: all-recursive
#>+ 1
all: docs-am all-recursive
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu doc/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/Makefile
cd $(top_srcdir) && perl admin/am_edit doc/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
# 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):
@set fnord $$MAKEFLAGS; amf=$$2; \
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) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $$MAKEFLAGS; amf=$$2; \
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) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ETAGS = etags
ETAGSFLAGS =
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: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -f $$subdir/TAGS && tags="$$tags -i $$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; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_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
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
@list='$(DISTFILES)'; for file in $$list; do \
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
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
(cd $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$(top_distdir)" \
distdir=../$(distdir)/$$subdir \
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
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_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-recursive
#>+ 1
clean: kde-rpo-clean clean-recursive
#>- clean-am: clean-generic clean-libtool mostlyclean-am
#>+ 1
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
distclean-am: clean-am distclean-generic distclean-libtool \
distclean-tags
dvi: dvi-recursive
dvi-am:
info: info-recursive
info-am:
install-data-am:
install-exec-am:
install-info: install-info-recursive
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
uninstall-am: uninstall-info-am
uninstall-info: uninstall-info-recursive
.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
clean-generic clean-libtool clean-recursive distclean \
distclean-generic distclean-libtool distclean-recursive \
distclean-tags distdir dvi dvi-am dvi-recursive info info-am \
info-recursive install install-am install-data install-data-am \
install-data-recursive install-exec install-exec-am \
install-exec-recursive install-info install-info-am \
install-info-recursive install-man install-recursive \
install-strip installcheck installcheck-am installdirs \
installdirs-am installdirs-recursive maintainer-clean \
maintainer-clean-generic maintainer-clean-recursive mostlyclean \
mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
tags tags-recursive uninstall uninstall-am uninstall-info-am \
uninstall-info-recursive uninstall-recursive
# 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
docs-am:
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/Makefile
cd $(top_srcdir) && perl admin/am_edit doc/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) $(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
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
kreetingkard/src/ 0000755 0000764 0000764 00000000000 10141743562 014514 5 ustar tasuku www 0000000 0000000 kreetingkard/src/kkpropertyitemdatafield.h 0000644 0000764 0000764 00000003555 10141173564 021623 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKPROPERTYITEMDATAFIELD_H
#define KKPROPERTYITEMDATAFIELD_H
#include
#include "kkpropertyitembase.h"
class KKPropertyItemDataField : public KKPropertyItemBase
{
Q_OBJECT
public:
KKPropertyItemDataField( KKProperty* parent, QString datafield );
~KKPropertyItemDataField();
public slots:
void reset();
void start();
void accept();
private:
KLineEdit* txtDataField;
};
#endif //KKPROPERTYITEMDATAFIELD_H
kreetingkard/src/kkdoc.cpp 0000644 0000764 0000764 00000020352 10141726634 016316 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include
#include
#include "kkitem.h"
#include "kkdoc.h"
#include "kkcmdname.h"
#include "kkcmdlocation.h"
#include "kkcmdsize.h"
#include "kkcmdtext.h"
#include "kkcmdtextalign.h"
#include "kkcmdtextorientation.h"
#include "kkcmdtextcolor.h"
#include "kkcmdtextfont.h"
#include "kkcmddatafield.h"
#include "kkcmdimage.h"
#include "kkcmdinsert.h"
#include "kkcmdremove.h"
KKDoc::KKDoc( KActionCollection* actionCollection, QWidget *parent, const char *name )
: KListView(parent, name)
{
m_cmd = NULL;
m_cmdHistory = new KCommandHistory( actionCollection );
addColumn( i18n("Items") );
setFullWidth( true );
// setAllColumnsShowFocus( true );
// setRootIsDecorated( true );
setSortColumn( -1 );
setSelectionModeExt( FileManager );
setDragEnabled( false );
setItemsRenameable( true );
setRenameable( 0, true );
}
KKDoc::~KKDoc()
{
}
void KKDoc::setDocument( QDomDocument doc )
{
clear();
KKItem* item;
for( QDomNode n = doc.documentElement().lastChild(); !n.isNull(); n = n.previousSibling() )
{
item = new KKItem( n.toElement(), this, n.toElement().attribute( "name" ) );
item->setOpen( true );
}
commandHistory()->clear();
emit documentChanged();
}
QDomDocument KKDoc::document()
{
QDomDocument doc;
doc.appendChild( doc.createProcessingInstruction( "xml", "version=\"1.0\" encoding=\"UTF-8\"" ) );
QDomElement elem = doc.createElement( "kreetingkard" );
elem.setAttribute( "version", "0.1.0" );
KKItem* base = (KKItem*)firstChild();
while( base )
{
elem.appendChild( base->toElement( doc ) );
base = (KKItem*)base->nextSibling();
}
doc.appendChild( elem );
return doc;
}
void KKDoc::terminate()
{
if( m_cmd != NULL )
{
m_cmd->end();
if( m_cmd->valid() )
{
kdDebug() << m_cmd->name() << endl;
}
delete m_cmd;
m_cmd = NULL;
}
}
void KKDoc::setName( QString name )
{
terminate();
m_cmd = new KKCmdName( this );
m_cmd->begin();
for( KKItem* item = m_cmd->items().first(); item; item = m_cmd->items().next() )
{
item->setName( name );
}
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit nameChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::setLocation( int* x, int* y )
{
terminate();
m_cmd = new KKCmdLocation( this );
m_cmd->begin();
for( KKItem* item = m_cmd->items().first(); item; item = m_cmd->items().next() )
{
item->setLocation( x == NULL ? item->location().x() : *x, y == NULL ? item->location().y() : *y );
}
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit locationChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::moveStart()
{
terminate();
m_cmd = new KKCmdLocation( this );
m_cmd->begin();
}
void KKDoc::moving()
{
emit locationChanged();
}
void KKDoc::moveEnd()
{
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit locationChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::setSize( int width, int height )
{
terminate();
m_cmd = new KKCmdSize( this );
m_cmd->begin();
for( KKItem* item = m_cmd->items().first(); item; item = m_cmd->items().next() )
{
item->setSize( width == -1 ? item->size().width() : width, height == -1 ? item->size().height() : height );
}
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit sizeChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::resizeStart()
{
terminate();
m_cmd = new KKCmdSize( this );
m_cmd->begin();
}
void KKDoc::resizing()
{
emit sizeChanged();
}
void KKDoc::resizeEnd()
{
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit sizeChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::setText( QString text )
{
terminate();
m_cmd = new KKCmdText( this );
m_cmd->begin();
for( KKItem* item = m_cmd->items().first(); item; item = m_cmd->items().next() )
{
item->setText( text );
}
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit textChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::setDataField( QString datafield )
{
terminate();
m_cmd = new KKCmdDataField( this );
m_cmd->begin();
for( KKItem* item = m_cmd->items().first(); item; item = m_cmd->items().next() )
{
item->setDataField( datafield );
}
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit datafieldChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::setTextAlign( int align )
{
terminate();
m_cmd = new KKCmdTextAlign( this );
m_cmd->begin();
for( KKItem* item = m_cmd->items().first(); item; item = m_cmd->items().next() )
{
item->setTextAlign( align );
}
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit textAlignChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::setTextOrientation( Orientation orientation )
{
terminate();
m_cmd = new KKCmdTextOrientation( this );
m_cmd->begin();
for( KKItem* item = m_cmd->items().first(); item; item = m_cmd->items().next() )
{
item->setTextOrientation( orientation );
}
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit textOrientationChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::setTextColor( QColor color )
{
terminate();
m_cmd = new KKCmdTextColor( this );
m_cmd->begin();
for( KKItem* item = m_cmd->items().first(); item; item = m_cmd->items().next() )
{
item->setTextColor( color );
}
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit textColorChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::setTextFont( QFont font )
{
terminate();
m_cmd = new KKCmdTextFont( this );
m_cmd->begin();
for( KKItem* item = m_cmd->items().first(); item; item = m_cmd->items().next() )
{
item->setTextFont( font );
}
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit textFontChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::setImage( QPixmap p )
{
terminate();
m_cmd = new KKCmdImage( this );
m_cmd->begin();
for( KKItem* item = m_cmd->items().first(); item; item = m_cmd->items().next() )
{
item->setImage( p );
}
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit imageChanged();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::insert()
{
terminate();
m_cmd = new KKCmdInsert( this );
m_cmd->begin();
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, false );
emit inserted();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
void KKDoc::remove()
{
terminate();
m_cmd = new KKCmdRemove( this );
m_cmd->begin();
m_cmd->end();
if( m_cmd->valid() )
{
m_cmdHistory->addCommand( m_cmd, true );
emit removed();
}
else
{
delete m_cmd;
}
m_cmd = NULL;
}
kreetingkard/src/kkpropertyitemtextcolor.h 0000644 0000764 0000764 00000003710 10141214167 021715 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKPROPERTYITEMTEXTCOLOR_H
#define KKPROPERTYITEMTEXTCOLOR_H
#include
#include
#include
#include "kkpropertyitembase.h"
class KKPropertyItemTextColor : public KKPropertyItemBase
{
Q_OBJECT
public:
KKPropertyItemTextColor( KKPropertyItemBase* parent, QString datafield );
~KKPropertyItemTextColor();
public slots:
void reset();
void start();
void accept();
private:
QHBox* hbox;
QCheckBox* chkEnabled;
KColorButton* btnColor;
};
#endif //KKPROPERTYITEMTEXTCOLOR_H
kreetingkard/src/kksizehandler.cpp 0000644 0000764 0000764 00000007474 10141705376 020073 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include
#include "kksizehandler.h"
#include "kksizehandlerwidget.h"
#include "kkitem.h"
KKSizeHandler::KKSizeHandler( QWidget* parent, KKItem* item )
{
m_item = item;
connect( m_item, SIGNAL( locationChanged() ), this, SLOT( setGeometry() ) );
connect( m_item, SIGNAL( sizeChanged() ), this, SLOT( setGeometry() ) );
for( int y = 2; y != -1 ; y-- )
{
for( int x = 2; x != -1; x-- )
{
if( y == 1 && x == 1 ) continue;
KKSizeHandlerWidget* w = new KKSizeHandlerWidget( x, y, parent );
w->hide();
connect( w, SIGNAL( moving( int, int, QPoint ) ), this, SLOT( resize( int, int, QPoint ) ) );
connect( w, SIGNAL( start() ), this, SIGNAL( start() ) );
connect( w, SIGNAL( moving( int, int, QPoint ) ), this, SIGNAL( resizing() ) );
connect( w, SIGNAL( end() ), this, SIGNAL( end() ) );
m_sh[y][x] = w;
}
}
setGeometry();
}
KKSizeHandler::~KKSizeHandler()
{
for( int y = 2; y != -1 ; y-- )
{
for( int x = 2; x != -1; x-- )
{
if( y == 1 && x == 1 ) continue;
delete m_sh[y][x];
}
}
}
void KKSizeHandler::setVisible( bool b )
{
for( int y = 0; y != 3; y++ )
{
for( int x = 0; x != 3; x++ )
{
if( y == 1 && x == 1 ) continue;
if( b )
{
m_sh[y][x]->show();
}
else
{
m_sh[y][x]->hide();
}
}
}
}
void KKSizeHandler::setGeometry()
{
for( int y = 0; y != 3; y++ )
{
for( int x = 0; x != 3; x++ )
{
if( y == 1 && x == 1 ) continue;
m_sh[y][x]->move( m_item->location().x() + ( m_item->size().width() ) * x/2 - 2, m_item->location().y() + ( m_item->size().height() ) * y/2 - 2 );
}
}
}
void KKSizeHandler::resize( int x, int y, int w, int h, int ax, int ay )
{
if( w < 0 )
{
if( ax == 0 )
{
x = m_item->location().x() + m_item->size().width();
}
else if( ax == 2 )
{
x = m_item->location().x();
}
w = 0;
}
if( h < 0 )
{
if( ay == 0 )
{
y = m_item->location().y() + m_item->size().height();
}
else if( ay == 2 )
{
y = m_item->location().y();
}
h = 0;
}
QRect r( m_item->rect() );
m_item->setLocation( x, y );
m_item->setSize( w, h );
emit repaint( r );
r = m_item->rect();
emit repaint( r );
}
void KKSizeHandler::resize( int x, int y, QPoint p )
{
resize(
m_item->location().x() + p.x() * ( x == 0 ? 1 : 0 ),
m_item->location().y() + p.y() * ( y == 0 ? 1 : 0 ),
m_item->size().width() - p.x() * ( 1 - x ),
m_item->size().height() - p.y() * ( 1 - y ),
x,
y
);
}
kreetingkard/src/kreetingkard.h 0000644 0000764 0000764 00000005076 10141722576 017351 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef _KREETINGKARD_H_
#define _KREETINGKARD_H_
#ifdef HAVE_CONFIG_H
#include
#endif
#include
#include
#include
#include
#include
class KKView;
class KKDoc;
class KKProperty;
class KreetingKard : public KDockMainWindow
{
Q_OBJECT
public:
enum InsertMode
{
None = 0,
Text,
Pixmap,
};
KreetingKard();
virtual ~KreetingKard();
// static InsertMode insertMode()
// {
// kdDebug() << m_mode << endl;
// return (InsertMode)m_mode;
// }
// static void setInsertMode( InsertMode m )
// {
// kdDebug() << "setInsertMode " << m_mode << ">" << m << endl;
// m_mode = m;
// }
protected:
virtual bool queryClose();
private:
void readConfig();
void saveConfig();
void setupWidgets();
void setupActions();
KKView* m_view;
QSplitter* m_spl;
KKDoc* m_doc;
KKProperty* m_property;
QDomDocument selectNewDoc();
QDomDocument createData();
QString m_filename;
bool checkChangedAndSaved();
private slots:
void fileNew();
void fileOpen();
bool fileSave();
bool fileSaveAs();
void print();
void insert();
void remove();
};
#endif // _KREETINGKARD_H_
kreetingkard/src/kkcmdtextalign.h 0000644 0000764 0000764 00000003544 10140647275 017707 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKCMDTEXTALIGN_H
#define KKCMDTEXTALIGN_H
#include "kkcmdbase.h"
class KKCmdTextAlign : public KKCmdBase
{
public:
KKCmdTextAlign( KKDoc* doc );
protected:
QString propertyName();
void execute( KKItem* item );
void unexecute( KKItem* item );
void begin( KKItem* item );
bool end( KKItem* item );
private:
QMap m_before;
QMap m_after;
};
#endif //KKCMDTEXTALIGN_H
kreetingkard/src/kkcmdremove.h 0000644 0000764 0000764 00000003462 10141707030 017167 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKCMDREMOVE_H
#define KKCMDREMOVE_H
#include
class KKCmdRemove : public KKCmdBase
{
public:
KKCmdRemove( KKDoc* doc );
protected:
QString propertyName();
void execute( KKItem* item );
void unexecute( KKItem* item );
void begin( KKItem* item );
bool end( KKItem* item );
private:
QMap m_parent;
};
#endif //KKCMDREMOVE_H
kreetingkard/src/kkwidget.cpp 0000644 0000764 0000764 00000032505 10141711757 017037 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
// #define DOUBLEBUFFERING
#include
#include
#include
#include
#include
#include
#include
#include
#include "kkdoc.h"
#include "kkwidget.h"
#include "kreetingkard.h"
#include "kksizehandler.h"
KKWidget::KKWidget( KKItem* item, QWidget* parent, const char* name )
: QWidget( parent, name )
{
m_item = item;
connect( m_item, SIGNAL( repaint( QRect ) ), this, SLOT( slotRepaint( QRect ) ) );
connect( m_item, SIGNAL( selectionChanged( bool ) ), this, SLOT( selectionChanged( bool ) ) );
connect( m_item, SIGNAL( imageChanged( KKItem* ) ), this, SLOT( imageChanged( KKItem* ) ) );
KKItem* child = (KKItem*)m_item->firstChild();
while( child )
{
itemInserted( child );
connect( child, SIGNAL( inserted( KKItem* ) ), this, SLOT( itemInserted( KKItem* ) ) );
connect( child, SIGNAL( removed( KKItem* ) ), this, SLOT( itemRemoved( KKItem* ) ) );
child = (KKItem*)child->nextSibling();
}
m_zoom = 1;
m_size = m_item->size();
QFrame* fra;
m_fraSelectLeft = new QFrame( this );
fra = m_fraSelectLeft;
fra->setLineWidth( 1 );
fra->setFrameStyle( QFrame::VLine | QFrame::Plain );
fra->hide();
m_fraSelectTop = new QFrame( this );
fra = m_fraSelectTop;
fra->setLineWidth( 1 );
fra->setFrameStyle( QFrame::HLine | QFrame::Plain );
fra->hide();
m_fraSelectRight = new QFrame( this );
fra = m_fraSelectRight;
fra->setLineWidth( 1 );
fra->setFrameStyle( QFrame::VLine | QFrame::Plain );
fra->hide();
m_fraSelectBottom = new QFrame( this );
fra = m_fraSelectBottom;
fra->setLineWidth( 1 );
fra->setFrameStyle( QFrame::HLine | QFrame::Plain );
fra->hide();
if( !m_item->image().isNull() )
{
QImage img = m_item->image().convertToImage().smoothScale( size() );
QPixmap pix;
pix.convertFromImage( img );
setPaletteBackgroundPixmap( pix );
}
else
{
setBackgroundMode( NoBackground );
setPaletteBackgroundColor( white );
}
resetGeometry();
}
KKWidget::~KKWidget()
{
}
void KKWidget::resetGeometry()
{
setFixedSize( (int)(size().width() * zoom()), (int)(size().height() * zoom()) );
move( location() * zoom() );
}
// BEGIN Properties
// BEGIN Size
void KKWidget::setSize( QSize s )
{
m_size = s;
resetGeometry();
}
// END
// BEGIN Location
void KKWidget::setLocation( QPoint l )
{
m_item->setLocation( l );
resetGeometry();
}
// END
// BEGIN Zoom
double KKWidget::zoom()
{
if( m_zoom < 0 )
{
return -1.0 / (double)(m_zoom);
}
else
{
return m_zoom;
}
}
void KKWidget::setZoom( int z )
{
m_zoom = z;
resetGeometry();
repaint();
return;
QObjectList* l = queryList( "KKWidget" );
QObjectListIterator it( *l );
QObject *obj;
while ( (obj = it.current()) != 0 ) {
++it;
((KKWidget*)obj)->setZoom( z );
}
delete l;
}
// END
// END Properties
void KKWidget::paintEvent( QPaintEvent* e )
{
draw( this, e->rect() );
}
void KKWidget::draw( const QPaintDevice* device )
{
draw( device, m_item->rect() );
}
void KKWidget::draw( const QPaintDevice* device, QRect rect )
{
QPainter p;
#ifdef DOUBLEBUFFERING
QPixmap pm( size() );
p.begin( &pm, device );
if( !m_item->image() )
{
p.fillRect( rect, QBrush( white ) );
}
#else
p.begin( device );
#endif
// p.setPen( black );
// int top = 0;
// int left = 0;
// int bottom = height() - 1;
// int right = width() - 1;
// p.drawLine( left, top, right, top );
// p.drawLine( right, top, right, bottom );
// p.drawLine( right, bottom, left, bottom );
// p.drawLine( left, bottom, left, top );
m_item->drawItem( p, zoom() );
QListViewItem* child = m_item->firstChild();
while( child )
{
if( ((KKItem*)child)->rect().intersects( rect ) )
{
((KKItem*)child)->drawItem( p, zoom() );
}
child = child->nextSibling();
}
p.end();
#ifdef DOUBLEBUFFERING
bitBlt( this, rect.topLeft(), &pm, rect );
#endif
}
void KKWidget::mousePressEvent( QMouseEvent* e )
{
KKItem* child;
if( e->button() == LeftButton )
{
switch( dragMode() )
{
case None:
m_fraSelectPos = e->pos();
// ┴к┬Єд╡дьд╞дддыеведе╞ер╛хд╬╛ь╣ч░▄╞░етб╝е╔д╦д╣ды
child = (KKItem*)m_item->firstChild();
while( child )
{
if( child->isSelected() && child->rect().contains( e->pos() ) )
{
setCursor( pointingHandCursor );
setDragMode( Move );
((KKDoc*)m_item->listView())->moveStart();
return;
}
child = (KKItem*)child->nextSibling();
}
if( !( e->state() & (ControlButton | ShiftButton) ) )
{
// д╣д┘д╞д╬еведе╞ердЄ┴к┬Є▓Є╜№
child = (KKItem*)m_item->firstChild();
while( child )
{
if( child->isSelected() )
{
child->listView()->setSelected( child, false );
repaint( child->rect() );
}
child = (KKItem*)child->nextSibling();
}
}
// еведе╞ер╛хд╬╛ь╣чд╜д╬еведе╞ерд╟░▄╞░етб╝е╔д╦д╣ды
child = (KKItem*)m_item->firstChild();
while( child )
{
if( child->rect().contains( e->pos() ) )
{
child->listView()->setSelected( child, true );
m_item->listView()->setSelected( m_item, false );
repaint( child->rect() );
setCursor( pointingHandCursor );
setDragMode( Move );
((KKDoc*)m_item->listView())->moveStart();
return;
}
child = (KKItem*)child->nextSibling();
}
// ▓┐дтд╩дд╛ь╣ч┴к┬Єетб╝е╔д╦д╣ды
setDragMode( Select );
startDrag();
break;
case Insert:
// д╣д┘д╞д╬еведе╞ердЄ┴к┬Є▓Є╜№
child = (KKItem*)m_item->firstChild();
while( child )
{
if( child->isSelected() )
{
child->listView()->setSelected( child, false );
repaint( child->rect() );
}
child = (KKItem*)child->nextSibling();
}
m_fraSelectPos = e->pos();
startDrag();
break;
default:
break;
}
}
else if( e->button() == RightButton )
{
// Todo: popup context menu
}
}
void KKWidget::mouseMoveEvent( QMouseEvent* e )
{
QRect rect;
KKItem* child;
int x, y, w, h;
switch( dragMode() )
{
case None:
m_fraSelectPos = e->pos();
/* // ┴к┬Єд╡дьд╞дддыеведе╞ер╛хд╬╛ь╣чеъе╡еде║═╤д╬елб╝е╜еыд╦╩╤╣╣
child = (KKItem*)m_item->firstChild();
while( child )
{
if( child->isSelected() && child->rect().contains( e->pos() ) )
{
setCursor( waitCursor );
return;
}
child = (KKItem*)child->nextSibling();
}*/
setCursor( arrowCursor );
break;
case Select:
case Insert:
if( e->pos() != m_fraSelectPos ) setCursor( crossCursor );
w = e->pos().x() - m_fraSelectPos.x();
h = e->pos().y() - m_fraSelectPos.y();
if( w > 0 )
{
x = m_fraSelectPos.x();
}
else
{
x = e->pos().x();
w *= -1;
}
if( h > 0 )
{
y = m_fraSelectPos.y();
}
else
{
y = e->pos().y();
h *= -1;
}
m_fraSelectLeft->setGeometry( x, y, 1, h );
m_fraSelectTop->setGeometry( x, y, w, 1 );
m_fraSelectRight->setGeometry( x+w-1, y, 1, h );
m_fraSelectBottom->setGeometry( x, y+h-1, w, 1 );
// repaint( x, y, w, h, false );
break;
case Move:
child = (KKItem*)m_item->firstChild();
while( child )
{
if( child->isSelected() )
{
// rect = child->rect();
child->setLocation( child->location() + e->pos() - m_fraSelectPos );
// repaint( rect );
// repaint( child->rect() );
}
child = (KKItem*)child->nextSibling();
}
m_fraSelectPos = e->pos();
((KKDoc*)m_item->listView())->moving();
break;
}
}
void KKWidget::mouseReleaseEvent( QMouseEvent* e )
{
int x, y, w, h;
switch( dragMode() )
{
case Move:
((KKDoc*)m_item->listView())->moveEnd();
setCursor( arrowCursor );
break;
case Select:
{
w = e->pos().x() - m_fraSelectPos.x();
h = e->pos().y() - m_fraSelectPos.y();
if( w > 0 )
{
x = m_fraSelectPos.x();
}
else
{
x = e->pos().x();
w *= -1;
}
if( h > 0 )
{
y = m_fraSelectPos.y();
}
else
{
y = e->pos().y();
h *= -1;
}
int count = selectItem( QRect( x, y, w, h ), e->state() & ShiftButton );
m_item->listView()->setSelected( m_item, ( count == 0 ) );
setCursor( arrowCursor );
break;
}
case Insert:
{
w = e->pos().x() - m_fraSelectPos.x();
h = e->pos().y() - m_fraSelectPos.y();
if( w > 0 )
{
x = m_fraSelectPos.x();
}
else
{
x = e->pos().x();
w *= -1;
}
if( h > 0 )
{
y = m_fraSelectPos.y();
}
else
{
y = e->pos().y();
h *= -1;
}
KKItem* item = new KKItem( m_item, "NewItem" );
item->setLocation( x, y );
item->setSize( w, h );
connect( item, SIGNAL( inserted( KKItem* ) ), this, SLOT( itemInserted( KKItem* ) ) );
connect( item, SIGNAL( removed( KKItem* ) ), this, SLOT( itemRemoved( KKItem* ) ) );
itemInserted( item );
m_item->listView()->setSelected( m_item, false );
m_item->listView()->setSelected( item, true );
((KKDoc*)m_item->listView())->insert();
setCursor( arrowCursor );
break;
}
default:
break;
}
m_fraSelectLeft->hide();
m_fraSelectTop->hide();
m_fraSelectRight->hide();
m_fraSelectBottom->hide();
setDragMode( None );
}
int KKWidget::selectItem( QRect rect, bool blAdd )
{
int rtn = 0;
bool bl;
m_item->listView()->clearSelection();
KKItem* child = (KKItem*)m_item->firstChild();
while( child )
{
if( rect.width() == 0 && rect.height() == 0 )
{
bl = child->rect().contains( rect.x(), rect.y() );
}
else
{
bl = rect.intersects( child->rect() );
}
child->listView()->setSelected( child, bl ? true : ( blAdd ? child->isSelected() : false ) );
repaint( child->rect(), false );
if( bl ){
rtn++;
}
child = (KKItem*)child->nextSibling();
}
return rtn;
}
void KKWidget::startDrag()
{
m_fraSelectLeft->show();
m_fraSelectLeft->move( m_fraSelectPos );
m_fraSelectLeft->resize( 1, 1 );
m_fraSelectTop->show();
m_fraSelectTop->move( m_fraSelectPos );
m_fraSelectTop->resize( 1, 1 );
m_fraSelectRight->show();
m_fraSelectRight->move( m_fraSelectPos );
m_fraSelectRight->resize( 1, 1 );
m_fraSelectBottom->show();
m_fraSelectBottom->move( m_fraSelectPos );
m_fraSelectBottom->resize( 1, 1 );
}
void KKWidget::selectionChanged( bool b )
{
if( b ) emit selectionChanged( this );
}
void KKWidget::selectionChanged( KKItem* item, bool b )
{
m_sizeHandles[item]->setVisible( b );
}
void KKWidget::imageChanged( KKItem* item )
{
repaint( item->rect(), false );
}
void KKWidget::insert()
{
setDragMode( KKWidget::Insert );
setCursor( crossCursor );
}
void KKWidget::itemInserted( KKItem* item )
{
connect( item, SIGNAL( repaint( QRect ) ), this, SLOT( slotRepaint( QRect ) ) );
connect( item, SIGNAL( selectionChanged( KKItem*, bool ) ), this, SLOT( selectionChanged( KKItem*, bool ) ) );
connect( item, SIGNAL( imageChanged( KKItem* ) ), this, SLOT( imageChanged( KKItem* ) ) );
m_sizeHandles[item] = new KKSizeHandler( this, item );
connect( m_sizeHandles[item], SIGNAL( start() ), document(), SLOT( resizeStart() ) );
connect( m_sizeHandles[item], SIGNAL( resizing() ), document(), SLOT( resizing() ) );
connect( m_sizeHandles[item], SIGNAL( end() ), document(), SLOT( resizeEnd() ) );
connect( m_sizeHandles[item], SIGNAL( repaint( const QRect& ) ), this, SLOT( repaint( const QRect& ) ) );
if( item->isSelected() ) m_sizeHandles[item]->setVisible( true );
repaint( item->rect() );
}
void KKWidget::itemRemoved( KKItem* item )
{
disconnect( item, SIGNAL( repaint( QRect ) ), this, SLOT( slotRepaint( QRect ) ) );
disconnect( item, SIGNAL( selectionChanged( KKItem*, bool ) ), this, SLOT( selectionChanged( KKItem*, bool ) ) );
disconnect( item, SIGNAL( imageChanged( KKItem* ) ), this, SLOT( imageChanged( KKItem* ) ) );
disconnect( m_sizeHandles[item], SIGNAL( start() ), document(), SLOT( resizeStart() ) );
disconnect( m_sizeHandles[item], SIGNAL( resizing() ), document(), SLOT( resizing() ) );
disconnect( m_sizeHandles[item], SIGNAL( end() ), document(), SLOT( resizeEnd() ) );
disconnect( m_sizeHandles[item], SIGNAL( repaint( const QRect& ) ), this, SLOT( repaint( const QRect& ) ) );
delete m_sizeHandles[item];
repaint( item->rect() );
document()->setSelected( m_item, true );
}
KKDoc* KKWidget::document()
{
return (KKDoc*)m_item->listView();
}
kreetingkard/src/kkpropertyitemtextorientation.cpp 0000644 0000764 0000764 00000007020 10141202436 023457 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kkpropertyitemtextorientation.h"
KKPropertyItemTextOrientation::KKPropertyItemTextOrientation( KKPropertyItemBase* parent, QString text )
: KKPropertyItemBase( parent, text )
{
hbox = new QHBox( viewport() );
chkEnabled = new QCheckBox( "", hbox );
chkEnabled->setFixedSize( 16, 16 );
cbxOrientation = new KComboBox( hbox );
cbxOrientation->insertItem( i18n( "Horizontal" ) );
cbxOrientation->insertItem( i18n( "Vertical" ) );
connect( cbxOrientation, SIGNAL( returnPressed( const QString& ) ), this, SLOT( accept() ) );
connect( chkEnabled, SIGNAL( toggled( bool ) ), cbxOrientation, SLOT( setEnabled( bool ) ) );
setVisible( false );
}
KKPropertyItemTextOrientation::~KKPropertyItemTextOrientation()
{
}
void KKPropertyItemTextOrientation::start()
{
KKPropertyItemBase::start();
chkEnabled->setChecked( !text( 1 ).isEmpty() );
cbxOrientation->setEnabled( chkEnabled->isChecked() );
if( chkEnabled->isChecked() )
{
cbxOrientation->setCurrentText( text( 1 ) );
}
cbxOrientation->setFocus();
}
void KKPropertyItemTextOrientation::accept()
{
if( !cbxOrientation->isVisible() ) return;
if( cbxOrientation->currentText() != text( 1 ) && chkEnabled->isChecked() )
{
document()->setTextOrientation( (Orientation)cbxOrientation->currentItem() );
}
KKPropertyItemBase::accept();
}
void KKPropertyItemTextOrientation::reset()
{
int orientation = -1;
QPtrList selectedItems = document()->selectedItems();
if( selectedItems.count() == 0 )
{
setVisible( false );
return;
}
else
{
setVisible( ((KKItem*)selectedItems.first())->parent() != NULL );
}
orientation = ((KKItem*)selectedItems.first())->textOrientation();
for( KKItem* item = (KKItem*)selectedItems.next(); item; item = (KKItem*)selectedItems.next() )
{
if( orientation != -1 && orientation != item->textOrientation() )
{
orientation = -1;
break;
}
}
switch( orientation )
{
case -1:
setText( 1, "" );
break;
case Horizontal:
setText( 1, i18n( "Horizontal" ) );
break;
case Vertical:
setText( 1, i18n( "Vertical" ) );
break;
}
chkEnabled->setEnabled( orientation != -1 );
}
kreetingkard/src/kkpropertyitemtextalign.cpp 0000644 0000764 0000764 00000013233 10141424727 022232 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include
#include
#include "kkpropertyitemtextalign.h"
KKPropertyItemTextAlign::KKPropertyItemTextAlign( KKPropertyItemBase* parent, QString text )
: KKPropertyItemBase( parent, text )
{
setViewPortHeight( 4 );
editor = new TextAlignEditor( viewport() );
connect( editor, SIGNAL( ok() ), this, SLOT( accept() ) );
setVisible( false );
}
KKPropertyItemTextAlign::~KKPropertyItemTextAlign()
{
}
void KKPropertyItemTextAlign::start()
{
KKPropertyItemBase::start();
int align = AlignAuto;
if( text( 1 ).find( QRegExp( "^Top" ) ) != -1 )
{
align += AlignTop;
}
else if( text( 1 ).find( QRegExp( "^Middle" ) ) != -1 )
{
align += AlignVCenter;
}
else if( text( 1 ).find( QRegExp( "^Bottom" ) ) != -1 )
{
align += AlignBottom;
}
if( text( 1 ).find( QRegExp( "Left$" ) ) != -1 )
{
align += AlignLeft;
}
else if( text( 1 ).find( QRegExp( "Center$" ) ) != -1 )
{
align += AlignHCenter;
}
else if( text( 1 ).find( QRegExp( "Right$" ) ) != -1 )
{
align += AlignRight;
}
editor->setAlign( align );
editor->setFocus();
}
void KKPropertyItemTextAlign::accept()
{
if( !editor->isVisible() ) return;
if( editor->align() != 0 )
{
document()->setTextAlign( editor->align() );
}
KKPropertyItemBase::accept();
}
void KKPropertyItemTextAlign::reset()
{
QPtrList selectedItems = document()->selectedItems();
if( selectedItems.count() == 0 )
{
setVisible( false );
return;
}
else
{
setVisible( ((KKItem*)selectedItems.first())->parent() != NULL );
}
unsigned int align = ((KKItem*)selectedItems.first())->textAlign();
for( KKItem* item = (KKItem*)selectedItems.next(); item; item = (KKItem*)selectedItems.next() )
{
if( align != 0 && align != item->textAlign() )
{
align = 0;
break;
}
}
QString strAlign = "";
switch( align & AlignVertical_Mask )
{
case AlignTop:
strAlign += "Top";
break;
case AlignVCenter:
strAlign += "Middle";
break;
case AlignBottom:
strAlign += "Bottom";
break;
}
switch( align & AlignHorizontal_Mask )
{
case AlignLeft:
strAlign += " Left";
break;
case AlignHCenter:
strAlign += " Center";
break;
case AlignRight:
strAlign += " Right";
break;
}
setText( 1, strAlign );
}
TextAlignEditor::TextAlignEditor( QWidget* parent )
: QWidget( parent )
{
(new QGridLayout( this, 3, 3, 2, 2 ))->setAutoAdd( true );
for( int y = 0; y != 3; y++ )
{
for( int x = 0; x != 3; x++ )
{
btnAlign[y][x] = new KPushButton( this );
btnAlign[y][x]->setToggleButton( true );
if( y != 1 )
{
btnAlign[y][x]->setFixedHeight( 24 );
}
if( x != 1 )
{
btnAlign[y][x]->setFixedWidth( 24 );
}
connect( btnAlign[y][x], SIGNAL( toggled( bool ) ), this, SLOT( alignChanged( bool ) ) );
}
}
m_x = -1;
m_y = -1;
}
TextAlignEditor::~ TextAlignEditor()
{
}
int TextAlignEditor::align()
{
int a = 0;
switch( m_x )
{
case 0:
a+= AlignLeft;
break;
case 1:
a+= AlignHCenter;
break;
case 2:
a+= AlignRight;
break;
}
switch( m_y )
{
case 0:
a+= AlignTop;
break;
case 1:
a+= AlignVCenter;
break;
case 2:
a+= AlignBottom;
break;
}
return a;
}
void TextAlignEditor::setAlign( int align )
{
int x = -1;
int y = -1;
switch( align & AlignVertical_Mask )
{
case AlignTop:
y = 0;
break;
case AlignVCenter:
y = 1;
break;
case AlignBottom:
y = 2;
break;
}
switch( align & AlignHorizontal_Mask )
{
case AlignLeft:
x = 0;
break;
case AlignHCenter:
x = 1;
break;
case AlignRight:
x = 2;
break;
}
if( x == -1 || y == -1 )
{
if( m_x != -1 && m_y != -1 )
{
btnAlign[m_y][m_x]->setOn( false );
}
}
else
{
btnAlign[y][x]->setOn( true );
}
}
void TextAlignEditor::alignChanged( bool bl )
{
if( !bl )
{
m_x = m_y = -1;
return;
}
int a_x, a_y;
for( int y = 0; y != 3; y++ )
{
for( int x = 0; x != 3; x++ )
{
if( btnAlign[y][x]->isOn() )
{
if( x == m_x && y == m_y )
{
disconnect( btnAlign[y][x], SIGNAL( toggled( bool ) ), this, SLOT( alignChanged( bool ) ) );
btnAlign[y][x]->setOn( false );
connect( btnAlign[y][x], SIGNAL( toggled( bool ) ), this, SLOT( alignChanged( bool ) ) );
}
else
{
a_x = x;
a_y = y;
}
}
}
}
m_x = a_x;
m_y = a_y;
emit ok();
}
kreetingkard/src/kkpropertyitemimage.h 0000644 0000764 0000764 00000003620 10141451157 020756 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKPROPERTYITEMIMAGE_H
#define KKPROPERTYITEMIMAGE_H
#include
#include "kkpropertyitembase.h"
class KKPropertyItemImage : public KKPropertyItemBase
{
Q_OBJECT
public:
KKPropertyItemImage( KKProperty* parent, QString text );
~KKPropertyItemImage();
public slots:
void reset();
void start();
void accept();
private:
KPushButton* btnRequest;
KPushButton* btnErase;
private slots:
void imageRequest();
};
#endif //KKPROPERTYITEMIMAGE_H
kreetingkard/src/kkcmdtextalign.cpp 0000644 0000764 0000764 00000004321 10141707745 020234 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kkcmdtextalign.h"
KKCmdTextAlign::KKCmdTextAlign( KKDoc* doc )
: KKCmdBase( doc )
{
connect( this, SIGNAL( executed() ), doc, SIGNAL( textAlignChanged() ) );
connect( this, SIGNAL( unexecuted() ), doc, SIGNAL( textAlignChanged() ) );
}
void KKCmdTextAlign::execute( KKItem* item )
{
item->setTextAlign( m_after[item] );
}
void KKCmdTextAlign::unexecute( KKItem* item )
{
item->setTextAlign( m_before[item] );
}
void KKCmdTextAlign::begin( KKItem* item )
{
m_before[item] = item->textAlign();
}
bool KKCmdTextAlign::end( KKItem* item )
{
bool rtn = ( m_before[item] != item->textAlign() );
if( rtn )
{
m_after[item] = item->textAlign();
}
else
{
m_before.remove( item );
}
return rtn;
}
QString KKCmdTextAlign::propertyName()
{
return i18n( "text align" );
}
kreetingkard/src/kkdoc.h 0000644 0000764 0000764 00000005544 10141722741 015764 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKDOC_H
#define KKDOC_H
#include
#include
#include
#include
class KKCmdBase;
class KKItem;
class KKDoc : public KListView
{
Q_OBJECT
public:
KKDoc( KActionCollection* actionCollection, QWidget* parent, const char *name = 0);
~KKDoc();
void setDocument( QDomDocument doc );
QDomDocument document();
KCommandHistory* commandHistory(){ return m_cmdHistory; }
public slots:
void insert();
void remove();
void setName( QString name );
void setLocation( int* x, int* y );
void moveStart();
void moving();
void moveEnd();
void setSize( int width, int height );
void resizeStart();
void resizing();
void resizeEnd();
void setText( QString text );
void setTextAlign( int align );
void setTextOrientation( Orientation orientation );
void setTextColor( QColor color );
void setTextFont( QFont font );
void setDataField( QString datafield );
void setImage( QPixmap p );
signals:
void documentChanged();
void inserted();
void removed();
// BEGIN Properties
void nameChanged();
void locationChanged();
void sizeChanged();
void textChanged();
void textAlignChanged();
void textOrientationChanged();
void textColorChanged();
void textFontChanged();
void datafieldChanged();
void imageChanged();
void imageMarginChanged();
// END Properties
private:
KCommandHistory* m_cmdHistory;
KKCmdBase* m_cmd;
void terminate();
};
#endif //KKDOC_H
kreetingkard/src/kkpropertyitemtextorientation.h 0000644 0000764 0000764 00000003754 10141202121 023125 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKPROPERTYITEMTEXTORIENTATION_H
#define KKPROPERTYITEMTEXTORIENTATION_H
#include
#include
#include
#include "kkpropertyitembase.h"
class KKPropertyItemTextOrientation : public KKPropertyItemBase
{
Q_OBJECT
public:
KKPropertyItemTextOrientation( KKPropertyItemBase* parent, QString datafield );
~KKPropertyItemTextOrientation();
public slots:
void reset();
void start();
void accept();
private:
QHBox* hbox;
QCheckBox* chkEnabled;
KComboBox* cbxOrientation;
};
#endif //KKPROPERTYITEMTEXTORIENTATION_H
kreetingkard/src/kkitem.cpp 0000644 0000764 0000764 00000022276 10141727757 016525 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include
#include
#include
#include
#include
#include
#include
#include
#include "kkitem.h"
KKItem::KKItem( KListViewItem* parent, const char* name )
: QObject( (QWidget*)0 ), KListViewItem( parent, name )
{
setPixmap( 0, SmallIcon("frame_edit") );
m_isBase = false;
}
KKItem::KKItem( QDomElement doc, KListViewItem* parent, const char* name )
: QObject( (QWidget*)0, name ), KListViewItem( parent, name )
{
setPixmap( 0, SmallIcon("frame_edit") );
m_isBase = false;
parse( doc );
}
KKItem::KKItem( QDomElement doc, KListView* parent, const char* name )
: QObject( (QWidget*)0, name ), KListViewItem( parent, name )
{
setPixmap( 0, SmallIcon("filenew") );
m_isBase = true;
parse( doc );
}
void KKItem::parse( QDomElement& e )
{
m_selected = false;
m_location.setX( e.hasAttribute( "x" ) ? e.attribute( "x" ).toInt() : 0 );
m_location.setY( e.hasAttribute( "y" ) ? e.attribute( "y" ).toInt() : 0 );
m_size.setWidth( e.hasAttribute( "width" ) ? e.attribute( "width" ).toInt() : 10 );
m_size.setHeight( e.hasAttribute( "height" ) ? e.attribute( "height" ).toInt() : 10 );
m_text = e.hasAttribute( "text" ) ? e.attribute( "text" ) : "";
m_textOrientation = e.hasAttribute( "textorientation" ) ? ((Orientation)e.attribute( "textorientation" ).toInt()) : Horizontal;
m_textAlign = e.hasAttribute( "textalign" ) ? e.attribute( "textalign" ).toInt() : AlignCenter;
m_textColor = e.hasAttribute( "textcolor" ) ? QColor( e.attribute( "textcolor" ) ) : black;
if( e.hasAttribute( "textfont" ) && !e.attribute( "textfont" ).isEmpty() )
{
QFont f;
if( f.fromString( e.attribute("textfont" ) ) )
{
m_textFont = f;
}
}
m_datafield = e.hasAttribute( "datafield" ) ? e.attribute( "datafield" ) : "";
if( e.hasAttribute( "image" ) && !e.attribute( "image" ).isEmpty() )
{
QByteArray borg, bdec;
borg = e.attribute( "image" ).utf8();
KCodecs::base64Decode( borg, bdec );
QDataStream stream( bdec, IO_ReadOnly );
stream >> m_image;
}
for( QDomNode n = e.lastChild(); !n.isNull(); n = n.previousSibling() )
{
switch( n.nodeType() )
{
case QDomNode::ElementNode:
new KKItem( n.toElement(), this, n.toElement().attribute( "name" ) );
break;
default:
break;
}
}
}
KKItem::~KKItem()
{
}
// BEGIN Properties
// BEGIN Name
void KKItem::setName( QString n )
{
if( n == name() ) return;
setText( 0, n );
emit nameChanged();
}
// BEGIN Location
void KKItem::setLocation( QPoint l )
{
if( l == location() ) return;
QRect r = rect();
m_location = l;
emit repaint( rect() );
emit repaint( r );
emit locationChanged();
}
// END
// BEGIN Size
void KKItem::setSize( QSize s )
{
if( s == size() ) return;
QRect r = rect();
m_size = s;
emit repaint( rect() );
emit repaint( r );
emit sizeChanged();
}
// END
// BEGIN Text
void KKItem::setText( QString t )
{
if( t == text() ) return;
m_text = t;
emit textChanged();
}
// END
// BEGIN TextAlign
void KKItem::setTextAlign( unsigned int a )
{
if( a == textAlign() ) return;
m_textAlign = a;
emit textAlignChanged();
}
// END
// BEGIN TextOrientation
void KKItem::setTextOrientation( Orientation o )
{
if( o == textOrientation() ) return;
m_textOrientation = o;
emit textOrientationChanged();
}
// END
// BEGIN TextColor
void KKItem::setTextColor( QColor c )
{
if( c == textColor() ) return;
m_textColor = c;
emit textColorChanged();
}
// END
// BEGIN Font
void KKItem::setTextFont( QFont f )
{
if( f == textFont() ) return;
m_textFont = f;
emit textFontChanged();
}
// END
// BEGIN DataField
void KKItem::setDataField( QString d )
{
if( d == datafield() ) return;
m_datafield = d;
emit datafieldChanged();
}
// END DataField
// BEGIN Image
void KKItem::setImage( QPixmap i )
{
if( i.convertToImage() == image().convertToImage() ) return;
m_image = i;
emit imageChanged( this );
}
// END
// BEGIN ImageMargin
void KKItem::setImageMargin( unsigned int m )
{
m_imageMargin = m;
emit imageMarginChanged();
}
// END
// END Properties
void KKItem::setSelected( bool b )
{
KListViewItem::setSelected( b );
emit selectionChanged( b );
emit selectionChanged( this, b );
emit repaint( rect() );
if( !b ) return;
if( !QListViewItem::parent() )
{
QListViewItem* base = listView()->firstChild();
while( base )
{
base->setOpen( base == this );
listView()->setSelected( base, base == this );
QListViewItem* child = base->firstChild();
while( child )
{
listView()->setSelected( child, false );
child->setSelectable( base == this );
child = child->nextSibling();
}
base = base->nextSibling();
}
}
}
void KKItem::drawItem( QPainter& p, double zoom )
{
p.setPen( isSelected() ? blue : gray );
QRect r( location()*zoom, size()*zoom );
p.drawLine( r.topLeft(), r.topRight() );
p.drawLine( r.topRight(), r.bottomRight() );
p.drawLine( r.bottomRight(), r.bottomLeft() );
p.drawLine( r.bottomLeft(), r.topLeft() );
r.setRect( r.left() + 1, r.top() + 1, r.width() - 2, r.height() - 2 );
if( !image().isNull() && QListViewItem::parent() )
{
p.drawPixmap( r, image() );
}
if( !text().isEmpty() )
{
drawText( p, r, text() );
}
}
void KKItem::drawText( QPainter& p, QRect r, QString text )
{
p.setPen( textColor() );
p.setFont( textFont() );
if( textOrientation() == Horizontal )
{
p.drawText( r, textAlign(), text );
}
else
{
QFontMetrics met( textFont() );
int top = r.top();
int left = r.left();
int dh = 0;
// calc max width
int wmax = 0;
for( unsigned int i = 0; i != text.length(); i++ )
{
int w = met.width( text[i] );
if( wmax < w ) wmax = w;
}
if( textAlign() & AlignLeft )
{
}
else if( textAlign() & AlignRight )
{
left += r.width() - wmax;
}
else// if( textAlign() & AlignHCenter )
{
left += ( r.width() - wmax ) / 2;
}
if( textAlign() & AlignTop )
{
dh = met.height();
}
else if( textAlign() & AlignBottom )
{
top += r.height() - text.length()*met.height();
dh = met.height();
}
else if( textAlign() & AlignJustify )
{
if( text.length() == 1 )
{
top += (r.height() - text.length()*met.height()) / 2;
dh = 0;
}
else
{
dh = ( r.height() - text.length()*met.height() ) / (text.length() - 1 );
top += ( r.height() - text.length()*met.height() - ( text.length() - 1 )*dh ) / 2;
dh += met.height();
}
}
else// if( textAlign() & AlignVCenter )
{
top += (r.height() - text.length()*met.height()) / 2;
dh = met.height();
}
for( unsigned int i = 0; i != text.length(); i++ )
{
QChar c = text[i];
QRect rct(left, top + dh*(i), wmax, met.height() );
p.drawText( rct, (int)AlignCenter, QString( c ), 1, &r );
}
}
}
QDomElement KKItem::toElement( QDomDocument& doc )
{
QDomElement elem = doc.createElement( "item" );
if( !QListViewItem::parent() )
{
KKItem* child = (KKItem*)firstChild();
while( child )
{
elem.appendChild( child->toElement( doc ) );
child = (KKItem*)child->nextSibling();
}
}
else
{
elem.setAttribute( "x", location().x() );
elem.setAttribute( "y", location().y() );
elem.setAttribute( "text", text() );
elem.setAttribute( "textalign", textAlign() );
elem.setAttribute( "textorientation", textOrientation() );
elem.setAttribute( "textcolor", textColor().name() );
elem.setAttribute( "textfont", textFont().toString() );
elem.setAttribute( "datafield", datafield() );
}
elem.setAttribute( "name", text(0) );
elem.setAttribute( "width", size().width() );
elem.setAttribute( "height", size().height() );
if( !image().isNull() )
{
QByteArray borg, benc;
QDataStream stream( borg, IO_WriteOnly );
stream << image();
KCodecs::base64Encode( borg, benc );
elem.setAttribute( "image", benc );
}
return elem;
}
void KKItem::setExist( bool bl )
{
if( bl )
{
emit inserted( this );
}
else
{
emit removed( this );
}
}
kreetingkard/src/kreetingkard.desktop 0000644 0000764 0000764 00000000313 10127560641 020555 0 ustar tasuku www 0000000 0000000 [Desktop Entry]
Encoding=UTF-8
Name=KreetingKard
Name[ja]=х╣┤ш│АчК╢ф╜ЬцИР
Exec=kreetingkard
Icon=kreetingkard
Type=Application
Comment=A Greeting Card Editor for KDE
Comment[ja]=х╣┤ш│АчК╢ф╜ЬцИРуВ╜уГХуГИ
kreetingkard/src/kkcmdinsert.cpp 0000644 0000764 0000764 00000004071 10141723157 017536 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kkcmdinsert.h"
KKCmdInsert::KKCmdInsert( KKDoc* doc )
: KKCmdBase( doc )
{
connect( this, SIGNAL( executed() ), doc, SIGNAL( inserted() ) );
connect( this, SIGNAL( unexecuted() ), doc, SIGNAL( removed() ) );
}
void KKCmdInsert::execute( KKItem* item )
{
m_parent[item]->insertItem( item );
item->setExist( true );
}
void KKCmdInsert::unexecute( KKItem* item )
{
m_parent[item]->takeItem( item );
item->setExist( false );
}
void KKCmdInsert::begin( KKItem* item )
{
m_parent[item] = item->parent();
}
bool KKCmdInsert::end( KKItem* )
{
return true;
}
QString KKCmdInsert::propertyName()
{
return i18n( "insert" );
}
kreetingkard/src/kkpropertyitembase.h 0000644 0000764 0000764 00000004527 10141425057 020615 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKPROPERTYITEMBASE_H
#define KKPROPERTYITEMBASE_H
#include
#include
#include
#include
#include "kkproperty.h"
#include "kkdoc.h"
#include "kkitem.h"
class KKPropertyItemBase : public QObject, public KListViewItem
{
Q_OBJECT
public:
KKPropertyItemBase( KKProperty* parent, QString text );
KKPropertyItemBase( KKPropertyItemBase* parent, QString text );
~KKPropertyItemBase();
void setSelected( bool selected );
public slots:
virtual void reset() = 0;
virtual void start();
virtual void accept();
virtual void abort();
protected:
QWidget* viewport(){ return m_viewport; }
void setViewPortHeight( int height ){ m_height = height; }
KKDoc* document(){ return m_parent->document(); }
private:
KKProperty* m_parent;
int m_height;
QWidget* m_viewport;
void setupWidget( KKProperty* parent );
KPushButton* btnCancel;
};
#endif //KKPROPERTYITEMBASE_H
kreetingkard/src/kkcmdremove.cpp 0000644 0000764 0000764 00000004071 10141723201 017515 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kkcmdremove.h"
KKCmdRemove::KKCmdRemove( KKDoc* doc )
: KKCmdBase( doc )
{
connect( this, SIGNAL( executed() ), doc, SIGNAL( removed() ) );
connect( this, SIGNAL( unexecuted() ), doc, SIGNAL( inserted() ) );
}
void KKCmdRemove::execute( KKItem* item )
{
m_parent[item]->takeItem( item );
item->setExist( false );
}
void KKCmdRemove::unexecute( KKItem* item )
{
m_parent[item]->insertItem( item );
item->setExist( true );
}
void KKCmdRemove::begin( KKItem* item )
{
m_parent[item] = item->parent();
}
bool KKCmdRemove::end( KKItem* )
{
return true;
}
QString KKCmdRemove::propertyName()
{
return i18n( "remove" );
}
kreetingkard/src/kkpropertyitemtextfont.cpp 0000644 0000764 0000764 00000007405 10141311676 022110 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include
#include "kkpropertyitemtextfont.h"
KKPropertyItemTextFont::KKPropertyItemTextFont( KKPropertyItemBase* parent, QString text )
: KKPropertyItemBase( parent, text )
{
hbox = new QHBox( viewport() );
chkEnabled = new QCheckBox( "", hbox );
chkEnabled->setFixedSize( 16, 16 );
btnFont = new KPushButton( hbox );
connect( btnFont, SIGNAL( clicked() ), this, SLOT( selectFont() ) );
connect( chkEnabled, SIGNAL( toggled( bool ) ), btnFont, SLOT( setEnabled( bool ) ) );
setVisible( false );
}
KKPropertyItemTextFont::~KKPropertyItemTextFont()
{
}
void KKPropertyItemTextFont::start()
{
KKPropertyItemBase::start();
/* QFont f;
f.fromString( text( 2 ) );
int result = KFontDialog::getFont( f, false, btnFont );
if ( result == KDialog::Accepted )
{
btnFont->setFont( f );
btnFont->setText( f.family() );
}*/
chkEnabled->setChecked( !text( 1 ).isEmpty() );
btnFont->setEnabled( chkEnabled->isChecked() );
if( chkEnabled->isChecked() )
{
btnFont->setFont( m_font ? QFont( *m_font ) : document()->font() );
btnFont->setText( m_font ? btnFont->font().family() : "" );
}
btnFont->setFocus();
}
void KKPropertyItemTextFont::accept()
{
if( !btnFont->isVisible() ) return;
if( chkEnabled->isChecked() )
{
document()->setTextFont( btnFont->font() );
}
KKPropertyItemBase::accept();
}
void KKPropertyItemTextFont::reset()
{
QFont* font = NULL;
QPtrList selectedItems = document()->selectedItems();
if( selectedItems.count() == 0 )
{
setVisible( false );
return;
}
else
{
setVisible( ((KKItem*)selectedItems.first())->parent() != NULL );
}
font = new QFont( ((KKItem*)selectedItems.first())->textFont() );
for( KKItem* item = (KKItem*)selectedItems.next(); item; item = (KKItem*)selectedItems.next() )
{
if( font != NULL && *font != item->textFont() )
{
if( font ) delete font;
font = NULL;
break;
}
}
chkEnabled->setChecked( font );
setText( 1, font ? font->family() : "" );
setText( 2, font ? font->toString() : "" );
if( m_font ) delete m_font;
m_font = font ? new QFont( *font ) : NULL;
if( font ) delete font;
}
void KKPropertyItemTextFont::selectFont()
{
QFont f = btnFont->font();
f.fromString( text( 2 ) );
int result = KFontDialog::getFont( f, false, btnFont );
if ( result == KDialog::Accepted )
{
btnFont->setFont( f );
btnFont->setText( f.family() );
}
}
kreetingkard/src/kkpropertyitemsize.cpp 0000644 0000764 0000764 00000007225 10141202324 021174 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include
#include "kkpropertyitemsize.h"
#define SPLITTER "x"
KKPropertyItemSize::KKPropertyItemSize( KKProperty* parent, QString text )
: KKPropertyItemBase( parent, text )
{
hbox = new QHBox( viewport() );
chkWidth = new QCheckBox( hbox );
numWidth = new KIntSpinBox( hbox );
numWidth->setRange( 0, 1000 );
new QLabel( SPLITTER, hbox );
chkHeight = new QCheckBox( hbox );
numHeight = new KIntSpinBox( hbox );
numHeight->setRange( 0, 1000 );
connect( chkWidth, SIGNAL( toggled( bool ) ), numWidth, SLOT( setEnabled( bool ) ) );
connect( chkHeight, SIGNAL( toggled( bool ) ), numHeight, SLOT( setEnabled( bool ) ) );
setVisible( false );
}
KKPropertyItemSize::~KKPropertyItemSize()
{
}
void KKPropertyItemSize::reset()
{
QPtrList selectedItems = document()->selectedItems();
if( selectedItems.count() == 0 )
{
setVisible( false );
return;
}
else
{
setVisible( ((KKItem*)selectedItems.first())->parent() );
}
int width = ((KKItem*)selectedItems.first())->size().width();
int height = ((KKItem*)selectedItems.first())->size().height();
for( KKItem* item = (KKItem*)selectedItems.next(); item; item = (KKItem*)selectedItems.next() )
{
setVisible( item->parent() );
if( width != -1 && width != item->size().width() )
{
width = -1;
}
if( height != -1 && height != item->size().height() )
{
height = -1;
}
}
setText( 1, QString("%1 %2 %3").arg( width != -1 ? QString::number( width ) : "" ).arg( SPLITTER ).arg( height != -1 ? QString::number( height ) : "" ) );
}
void KKPropertyItemSize::accept()
{
if( !hbox->isVisible() ) return;
int width = numWidth->value();
int height = numHeight->value();
document()->setSize( chkWidth->isChecked() ? width : -1, chkHeight->isChecked() ? height : -1 );
KKPropertyItemBase::accept();
}
void KKPropertyItemSize::start()
{
KKPropertyItemBase::start();
QStringList list = QStringList::split( QString(" %1 ").arg( SPLITTER ), text( 1 ), true );
chkWidth->setChecked( !list[0].isEmpty() );
numWidth->setEnabled( chkWidth->isChecked() );
numWidth->setValue( list[0].toInt() );
chkHeight->setChecked( !list[1].isEmpty() );
numHeight->setEnabled( chkHeight->isChecked() );
numHeight->setValue( list[1].toInt() );
numWidth->setFocus();
}
kreetingkard/src/kkpropertyitemtext.cpp 0000644 0000764 0000764 00000005052 10141310406 021203 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kkpropertyitemtext.h"
KKPropertyItemText::KKPropertyItemText( KKProperty* parent, QString text )
: KKPropertyItemBase( parent, text )
{
setViewPortHeight( 4 );
txtEdit = new KTextEdit( viewport() );
txtEdit->setWordWrap( QTextEdit::NoWrap );
setVisible( false );
}
KKPropertyItemText::~KKPropertyItemText()
{
}
void KKPropertyItemText::start()
{
KKPropertyItemBase::start();
txtEdit->setText( text( 1 ) );
txtEdit->setFocus();
}
void KKPropertyItemText::accept()
{
if( !txtEdit->isVisible() ) return;
document()->setText( txtEdit->text() );
KKPropertyItemBase::accept();
}
void KKPropertyItemText::reset()
{
QPtrList selectedItems = document()->selectedItems();
if( selectedItems.count() == 0 )
{
setVisible( false );
return;
}
else
{
setVisible( ((KKItem*)selectedItems.first())->parent() != NULL );
}
QString text = ((KKItem*)selectedItems.first())->text();
for( KKItem* item = (KKItem*)selectedItems.next(); item; item = (KKItem*)selectedItems.next() )
{
if( text != QString::null && text != item->text() )
{
text = QString::null;
break;
}
}
setText( 1, text );
}
kreetingkard/src/kkcmdlocation.h 0000644 0000764 0000764 00000003522 10140573174 017510 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKCMDLOCATION_H
#define KKCMDLOCATION_H
#include "kkcmdbase.h"
class KKCmdLocation : public KKCmdBase
{
public:
KKCmdLocation( KKDoc* doc );
protected:
QString propertyName();
void execute( KKItem* item );
void unexecute( KKItem* item );
void begin( KKItem* item );
bool end( KKItem* item );
private:
QMap m_before;
QMap m_after;
};
#endif //KKCMDLOCATION_H
kreetingkard/src/kksizehandlerwidget.cpp 0000644 0000764 0000764 00000005512 10140605741 021260 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kksizehandlerwidget.h"
KKSizeHandlerWidget::KKSizeHandlerWidget( int x, int y, QWidget *parent, const char *name )
: QWidget(parent, name)
{
m_x = x;
m_y = y;
m_drag = false;
resize( 4, 4 );
setPaletteBackgroundColor( Qt::darkBlue );
switch( y )
{
case 0:
switch( x )
{
case 0:
setCursor( sizeFDiagCursor );
break;
case 1:
setCursor( sizeVerCursor );
break;
case 2:
setCursor( sizeBDiagCursor );
break;
}
break;
case 1:
switch( x )
{
case 0:
setCursor( sizeHorCursor );
break;
case 1:
// Nothing
break;
case 2:
setCursor( sizeHorCursor );
break;
}
break;
case 2:
switch( x )
{
case 0:
setCursor( sizeBDiagCursor );
break;
case 1:
setCursor( sizeVerCursor );
break;
case 2:
setCursor( sizeFDiagCursor );
break;
}
break;
}
}
KKSizeHandlerWidget::~KKSizeHandlerWidget()
{
}
void KKSizeHandlerWidget::mousePressEvent( QMouseEvent* e )
{
if( ( e->button() & LeftButton ) != LeftButton ) return;
m_drag = true;
m_pos = e->pos();
emit start();
e->accept();
}
void KKSizeHandlerWidget::mouseMoveEvent( QMouseEvent* e )
{
if( !m_drag ) return;
emit moving( m_x, m_y, e->pos() - m_pos );
e->accept();
}
void KKSizeHandlerWidget::mouseReleaseEvent( QMouseEvent* e )
{
if( !m_drag ) return;
m_drag = false;
emit end();
e->accept();
}
kreetingkard/src/kkcmdtextfont.cpp 0000644 0000764 0000764 00000004301 10141707721 020100 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kkcmdtextfont.h"
KKCmdTextFont::KKCmdTextFont( KKDoc* doc )
: KKCmdBase( doc )
{
connect( this, SIGNAL( executed() ), doc, SIGNAL( textFontChanged() ) );
connect( this, SIGNAL( unexecuted() ), doc, SIGNAL( textFontChanged() ) );
}
void KKCmdTextFont::execute( KKItem* item )
{
item->setTextFont( m_after[item] );
}
void KKCmdTextFont::unexecute( KKItem* item )
{
item->setTextFont( m_before[item] );
}
void KKCmdTextFont::begin( KKItem* item )
{
m_before[item] = item->textFont();
}
bool KKCmdTextFont::end( KKItem* item )
{
bool rtn = ( m_before[item] != item->textFont() );
if( rtn )
{
m_after[item] = item->textFont();
}
else
{
m_before.remove( item );
}
return rtn;
}
QString KKCmdTextFont::propertyName()
{
return i18n( "text font" );
}
kreetingkard/src/kkpropertyitemlocation.h 0000644 0000764 0000764 00000003714 10141202030 021470 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKPROPERTYITEMLOCATION_H
#define KKPROPERTYITEMLOCATION_H
#include
#include
#include
#include "kkpropertyitembase.h"
class KKPropertyItemLocation : public KKPropertyItemBase
{
Q_OBJECT
public:
KKPropertyItemLocation( KKProperty* parent, QString text );
~KKPropertyItemLocation();
private:
QHBox* hbox;
QCheckBox* chkX;
QCheckBox* chkY;
KIntSpinBox* numX;
KIntSpinBox* numY;
public slots:
void reset();
void start();
void accept();
};
#endif //KKPROPERTYITEMLOCATION_H
kreetingkard/src/kkpropertyitemname.h 0000644 0000764 0000764 00000003506 10140043357 020615 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKPROPERTYITEMNAME_H
#define KKPROPERTYITEMNAME_H
#include
#include "kkpropertyitembase.h"
class KKPropertyItemName : public KKPropertyItemBase
{
Q_OBJECT
public:
KKPropertyItemName( KKProperty* parent, QString name );
~KKPropertyItemName();
public slots:
void reset();
void start();
void accept();
private:
KLineEdit* txtName;
};
#endif //KKPROPERTYITEMNAME_H
kreetingkard/src/main.cpp 0000644 0000764 0000764 00000005272 10135231407 016143 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kreetingkard.h"
#include
#include
#include
#include
static const char description[] =
I18N_NOOP("A Greeting Card Editor for KDE");
static const char version[] = "0.1.0";
static KCmdLineOptions options[] =
{
// { "+[URL]", I18N_NOOP( "Document to open" ), 0 },
KCmdLineLastOption
};
int main(int argc, char **argv)
{
KAboutData about("kreetingkard", I18N_NOOP("KreetingKard"), version, description,
KAboutData::License_GPL, "(C) 2004 Tasuku Suzuki", 0, 0, "tasuku@linux-life.net");
about.addAuthor( "Tasuku Suzuki", 0, "tasuku@linux-life.net" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( options );
KApplication app;
KreetingKard *mainWin = 0;
if (app.isRestored())
{
RESTORE(KreetingKard);
}
else
{
// no session.. just start up normally
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
/// @todo do something with the command line args here
mainWin = new KreetingKard();
app.setMainWidget( mainWin );
mainWin->show();
args->clear();
}
// mainWin has WDestructiveClose flag by default, so it will delete itself.
return app.exec();
}
kreetingkard/src/kkcmddatafield.h 0000644 0000764 0000764 00000003532 10140633053 017607 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKCMDDATAFIELD_H
#define KKCMDDATAFIELD_H
#include "kkcmdbase.h"
class KKCmdDataField : public KKCmdBase
{
public:
KKCmdDataField( KKDoc* doc );
protected:
QString propertyName();
void execute( KKItem* item );
void unexecute( KKItem* item );
void begin( KKItem* item );
bool end( KKItem* item );
private:
QMap m_before;
QMap m_after;
};
#endif //KKCMDDATAFIELD_H
kreetingkard/src/kkcmdsize.cpp 0000644 0000764 0000764 00000004200 10141707772 017203 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kkcmdsize.h"
KKCmdSize::KKCmdSize( KKDoc* doc )
: KKCmdBase( doc )
{
connect( this, SIGNAL( executed() ), doc, SIGNAL( sizeChanged() ) );
connect( this, SIGNAL( unexecuted() ), doc, SIGNAL( sizeChanged() ) );
}
void KKCmdSize::execute( KKItem* item )
{
item->setSize( m_after[item] );
}
void KKCmdSize::unexecute( KKItem* item )
{
item->setSize( m_before[item] );
}
void KKCmdSize::begin( KKItem* item )
{
m_before[item] = item->size();
}
bool KKCmdSize::end( KKItem* item )
{
bool rtn = ( m_before[item] != item->size() );
if( rtn )
{
m_after[item] = item->size();
}
else
{
m_before.remove( item );
}
return rtn;
}
QString KKCmdSize::propertyName()
{
return i18n( "size" );
}
kreetingkard/src/kkcmdtextcolor.h 0000644 0000764 0000764 00000003530 10141202637 017714 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKCMDTEXTCOLOR_H
#define KKCMDTEXTCOLOR_H
#include "kkcmdbase.h"
class KKCmdTextColor : public KKCmdBase
{
public:
KKCmdTextColor( KKDoc* doc );
protected:
QString propertyName();
void execute( KKItem* item );
void unexecute( KKItem* item );
void begin( KKItem* item );
bool end( KKItem* item );
private:
QMap m_before;
QMap m_after;
};
#endif //KKCMDTEXTCOLOR_H
kreetingkard/src/kkview.cpp 0000644 0000764 0000764 00000010403 10141725362 016514 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#define MMPERPIXEL 2.6
#include
#include
#include
#include "kkview.h"
#include "kkwidget.h"
#include "kkdoc.h"
KKView::KKView( QWidget *parent, const char *name )
: QWidget( parent, name )
{
m_canvas.setAutoDelete( true );
m_focus = 1;
m_zoom = 0;
setBackgroundMode( X11ParentRelative );
hide();
}
void KKView::setDocument( KKDoc* doc )
{
m_doc = doc;
connect( m_doc, SIGNAL( documentChanged() ), this, SLOT( documentChanged() ) );
}
void KKView::documentChanged()
{
while( m_canvas.first() )
{
m_canvas.removeFirst();
}
QListViewItem* item = m_doc->firstChild();
while( item )
{
KKWidget* w = new KKWidget( (KKItem*)item, this, QString( "wgt%1" ).arg( item->text(0) ) );
m_canvas.append( w );
connect( m_doc, SIGNAL( selectionChanged() ), w, SLOT( repaint() ) );
connect( w, SIGNAL( selectionChanged( KKWidget* ) ), this, SLOT( selectionChanged( KKWidget* ) ) );
w->show();
w->lower();
item = item->nextSibling();
}
selectionChanged( m_canvas.at(0) );
m_doc->setSelected( (KKItem*)m_doc->firstChild(), true );
setZoom( 1 );
show();
}
KKView::~KKView()
{
}
void KKView::setLayout()
{
double z = zoom();
if( m_canvas.at(1)->size().width() < m_canvas.at(1)->size().height() )
{
setFixedSize( (int)((1000+100) * z / MMPERPIXEL), (int)((1480+100) * z / MMPERPIXEL) );
m_canvas.at(0)->move( 0, 0 );
m_canvas.at(1)->move( (int)(100 / MMPERPIXEL), (int)(100 / MMPERPIXEL) );
}
else
{
setFixedSize( (int)(1480 * z / MMPERPIXEL), (int)(1480 * z / MMPERPIXEL) );
m_canvas.at(0)->move( (int)((1480-1000) / 2 / MMPERPIXEL), 0 );
m_canvas.at(1)->move( 0, (int)((1480-1000) / 2 / MMPERPIXEL) );
}
}
double KKView::zoom()
{
if( m_zoom < 0 )
{
return -1.0 / (double)m_zoom;
}
else
{
return m_zoom;
}
}
void KKView::setZoom( int z )
{
// kdDebug() << m_zoom << ">" << z << endl;
m_zoom = z;
for( KKWidget* w = m_canvas.first(); w; w = m_canvas.next() )
{
w->setZoom( m_zoom );
}
emit zoomupEnabledChanged( m_zoom != 7 );
emit zoomdownEnabledChanged( m_zoom != -4 );
setLayout();
}
void KKView::selectionChanged( KKWidget* w )
{
if( m_canvas.at( m_focus ) != w )
{
m_focus = 1 - m_focus;
w->raise();
}
}
void KKView::zoomIn()
{
int z = m_zoom + 1;
if( z == 0 ) z+=2;
setZoom( z );
}
void KKView::zoomOut()
{
int z = m_zoom - 1;
if( z == 0 ) z-=2;
setZoom( z );
}
void KKView::wheelEvent( QWheelEvent* e )
{
if( e->delta() > 0 && m_zoom != -4 )
{
// zoomOut();
}
else if( e->delta() < 0 && m_zoom != 7 )
{
// zoomIn();
}
}
void KKView::print( KPrinter& printer )
{
if( m_canvas.at(m_focus)->size().width() < m_canvas.at(m_focus)->size().height() )
{
printer.setOrientation( KPrinter::Portrait );
}
else
{
printer.setOrientation( KPrinter::Landscape );
}
m_canvas.at(m_focus)->draw( &printer );
}
void KKView::insert()
{
m_canvas.at(m_focus)->insert();
}
kreetingkard/src/kkcmdtext.cpp 0000644 0000764 0000764 00000004200 10141707763 017215 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kkcmdtext.h"
KKCmdText::KKCmdText( KKDoc* doc )
: KKCmdBase( doc )
{
connect( this, SIGNAL( executed() ), doc, SIGNAL( textChanged() ) );
connect( this, SIGNAL( unexecuted() ), doc, SIGNAL( textChanged() ) );
}
void KKCmdText::execute( KKItem* item )
{
item->setText( m_after[item] );
}
void KKCmdText::unexecute( KKItem* item )
{
item->setText( m_before[item] );
}
void KKCmdText::begin( KKItem* item )
{
m_before[item] = item->text();
}
bool KKCmdText::end( KKItem* item )
{
bool rtn = ( m_before[item] != item->text() );
if( rtn )
{
m_after[item] = item->text();
}
else
{
m_before.remove( item );
}
return rtn;
}
QString KKCmdText::propertyName()
{
return i18n( "text" );
}
kreetingkard/src/kkpropertyitemsize.h 0000644 0000764 0000764 00000003706 10141202060 020636 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKPROPERTYITEMSIZE_H
#define KKPROPERTYITEMSIZE_H
#include
#include
#include
#include "kkpropertyitembase.h"
class KKPropertyItemSize : public KKPropertyItemBase
{
Q_OBJECT
public:
KKPropertyItemSize( KKProperty* parent, QString text );
~KKPropertyItemSize();
private:
QHBox* hbox;
QCheckBox* chkWidth;
QCheckBox* chkHeight;
KIntSpinBox* numWidth;
KIntSpinBox* numHeight;
public slots:
void reset();
void start();
void accept();
};
#endif //KKPROPERTYITEMSIZE_H
kreetingkard/src/kkpropertyitemtext.h 0000644 0000764 0000764 00000003505 10140632060 020653 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKPROPERTYITEMTEXT_H
#define KKPROPERTYITEMTEXT_H
#include
#include "kkpropertyitembase.h"
class KKPropertyItemText : public KKPropertyItemBase
{
Q_OBJECT
public:
KKPropertyItemText( KKProperty* parent, QString text );
~KKPropertyItemText();
public slots:
void reset();
void start();
void accept();
private:
KTextEdit* txtEdit;
};
#endif //KKPROPERTYITEMTEXT_H
kreetingkard/src/kkproperty.h 0000644 0000764 0000764 00000004157 10141426270 017100 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KKPROPERTY_H
#define KKPROPERTY_H
#include
#include
#include
class KKDoc;
class KKPropertyItemBase;
class KKProperty : public KListView
{
Q_OBJECT
public:
KKProperty( QWidget* parent = 0, const char* name = 0 );
~KKProperty();
KKDoc* document(){ return m_doc; }
public slots:
void setDocument( KKDoc* doc );
void rename( QListViewItem* item, int c );
protected slots:
void doneEditing( QListViewItem* item, int row );
protected:
// void focusOutEvent( QFocusEvent* e );
private:
KKDoc* m_doc;
QMap m_properties;
private slots:
void documentChanged();
void selectionChanged();
};
#endif //KKPROPERTY_H
kreetingkard/src/Makefile.am 0000644 0000764 0000764 00000004473 10141706766 016565 0 ustar tasuku www 0000000 0000000 # set the include path for X, qt and KDE
INCLUDES = $(all_includes)
# these are the headers for your project
noinst_HEADERS = kreetingkard.h kkview.h kkitem.h kkdoc.h kkwidget.h \
kksizehandler.h kksizehandlerwidget.h kkproperty.h kkpropertyitembase.h \
kkpropertyitemtext.h kkpropertyitemname.h kkpropertyitemlocation.h kkpropertyitemsize.h \
kkcmdbase.h kkcmdname.h kkcmdlocation.h kkcmdsize.h kkcmdtext.h \
kkpropertyitemdatafield.h kkcmddatafield.h kkpropertyitemtextalign.h kkcmdtextalign.h \
kkpropertyitemtextorientation.h kkcmdtextorientation.h kkpropertyitemtextcolor.h kkcmdtextcolor.h \
kkpropertyitemtextfont.h kkcmdtextfont.h kkpropertyitemimage.h kkcmdimage.h kkcmdinsert.h \
kkcmdremove.h
# let automoc handle all of the meta source files (moc)
METASOURCES = USE_AUTOMOC
messages: rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/kreetingkard.pot
KDE_ICON = kreetingkard
#########################################################################
# APPLICATION SECTION
#########################################################################
# this is the program that gets installed. it's name is used for all
# of the other Makefile.am variables
bin_PROGRAMS = kreetingkard
# the application source, library search path, and link libraries
kreetingkard_SOURCES = main.cpp kreetingkard.cpp kkview.cpp kkitem.cpp \
kkdoc.cpp kkwidget.cpp kksizehandler.cpp kksizehandlerwidget.cpp kkproperty.cpp \
kkpropertyitembase.cpp kkpropertyitemtext.cpp kkpropertyitemname.cpp \
kkpropertyitemlocation.cpp kkpropertyitemsize.cpp kkcmdbase.cpp kkcmdname.cpp kkcmdlocation.cpp \
kkcmdsize.cpp kkcmdtext.cpp kkpropertyitemdatafield.cpp kkcmddatafield.cpp \
kkpropertyitemtextalign.cpp kkcmdtextalign.cpp kkpropertyitemtextorientation.cpp \
kkcmdtextorientation.cpp kkpropertyitemtextcolor.cpp kkcmdtextcolor.cpp \
kkpropertyitemtextfont.cpp kkcmdtextfont.cpp kkpropertyitemimage.cpp kkcmdimage.cpp \
kkcmdinsert.cpp kkcmdremove.cpp
kreetingkard_LDFLAGS = $(KDE_RPATH) $(all_libraries)
kreetingkard_LDADD = $(LIB_KDEUI) $(LIB_KIO) $(LIB_KDEPRINT)
# this is where the desktop file will go
shelldesktopdir = $(kde_appsdir)/Utilities
shelldesktop_DATA = kreetingkard.desktop
# this is where the shell's XML-GUI resource file goes
shellrcdir = $(kde_datadir)/kreetingkard
shellrc_DATA = kreetingkardui.rc
kreetingkard/src/Makefile.in 0000644 0000764 0000764 00000121012 10141742125 016550 0 ustar tasuku www 0000000 0000000 # Makefile.in generated by automake 1.6.3 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.7 $
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# 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@
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
AR = @AR@
ARTSCCONFIG = @ARTSCCONFIG@
AS = @AS@
AUTODIRS = @AUTODIRS@
AWK = @AWK@
CC = @CC@
CONF_FILES = @CONF_FILES@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
DCOPIDL = @DCOPIDL@
DCOPIDL2CPP = @DCOPIDL2CPP@
DCOPIDLNG = @DCOPIDLNG@
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN = @DOXYGEN@
DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
DPMSINC = @DPMSINC@
DPMSLIB = @DPMSLIB@
ECHO = @ECHO@
EGREP = @EGREP@
F77 = @F77@
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GLINC = @GLINC@
GLLIB = @GLLIB@
GMSGFMT = @GMSGFMT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAR = @JAR@
JAVAC = @JAVAC@
JAVAH = @JAVAH@
JVMLIBS = @JVMLIBS@
KCFG_DEPENDENCIES = @KCFG_DEPENDENCIES@
KCONFIG_COMPILER = @KCONFIG_COMPILER@
KDECONFIG = @KDECONFIG@
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
KDE_HAVE_DOT = @KDE_HAVE_DOT@
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@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBBZ2 = @LIBBZ2@
LIBCOMPAT = @LIBCOMPAT@
LIBCRYPT = @LIBCRYPT@
LIBDL = @LIBDL@
LIBGEN = @LIBGEN@
LIBJPEG = @LIBJPEG@
LIBOBJS = @LIBOBJS@
LIBPNG = @LIBPNG@
LIBPTHREAD = @LIBPTHREAD@
LIBPYTHON = @LIBPYTHON@
LIBQIMGIO = @LIBQIMGIO@
LIBRESOLV = @LIBRESOLV@
LIBSHADOW = @LIBSHADOW@
LIBSM = @LIBSM@
LIBSOCKET = @LIBSOCKET@
LIBSSL = @LIBSSL@
LIBTIFF = @LIBTIFF@
LIBTOOL = @LIBTOOL@
LIBUCB = @LIBUCB@
LIBUTIL = @LIBUTIL@
LIBZ = @LIBZ@
LIB_JASPER = @LIB_JASPER@
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_QTOPIA = @LIB_QTOPIA@
LIB_SMB = @LIB_SMB@
LIB_X11 = @LIB_X11@
LIB_XEXT = @LIB_XEXT@
LIB_XRENDER = @LIB_XRENDER@
LN_S = @LN_S@
MCOPIDL = @MCOPIDL@
MEINPROC = @MEINPROC@
MOC = @MOC@
MSGFMT = @MSGFMT@
NOOPT_CFLAGS = @NOOPT_CFLAGS@
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
OBJC = @OBJC@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
PAMLIBS = @PAMLIBS@
PASSWDLIBS = @PASSWDLIBS@
PERL = @PERL@
PYTHONINC = @PYTHONINC@
PYTHONLIB = @PYTHONLIB@
PYTHONMODDIR = @PYTHONMODDIR@
QTDOCDIR = @QTDOCDIR@
QTE_NORTTI = @QTE_NORTTI@
QTOPIA_INCLUDES = @QTOPIA_INCLUDES@
QT_INCLUDES = @QT_INCLUDES@
QT_LDFLAGS = @QT_LDFLAGS@
RANLIB = @RANLIB@
RC = @RC@
SETUIDFLAGS = @SETUIDFLAGS@
SSL_INCLUDES = @SSL_INCLUDES@
SSL_LDFLAGS = @SSL_LDFLAGS@
STRIP = @STRIP@
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@
XPMINC = @XPMINC@
XPMLIB = @XPMLIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_INCLUDES = @X_INCLUDES@
X_LDFLAGS = @X_LDFLAGS@
X_PRE_LIBS = @X_PRE_LIBS@
X_RPATH = @X_RPATH@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__quote = @am__quote@
install_sh = @install_sh@
jni_includes = @jni_includes@
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@
qt_includes = @qt_includes@
qt_libraries = @qt_libraries@
x_includes = @x_includes@
x_libraries = @x_libraries@
xdg_appsdir = @xdg_appsdir@
xdg_directorydir = @xdg_directorydir@
xdg_menudir = @xdg_menudir@
# set the include path for X, qt and KDE
INCLUDES = $(all_includes)
# these are the headers for your project
noinst_HEADERS = kreetingkard.h kkview.h kkitem.h kkdoc.h kkwidget.h \
kksizehandler.h kksizehandlerwidget.h kkproperty.h kkpropertyitembase.h \
kkpropertyitemtext.h kkpropertyitemname.h kkpropertyitemlocation.h kkpropertyitemsize.h \
kkcmdbase.h kkcmdname.h kkcmdlocation.h kkcmdsize.h kkcmdtext.h \
kkpropertyitemdatafield.h kkcmddatafield.h kkpropertyitemtextalign.h kkcmdtextalign.h \
kkpropertyitemtextorientation.h kkcmdtextorientation.h kkpropertyitemtextcolor.h kkcmdtextcolor.h \
kkpropertyitemtextfont.h kkcmdtextfont.h kkpropertyitemimage.h kkcmdimage.h kkcmdinsert.h \
kkcmdremove.h
# let automoc handle all of the meta source files (moc)
#>- METASOURCES = USE_AUTOMOC
KDE_ICON = kreetingkard
#########################################################################
# APPLICATION SECTION
#########################################################################
# this is the program that gets installed. it's name is used for all
# of the other Makefile.am variables
bin_PROGRAMS = kreetingkard
# the application source, library search path, and link libraries
kreetingkard_SOURCES = main.cpp kreetingkard.cpp kkview.cpp kkitem.cpp \
kkdoc.cpp kkwidget.cpp kksizehandler.cpp kksizehandlerwidget.cpp kkproperty.cpp \
kkpropertyitembase.cpp kkpropertyitemtext.cpp kkpropertyitemname.cpp \
kkpropertyitemlocation.cpp kkpropertyitemsize.cpp kkcmdbase.cpp kkcmdname.cpp kkcmdlocation.cpp \
kkcmdsize.cpp kkcmdtext.cpp kkpropertyitemdatafield.cpp kkcmddatafield.cpp \
kkpropertyitemtextalign.cpp kkcmdtextalign.cpp kkpropertyitemtextorientation.cpp \
kkcmdtextorientation.cpp kkpropertyitemtextcolor.cpp kkcmdtextcolor.cpp \
kkpropertyitemtextfont.cpp kkcmdtextfont.cpp kkpropertyitemimage.cpp kkcmdimage.cpp \
kkcmdinsert.cpp kkcmdremove.cpp
kreetingkard_LDFLAGS = $(KDE_RPATH) $(all_libraries)
kreetingkard_LDADD = $(LIB_KDEUI) $(LIB_KIO) $(LIB_KDEPRINT)
# this is where the desktop file will go
shelldesktopdir = $(kde_appsdir)/Utilities
shelldesktop_DATA = kreetingkard.desktop
# this is where the shell's XML-GUI resource file goes
shellrcdir = $(kde_datadir)/kreetingkard
shellrc_DATA = kreetingkardui.rc
subdir = src
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
bin_PROGRAMS = kreetingkard$(EXEEXT)
PROGRAMS = $(bin_PROGRAMS)
am_kreetingkard_OBJECTS = main.$(OBJEXT) kreetingkard.$(OBJEXT) \
kkview.$(OBJEXT) kkitem.$(OBJEXT) kkdoc.$(OBJEXT) \
kkwidget.$(OBJEXT) kksizehandler.$(OBJEXT) \
kksizehandlerwidget.$(OBJEXT) kkproperty.$(OBJEXT) \
kkpropertyitembase.$(OBJEXT) kkpropertyitemtext.$(OBJEXT) \
kkpropertyitemname.$(OBJEXT) kkpropertyitemlocation.$(OBJEXT) \
kkpropertyitemsize.$(OBJEXT) kkcmdbase.$(OBJEXT) \
kkcmdname.$(OBJEXT) kkcmdlocation.$(OBJEXT) kkcmdsize.$(OBJEXT) \
kkcmdtext.$(OBJEXT) kkpropertyitemdatafield.$(OBJEXT) \
kkcmddatafield.$(OBJEXT) kkpropertyitemtextalign.$(OBJEXT) \
kkcmdtextalign.$(OBJEXT) \
kkpropertyitemtextorientation.$(OBJEXT) \
kkcmdtextorientation.$(OBJEXT) \
kkpropertyitemtextcolor.$(OBJEXT) kkcmdtextcolor.$(OBJEXT) \
kkpropertyitemtextfont.$(OBJEXT) kkcmdtextfont.$(OBJEXT) \
kkpropertyitemimage.$(OBJEXT) kkcmdimage.$(OBJEXT) \
kkcmdinsert.$(OBJEXT) kkcmdremove.$(OBJEXT)
#>- kreetingkard_OBJECTS = $(am_kreetingkard_OBJECTS)
#>+ 21
kreetingkard_final_OBJECTS = kreetingkard.all_cpp.o
kreetingkard_nofinal_OBJECTS = main.$(OBJEXT) kreetingkard.$(OBJEXT) \
kkview.$(OBJEXT) kkitem.$(OBJEXT) kkdoc.$(OBJEXT) \
kkwidget.$(OBJEXT) kksizehandler.$(OBJEXT) \
kksizehandlerwidget.$(OBJEXT) kkproperty.$(OBJEXT) \
kkpropertyitembase.$(OBJEXT) kkpropertyitemtext.$(OBJEXT) \
kkpropertyitemname.$(OBJEXT) kkpropertyitemlocation.$(OBJEXT) \
kkpropertyitemsize.$(OBJEXT) kkcmdbase.$(OBJEXT) \
kkcmdname.$(OBJEXT) kkcmdlocation.$(OBJEXT) kkcmdsize.$(OBJEXT) \
kkcmdtext.$(OBJEXT) kkpropertyitemdatafield.$(OBJEXT) \
kkcmddatafield.$(OBJEXT) kkpropertyitemtextalign.$(OBJEXT) \
kkcmdtextalign.$(OBJEXT) \
kkpropertyitemtextorientation.$(OBJEXT) \
kkcmdtextorientation.$(OBJEXT) \
kkpropertyitemtextcolor.$(OBJEXT) kkcmdtextcolor.$(OBJEXT) \
kkpropertyitemtextfont.$(OBJEXT) kkcmdtextfont.$(OBJEXT) \
kkpropertyitemimage.$(OBJEXT) kkcmdimage.$(OBJEXT) \
kkcmdinsert.$(OBJEXT) kkcmdremove.$(OBJEXT)\
kkpropertyitemsize.moc.o kkpropertyitemimage.moc.o kkpropertyitemtextorientation.moc.o kreetingkard.moc.o kkcmdbase.moc.o kksizehandlerwidget.moc.o kkpropertyitemdatafield.moc.o kkdoc.moc.o kkpropertyitemname.moc.o kkview.moc.o kkpropertyitemtextfont.moc.o kkpropertyitemtextcolor.moc.o kkpropertyitemtextalign.moc.o kksizehandler.moc.o kkpropertyitemlocation.moc.o kkpropertyitembase.moc.o kkwidget.moc.o kkproperty.moc.o kkpropertyitemtext.moc.o kkitem.moc.o
@KDE_USE_FINAL_FALSE@kreetingkard_OBJECTS = $(kreetingkard_nofinal_OBJECTS)
@KDE_USE_FINAL_TRUE@kreetingkard_OBJECTS = $(kreetingkard_final_OBJECTS)
kreetingkard_DEPENDENCIES =
DEFS = @DEFS@
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
am__depfiles_maybe = depfiles
#>- @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/kkcmdbase.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkcmddatafield.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdimage.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdinsert.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdlocation.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdname.Po ./$(DEPDIR)/kkcmdremove.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdsize.Po ./$(DEPDIR)/kkcmdtext.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextalign.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextcolor.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextfont.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextorientation.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkdoc.Po ./$(DEPDIR)/kkitem.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkproperty.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitembase.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemdatafield.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemimage.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemlocation.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemname.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemsize.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtext.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextalign.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextcolor.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextfont.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextorientation.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kksizehandler.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kksizehandlerwidget.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kkview.Po ./$(DEPDIR)/kkwidget.Po \
#>- @AMDEP_TRUE@ ./$(DEPDIR)/kreetingkard.Po ./$(DEPDIR)/main.Po
#>+ 56
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@DEP_FILES = $(DEPDIR)/kkpropertyitemsize.moc.P $(DEPDIR)/kkpropertyitemimage.moc.P $(DEPDIR)/kkpropertyitemtextorientation.moc.P $(DEPDIR)/kreetingkard.moc.P $(DEPDIR)/kkcmdbase.moc.P $(DEPDIR)/kksizehandlerwidget.moc.P $(DEPDIR)/kkpropertyitemdatafield.moc.P $(DEPDIR)/kkdoc.moc.P $(DEPDIR)/kkpropertyitemname.moc.P $(DEPDIR)/kkview.moc.P $(DEPDIR)/kkpropertyitemtextfont.moc.P $(DEPDIR)/kkpropertyitemtextcolor.moc.P $(DEPDIR)/kkpropertyitemtextalign.moc.P $(DEPDIR)/kksizehandler.moc.P $(DEPDIR)/kkpropertyitemlocation.moc.P $(DEPDIR)/kkpropertyitembase.moc.P $(DEPDIR)/kkwidget.moc.P $(DEPDIR)/kkproperty.moc.P $(DEPDIR)/kkpropertyitemtext.moc.P $(DEPDIR)/kkitem.moc.P $(DEPDIR)/kreetingkard.all_cpp.P ./$(DEPDIR)/kkcmdbase.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmddatafield.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdimage.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdinsert.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdlocation.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdname.Po ./$(DEPDIR)/kkcmdremove.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdsize.Po ./$(DEPDIR)/kkcmdtext.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextalign.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextcolor.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextfont.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextorientation.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkdoc.Po ./$(DEPDIR)/kkitem.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkproperty.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitembase.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemdatafield.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemimage.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemlocation.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemname.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemsize.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtext.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextalign.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextcolor.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextfont.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextorientation.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kksizehandler.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kksizehandlerwidget.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkview.Po ./$(DEPDIR)/kkwidget.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/kreetingkard.Po ./$(DEPDIR)/main.Po
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@DEP_FILES = $(DEPDIR)/kkpropertyitemsize.moc.P $(DEPDIR)/kkpropertyitemimage.moc.P $(DEPDIR)/kkpropertyitemtextorientation.moc.P $(DEPDIR)/kreetingkard.moc.P $(DEPDIR)/kkcmdbase.moc.P $(DEPDIR)/kksizehandlerwidget.moc.P $(DEPDIR)/kkpropertyitemdatafield.moc.P $(DEPDIR)/kkdoc.moc.P $(DEPDIR)/kkpropertyitemname.moc.P $(DEPDIR)/kkview.moc.P $(DEPDIR)/kkpropertyitemtextfont.moc.P $(DEPDIR)/kkpropertyitemtextcolor.moc.P $(DEPDIR)/kkpropertyitemtextalign.moc.P $(DEPDIR)/kksizehandler.moc.P $(DEPDIR)/kkpropertyitemlocation.moc.P $(DEPDIR)/kkpropertyitembase.moc.P $(DEPDIR)/kkwidget.moc.P $(DEPDIR)/kkproperty.moc.P $(DEPDIR)/kkpropertyitemtext.moc.P $(DEPDIR)/kkitem.moc.P ./$(DEPDIR)/kkcmdbase.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmddatafield.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdimage.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdinsert.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdlocation.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdname.Po ./$(DEPDIR)/kkcmdremove.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdsize.Po ./$(DEPDIR)/kkcmdtext.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextalign.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextcolor.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextfont.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkcmdtextorientation.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkdoc.Po ./$(DEPDIR)/kkitem.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkproperty.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitembase.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemdatafield.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemimage.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemlocation.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemname.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemsize.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtext.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextalign.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextcolor.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextfont.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkpropertyitemtextorientation.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kksizehandler.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kksizehandlerwidget.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kkview.Po ./$(DEPDIR)/kkwidget.Po \
@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/kreetingkard.Po ./$(DEPDIR)/main.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 $@
CXXFLAGS = @CXXFLAGS@
DIST_SOURCES = $(kreetingkard_SOURCES)
DATA = $(shelldesktop_DATA) $(shellrc_DATA)
HEADERS = $(noinst_HEADERS)
DIST_COMMON = $(noinst_HEADERS) Makefile.am Makefile.in
SOURCES = $(kreetingkard_SOURCES)
#>- all: all-am
#>+ 1
all: docs-am all-am
.SUFFIXES:
.SUFFIXES: .cpp .lo .o .obj
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu src/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu src/Makefile
cd $(top_srcdir) && perl admin/am_edit src/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
if test -f $$p \
|| test -f $$p1 \
; then \
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f; \
else :; fi; \
done
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
rm -f $(DESTDIR)$(bindir)/$$f; \
done
clean-binPROGRAMS:
@list='$(bin_PROGRAMS)'; for p in $$list; do \
f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
echo " rm -f $$p $$f"; \
rm -f $$p $$f ; \
done
kreetingkard$(EXEEXT): $(kreetingkard_OBJECTS) $(kreetingkard_DEPENDENCIES)
@rm -f kreetingkard$(EXEEXT)
$(CXXLINK) $(kreetingkard_LDFLAGS) $(kreetingkard_OBJECTS) $(kreetingkard_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT) core *.core
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdbase.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmddatafield.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdimage.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdinsert.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdlocation.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdname.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdremove.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdsize.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdtext.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdtextalign.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdtextcolor.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdtextfont.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkcmdtextorientation.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkdoc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkitem.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkproperty.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkpropertyitembase.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkpropertyitemdatafield.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkpropertyitemimage.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkpropertyitemlocation.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkpropertyitemname.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkpropertyitemsize.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkpropertyitemtext.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkpropertyitemtextalign.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkpropertyitemtextcolor.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkpropertyitemtextfont.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkpropertyitemtextorientation.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kksizehandler.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kksizehandlerwidget.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkview.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kkwidget.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kreetingkard.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
distclean-depend:
-rm -rf ./$(DEPDIR)
.cpp.o:
@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
$(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
.cpp.obj:
@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
$(CXXCOMPILE) -c -o $@ `cygpath -w $<`
.cpp.lo:
@AMDEP_TRUE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
$(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
CXXDEPMODE = @CXXDEPMODE@
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
shelldesktopDATA_INSTALL = $(INSTALL_DATA)
install-shelldesktopDATA: $(shelldesktop_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(shelldesktopdir)
@list='$(shelldesktop_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(shelldesktopDATA_INSTALL) $$d$$p $(DESTDIR)$(shelldesktopdir)/$$f"; \
$(shelldesktopDATA_INSTALL) $$d$$p $(DESTDIR)$(shelldesktopdir)/$$f; \
done
uninstall-shelldesktopDATA:
@$(NORMAL_UNINSTALL)
@list='$(shelldesktop_DATA)'; for p in $$list; do \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " rm -f $(DESTDIR)$(shelldesktopdir)/$$f"; \
rm -f $(DESTDIR)$(shelldesktopdir)/$$f; \
done
shellrcDATA_INSTALL = $(INSTALL_DATA)
install-shellrcDATA: $(shellrc_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(shellrcdir)
@list='$(shellrc_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(shellrcDATA_INSTALL) $$d$$p $(DESTDIR)$(shellrcdir)/$$f"; \
$(shellrcDATA_INSTALL) $$d$$p $(DESTDIR)$(shellrcdir)/$$f; \
done
uninstall-shellrcDATA:
@$(NORMAL_UNINSTALL)
@list='$(shellrc_DATA)'; for p in $$list; do \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " rm -f $(DESTDIR)$(shellrcdir)/$$f"; \
rm -f $(DESTDIR)$(shellrcdir)/$$f; \
done
ETAGS = etags
ETAGSFLAGS =
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
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
#>- 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)
@list='$(DISTFILES)'; for file in $$list; do \
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 $(PROGRAMS) $(DATA) $(HEADERS)
installdirs:
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(shelldesktopdir) $(DESTDIR)$(shellrcdir)
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-binPROGRAMS clean-generic clean-libtool mostlyclean-am
#>+ 1
clean-am: clean-metasources clean-bcheck clean-final clean-binPROGRAMS clean-generic clean-libtool 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-shelldesktopDATA install-shellrcDATA
#>+ 1
install-data-am: install-kde-icons install-shelldesktopDATA install-shellrcDATA
install-exec-am: install-binPROGRAMS
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
#>- uninstall-am: uninstall-binPROGRAMS uninstall-info-am \
#>- uninstall-shelldesktopDATA uninstall-shellrcDATA
#>+ 2
uninstall-am: uninstall-kde-icons uninstall-binPROGRAMS uninstall-info-am \
uninstall-shelldesktopDATA uninstall-shellrcDATA
.PHONY: GTAGS all all-am check check-am clean clean-binPROGRAMS \
clean-generic clean-libtool distclean distclean-compile \
distclean-depend distclean-generic distclean-libtool \
distclean-tags distdir dvi dvi-am info info-am install \
install-am install-binPROGRAMS install-data install-data-am \
install-exec install-exec-am install-info install-info-am \
install-man install-shelldesktopDATA install-shellrcDATA \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
tags uninstall uninstall-am uninstall-binPROGRAMS \
uninstall-info-am uninstall-shelldesktopDATA \
uninstall-shellrcDATA
messages: rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/kreetingkard.pot
# 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:
#>+ 3
kkpropertyitemsize.moc.cpp: $(srcdir)/kkpropertyitemsize.h
$(MOC) $(srcdir)/kkpropertyitemsize.h -o kkpropertyitemsize.moc.cpp
#>+ 2
mocs: kkpropertyitemsize.moc.cpp
#>+ 3
kkpropertyitemimage.moc.cpp: $(srcdir)/kkpropertyitemimage.h
$(MOC) $(srcdir)/kkpropertyitemimage.h -o kkpropertyitemimage.moc.cpp
#>+ 2
mocs: kkpropertyitemimage.moc.cpp
#>+ 3
kkpropertyitemtextorientation.moc.cpp: $(srcdir)/kkpropertyitemtextorientation.h
$(MOC) $(srcdir)/kkpropertyitemtextorientation.h -o kkpropertyitemtextorientation.moc.cpp
#>+ 2
mocs: kkpropertyitemtextorientation.moc.cpp
#>+ 3
kreetingkard.moc.cpp: $(srcdir)/kreetingkard.h
$(MOC) $(srcdir)/kreetingkard.h -o kreetingkard.moc.cpp
#>+ 2
mocs: kreetingkard.moc.cpp
#>+ 3
kkcmdbase.moc.cpp: $(srcdir)/kkcmdbase.h
$(MOC) $(srcdir)/kkcmdbase.h -o kkcmdbase.moc.cpp
#>+ 2
mocs: kkcmdbase.moc.cpp
#>+ 3
kksizehandlerwidget.moc.cpp: $(srcdir)/kksizehandlerwidget.h
$(MOC) $(srcdir)/kksizehandlerwidget.h -o kksizehandlerwidget.moc.cpp
#>+ 2
mocs: kksizehandlerwidget.moc.cpp
#>+ 3
kkpropertyitemdatafield.moc.cpp: $(srcdir)/kkpropertyitemdatafield.h
$(MOC) $(srcdir)/kkpropertyitemdatafield.h -o kkpropertyitemdatafield.moc.cpp
#>+ 2
mocs: kkpropertyitemdatafield.moc.cpp
#>+ 3
kkdoc.moc.cpp: $(srcdir)/kkdoc.h
$(MOC) $(srcdir)/kkdoc.h -o kkdoc.moc.cpp
#>+ 2
mocs: kkdoc.moc.cpp
#>+ 3
kkpropertyitemname.moc.cpp: $(srcdir)/kkpropertyitemname.h
$(MOC) $(srcdir)/kkpropertyitemname.h -o kkpropertyitemname.moc.cpp
#>+ 2
mocs: kkpropertyitemname.moc.cpp
#>+ 3
kkview.moc.cpp: $(srcdir)/kkview.h
$(MOC) $(srcdir)/kkview.h -o kkview.moc.cpp
#>+ 2
mocs: kkview.moc.cpp
#>+ 3
kkpropertyitemtextfont.moc.cpp: $(srcdir)/kkpropertyitemtextfont.h
$(MOC) $(srcdir)/kkpropertyitemtextfont.h -o kkpropertyitemtextfont.moc.cpp
#>+ 2
mocs: kkpropertyitemtextfont.moc.cpp
#>+ 3
kkpropertyitemtextcolor.moc.cpp: $(srcdir)/kkpropertyitemtextcolor.h
$(MOC) $(srcdir)/kkpropertyitemtextcolor.h -o kkpropertyitemtextcolor.moc.cpp
#>+ 2
mocs: kkpropertyitemtextcolor.moc.cpp
#>+ 3
kkpropertyitemtextalign.moc.cpp: $(srcdir)/kkpropertyitemtextalign.h
$(MOC) $(srcdir)/kkpropertyitemtextalign.h -o kkpropertyitemtextalign.moc.cpp
#>+ 2
mocs: kkpropertyitemtextalign.moc.cpp
#>+ 3
kksizehandler.moc.cpp: $(srcdir)/kksizehandler.h
$(MOC) $(srcdir)/kksizehandler.h -o kksizehandler.moc.cpp
#>+ 2
mocs: kksizehandler.moc.cpp
#>+ 3
kkpropertyitemlocation.moc.cpp: $(srcdir)/kkpropertyitemlocation.h
$(MOC) $(srcdir)/kkpropertyitemlocation.h -o kkpropertyitemlocation.moc.cpp
#>+ 2
mocs: kkpropertyitemlocation.moc.cpp
#>+ 3
kkpropertyitembase.moc.cpp: $(srcdir)/kkpropertyitembase.h
$(MOC) $(srcdir)/kkpropertyitembase.h -o kkpropertyitembase.moc.cpp
#>+ 2
mocs: kkpropertyitembase.moc.cpp
#>+ 3
kkwidget.moc.cpp: $(srcdir)/kkwidget.h
$(MOC) $(srcdir)/kkwidget.h -o kkwidget.moc.cpp
#>+ 2
mocs: kkwidget.moc.cpp
#>+ 3
kkproperty.moc.cpp: $(srcdir)/kkproperty.h
$(MOC) $(srcdir)/kkproperty.h -o kkproperty.moc.cpp
#>+ 2
mocs: kkproperty.moc.cpp
#>+ 3
kkpropertyitemtext.moc.cpp: $(srcdir)/kkpropertyitemtext.h
$(MOC) $(srcdir)/kkpropertyitemtext.h -o kkpropertyitemtext.moc.cpp
#>+ 2
mocs: kkpropertyitemtext.moc.cpp
#>+ 3
kkitem.moc.cpp: $(srcdir)/kkitem.h
$(MOC) $(srcdir)/kkitem.h -o kkitem.moc.cpp
#>+ 2
mocs: kkitem.moc.cpp
#>+ 3
clean-metasources:
-rm -f kkpropertyitemsize.moc.cpp kkpropertyitemimage.moc.cpp kkpropertyitemtextorientation.moc.cpp kreetingkard.moc.cpp kkcmdbase.moc.cpp kksizehandlerwidget.moc.cpp kkpropertyitemdatafield.moc.cpp kkdoc.moc.cpp kkpropertyitemname.moc.cpp kkview.moc.cpp kkpropertyitemtextfont.moc.cpp kkpropertyitemtextcolor.moc.cpp kkpropertyitemtextalign.moc.cpp kksizehandler.moc.cpp kkpropertyitemlocation.moc.cpp kkpropertyitembase.moc.cpp kkwidget.moc.cpp kkproperty.moc.cpp kkpropertyitemtext.moc.cpp kkitem.moc.cpp
#>+ 2
KDE_DIST=kreetingkardui.rc kreetingkard.desktop hi16-app-kreetingkard.png kreetingkard.lsm hi32-app-kreetingkard.png
#>+ 2
docs-am:
#>+ 10
install-kde-icons:
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps
$(INSTALL_DATA) $(srcdir)/hi32-app-kreetingkard.png $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/kreetingkard.png
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps
$(INSTALL_DATA) $(srcdir)/hi16-app-kreetingkard.png $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kreetingkard.png
uninstall-kde-icons:
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/kreetingkard.png
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kreetingkard.png
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu src/Makefile
cd $(top_srcdir) && perl admin/am_edit src/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
kreetingkard.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/main.cpp $(srcdir)/kreetingkard.cpp $(srcdir)/kkview.cpp $(srcdir)/kkitem.cpp $(srcdir)/kkdoc.cpp $(srcdir)/kkwidget.cpp $(srcdir)/kksizehandler.cpp $(srcdir)/kksizehandlerwidget.cpp $(srcdir)/kkproperty.cpp $(srcdir)/kkpropertyitembase.cpp $(srcdir)/kkpropertyitemtext.cpp $(srcdir)/kkpropertyitemname.cpp $(srcdir)/kkpropertyitemlocation.cpp $(srcdir)/kkpropertyitemsize.cpp $(srcdir)/kkcmdbase.cpp $(srcdir)/kkcmdname.cpp $(srcdir)/kkcmdlocation.cpp $(srcdir)/kkcmdsize.cpp $(srcdir)/kkcmdtext.cpp $(srcdir)/kkpropertyitemdatafield.cpp $(srcdir)/kkcmddatafield.cpp $(srcdir)/kkpropertyitemtextalign.cpp $(srcdir)/kkcmdtextalign.cpp $(srcdir)/kkpropertyitemtextorientation.cpp $(srcdir)/kkcmdtextorientation.cpp $(srcdir)/kkpropertyitemtextcolor.cpp $(srcdir)/kkcmdtextcolor.cpp $(srcdir)/kkpropertyitemtextfont.cpp $(srcdir)/kkcmdtextfont.cpp $(srcdir)/kkpropertyitemimage.cpp $(srcdir)/kkcmdimage.cpp $(srcdir)/kkcmdinsert.cpp $(srcdir)/kkcmdremove.cpp kkpropertyitemimage.moc.cpp kkpropertyitemsize.moc.cpp kkpropertyitemtextorientation.moc.cpp kreetingkard.moc.cpp kkcmdbase.moc.cpp kksizehandlerwidget.moc.cpp kkpropertyitemdatafield.moc.cpp kkdoc.moc.cpp kkpropertyitemname.moc.cpp kkview.moc.cpp kkpropertyitemtextcolor.moc.cpp kkpropertyitemtextfont.moc.cpp kkpropertyitemtextalign.moc.cpp kksizehandler.moc.cpp kkpropertyitemlocation.moc.cpp kkpropertyitembase.moc.cpp kkwidget.moc.cpp kkproperty.moc.cpp kkpropertyitemtext.moc.cpp kkitem.moc.cpp
@echo 'creating kreetingkard.all_cpp.cpp ...'; \
rm -f kreetingkard.all_cpp.files kreetingkard.all_cpp.final; \
echo "#define KDE_USE_FINAL 1" >> kreetingkard.all_cpp.final; \
for file in main.cpp kreetingkard.cpp kkview.cpp kkitem.cpp kkdoc.cpp kkwidget.cpp kksizehandler.cpp kksizehandlerwidget.cpp kkproperty.cpp kkpropertyitembase.cpp kkpropertyitemtext.cpp kkpropertyitemname.cpp kkpropertyitemlocation.cpp kkpropertyitemsize.cpp kkcmdbase.cpp kkcmdname.cpp kkcmdlocation.cpp kkcmdsize.cpp kkcmdtext.cpp kkpropertyitemdatafield.cpp kkcmddatafield.cpp kkpropertyitemtextalign.cpp kkcmdtextalign.cpp kkpropertyitemtextorientation.cpp kkcmdtextorientation.cpp kkpropertyitemtextcolor.cpp kkcmdtextcolor.cpp kkpropertyitemtextfont.cpp kkcmdtextfont.cpp kkpropertyitemimage.cpp kkcmdimage.cpp kkcmdinsert.cpp kkcmdremove.cpp kkpropertyitemimage.moc.cpp kkpropertyitemsize.moc.cpp kkpropertyitemtextorientation.moc.cpp kreetingkard.moc.cpp kkcmdbase.moc.cpp kksizehandlerwidget.moc.cpp kkpropertyitemdatafield.moc.cpp kkdoc.moc.cpp kkpropertyitemname.moc.cpp kkview.moc.cpp kkpropertyitemtextcolor.moc.cpp kkpropertyitemtextfont.moc.cpp kkpropertyitemtextalign.moc.cpp kksizehandler.moc.cpp kkpropertyitemlocation.moc.cpp kkpropertyitembase.moc.cpp kkwidget.moc.cpp kkproperty.moc.cpp kkpropertyitemtext.moc.cpp kkitem.moc.cpp ; do \
echo "#include \"$$file\"" >> kreetingkard.all_cpp.files; \
test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> kreetingkard.all_cpp.final; \
done; \
cat kreetingkard.all_cpp.final kreetingkard.all_cpp.files > kreetingkard.all_cpp.cpp; \
rm -f kreetingkard.all_cpp.final kreetingkard.all_cpp.files
#>+ 3
clean-final:
-rm -f kreetingkard.all_cpp.cpp
#>+ 3
final:
$(MAKE) kreetingkard_OBJECTS="$(kreetingkard_final_OBJECTS)" all-am
#>+ 3
final-install:
$(MAKE) kreetingkard_OBJECTS="$(kreetingkard_final_OBJECTS)" install-am
#>+ 3
no-final:
$(MAKE) kreetingkard_OBJECTS="$(kreetingkard_nofinal_OBJECTS)" all-am
#>+ 3
no-final-install:
$(MAKE) kreetingkard_OBJECTS="$(kreetingkard_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
kreetingkard/src/kkcmdimage.cpp 0000644 0000764 0000764 00000004307 10141710022 017301 0 ustar tasuku www 0000000 0000000 /***************************************************************************
* Copyright (C) 2004 by Tasuku Suzuki *
* tasuku@linux-life.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include
#include "kkcmdimage.h"
KKCmdImage::KKCmdImage( KKDoc* doc )
: KKCmdBase( doc )
{
connect( this, SIGNAL( executed() ), doc, SIGNAL( imageChanged() ) );
connect( this, SIGNAL( unexecuted() ), doc, SIGNAL( imageChanged() ) );
}
void KKCmdImage::execute( KKItem* item )
{
item->setImage( m_after[item] );
}
void KKCmdImage::unexecute( KKItem* item )
{
item->setImage( m_before[item] );
}
void KKCmdImage::begin( KKItem* item )
{
m_before[item] = item->image();
}
bool KKCmdImage::end( KKItem* item )
{
bool rtn = ( m_before[item].convertToImage() != item->image().convertToImage() );
if( rtn )
{
m_after[item] = item->image();
}
else
{
m_before.remove( item );
}
return rtn;
}
QString KKCmdImage::propertyName()
{
return i18n( "image" );
}
kreetingkard/src/hi32-app-kreetingkard.png 0000644 0000764 0000764 00000001042 10127124225 021203 0 ustar tasuku www 0000000 0000000 ЙPNG
IHDR szzЇ щIDATXЕ╜ЧAОк0╞ЕS╙─Х║{{ГЧ.╠Р╝3╝╜GЁ╠
▐XМ7a2= Зpу▐Itёь,@б02┐д▒Ъяы╫▒╩╦╡G!К█S╞ШЗ7А JУ√Uэ╡`╓x{K·╧╧═√X╚Ивд¤0╞cL·Ey┐А▒-A}iД=R] ╛▀╗БъТрє╓!Qd8Я╧ ю}ТСх▌╨R▄ў_╪яў Є·~¤6LwАнR╕8ЭN╨(Б┼лиN└Ш<■Ж│┐W╝▐@с|ШAИвx №-=█╦hнy S╖╙ЛБ┘l└ыыяё┴` Ё сД!╪эvhн╤Z▀▄├Ащt
Ёq}п╛юПвдV| Еззl╖[╓ыu&>ЩL РRB!БNl╒╟1Ы═Ж0СRвФb╣\р8х└[°nлI)YнVМ╟уtцV:/┴-A╓s]еJй┌нК╨>√\<Н▀u▌╥╪"Н(ЛЧЕ╙uпЛ╛ХёїjЎ¤█╚kс┼bБRкЯО╟#qs8╕\.┘iw4сy^#сVЖ├!Юч1Я╧3qH
ойp+Оу|[╒Mщэ