Solucionados bugs en modulo estanterias
This commit is contained in:
parent
34c5b7fb40
commit
51ae076bf8
|
@ -59,6 +59,7 @@ struct _DbModelPrivate
|
|||
guint result_pos;
|
||||
DbRequest * request;
|
||||
DbModelStatus status;
|
||||
gboolean autoload;
|
||||
gint stamp;
|
||||
DbRow * null_row;
|
||||
|
||||
|
@ -558,10 +559,16 @@ static void db_model_on_operations_done (DbRequest * request, DbModelRequest * d
|
|||
}
|
||||
}
|
||||
|
||||
static void db_model_autorefresh (DbModel * self)
|
||||
{
|
||||
if (self->priv->autoload)
|
||||
db_model_refresh (self);
|
||||
}
|
||||
|
||||
static void db_model_on_stmt_changed (SqlStmt * stmt, DbModel * self)
|
||||
{
|
||||
self->priv->fresh = TRUE;
|
||||
db_model_refresh (self);
|
||||
db_model_autorefresh (self);
|
||||
}
|
||||
|
||||
static void db_model_execute_stmt (DbModel * self)
|
||||
|
@ -590,13 +597,13 @@ static void db_model_execute_stmt (DbModel * self)
|
|||
G_CALLBACK (db_model_on_stmt_changed), self);
|
||||
|
||||
self->priv->fresh = TRUE;
|
||||
db_model_refresh (self);
|
||||
db_model_autorefresh (self);
|
||||
}
|
||||
}
|
||||
|
||||
static void db_model_on_batch_changed (SqlBatch * batch, DbModel * self)
|
||||
{
|
||||
db_model_refresh (self);
|
||||
db_model_autorefresh (self);
|
||||
}
|
||||
|
||||
static void db_model_on_join_query_done (DbRequest * request, JoinData * join_data)
|
||||
|
@ -3024,8 +3031,9 @@ typedef enum
|
|||
,PROP_MAIN_TABLE
|
||||
,PROP_UPDATE_FLAGS
|
||||
,PROP_RESULT_POS
|
||||
,PROP_PARTIAL_DELETE
|
||||
,PROP_BATCH
|
||||
,PROP_PARTIAL_DELETE
|
||||
,PROP_AUTOLOAD
|
||||
}
|
||||
DbModelProp;
|
||||
|
||||
|
@ -3052,11 +3060,14 @@ static void db_model_set_property (DbModel * self, guint property_id,
|
|||
case PROP_RESULT_POS:
|
||||
self->priv->result_pos = g_value_get_uint (value);
|
||||
break;
|
||||
case PROP_BATCH:
|
||||
db_model_set_batch (self, g_value_get_object (value));
|
||||
break;
|
||||
case PROP_PARTIAL_DELETE:
|
||||
self->priv->partial_delete = g_value_get_boolean (value);
|
||||
break;
|
||||
case PROP_BATCH:
|
||||
db_model_set_batch (self, g_value_get_object (value));
|
||||
case PROP_AUTOLOAD:
|
||||
self->priv->autoload = g_value_get_boolean (value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (self, property_id, pspec);
|
||||
|
@ -3089,11 +3100,14 @@ static void db_model_get_property (DbModel * self, guint property_id,
|
|||
case PROP_RESULT_POS:
|
||||
g_value_set_uint (value, self->priv->result_pos);
|
||||
break;
|
||||
case PROP_BATCH:
|
||||
g_value_set_object (value, self->priv->batch);
|
||||
break;
|
||||
case PROP_PARTIAL_DELETE:
|
||||
g_value_set_boolean (value, self->priv->partial_delete);
|
||||
break;
|
||||
case PROP_BATCH:
|
||||
g_value_set_object (value, self->priv->batch);
|
||||
case PROP_AUTOLOAD:
|
||||
g_value_set_boolean (value, self->priv->autoload);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (self, property_id, pspec);
|
||||
|
@ -3116,6 +3130,7 @@ static void db_model_init (DbModel * self)
|
|||
priv->result_pos = 0;
|
||||
priv->data = NULL;
|
||||
priv->column = NULL;
|
||||
priv->autoload = TRUE;
|
||||
priv->stamp = g_random_int ();
|
||||
priv->column_index = g_hash_table_new_full (
|
||||
g_str_hash,
|
||||
|
@ -3363,6 +3378,14 @@ static void db_model_class_init (DbModelClass *k)
|
|||
,G_PARAM_READWRITE
|
||||
));
|
||||
|
||||
g_object_class_install_property (klass, PROP_BATCH,
|
||||
g_param_spec_object ("batch"
|
||||
,_("Batch")
|
||||
,_("The batch assigned to the model")
|
||||
,SQL_TYPE_BATCH
|
||||
,G_PARAM_READWRITE
|
||||
));
|
||||
|
||||
g_object_class_install_property (klass, PROP_PARTIAL_DELETE,
|
||||
g_param_spec_boolean ("partial-delete"
|
||||
,_("Partial delete")
|
||||
|
@ -3372,11 +3395,11 @@ static void db_model_class_init (DbModelClass *k)
|
|||
,G_PARAM_READWRITE
|
||||
));
|
||||
|
||||
g_object_class_install_property (klass, PROP_BATCH,
|
||||
g_param_spec_object ("batch"
|
||||
,_("Batch")
|
||||
,_("The batch assigned to the model")
|
||||
,SQL_TYPE_BATCH
|
||||
g_object_class_install_property (klass, PROP_AUTOLOAD,
|
||||
g_param_spec_boolean ("autoload"
|
||||
,_("Autoload")
|
||||
,_("Wether to execute the query automatically.")
|
||||
,TRUE
|
||||
,G_PARAM_READWRITE
|
||||
));
|
||||
}
|
||||
|
|
|
@ -0,0 +1,737 @@
|
|||
# Makefile.in generated by automake 1.14.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2013 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@
|
||||
|
||||
# Definition of the install directories
|
||||
|
||||
# Libraries
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
DIST_COMMON = $(top_srcdir)/Makefile.decl $(srcdir)/Makefile.in \
|
||||
$(srcdir)/Makefile.am
|
||||
subdir = module
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/build/m4/dev-tools.m4 \
|
||||
$(top_srcdir)/build/m4/gtk-doc.m4 \
|
||||
$(top_srcdir)/build/m4/intltool.m4 \
|
||||
$(top_srcdir)/build/m4/libtool.m4 \
|
||||
$(top_srcdir)/build/m4/ltoptions.m4 \
|
||||
$(top_srcdir)/build/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/build/m4/ltversion.m4 \
|
||||
$(top_srcdir)/build/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/build/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
||||
ctags-recursive dvi-recursive html-recursive info-recursive \
|
||||
install-data-recursive install-dvi-recursive \
|
||||
install-exec-recursive install-html-recursive \
|
||||
install-info-recursive install-pdf-recursive \
|
||||
install-ps-recursive install-recursive installcheck-recursive \
|
||||
installdirs-recursive pdf-recursive ps-recursive \
|
||||
tags-recursive uninstall-recursive
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||
distclean-recursive maintainer-clean-recursive
|
||||
am__recursive_targets = \
|
||||
$(RECURSIVE_TARGETS) \
|
||||
$(RECURSIVE_CLEAN_TARGETS) \
|
||||
$(am__extra_recursive_targets)
|
||||
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
|
||||
distdir
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
am__relativize = \
|
||||
dir0=`pwd`; \
|
||||
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
||||
sed_rest='s,^[^/]*/*,,'; \
|
||||
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
||||
sed_butlast='s,/*[^/]*$$,,'; \
|
||||
while test -n "$$dir1"; do \
|
||||
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
||||
if test "$$first" != "."; then \
|
||||
if test "$$first" = ".."; then \
|
||||
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
||||
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
||||
else \
|
||||
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
||||
if test "$$first2" = "$$first"; then \
|
||||
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
||||
else \
|
||||
dir2="../$$dir2"; \
|
||||
fi; \
|
||||
dir0="$$dir0"/"$$first"; \
|
||||
fi; \
|
||||
fi; \
|
||||
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
||||
done; \
|
||||
reldir="$$dir2"
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ALL_LINGUAS = @ALL_LINGUAS@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CATALOGS = @CATALOGS@
|
||||
CATOBJEXT = @CATOBJEXT@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DATADIRNAME = @DATADIRNAME@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ENABLE_DEBUG = @ENABLE_DEBUG@
|
||||
ENABLE_INSTALL = @ENABLE_INSTALL@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
|
||||
GIR_SCANNER_ARGS = @GIR_SCANNER_ARGS@
|
||||
GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@
|
||||
GMOFILES = @GMOFILES@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GREP = @GREP@
|
||||
GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@
|
||||
GTKDOC_CHECK = @GTKDOC_CHECK@
|
||||
GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
|
||||
GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
|
||||
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
|
||||
GTKDOC_MKPDF = @GTKDOC_MKPDF@
|
||||
GTKDOC_REBASE = @GTKDOC_REBASE@
|
||||
HTML_DIR = @HTML_DIR@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INSTOBJEXT = @INSTOBJEXT@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
|
||||
INTLTOOL_MERGE = @INTLTOOL_MERGE@
|
||||
INTLTOOL_PERL = @INTLTOOL_PERL@
|
||||
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
|
||||
INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
|
||||
INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
|
||||
INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
|
||||
INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
|
||||
INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
|
||||
INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
|
||||
INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
|
||||
INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
|
||||
INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
|
||||
INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
|
||||
INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
|
||||
INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MKINSTALLDIRS = @MKINSTALLDIRS@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_OPTS = @MSGFMT_OPTS@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
POFILES = @POFILES@
|
||||
POSUB = @POSUB@
|
||||
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
|
||||
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
|
||||
RAGEL = @RAGEL@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
USE_NLS = @USE_NLS@
|
||||
VALAC = @VALAC@
|
||||
VALA_VERSION = @VALA_VERSION@
|
||||
VAPIGEN = @VAPIGEN@
|
||||
VERSION = @VERSION@
|
||||
VERSION_INFO = @VERSION_INFO@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
gdome_CFLAGS = @gdome_CFLAGS@
|
||||
gdome_LIBS = @gdome_LIBS@
|
||||
gladeui_CFLAGS = @gladeui_CFLAGS@
|
||||
gladeui_LIBS = @gladeui_LIBS@
|
||||
glib_CFLAGS = @glib_CFLAGS@
|
||||
glib_LIBS = @glib_LIBS@
|
||||
gsettingsschemadir = @gsettingsschemadir@
|
||||
gtk_CFLAGS = @gtk_CFLAGS@
|
||||
gtk_LIBS = @gtk_LIBS@
|
||||
gtksourceview_CFLAGS = @gtksourceview_CFLAGS@
|
||||
gtksourceview_LIBS = @gtksourceview_LIBS@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
intltool__v_merge_options_ = @intltool__v_merge_options_@
|
||||
intltool__v_merge_options_0 = @intltool__v_merge_options_0@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sqlite_CFLAGS = @sqlite_CFLAGS@
|
||||
sqlite_LIBS = @sqlite_LIBS@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
uVERSION = @uVERSION@
|
||||
@ENABLE_INSTALL_FALSE@hedera_libdir = $(abs_top_builddir)
|
||||
@ENABLE_INSTALL_TRUE@hedera_libdir = $(pkglibdir)
|
||||
@ENABLE_INSTALL_FALSE@hedera_datadir = $(abs_top_srcdir)
|
||||
@ENABLE_INSTALL_TRUE@hedera_datadir = $(pkgdatadir)
|
||||
gvn_libdir = $(hedera_libdir)
|
||||
sql_libdir = $(hedera_libdir)
|
||||
vn_libdir = $(hedera_libdir)
|
||||
field_libdir = $(vn_libdir)
|
||||
column_libdir = $(vn_libdir)
|
||||
plugin_libdir = $(hedera_libdir)/plugin
|
||||
@ENABLE_INSTALL_FALSE@db_libdir = $(hedera_libdir)/db
|
||||
@ENABLE_INSTALL_TRUE@db_libdir = $(hedera_libdir)
|
||||
@ENABLE_INSTALL_FALSE@module_libdir = $(hedera_libdir)/module/src/.libs
|
||||
@ENABLE_INSTALL_TRUE@module_libdir = $(hedera_libdir)/module
|
||||
|
||||
# Binaries (programs)
|
||||
hedera_bindir = $(bindir)
|
||||
|
||||
# Headers and development files
|
||||
hedera_includedir = $(pkgincludedir)
|
||||
gvn_includedir = $(hedera_includedir)/gvn
|
||||
sql_includedir = $(hedera_includedir)/sql
|
||||
db_includedir = $(hedera_includedir)/db
|
||||
vn_includedir = $(hedera_includedir)/vn
|
||||
field_includedir = $(vn_includedir)/field
|
||||
column_includedir = $(vn_includedir)/column
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
@ENABLE_VALA_TRUE@girdir = $(datadir)/gir-1.0
|
||||
@ENABLE_VALA_TRUE@typelibdir = $(prefix)/lib/girepository-1.0
|
||||
@ENABLE_VALA_TRUE@vapidata = $(top_srcdir)/vapi
|
||||
@ENABLE_VALA_TRUE@vapis = $(top_builddir)/vapi
|
||||
@ENABLE_VALA_TRUE@vapidir = $(datadir)/vala-$(VALA_VERSION)/vapi
|
||||
gladevn_libdir = $(prefix)/lib/glade/modules
|
||||
gladevn_datadir = $(datadir)/glade/catalogs
|
||||
|
||||
# Data
|
||||
vn_datadir = $(hedera_datadir)/vn
|
||||
vn_imagedir = $(vn_datadir)/image
|
||||
vn_guidir = $(vn_datadir)/gui
|
||||
module_querydir = $(hedera_datadir)/module/sql
|
||||
@ENABLE_INSTALL_FALSE@vn_configdir = $(vn_datadir)/schema
|
||||
@ENABLE_INSTALL_TRUE@vn_configdir = $(vn_datadir)
|
||||
@ENABLE_INSTALL_FALSE@vn_xmldir = $(vn_datadir)/schema
|
||||
@ENABLE_INSTALL_TRUE@vn_xmldir = $(datadir)/xml/$(PACKAGE)
|
||||
@ENABLE_INSTALL_FALSE@module_datadir = $(hedera_datadir)/module/data
|
||||
@ENABLE_INSTALL_TRUE@module_datadir = $(hedera_datadir)/module
|
||||
desktopdir = $(datadir)/applications
|
||||
vapigen_v = $(vapigen_v_@AM_V@)
|
||||
vapigen_v_ = $(vapigen_v_@AM_DEFAULT_V@)
|
||||
vapigen_v_0 = @echo " VAPIGEN $(subst $(vapis)/,,$@)";
|
||||
SUBDIRS = \
|
||||
src \
|
||||
data
|
||||
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.decl $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu module/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu module/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
$(top_srcdir)/Makefile.decl:
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
# 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.
|
||||
$(am__recursive_targets):
|
||||
@fail=; \
|
||||
if $(am__make_keepgoing); then \
|
||||
failcom='fail=yes'; \
|
||||
else \
|
||||
failcom='exit 1'; \
|
||||
fi; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
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; \
|
||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-recursive
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-recursive
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-recursive
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
$(am__make_dryrun) \
|
||||
|| test -d "$(distdir)/$$subdir" \
|
||||
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
||||
$(am__relativize); \
|
||||
new_distdir=$$reldir; \
|
||||
dir1=$$subdir; dir2="$(top_distdir)"; \
|
||||
$(am__relativize); \
|
||||
new_top_distdir=$$reldir; \
|
||||
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
||||
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
||||
($(am__cd) $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$new_top_distdir" \
|
||||
distdir="$$new_distdir" \
|
||||
am__remove_distdir=: \
|
||||
am__skip_length_check=: \
|
||||
am__skip_mode_fix=: \
|
||||
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:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-recursive
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-recursive
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-recursive
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-recursive
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: $(am__recursive_targets) install-am install-strip
|
||||
|
||||
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
|
||||
check-am clean clean-generic clean-libtool cscopelist-am ctags \
|
||||
ctags-am distclean distclean-generic distclean-libtool \
|
||||
distclean-tags distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-html \
|
||||
install-html-am install-info install-info-am install-man \
|
||||
install-pdf install-pdf-am install-ps install-ps-am \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
|
||||
ps ps-am tags tags-am uninstall uninstall-am
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
|
@ -6,7 +6,7 @@ example_DATA = \
|
|||
example.xml \
|
||||
example-menu.xml \
|
||||
consulter.glade \
|
||||
shelfs.glade \
|
||||
shelves.glade \
|
||||
consulter-menu.xml \
|
||||
customer.glade
|
||||
|
||||
|
|
|
@ -0,0 +1,618 @@
|
|||
# Makefile.in generated by automake 1.14.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2013 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@
|
||||
|
||||
# Definition of the install directories
|
||||
|
||||
# Libraries
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
DIST_COMMON = $(top_srcdir)/Makefile.decl $(srcdir)/Makefile.in \
|
||||
$(srcdir)/Makefile.am
|
||||
subdir = module/data
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/build/m4/dev-tools.m4 \
|
||||
$(top_srcdir)/build/m4/gtk-doc.m4 \
|
||||
$(top_srcdir)/build/m4/intltool.m4 \
|
||||
$(top_srcdir)/build/m4/libtool.m4 \
|
||||
$(top_srcdir)/build/m4/ltoptions.m4 \
|
||||
$(top_srcdir)/build/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/build/m4/ltversion.m4 \
|
||||
$(top_srcdir)/build/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/build/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(exampledir)"
|
||||
DATA = $(example_DATA)
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ALL_LINGUAS = @ALL_LINGUAS@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CATALOGS = @CATALOGS@
|
||||
CATOBJEXT = @CATOBJEXT@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DATADIRNAME = @DATADIRNAME@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ENABLE_DEBUG = @ENABLE_DEBUG@
|
||||
ENABLE_INSTALL = @ENABLE_INSTALL@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
|
||||
GIR_SCANNER_ARGS = @GIR_SCANNER_ARGS@
|
||||
GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@
|
||||
GMOFILES = @GMOFILES@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GREP = @GREP@
|
||||
GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@
|
||||
GTKDOC_CHECK = @GTKDOC_CHECK@
|
||||
GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
|
||||
GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
|
||||
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
|
||||
GTKDOC_MKPDF = @GTKDOC_MKPDF@
|
||||
GTKDOC_REBASE = @GTKDOC_REBASE@
|
||||
HTML_DIR = @HTML_DIR@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INSTOBJEXT = @INSTOBJEXT@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
|
||||
INTLTOOL_MERGE = @INTLTOOL_MERGE@
|
||||
INTLTOOL_PERL = @INTLTOOL_PERL@
|
||||
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
|
||||
INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
|
||||
INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
|
||||
INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
|
||||
INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
|
||||
INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
|
||||
INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
|
||||
INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
|
||||
INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
|
||||
INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
|
||||
INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
|
||||
INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
|
||||
INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MKINSTALLDIRS = @MKINSTALLDIRS@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_OPTS = @MSGFMT_OPTS@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
POFILES = @POFILES@
|
||||
POSUB = @POSUB@
|
||||
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
|
||||
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
|
||||
RAGEL = @RAGEL@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
USE_NLS = @USE_NLS@
|
||||
VALAC = @VALAC@
|
||||
VALA_VERSION = @VALA_VERSION@
|
||||
VAPIGEN = @VAPIGEN@
|
||||
VERSION = @VERSION@
|
||||
VERSION_INFO = @VERSION_INFO@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
gdome_CFLAGS = @gdome_CFLAGS@
|
||||
gdome_LIBS = @gdome_LIBS@
|
||||
gladeui_CFLAGS = @gladeui_CFLAGS@
|
||||
gladeui_LIBS = @gladeui_LIBS@
|
||||
glib_CFLAGS = @glib_CFLAGS@
|
||||
glib_LIBS = @glib_LIBS@
|
||||
gsettingsschemadir = @gsettingsschemadir@
|
||||
gtk_CFLAGS = @gtk_CFLAGS@
|
||||
gtk_LIBS = @gtk_LIBS@
|
||||
gtksourceview_CFLAGS = @gtksourceview_CFLAGS@
|
||||
gtksourceview_LIBS = @gtksourceview_LIBS@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
intltool__v_merge_options_ = @intltool__v_merge_options_@
|
||||
intltool__v_merge_options_0 = @intltool__v_merge_options_0@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sqlite_CFLAGS = @sqlite_CFLAGS@
|
||||
sqlite_LIBS = @sqlite_LIBS@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
uVERSION = @uVERSION@
|
||||
@ENABLE_INSTALL_FALSE@hedera_libdir = $(abs_top_builddir)
|
||||
@ENABLE_INSTALL_TRUE@hedera_libdir = $(pkglibdir)
|
||||
@ENABLE_INSTALL_FALSE@hedera_datadir = $(abs_top_srcdir)
|
||||
@ENABLE_INSTALL_TRUE@hedera_datadir = $(pkgdatadir)
|
||||
gvn_libdir = $(hedera_libdir)
|
||||
sql_libdir = $(hedera_libdir)
|
||||
vn_libdir = $(hedera_libdir)
|
||||
field_libdir = $(vn_libdir)
|
||||
column_libdir = $(vn_libdir)
|
||||
plugin_libdir = $(hedera_libdir)/plugin
|
||||
@ENABLE_INSTALL_FALSE@db_libdir = $(hedera_libdir)/db
|
||||
@ENABLE_INSTALL_TRUE@db_libdir = $(hedera_libdir)
|
||||
@ENABLE_INSTALL_FALSE@module_libdir = $(hedera_libdir)/module/src/.libs
|
||||
@ENABLE_INSTALL_TRUE@module_libdir = $(hedera_libdir)/module
|
||||
|
||||
# Binaries (programs)
|
||||
hedera_bindir = $(bindir)
|
||||
|
||||
# Headers and development files
|
||||
hedera_includedir = $(pkgincludedir)
|
||||
gvn_includedir = $(hedera_includedir)/gvn
|
||||
sql_includedir = $(hedera_includedir)/sql
|
||||
db_includedir = $(hedera_includedir)/db
|
||||
vn_includedir = $(hedera_includedir)/vn
|
||||
field_includedir = $(vn_includedir)/field
|
||||
column_includedir = $(vn_includedir)/column
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
@ENABLE_VALA_TRUE@girdir = $(datadir)/gir-1.0
|
||||
@ENABLE_VALA_TRUE@typelibdir = $(prefix)/lib/girepository-1.0
|
||||
@ENABLE_VALA_TRUE@vapidata = $(top_srcdir)/vapi
|
||||
@ENABLE_VALA_TRUE@vapis = $(top_builddir)/vapi
|
||||
@ENABLE_VALA_TRUE@vapidir = $(datadir)/vala-$(VALA_VERSION)/vapi
|
||||
gladevn_libdir = $(prefix)/lib/glade/modules
|
||||
gladevn_datadir = $(datadir)/glade/catalogs
|
||||
|
||||
# Data
|
||||
vn_datadir = $(hedera_datadir)/vn
|
||||
vn_imagedir = $(vn_datadir)/image
|
||||
vn_guidir = $(vn_datadir)/gui
|
||||
module_querydir = $(hedera_datadir)/module/sql
|
||||
@ENABLE_INSTALL_FALSE@vn_configdir = $(vn_datadir)/schema
|
||||
@ENABLE_INSTALL_TRUE@vn_configdir = $(vn_datadir)
|
||||
@ENABLE_INSTALL_FALSE@vn_xmldir = $(vn_datadir)/schema
|
||||
@ENABLE_INSTALL_TRUE@vn_xmldir = $(datadir)/xml/$(PACKAGE)
|
||||
@ENABLE_INSTALL_FALSE@module_datadir = $(hedera_datadir)/module/data
|
||||
@ENABLE_INSTALL_TRUE@module_datadir = $(hedera_datadir)/module
|
||||
desktopdir = $(datadir)/applications
|
||||
vapigen_v = $(vapigen_v_@AM_V@)
|
||||
vapigen_v_ = $(vapigen_v_@AM_DEFAULT_V@)
|
||||
vapigen_v_0 = @echo " VAPIGEN $(subst $(vapis)/,,$@)";
|
||||
exampledir = $(module_datadir)
|
||||
example_DATA = \
|
||||
example.xml \
|
||||
example-menu.xml \
|
||||
consulter.glade \
|
||||
shelfs.glade \
|
||||
consulter-menu.xml \
|
||||
customer.glade
|
||||
|
||||
EXTRA_DIST = $(example_DATA)
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.decl $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu module/data/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu module/data/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
$(top_srcdir)/Makefile.decl:
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
install-exampleDATA: $(example_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(example_DATA)'; test -n "$(exampledir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(exampledir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(exampledir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(exampledir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(exampledir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-exampleDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(example_DATA)'; test -n "$(exampledir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(exampledir)'; $(am__uninstall_files_from_dir)
|
||||
tags TAGS:
|
||||
|
||||
ctags CTAGS:
|
||||
|
||||
cscope cscopelist:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$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 $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(exampledir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
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:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-exampleDATA
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-exampleDATA
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
cscopelist-am ctags-am distclean distclean-generic \
|
||||
distclean-libtool distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exampleDATA install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
|
||||
uninstall-am uninstall-exampleDATA
|
||||
|
||||
|
||||
# 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:
|
|
@ -9,9 +9,9 @@
|
|||
<attribute name="accel">F12</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name="label" translatable="yes">Shelfs</attribute>
|
||||
<attribute name="label" translatable="yes">Shelves</attribute>
|
||||
<attribute name="action">win.open-form</attribute>
|
||||
<attribute name="target">shelfs</attribute>
|
||||
<attribute name="target">shelves</attribute>
|
||||
<attribute name="accel">F11</attribute>
|
||||
</item>
|
||||
<item>
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
</form>
|
||||
<form
|
||||
translatable="yes"
|
||||
name="shelfs"
|
||||
name="shelves"
|
||||
icon="system-run">
|
||||
Shelfs
|
||||
Shelves
|
||||
</form>
|
||||
<form
|
||||
translatable="yes"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.18.3 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.0"/>
|
||||
<requires lib="gtk+" version="3.12"/>
|
||||
<requires lib="vn" version="1.0"/>
|
||||
<object class="VnBatch" id="batch-items">
|
||||
<items>
|
||||
|
@ -12,16 +12,17 @@
|
|||
</object>
|
||||
<object class="VnSet" id="models">
|
||||
<child>
|
||||
<object class="VnModel" id="model-items">
|
||||
<property name="sql">CALL vn2008.ubicator_beta (#wh, #date, #filter);</property>
|
||||
<object class="VnModel" id="items">
|
||||
<property name="sql">CALL vn2008.ubicator_beta (#wh, #date, #filter)</property>
|
||||
<property name="batch">batch-items</property>
|
||||
<property name="autoload">False</property>
|
||||
<signal name="status-changed" handler="vn_shelves_on_items_changed" swapped="no"/>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<object class="VnIterator" id="items">
|
||||
<property name="model">model-items</property>
|
||||
<object class="VnIterator" id="iter-items">
|
||||
<property name="model">items</property>
|
||||
<property name="remember_selection">False</property>
|
||||
<signal name="status-changed" handler="vn_shelfs_on_items_ready" swapped="no"/>
|
||||
</object>
|
||||
<object class="GtkBox" id="main">
|
||||
<property name="visible">True</property>
|
||||
|
@ -149,6 +150,35 @@
|
|||
<property name="top_attach">3</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label-max-amount">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">1</property>
|
||||
<property name="label" translatable="yes">Max. amount:</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
<property name="top_attach">4</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="VnSpin" id="max-amount">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child internal-child="widget">
|
||||
<object class="GtkSpinButton" id="max-amount-child">
|
||||
<property name="can_focus">True</property>
|
||||
<property name="climb_rate">1</property>
|
||||
<property name="numeric">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="top_attach">4</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
|
@ -170,7 +200,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<signal name="clicked" handler="vn_shelfs_print_clicked" swapped="no"/>
|
||||
<signal name="clicked" handler="vn_shelves_print_clicked" swapped="no"/>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
|
@ -184,7 +214,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<signal name="clicked" handler="vn_shelfs_preview_clicked" swapped="no"/>
|
||||
<signal name="clicked" handler="vn_shelves_preview_clicked" swapped="no"/>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
|
@ -12,8 +12,8 @@ libexample_la_LIBADD = $(top_builddir)/vn/libvn.la
|
|||
libexample_la_SOURCES = \
|
||||
vn-consulter.h \
|
||||
vn-consulter.c \
|
||||
vn-shelfs.h \
|
||||
vn-shelfs.c \
|
||||
vn-shelves.h \
|
||||
vn-shelves.c \
|
||||
vn-customer.h \
|
||||
vn-customer.c
|
||||
|
||||
|
|
|
@ -0,0 +1,814 @@
|
|||
# Makefile.in generated by automake 1.14.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2013 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@
|
||||
|
||||
# Definition of the install directories
|
||||
|
||||
# Libraries
|
||||
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
DIST_COMMON = $(top_srcdir)/Makefile.decl $(srcdir)/Makefile.in \
|
||||
$(srcdir)/Makefile.am $(top_srcdir)/build/depcomp
|
||||
subdir = module/src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/build/m4/dev-tools.m4 \
|
||||
$(top_srcdir)/build/m4/gtk-doc.m4 \
|
||||
$(top_srcdir)/build/m4/intltool.m4 \
|
||||
$(top_srcdir)/build/m4/libtool.m4 \
|
||||
$(top_srcdir)/build/m4/ltoptions.m4 \
|
||||
$(top_srcdir)/build/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/build/m4/ltversion.m4 \
|
||||
$(top_srcdir)/build/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/build/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(example_libdir)" \
|
||||
"$(DESTDIR)$(example_querydir)"
|
||||
LTLIBRARIES = $(example_lib_LTLIBRARIES)
|
||||
libexample_la_DEPENDENCIES = $(top_builddir)/vn/libvn.la
|
||||
am_libexample_la_OBJECTS = vn-consulter.lo vn-shelves.lo \
|
||||
vn-customer.lo
|
||||
libexample_la_OBJECTS = $(am_libexample_la_OBJECTS)
|
||||
AM_V_lt = $(am__v_lt_@AM_V@)
|
||||
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
||||
am__v_lt_0 = --silent
|
||||
am__v_lt_1 =
|
||||
libexample_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(libexample_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/build
|
||||
depcomp = $(SHELL) $(top_srcdir)/build/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
am__mv = mv -f
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CFLAGS) $(CFLAGS)
|
||||
AM_V_CC = $(am__v_CC_@AM_V@)
|
||||
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
|
||||
am__v_CC_0 = @echo " CC " $@;
|
||||
am__v_CC_1 =
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
||||
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||
am__v_CCLD_1 =
|
||||
SOURCES = $(libexample_la_SOURCES)
|
||||
DIST_SOURCES = $(libexample_la_SOURCES)
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
DATA = $(example_query_DATA)
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ALL_LINGUAS = @ALL_LINGUAS@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CATALOGS = @CATALOGS@
|
||||
CATOBJEXT = @CATOBJEXT@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DATADIRNAME = @DATADIRNAME@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ENABLE_DEBUG = @ENABLE_DEBUG@
|
||||
ENABLE_INSTALL = @ENABLE_INSTALL@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
|
||||
GIR_SCANNER_ARGS = @GIR_SCANNER_ARGS@
|
||||
GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@
|
||||
GMOFILES = @GMOFILES@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GREP = @GREP@
|
||||
GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@
|
||||
GTKDOC_CHECK = @GTKDOC_CHECK@
|
||||
GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
|
||||
GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
|
||||
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
|
||||
GTKDOC_MKPDF = @GTKDOC_MKPDF@
|
||||
GTKDOC_REBASE = @GTKDOC_REBASE@
|
||||
HTML_DIR = @HTML_DIR@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INSTOBJEXT = @INSTOBJEXT@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
|
||||
INTLTOOL_MERGE = @INTLTOOL_MERGE@
|
||||
INTLTOOL_PERL = @INTLTOOL_PERL@
|
||||
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
|
||||
INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
|
||||
INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
|
||||
INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
|
||||
INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
|
||||
INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
|
||||
INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
|
||||
INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
|
||||
INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
|
||||
INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
|
||||
INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
|
||||
INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
|
||||
INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MKINSTALLDIRS = @MKINSTALLDIRS@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_OPTS = @MSGFMT_OPTS@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
|
||||
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
|
||||
POFILES = @POFILES@
|
||||
POSUB = @POSUB@
|
||||
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
|
||||
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
|
||||
RAGEL = @RAGEL@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
USE_NLS = @USE_NLS@
|
||||
VALAC = @VALAC@
|
||||
VALA_VERSION = @VALA_VERSION@
|
||||
VAPIGEN = @VAPIGEN@
|
||||
VERSION = @VERSION@
|
||||
VERSION_INFO = @VERSION_INFO@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
gdome_CFLAGS = @gdome_CFLAGS@
|
||||
gdome_LIBS = @gdome_LIBS@
|
||||
gladeui_CFLAGS = @gladeui_CFLAGS@
|
||||
gladeui_LIBS = @gladeui_LIBS@
|
||||
glib_CFLAGS = @glib_CFLAGS@
|
||||
glib_LIBS = @glib_LIBS@
|
||||
gsettingsschemadir = @gsettingsschemadir@
|
||||
gtk_CFLAGS = @gtk_CFLAGS@
|
||||
gtk_LIBS = @gtk_LIBS@
|
||||
gtksourceview_CFLAGS = @gtksourceview_CFLAGS@
|
||||
gtksourceview_LIBS = @gtksourceview_LIBS@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
intltool__v_merge_options_ = @intltool__v_merge_options_@
|
||||
intltool__v_merge_options_0 = @intltool__v_merge_options_0@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
sqlite_CFLAGS = @sqlite_CFLAGS@
|
||||
sqlite_LIBS = @sqlite_LIBS@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
uVERSION = @uVERSION@
|
||||
@ENABLE_INSTALL_FALSE@hedera_libdir = $(abs_top_builddir)
|
||||
@ENABLE_INSTALL_TRUE@hedera_libdir = $(pkglibdir)
|
||||
@ENABLE_INSTALL_FALSE@hedera_datadir = $(abs_top_srcdir)
|
||||
@ENABLE_INSTALL_TRUE@hedera_datadir = $(pkgdatadir)
|
||||
gvn_libdir = $(hedera_libdir)
|
||||
sql_libdir = $(hedera_libdir)
|
||||
vn_libdir = $(hedera_libdir)
|
||||
field_libdir = $(vn_libdir)
|
||||
column_libdir = $(vn_libdir)
|
||||
plugin_libdir = $(hedera_libdir)/plugin
|
||||
@ENABLE_INSTALL_FALSE@db_libdir = $(hedera_libdir)/db
|
||||
@ENABLE_INSTALL_TRUE@db_libdir = $(hedera_libdir)
|
||||
@ENABLE_INSTALL_FALSE@module_libdir = $(hedera_libdir)/module/src/.libs
|
||||
@ENABLE_INSTALL_TRUE@module_libdir = $(hedera_libdir)/module
|
||||
|
||||
# Binaries (programs)
|
||||
hedera_bindir = $(bindir)
|
||||
|
||||
# Headers and development files
|
||||
hedera_includedir = $(pkgincludedir)
|
||||
gvn_includedir = $(hedera_includedir)/gvn
|
||||
sql_includedir = $(hedera_includedir)/sql
|
||||
db_includedir = $(hedera_includedir)/db
|
||||
vn_includedir = $(hedera_includedir)/vn
|
||||
field_includedir = $(vn_includedir)/field
|
||||
column_includedir = $(vn_includedir)/column
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
@ENABLE_VALA_TRUE@girdir = $(datadir)/gir-1.0
|
||||
@ENABLE_VALA_TRUE@typelibdir = $(prefix)/lib/girepository-1.0
|
||||
@ENABLE_VALA_TRUE@vapidata = $(top_srcdir)/vapi
|
||||
@ENABLE_VALA_TRUE@vapis = $(top_builddir)/vapi
|
||||
@ENABLE_VALA_TRUE@vapidir = $(datadir)/vala-$(VALA_VERSION)/vapi
|
||||
gladevn_libdir = $(prefix)/lib/glade/modules
|
||||
gladevn_datadir = $(datadir)/glade/catalogs
|
||||
|
||||
# Data
|
||||
vn_datadir = $(hedera_datadir)/vn
|
||||
vn_imagedir = $(vn_datadir)/image
|
||||
vn_guidir = $(vn_datadir)/gui
|
||||
module_querydir = $(hedera_datadir)/module/sql
|
||||
@ENABLE_INSTALL_FALSE@vn_configdir = $(vn_datadir)/schema
|
||||
@ENABLE_INSTALL_TRUE@vn_configdir = $(vn_datadir)
|
||||
@ENABLE_INSTALL_FALSE@vn_xmldir = $(vn_datadir)/schema
|
||||
@ENABLE_INSTALL_TRUE@vn_xmldir = $(datadir)/xml/$(PACKAGE)
|
||||
@ENABLE_INSTALL_FALSE@module_datadir = $(hedera_datadir)/module/data
|
||||
@ENABLE_INSTALL_TRUE@module_datadir = $(hedera_datadir)/module
|
||||
desktopdir = $(datadir)/applications
|
||||
vapigen_v = $(vapigen_v_@AM_V@)
|
||||
vapigen_v_ = $(vapigen_v_@AM_DEFAULT_V@)
|
||||
vapigen_v_0 = @echo " VAPIGEN $(subst $(vapis)/,,$@)";
|
||||
example_libdir = $(module_libdir)
|
||||
example_lib_LTLIBRARIES = libexample.la
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir) \
|
||||
$(gtk_CFLAGS) \
|
||||
$(DEFINES)
|
||||
|
||||
libexample_la_LDFLAGS = -avoid-version
|
||||
libexample_la_LIBADD = $(top_builddir)/vn/libvn.la
|
||||
libexample_la_SOURCES = \
|
||||
vn-consulter.h \
|
||||
vn-consulter.c \
|
||||
vn-shelves.h \
|
||||
vn-shelves.c \
|
||||
vn-customer.h \
|
||||
vn-customer.c
|
||||
|
||||
example_querydir = $(module_querydir)/example
|
||||
example_query_DATA = ../sql/example/consulter.sql
|
||||
DEFINES = -D_QUERY_PATH=\"$(module_querydir)\"
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .lo .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.decl $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu module/src/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu module/src/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
$(top_srcdir)/Makefile.decl:
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
install-example_libLTLIBRARIES: $(example_lib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(example_lib_LTLIBRARIES)'; test -n "$(example_libdir)" || list=; \
|
||||
list2=; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
list2="$$list2 $$p"; \
|
||||
else :; fi; \
|
||||
done; \
|
||||
test -z "$$list2" || { \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(example_libdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(example_libdir)" || exit 1; \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(example_libdir)'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(example_libdir)"; \
|
||||
}
|
||||
|
||||
uninstall-example_libLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(example_lib_LTLIBRARIES)'; test -n "$(example_libdir)" || list=; \
|
||||
for p in $$list; do \
|
||||
$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(example_libdir)/$$f'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(example_libdir)/$$f"; \
|
||||
done
|
||||
|
||||
clean-example_libLTLIBRARIES:
|
||||
-test -z "$(example_lib_LTLIBRARIES)" || rm -f $(example_lib_LTLIBRARIES)
|
||||
@list='$(example_lib_LTLIBRARIES)'; \
|
||||
locs=`for p in $$list; do echo $$p; done | \
|
||||
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
|
||||
sort -u`; \
|
||||
test -z "$$locs" || { \
|
||||
echo rm -f $${locs}; \
|
||||
rm -f $${locs}; \
|
||||
}
|
||||
|
||||
libexample.la: $(libexample_la_OBJECTS) $(libexample_la_DEPENDENCIES) $(EXTRA_libexample_la_DEPENDENCIES)
|
||||
$(AM_V_CCLD)$(libexample_la_LINK) -rpath $(example_libdir) $(libexample_la_OBJECTS) $(libexample_la_LIBADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vn-consulter.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vn-customer.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vn-shelves.Plo@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
|
||||
|
||||
.c.obj:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.c.lo:
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
install-example_queryDATA: $(example_query_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(example_query_DATA)'; test -n "$(example_querydir)" || list=; \
|
||||
if test -n "$$list"; then \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(example_querydir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(example_querydir)" || exit 1; \
|
||||
fi; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(example_querydir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(example_querydir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-example_queryDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(example_query_DATA)'; test -n "$(example_querydir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
dir='$(DESTDIR)$(example_querydir)'; $(am__uninstall_files_from_dir)
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-am
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-am
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-am
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$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 $(LTLIBRARIES) $(DATA)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(example_libdir)" "$(DESTDIR)$(example_querydir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
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:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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
|
||||
|
||||
clean-am: clean-example_libLTLIBRARIES clean-generic clean-libtool \
|
||||
mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-example_libLTLIBRARIES \
|
||||
install-example_queryDATA
|
||||
@$(NORMAL_INSTALL)
|
||||
$(MAKE) $(AM_MAKEFLAGS) install-data-hook
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-example_libLTLIBRARIES \
|
||||
uninstall-example_queryDATA
|
||||
|
||||
.MAKE: install-am install-data-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
|
||||
clean-example_libLTLIBRARIES clean-generic clean-libtool \
|
||||
cscopelist-am ctags ctags-am distclean distclean-compile \
|
||||
distclean-generic distclean-libtool distclean-tags distdir dvi \
|
||||
dvi-am html html-am info info-am install install-am \
|
||||
install-data install-data-am install-data-hook install-dvi \
|
||||
install-dvi-am install-example_libLTLIBRARIES \
|
||||
install-example_queryDATA install-exec install-exec-am \
|
||||
install-html install-html-am install-info install-info-am \
|
||||
install-man install-pdf install-pdf-am install-ps \
|
||||
install-ps-am install-strip installcheck installcheck-am \
|
||||
installdirs maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
|
||||
uninstall-am uninstall-example_libLTLIBRARIES \
|
||||
uninstall-example_queryDATA
|
||||
|
||||
|
||||
install-data-hook:
|
||||
rm -f $(DESTDIR)$(module_libdir)/libexample.la
|
||||
rm -f $(DESTDIR)$(module_libdir)/libexample.a
|
||||
|
||||
# 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,163 +3,120 @@
|
|||
#include <gtk/gtk.h>
|
||||
|
||||
typedef struct _VnAllocator VnAllocator;
|
||||
typedef struct _Item Item;
|
||||
|
||||
typedef void (*VnAllocatorShelfFunc) (VnAllocator * self, gpointer user_data);
|
||||
typedef void (*VnAllocatorBoxFunc) (VnAllocator * self, gpointer user_data);
|
||||
typedef void (*VnAllocatorBoxFunc) (VnAllocator * self, gpointer user_data, Item * item, gint amount);
|
||||
|
||||
typedef struct
|
||||
struct _Item
|
||||
{
|
||||
int height;
|
||||
int width;
|
||||
int max_height;
|
||||
int tray_spacing;
|
||||
int first_tray_y;
|
||||
int tray_x;
|
||||
int vspace;
|
||||
int hspace;
|
||||
}
|
||||
Shelf;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char * name;
|
||||
int box_height;
|
||||
int box_width;
|
||||
int amount;
|
||||
}
|
||||
Item;
|
||||
gchar * name;
|
||||
gint box_height;
|
||||
gint box_width;
|
||||
gint amount;
|
||||
};
|
||||
|
||||
struct _VnAllocator
|
||||
{
|
||||
Shelf shelf;
|
||||
Item * items;
|
||||
int nboxes;
|
||||
int item;
|
||||
int amount;
|
||||
int current_shelf;
|
||||
int current_tray;
|
||||
int tray_height;
|
||||
int tray_width;
|
||||
int tray_y;
|
||||
int tray_x;
|
||||
int column_width;
|
||||
int ntrays;
|
||||
int first_shelf_box;
|
||||
int first_tray_box;
|
||||
|
||||
gint max_amount;
|
||||
VnAllocatorShelfFunc shelf_func;
|
||||
VnAllocatorBoxFunc box_func;
|
||||
gpointer user_data;
|
||||
|
||||
gint ntrays;
|
||||
gint tray_width;
|
||||
gint tray_height;
|
||||
gint top_tray_height;
|
||||
|
||||
gint first_shelf_box;
|
||||
gint current_shelf;
|
||||
gint current_tray;
|
||||
gint column_width;
|
||||
gint tray_x;
|
||||
gint tray_y;
|
||||
};
|
||||
|
||||
VnAllocator *
|
||||
vn_allocator_new (const Shelf shelf, Item * items,
|
||||
VnAllocatorShelfFunc shelf_func, VnAllocatorBoxFunc box_func, gpointer user_data)
|
||||
void
|
||||
vn_allocator_add_shelf (VnAllocator * self)
|
||||
{
|
||||
VnAllocator * self = g_new (VnAllocator, 1);
|
||||
self->shelf = shelf;
|
||||
self->items = items;
|
||||
self->nboxes = 0;
|
||||
self->item = 0;
|
||||
self->amount = 0;
|
||||
self->current_shelf = -1;
|
||||
self->current_tray = -1;
|
||||
self->column_width = 0;
|
||||
self->ntrays = ceil (
|
||||
(double) (self->shelf.height - self->shelf.first_tray_y) /
|
||||
(self->shelf.tray_spacing + self->shelf.tray_x)
|
||||
);
|
||||
|
||||
self->shelf_func = shelf_func;
|
||||
self->box_func = box_func;
|
||||
self->user_data = user_data;
|
||||
return self;
|
||||
}
|
||||
|
||||
gboolean
|
||||
vn_allocator_step (VnAllocator * self)
|
||||
{
|
||||
Shelf shelf = self->shelf;
|
||||
|
||||
// Adding a new shelf
|
||||
|
||||
self->current_shelf++;
|
||||
self->first_shelf_box = TRUE;
|
||||
|
||||
self->current_tray = self->ntrays - 1;
|
||||
self->tray_width = shelf.hspace / 2;
|
||||
self->tray_height = shelf.first_tray_y +
|
||||
(self->ntrays - 1) * shelf.tray_spacing + self->ntrays * shelf.tray_x;
|
||||
self->tray_x = 0;
|
||||
self->tray_y = 0;
|
||||
self->first_tray_box = TRUE;
|
||||
|
||||
if (self->shelf_func)
|
||||
self->shelf_func (self, self->user_data);
|
||||
|
||||
// Allocating boxes
|
||||
|
||||
for (; self->items[self->item].name; self->item++)
|
||||
{
|
||||
Item i = self->items[self->item];
|
||||
|
||||
for (; self->amount < i.amount; self->amount++)
|
||||
{
|
||||
if (self->first_shelf_box)
|
||||
{
|
||||
self->column_width = i.box_width;
|
||||
}
|
||||
else if ((self->current_tray < self->ntrays - 1
|
||||
&& self->tray_y + i.box_height > shelf.tray_spacing - shelf.vspace)
|
||||
|| self->tray_height + self->tray_y + i.box_height > shelf.max_height - shelf.vspace
|
||||
|| i.box_width > self->column_width)
|
||||
{
|
||||
if (self->tray_x + self->column_width + i.box_width > shelf.width - shelf.hspace)
|
||||
{
|
||||
if (self->current_tray > 0)
|
||||
{
|
||||
self->tray_height -= shelf.tray_spacing + shelf.tray_x;
|
||||
self->tray_x = 0;
|
||||
self->current_tray--;
|
||||
}
|
||||
else
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
self->tray_x += self->column_width;
|
||||
|
||||
self->tray_y = 0;
|
||||
self->first_tray_box = TRUE;
|
||||
self->column_width = i.box_width;
|
||||
}
|
||||
|
||||
if (self->box_func)
|
||||
self->box_func (self, self->user_data);
|
||||
|
||||
self->first_shelf_box = FALSE;
|
||||
self->first_tray_box = FALSE;
|
||||
self->tray_y += i.box_height;
|
||||
self->nboxes++;
|
||||
}
|
||||
|
||||
self->amount = 0;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
vn_allocator_add_tray (VnAllocator * self)
|
||||
{
|
||||
if (self->current_tray <= 0)
|
||||
{
|
||||
vn_allocator_add_shelf (self);
|
||||
self->current_tray = self->ntrays - 1;
|
||||
}
|
||||
else
|
||||
self->current_tray--;
|
||||
|
||||
self->tray_x = 0;
|
||||
}
|
||||
|
||||
void
|
||||
vn_allocator_add_column (VnAllocator * self, gint width)
|
||||
{
|
||||
if (self->tray_x + self->column_width + width > self->tray_width
|
||||
|| self->current_tray == -1)
|
||||
vn_allocator_add_tray (self);
|
||||
else
|
||||
self->tray_x += self->column_width;
|
||||
|
||||
self->tray_y = 0;
|
||||
self->column_width = width;
|
||||
}
|
||||
|
||||
void
|
||||
vn_allocator_add_box (VnAllocator * self, Item * i, gint amount)
|
||||
{
|
||||
gint tray_height = self->tray_height;
|
||||
|
||||
if (self->current_tray == self->ntrays - 1)
|
||||
tray_height = self->top_tray_height;
|
||||
|
||||
if (self->tray_y + i->box_height > tray_height
|
||||
|| i->box_width > self->column_width)
|
||||
vn_allocator_add_column (self, i->box_width);
|
||||
|
||||
if (self->box_func)
|
||||
self->box_func (self, self->user_data, i, amount);
|
||||
|
||||
self->tray_y += i->box_height;
|
||||
}
|
||||
|
||||
gint
|
||||
vn_allocator_run (VnAllocator * self)
|
||||
{
|
||||
gboolean more_items = TRUE;
|
||||
Item * i;
|
||||
gint amount;
|
||||
|
||||
while (more_items)
|
||||
more_items = vn_allocator_step (self);
|
||||
self->first_shelf_box = FALSE;
|
||||
self->current_shelf = -1;
|
||||
self->current_tray = -1;
|
||||
self->column_width = 0;
|
||||
self->tray_x = 0;
|
||||
self->tray_y = 0;
|
||||
|
||||
for (i = &self->items[0]; i->name; i++)
|
||||
for (amount = 0; amount < i->amount; amount++)
|
||||
{
|
||||
if (amount == 0
|
||||
&& self->max_amount > 0
|
||||
&& i->amount > self->max_amount)
|
||||
break;
|
||||
|
||||
vn_allocator_add_box (self, i, amount);
|
||||
|
||||
self->first_shelf_box = FALSE;
|
||||
}
|
||||
|
||||
return self->current_shelf + 1;
|
||||
}
|
||||
|
||||
void
|
||||
vn_allocator_free (VnAllocator * self)
|
||||
{
|
||||
g_free (self);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,427 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2012 - Juan Ferrer Toribio
|
||||
*
|
||||
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "vn-shelfs.h"
|
||||
|
||||
#include "vn-allocator.c"
|
||||
|
||||
#define $(self, id) (vn_form_get (VN_FORM (self), id))
|
||||
|
||||
G_DEFINE_TYPE (VnShelfs, vn_shelfs, VN_TYPE_FORM);
|
||||
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++ Private
|
||||
|
||||
#define LINE_WIDTH 10
|
||||
#define WIDGET_MARGIN 0
|
||||
#define PAGE_MARGIN 40
|
||||
#define HEADER_HEIGHT 80
|
||||
#define TITLE_SIZE 40
|
||||
#define BOX_TEXT_SIZE 35
|
||||
#define BOX_MARGIN 6
|
||||
|
||||
static GdkRGBA colors[] = {
|
||||
{0.96, 0.86, 0.86, 1} // Red
|
||||
,{0.86, 0.96, 0.86, 1} // Green
|
||||
,{0.86, 0.86, 0.96, 1} // Blue
|
||||
,{0.96, 0.96, 0.76, 1} // Yellow
|
||||
};
|
||||
|
||||
static Shelf shelf = {
|
||||
1700 // Height
|
||||
,1250 // Width
|
||||
,2000 // Max. height
|
||||
,620 // Tray spacing
|
||||
,150 // First tray height
|
||||
,15 // Tray X
|
||||
,50 // V. space
|
||||
,50 // H. space
|
||||
};
|
||||
|
||||
//-------------------------- Drawing methods
|
||||
|
||||
void vn_shelfs_draw_box (VnAllocator * allocator, VnShelfs * self)
|
||||
{
|
||||
cairo_t * cr = self->cr;
|
||||
Item i = allocator->items[allocator->item];
|
||||
|
||||
int x = self->shelf_x + allocator->tray_width + allocator->tray_x;
|
||||
int y = self->shelf_y - (allocator->tray_height + allocator->tray_y);
|
||||
|
||||
cairo_rectangle (cr, x, y, i.box_width, -i.box_height);
|
||||
|
||||
cairo_save (cr);
|
||||
gint n_color = allocator->item % G_N_ELEMENTS (colors);
|
||||
gdk_cairo_set_source_rgba (cr, &colors[n_color]);
|
||||
cairo_fill_preserve (cr);
|
||||
cairo_restore (cr);
|
||||
|
||||
cairo_stroke (cr);
|
||||
|
||||
if (allocator->amount == 0 || allocator->first_shelf_box)
|
||||
{
|
||||
PangoRectangle extents;
|
||||
|
||||
PangoFontDescription * font = pango_font_description_new ();
|
||||
pango_font_description_set_family (font, "Sans");
|
||||
pango_font_description_set_absolute_size (font, BOX_TEXT_SIZE * PANGO_SCALE);
|
||||
|
||||
PangoLayout * layout = pango_cairo_create_layout (cr);
|
||||
pango_layout_set_font_description (layout, font);
|
||||
pango_layout_set_width (layout, (i.box_width - BOX_MARGIN * 2) * PANGO_SCALE);
|
||||
pango_layout_set_height (layout, (i.box_height - BOX_MARGIN * 2) * PANGO_SCALE);
|
||||
pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_START);
|
||||
pango_layout_set_text (layout, i.name, -1);
|
||||
pango_layout_set_alignment (layout, PANGO_ALIGN_CENTER);
|
||||
pango_layout_get_extents (layout, NULL, &extents);
|
||||
|
||||
cairo_move_to (cr
|
||||
,x + BOX_MARGIN
|
||||
,y - BOX_MARGIN - i.box_height / 2 - (extents.height / PANGO_SCALE) / 2
|
||||
);
|
||||
pango_cairo_show_layout (cr, layout);
|
||||
|
||||
g_object_unref (layout);
|
||||
pango_font_description_free (font);
|
||||
}
|
||||
|
||||
cairo_stroke (cr);
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelfs_draw_shelf (VnAllocator * allocator, VnShelfs * self)
|
||||
{
|
||||
int y;
|
||||
cairo_t * cr = self->cr;
|
||||
|
||||
// Drawing page
|
||||
|
||||
int page_x = 0;
|
||||
int page_y = 0;
|
||||
|
||||
cairo_save (cr);
|
||||
cairo_scale (cr, self->scale / self->shelf_scale, self->scale / self->shelf_scale);
|
||||
/*
|
||||
page_x = width / self->scale / 2 - self->page_width / 2;
|
||||
page_y = (self->widget_margin + self->page_height) * current_shelf + self->widget_margin;
|
||||
|
||||
cairo_rectangle (cr, page_x, page_y, self->page_width, self->page_height);
|
||||
cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
|
||||
cairo_fill (cr);
|
||||
|
||||
cairo_rectangle (cr, page_x, page_y, self->page_width, self->page_height);
|
||||
cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
|
||||
cairo_set_line_width (cr, 0.1);
|
||||
*/
|
||||
// Drawing the title
|
||||
|
||||
cairo_text_extents_t extents;
|
||||
|
||||
const gchar * title = gvn_param_get_string ($(self, "title"));
|
||||
|
||||
cairo_set_font_size (cr, TITLE_SIZE);
|
||||
cairo_text_extents (cr, title, &extents);
|
||||
y = page_y + PAGE_MARGIN + extents.height;
|
||||
|
||||
cairo_move_to (cr, page_x + PAGE_MARGIN, y);
|
||||
cairo_show_text (cr, title);
|
||||
|
||||
char * shelf_number = g_strdup_printf ("%d", allocator->current_shelf + 1);
|
||||
cairo_text_extents (cr, shelf_number, &extents);
|
||||
cairo_move_to (cr, page_x + self->page_width - PAGE_MARGIN - extents.width, y);
|
||||
cairo_show_text (cr, shelf_number);
|
||||
g_free (shelf_number);
|
||||
|
||||
cairo_restore (cr);
|
||||
|
||||
// Calculating the shelf bottom left coordinates
|
||||
|
||||
Shelf shelf = allocator->shelf;
|
||||
|
||||
int shelf_x = page_x + self->page_width / 2;
|
||||
int shelf_y = page_y + PAGE_MARGIN + HEADER_HEIGHT +
|
||||
(self->page_height - PAGE_MARGIN * 2 - HEADER_HEIGHT) / 2;
|
||||
|
||||
shelf_x = shelf_x / self->shelf_scale * self->scale;
|
||||
shelf_y = shelf_y / self->shelf_scale * self->scale;
|
||||
|
||||
shelf_x -= shelf.width / 2;
|
||||
shelf_y += shelf.max_height / 2;
|
||||
|
||||
// Drawing the shelf
|
||||
|
||||
cairo_move_to (cr, shelf_x, shelf_y);
|
||||
cairo_line_to (cr, shelf_x, shelf_y - shelf.height);
|
||||
|
||||
cairo_move_to (cr, shelf_x + shelf.width, shelf_y);
|
||||
cairo_line_to (cr, shelf_x + shelf.width, shelf_y - shelf.height);
|
||||
|
||||
// Drawing trays
|
||||
|
||||
int last_tray_y = shelf.first_tray_y;
|
||||
|
||||
if (shelf.tray_spacing > 0)
|
||||
while (last_tray_y + shelf.tray_x < shelf.height)
|
||||
{
|
||||
y = shelf_y - last_tray_y;
|
||||
|
||||
cairo_move_to (cr, shelf_x, y);
|
||||
cairo_line_to (cr, shelf_x + shelf.width, y);
|
||||
|
||||
cairo_move_to (cr, shelf_x, y - shelf.tray_x);
|
||||
cairo_line_to (cr, shelf_x + shelf.width, y - shelf.tray_x);
|
||||
|
||||
last_tray_y += shelf.tray_spacing + shelf.tray_x;
|
||||
}
|
||||
|
||||
self->page_x = page_x;
|
||||
self->page_y = page_y;
|
||||
self->shelf_x = shelf_x;
|
||||
self->shelf_y = shelf_y;
|
||||
|
||||
cairo_stroke (cr);
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelfs_on_begin_print (GtkPrintOperation * op, GtkPrintContext * context, VnShelfs * self)
|
||||
{
|
||||
// XXX
|
||||
|
||||
gint i;
|
||||
DbIterator * iter = $(self, "items");
|
||||
gint nitems = db_iterator_get_nrows (iter);
|
||||
|
||||
if (!db_iterator_is_ready (iter) || nitems == 0)
|
||||
{
|
||||
gtk_print_operation_cancel (op);
|
||||
return;
|
||||
}
|
||||
|
||||
Item * items = g_new (Item, nitems + 1);
|
||||
db_iterator_move_iter (iter, NULL);
|
||||
|
||||
for (i = 0; db_iterator_move_next (iter); i++)
|
||||
{
|
||||
// int id = gvn_value_get_int (db_iterator_get_value (iter, "Id_Article"));
|
||||
const gchar * name = gvn_value_get_string (db_iterator_get_value (iter, "Article"));
|
||||
int size = gvn_value_get_int (db_iterator_get_value (iter, "Medida"));
|
||||
int width = (int) gvn_value_get_double (db_iterator_get_value (iter, "x"));
|
||||
int height = (int) gvn_value_get_double (db_iterator_get_value (iter, "z"));
|
||||
int amount = (int) gvn_value_get_double (db_iterator_get_value (iter, "etiquetas"));
|
||||
|
||||
items[i].name = g_strdup_printf ("%s x%d", name, size);
|
||||
items[i].box_width = width * 10;
|
||||
items[i].box_height = height * 10;
|
||||
items[i].amount = amount;
|
||||
}
|
||||
|
||||
items[nitems].name = NULL;
|
||||
|
||||
// End
|
||||
|
||||
VnAllocator * allocator = vn_allocator_new (shelf, items
|
||||
,(VnAllocatorShelfFunc) vn_shelfs_draw_shelf
|
||||
,(VnAllocatorBoxFunc) vn_shelfs_draw_box
|
||||
,self
|
||||
);
|
||||
|
||||
int width = gtk_print_context_get_width (context);
|
||||
int height = gtk_print_context_get_height (context);
|
||||
|
||||
self->page_width = gtk_print_context_get_width (context) /* 210 */;
|
||||
self->page_height = gtk_print_context_get_height (context) /* 297 */;
|
||||
|
||||
self->scale = 0.0;
|
||||
self->shelf_scale = 0.0;
|
||||
|
||||
// Calculating the page scale
|
||||
|
||||
{
|
||||
int w = width - WIDGET_MARGIN * 2;
|
||||
int h = height - WIDGET_MARGIN * 2;
|
||||
|
||||
if (h <= 0 || w <= 0)
|
||||
return;
|
||||
|
||||
self->scale = (double) h / self->page_height;
|
||||
|
||||
if (self->page_width * self->scale > w)
|
||||
self->scale = (double) w / self->page_width;
|
||||
|
||||
if (self->scale == 0.0)
|
||||
return;
|
||||
|
||||
self->widget_margin = WIDGET_MARGIN / self->scale;
|
||||
}
|
||||
|
||||
// Calculating the shelf scale
|
||||
|
||||
{
|
||||
int w = self->page_width - PAGE_MARGIN * 2 - HEADER_HEIGHT;
|
||||
int h = self->page_height - PAGE_MARGIN * 2;
|
||||
|
||||
if (h <= 0.0 || w <= 0.0)
|
||||
return;
|
||||
|
||||
self->shelf_scale = (double) h / allocator->shelf.max_height;
|
||||
|
||||
if (allocator->shelf.width * self->shelf_scale > w)
|
||||
self->shelf_scale = (double) w / allocator->shelf.width;
|
||||
|
||||
if (self->shelf_scale == 0.0)
|
||||
return;
|
||||
|
||||
self->shelf_scale = self->shelf_scale * self->scale;
|
||||
}
|
||||
|
||||
// Generating the pages
|
||||
|
||||
gboolean more_items = TRUE;
|
||||
self->pages = NULL;
|
||||
|
||||
while (more_items)
|
||||
{
|
||||
cairo_surface_t * surface = cairo_surface_create_similar (
|
||||
cairo_get_target (gtk_print_context_get_cairo_context (context)),
|
||||
CAIRO_CONTENT_COLOR_ALPHA,
|
||||
width,
|
||||
height
|
||||
);
|
||||
|
||||
cairo_t * cr = self->cr = cairo_create (surface);
|
||||
cairo_select_font_face (cr, "Sans"
|
||||
,CAIRO_FONT_SLANT_NORMAL
|
||||
,CAIRO_FONT_WEIGHT_NORMAL
|
||||
);
|
||||
/*
|
||||
GdkRGBA color;
|
||||
gtk_style_context_get_color (gtk_widget_get_style_context (GTK_WIDGET (self->window)), 0, &color);
|
||||
gdk_cairo_set_source_rgba (cr, &color);
|
||||
*/
|
||||
cairo_scale (cr, self->shelf_scale, self->shelf_scale);
|
||||
cairo_set_line_width (cr, LINE_WIDTH);
|
||||
|
||||
// Getting the number of pages
|
||||
|
||||
more_items = vn_allocator_step (allocator);
|
||||
self->pages = g_list_append (self->pages, surface);
|
||||
cairo_destroy (cr);
|
||||
}
|
||||
|
||||
gtk_print_operation_set_n_pages (op, allocator->current_shelf + 1);
|
||||
vn_allocator_free (allocator);
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelfs_on_end_print (GtkPrintOperation * op, GtkPrintContext * context, VnShelfs * self)
|
||||
{
|
||||
g_list_free_full (self->pages, (GDestroyNotify) cairo_surface_destroy);
|
||||
g_message ("Print operation ended!");
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelfs_on_draw_page (GtkPrintOperation * op, GtkPrintContext * context, gint page_num, VnShelfs * self)
|
||||
{
|
||||
cairo_t * cr = gtk_print_context_get_cairo_context (context);
|
||||
cairo_surface_t * surface = g_list_nth_data (self->pages, page_num);
|
||||
cairo_set_source_surface (cr, surface, 0, 0);
|
||||
cairo_paint (cr);
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelfs_print (VnShelfs * self, GtkPrintOperationAction action)
|
||||
{
|
||||
GtkPrintOperation * op = gtk_print_operation_new ();
|
||||
|
||||
if (self->print_settings)
|
||||
gtk_print_operation_set_print_settings (op, self->print_settings);
|
||||
|
||||
gtk_print_operation_set_job_name (op, _("Shelfs"));
|
||||
gtk_print_operation_set_embed_page_setup (op, TRUE);
|
||||
g_object_connect (op
|
||||
,"signal::begin-print", vn_shelfs_on_begin_print, self
|
||||
,"signal::end-print", vn_shelfs_on_end_print, self
|
||||
,"signal::draw-page", vn_shelfs_on_draw_page, self
|
||||
,NULL
|
||||
);
|
||||
|
||||
GError * err = NULL;
|
||||
GtkWindow * parent = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (self)));
|
||||
GtkPrintOperationResult result = gtk_print_operation_run (op, action, parent, &err);
|
||||
|
||||
if (result == GTK_PRINT_OPERATION_RESULT_APPLY)
|
||||
{
|
||||
self->print_settings = g_object_ref (gtk_print_operation_get_print_settings (op));
|
||||
}
|
||||
else if (result == GTK_PRINT_OPERATION_RESULT_ERROR && err)
|
||||
{
|
||||
g_warning (err->message);
|
||||
g_error_free (err);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelfs_preview_clicked (GtkButton * button, VnShelfs * self)
|
||||
{
|
||||
vn_shelfs_print (self, GTK_PRINT_OPERATION_ACTION_PREVIEW);
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelfs_print_clicked (GtkButton * button, VnShelfs * self)
|
||||
{
|
||||
vn_shelfs_print (self, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG);
|
||||
}
|
||||
|
||||
//-------------------------- Form
|
||||
|
||||
void vn_shelfs_on_items_ready (DbIterator * iter, gboolean ready, VnShelfs * self)
|
||||
{
|
||||
if (!ready)
|
||||
return;
|
||||
|
||||
g_message ("Ready!");
|
||||
}
|
||||
|
||||
static void vn_shelfs_open (VnShelfs * self, gpointer user_data)
|
||||
{
|
||||
self->print_settings = NULL;
|
||||
|
||||
gvn_param_set_string ($(self, "title"), "Anthuriums");
|
||||
gvn_param_set_string ($(self, "filter"), "a.Article LIKE \\'Ant %\\'");
|
||||
gvn_param_set_int ($(self, "wh"), 1);
|
||||
|
||||
GValue date = G_VALUE_INIT;
|
||||
g_value_init (&date, G_TYPE_DATE_TIME);
|
||||
g_value_take_boxed (&date, g_date_time_new_now_local ());
|
||||
gvn_param_set_value ($(self, "date"), &date);
|
||||
g_value_unset (&date);
|
||||
}
|
||||
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++ Class
|
||||
|
||||
static void vn_shelfs_init (VnShelfs * self) {}
|
||||
|
||||
static void vn_shelfs_finalize (VnShelfs * self)
|
||||
{
|
||||
g_clear_object (&self->print_settings);
|
||||
G_OBJECT_CLASS (vn_shelfs_parent_class)->finalize (G_OBJECT (self));
|
||||
}
|
||||
|
||||
static void vn_shelfs_class_init (VnShelfsClass * k)
|
||||
{
|
||||
G_OBJECT_CLASS (k)->finalize = (GObjectFinalizeFunc) vn_shelfs_finalize;
|
||||
VN_FORM_CLASS (k)->open = (VnFormOpenFunc) vn_shelfs_open;
|
||||
}
|
|
@ -0,0 +1,427 @@
|
|||
/*
|
||||
* Copyright (C) 2012 - Juan Ferrer Toribio
|
||||
*
|
||||
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "vn-shelves.h"
|
||||
#include "vn-allocator.c"
|
||||
|
||||
#define $(id) (vn_form_get (VN_FORM (self), id))
|
||||
|
||||
G_DEFINE_TYPE (VnShelves, vn_shelves, VN_TYPE_FORM);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
gint width;
|
||||
gint height;
|
||||
gint max_height;
|
||||
gint tray_height;
|
||||
gint first_tray_elevation;
|
||||
gint tray_density;
|
||||
gint vspace;
|
||||
gint hspace;
|
||||
}
|
||||
Shelf;
|
||||
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++ Private
|
||||
|
||||
#define LINE_WIDTH 10
|
||||
#define PAGE_MARGIN 40
|
||||
#define HEADER_HEIGHT 60
|
||||
#define TITLE_SIZE 40
|
||||
#define BOX_TEXT_SIZE 35
|
||||
#define BOX_MARGIN 6
|
||||
|
||||
static
|
||||
GdkRGBA colors[] = {
|
||||
{0.96, 0.86, 0.86, 1} // Red
|
||||
,{0.86, 0.96, 0.86, 1} // Green
|
||||
,{0.86, 0.86, 0.96, 1} // Blue
|
||||
,{0.96, 0.96, 0.76, 1} // Yellow
|
||||
};
|
||||
|
||||
static
|
||||
Shelf shelf = {
|
||||
1250 // Width
|
||||
,1700 // Height
|
||||
,2100 // Max. height
|
||||
,620 // Tray height
|
||||
,150 // First tray elevation
|
||||
,15 // Tray density
|
||||
,25 // V. space
|
||||
,25 // H. space
|
||||
};
|
||||
|
||||
//-------------------------- Drawing methods
|
||||
|
||||
void
|
||||
vn_shelves_draw_box (VnAllocator * allocator, VnShelves * self, Item * i, gint amount)
|
||||
{
|
||||
if (i->box_width == 0 || i->box_height == 0)
|
||||
return;
|
||||
|
||||
cairo_t * cr = self->cr;
|
||||
|
||||
gint x = self->shelf_x + allocator->tray_x + shelf.hspace;
|
||||
gint y = self->shelf_y - allocator->tray_y
|
||||
- shelf.first_tray_elevation - shelf.tray_density
|
||||
- allocator->current_tray * (shelf.tray_height + shelf.tray_density);
|
||||
|
||||
cairo_rectangle (cr, x, y, i->box_width, -i->box_height);
|
||||
|
||||
static gint n_item = -1;
|
||||
|
||||
if (amount == 0)
|
||||
n_item++;
|
||||
|
||||
cairo_save (cr);
|
||||
gint n_color = n_item % G_N_ELEMENTS (colors);
|
||||
gdk_cairo_set_source_rgba (cr, &colors[n_color]);
|
||||
cairo_fill_preserve (cr);
|
||||
cairo_restore (cr);
|
||||
|
||||
cairo_stroke (cr);
|
||||
|
||||
if (amount == 0 || allocator->first_shelf_box)
|
||||
{
|
||||
PangoRectangle extents;
|
||||
|
||||
PangoFontDescription * font = pango_font_description_new ();
|
||||
pango_font_description_set_family (font, "Sans");
|
||||
pango_font_description_set_absolute_size (font, BOX_TEXT_SIZE * PANGO_SCALE);
|
||||
|
||||
PangoLayout * layout = pango_cairo_create_layout (cr);
|
||||
pango_layout_set_font_description (layout, font);
|
||||
pango_layout_set_width (layout, (i->box_width - BOX_MARGIN * 2) * PANGO_SCALE);
|
||||
pango_layout_set_height (layout, (i->box_height - BOX_MARGIN * 2) * PANGO_SCALE);
|
||||
pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_START);
|
||||
pango_layout_set_text (layout, i->name, -1);
|
||||
pango_layout_set_alignment (layout, PANGO_ALIGN_CENTER);
|
||||
pango_layout_get_extents (layout, NULL, &extents);
|
||||
|
||||
cairo_move_to (cr
|
||||
,x + BOX_MARGIN
|
||||
,y - BOX_MARGIN - i->box_height / 2 - (extents.height / PANGO_SCALE) / 2
|
||||
);
|
||||
pango_cairo_show_layout (cr, layout);
|
||||
|
||||
g_object_unref (layout);
|
||||
pango_font_description_free (font);
|
||||
}
|
||||
|
||||
cairo_stroke (cr);
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelves_draw_shelf (VnAllocator * allocator, VnShelves * self)
|
||||
{
|
||||
gint y;
|
||||
|
||||
cairo_surface_t * surface = cairo_surface_create_similar (
|
||||
cairo_get_target (self->context_cr),
|
||||
CAIRO_CONTENT_COLOR_ALPHA,
|
||||
self->width,
|
||||
self->height
|
||||
);
|
||||
self->pages = g_list_append (self->pages, surface);
|
||||
|
||||
if (self->cr)
|
||||
cairo_destroy (self->cr);
|
||||
|
||||
cairo_t * cr = self->cr = cairo_create (surface);
|
||||
cairo_select_font_face (cr, "Sans"
|
||||
,CAIRO_FONT_SLANT_NORMAL
|
||||
,CAIRO_FONT_WEIGHT_NORMAL
|
||||
);
|
||||
|
||||
cairo_scale (cr, self->scale, self->scale);
|
||||
cairo_set_line_width (cr, LINE_WIDTH);
|
||||
|
||||
cairo_save (cr);
|
||||
cairo_scale (cr, 1 / self->scale, 1 / self->scale);
|
||||
|
||||
// Drawing the title
|
||||
|
||||
cairo_text_extents_t extents;
|
||||
|
||||
const gchar * title = gvn_param_get_string ($("title"));
|
||||
|
||||
cairo_set_font_size (cr, TITLE_SIZE);
|
||||
cairo_text_extents (cr, title, &extents);
|
||||
y = PAGE_MARGIN + extents.height;
|
||||
|
||||
cairo_move_to (cr, PAGE_MARGIN, y);
|
||||
cairo_show_text (cr, title);
|
||||
|
||||
char * shelf_number = g_strdup_printf ("%d", allocator->current_shelf + 1);
|
||||
cairo_text_extents (cr, shelf_number, &extents);
|
||||
cairo_move_to (cr, self->width - PAGE_MARGIN - extents.width, y);
|
||||
cairo_show_text (cr, shelf_number);
|
||||
g_free (shelf_number);
|
||||
|
||||
cairo_restore (cr);
|
||||
|
||||
// Calculating the shelf bottom left coordinates
|
||||
|
||||
gint shelf_x = (self->width / 2) / self->scale;
|
||||
gint shelf_y = (self->height - PAGE_MARGIN) / self->scale;
|
||||
|
||||
shelf_x -= shelf.width / 2;
|
||||
|
||||
self->shelf_x = shelf_x;
|
||||
self->shelf_y = shelf_y;
|
||||
|
||||
// Drawing the shelf
|
||||
|
||||
cairo_move_to (cr, shelf_x, shelf_y);
|
||||
cairo_rel_line_to (cr, 0, -shelf.height);
|
||||
|
||||
cairo_move_to (cr, shelf_x + shelf.width, shelf_y);
|
||||
cairo_rel_line_to (cr, 0, -shelf.height);
|
||||
|
||||
// Drawing trays
|
||||
|
||||
int last_tray_y = shelf.first_tray_elevation;
|
||||
|
||||
if (shelf.tray_height > 0)
|
||||
while (last_tray_y + shelf.tray_density < shelf.height)
|
||||
{
|
||||
y = shelf_y - last_tray_y;
|
||||
|
||||
cairo_move_to (cr, shelf_x, y);
|
||||
cairo_rel_line_to (cr, shelf.width, 0);
|
||||
|
||||
cairo_move_to (cr, shelf_x, y - shelf.tray_density);
|
||||
cairo_rel_line_to (cr, shelf.width, 0);
|
||||
|
||||
last_tray_y += shelf.tray_height + shelf.tray_density;
|
||||
}
|
||||
|
||||
cairo_stroke (cr);
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelves_on_begin_print (GtkPrintOperation * op, GtkPrintContext * context, VnShelves * self)
|
||||
{
|
||||
self->pages = NULL;
|
||||
self->context_cr = gtk_print_context_get_cairo_context (context);
|
||||
|
||||
// XXX
|
||||
|
||||
gint i;
|
||||
DbIterator * iter = $("iter-items");
|
||||
gint nitems = db_iterator_get_nrows (iter);
|
||||
|
||||
Item * items = g_new (Item, nitems + 1);
|
||||
items[nitems].name = NULL;
|
||||
|
||||
db_iterator_move_iter (iter, NULL);
|
||||
|
||||
for (i = 0; db_iterator_move_next (iter); i++)
|
||||
{
|
||||
const gchar * name = gvn_value_get_string (db_iterator_get_value (iter, "Article"));
|
||||
gint size = gvn_value_get_int (db_iterator_get_value (iter, "Medida"));
|
||||
gint width = gvn_value_get_double (db_iterator_get_value (iter, "x"));
|
||||
gint height = gvn_value_get_double (db_iterator_get_value (iter, "z"));
|
||||
gint amount = gvn_value_get_double (db_iterator_get_value (iter, "etiquetas"));
|
||||
|
||||
items[i].name = g_strdup_printf ("%s x%d", name, size);
|
||||
items[i].box_width = width * 10;
|
||||
items[i].box_height = height * 10;
|
||||
items[i].amount = amount;
|
||||
}
|
||||
|
||||
// Initializing
|
||||
|
||||
self->scale = 0.0;
|
||||
self->width = gtk_print_context_get_width (context) /* 210 */;
|
||||
self->height = gtk_print_context_get_height (context) /* 297 */;
|
||||
|
||||
// Calculating the shelf scale
|
||||
|
||||
{
|
||||
gint w = self->width - PAGE_MARGIN * 2;
|
||||
gint h = self->height - PAGE_MARGIN * 2 - HEADER_HEIGHT;
|
||||
|
||||
if (h < 0)
|
||||
h = 0;
|
||||
if (w < 0)
|
||||
w = 0;
|
||||
|
||||
self->scale = (gdouble) h / shelf.max_height;
|
||||
|
||||
if (shelf.width * self->scale > w)
|
||||
self->scale = (gdouble) w / shelf.width;
|
||||
|
||||
self->scale = self->scale;
|
||||
}
|
||||
|
||||
// Generating the pages
|
||||
|
||||
gint max_amount = gvn_param_get_double ($("max-amount"));
|
||||
|
||||
VnAllocator alloc;
|
||||
alloc.items = items;
|
||||
alloc.max_amount = max_amount;
|
||||
alloc.shelf_func = (VnAllocatorShelfFunc) vn_shelves_draw_shelf;
|
||||
alloc.box_func = (VnAllocatorBoxFunc) vn_shelves_draw_box;
|
||||
alloc.user_data = self;
|
||||
|
||||
alloc.ntrays = ceil (
|
||||
(gdouble) (shelf.height - shelf.first_tray_elevation) /
|
||||
(shelf.tray_height + shelf.tray_density)
|
||||
);
|
||||
alloc.tray_width = shelf.width - shelf.hspace * 2;
|
||||
alloc.tray_height = shelf.tray_height - shelf.vspace;
|
||||
alloc.top_tray_height = shelf.max_height - shelf.vspace
|
||||
- shelf.first_tray_elevation - (alloc.ntrays - 1) * shelf.tray_height;
|
||||
|
||||
gint npages = vn_allocator_run (&alloc);
|
||||
|
||||
gtk_print_operation_set_n_pages (op, npages);
|
||||
|
||||
// XXX
|
||||
|
||||
for (i = 0; i < nitems; i++)
|
||||
g_free (items[i].name);
|
||||
|
||||
g_free (items);
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelves_on_end_print (GtkPrintOperation * op, GtkPrintContext * context, VnShelves * self)
|
||||
{
|
||||
g_list_free_full (self->pages, (GDestroyNotify) cairo_surface_destroy);
|
||||
cairo_destroy (self->cr);
|
||||
self->cr = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelves_on_draw_page (GtkPrintOperation * op, GtkPrintContext * context, gint page_num, VnShelves * self)
|
||||
{
|
||||
cairo_t * cr = gtk_print_context_get_cairo_context (context);
|
||||
cairo_surface_t * surface = g_list_nth_data (self->pages, page_num);
|
||||
cairo_set_source_surface (cr, surface, 0, 0);
|
||||
cairo_paint (cr);
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelves_on_items_changed (DbModel * model, DbModelStatus status, VnShelves * self)
|
||||
{
|
||||
gtk_widget_set_sensitive ($("buttonbox"),
|
||||
status != DB_MODEL_STATUS_LOADING);
|
||||
|
||||
if (status != DB_MODEL_STATUS_READY || self->action == -1)
|
||||
return;
|
||||
|
||||
GtkWindow * parent = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (self)));
|
||||
|
||||
if (db_model_get_nrows (model) == 0)
|
||||
{
|
||||
GtkWidget * dialog = gtk_message_dialog_new (parent
|
||||
,GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT
|
||||
,GTK_MESSAGE_INFO
|
||||
,GTK_BUTTONS_OK
|
||||
,_("There are no items to allocate")
|
||||
);
|
||||
gtk_dialog_run (GTK_DIALOG (dialog));
|
||||
return;
|
||||
}
|
||||
|
||||
GtkPrintOperation * op = gtk_print_operation_new ();
|
||||
|
||||
if (self->print_settings)
|
||||
gtk_print_operation_set_print_settings (op, self->print_settings);
|
||||
|
||||
gtk_print_operation_set_job_name (op, _("Selves"));
|
||||
gtk_print_operation_set_embed_page_setup (op, TRUE);
|
||||
g_object_connect (op
|
||||
,"signal::begin-print", vn_shelves_on_begin_print, self
|
||||
,"signal::end-print", vn_shelves_on_end_print, self
|
||||
,"signal::draw-page", vn_shelves_on_draw_page, self
|
||||
,NULL
|
||||
);
|
||||
|
||||
GError * err = NULL;
|
||||
GtkPrintOperationResult result =
|
||||
gtk_print_operation_run (op, self->action, parent, &err);
|
||||
|
||||
if (result == GTK_PRINT_OPERATION_RESULT_APPLY)
|
||||
{
|
||||
self->print_settings =
|
||||
g_object_ref (gtk_print_operation_get_print_settings (op));
|
||||
}
|
||||
else if (result == GTK_PRINT_OPERATION_RESULT_ERROR && err)
|
||||
{
|
||||
g_warning (err->message);
|
||||
g_error_free (err);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelves_preview_clicked (GtkButton * button, VnShelves * self)
|
||||
{
|
||||
self->action = GTK_PRINT_OPERATION_ACTION_PREVIEW;
|
||||
db_model_refresh ($("items"));
|
||||
}
|
||||
|
||||
void
|
||||
vn_shelves_print_clicked (GtkButton * button, VnShelves * self)
|
||||
{
|
||||
self->action = GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG;
|
||||
db_model_refresh ($("items"));
|
||||
}
|
||||
|
||||
//-------------------------- Form
|
||||
|
||||
static void
|
||||
vn_shelves_open (VnShelves * self, gpointer user_data)
|
||||
{
|
||||
// XXX: Developer: Default field values
|
||||
|
||||
self->action = -1;
|
||||
|
||||
gvn_param_set_string ($("title"), "Anthuriums");
|
||||
gvn_param_set_string ($("filter"), "a.Article LIKE \\'Ant %\\'");
|
||||
gvn_param_set_int ($("wh"), 1);
|
||||
|
||||
GValue date = G_VALUE_INIT;
|
||||
g_value_init (&date, G_TYPE_DATE_TIME);
|
||||
g_value_take_boxed (&date, g_date_time_new_now_local ());
|
||||
gvn_param_set_value ($("date"), &date);
|
||||
g_value_unset (&date);
|
||||
}
|
||||
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++ Class
|
||||
|
||||
static void
|
||||
vn_shelves_init (VnShelves * self)
|
||||
{
|
||||
self->print_settings = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
vn_shelves_finalize (VnShelves * self)
|
||||
{
|
||||
g_clear_object (&self->print_settings);
|
||||
G_OBJECT_CLASS (vn_shelves_parent_class)->finalize (G_OBJECT (self));
|
||||
}
|
||||
|
||||
static void
|
||||
vn_shelves_class_init (VnShelvesClass * k)
|
||||
{
|
||||
G_OBJECT_CLASS (k)->finalize = (GObjectFinalizeFunc) vn_shelves_finalize;
|
||||
VN_FORM_CLASS (k)->open = (VnFormOpenFunc) vn_shelves_open;
|
||||
}
|
|
@ -15,44 +15,43 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef VN_SHELFS_H
|
||||
#define VN_SHELFS_H
|
||||
#ifndef VN_SHELVES_H
|
||||
#define VN_SHELVES_H
|
||||
|
||||
#include <vn/vn.h>
|
||||
|
||||
#define VN_TYPE_SHELFS (vn_shelfs_get_type ())
|
||||
#define VN_SHELFS(self) (G_TYPE_CHECK_INSTANCE_CAST (self, VN_TYPE_SHELFS, VnShelfs))
|
||||
#define VN_IS_ALLOCATOR(self) (G_TYPE_CHECK_INSTANCE_TYPE (self, VN_TYPE_SHELFS))
|
||||
#define VN_TYPE_SHELVES (vn_shelves_get_type ())
|
||||
#define VN_SHELVES(self) (G_TYPE_CHECK_INSTANCE_CAST (self, VN_TYPE_SHELVES, VnShelves))
|
||||
#define VN_IS_SHELVES(self) (G_TYPE_CHECK_INSTANCE_TYPE (self, VN_TYPE_SHELVES))
|
||||
|
||||
typedef struct _VnShelfs VnShelfs;
|
||||
typedef struct _VnShelfsClass VnShelfsClass;
|
||||
typedef struct _VnShelves VnShelves;
|
||||
typedef struct _VnShelvesClass VnShelvesClass;
|
||||
|
||||
struct _VnShelfs
|
||||
struct _VnShelves
|
||||
{
|
||||
VnForm parent;
|
||||
GtkPrintSettings * print_settings;
|
||||
GtkPrintOperationAction action;
|
||||
|
||||
// Cairo
|
||||
|
||||
cairo_t * context_cr;
|
||||
cairo_t * cr;
|
||||
GList * pages;
|
||||
int page_width;
|
||||
int page_height;
|
||||
int widget_margin;
|
||||
double scale;
|
||||
double shelf_scale;
|
||||
int page_x;
|
||||
int page_y;
|
||||
int shelf_x;
|
||||
int shelf_y;
|
||||
int draw_name;
|
||||
gint width;
|
||||
gint height;
|
||||
gdouble scale;
|
||||
gint page_x;
|
||||
gint page_y;
|
||||
gint shelf_x;
|
||||
gint shelf_y;
|
||||
};
|
||||
|
||||
struct _VnShelfsClass
|
||||
struct _VnShelvesClass
|
||||
{
|
||||
VnFormClass parent;
|
||||
};
|
||||
|
||||
GType vn_shelfs_get_type ();
|
||||
GType vn_shelves_get_type ();
|
||||
|
||||
#endif
|
Reference in New Issue