libgtkform >= 0.5.0
gio-2.0 >= 2.36
gtk+-3.0 >= 3.0
- libzakutils
- libzakformgtk])
+ libzakutils
+ libzakformgtk])
AC_SUBST(SOLIPA_CFLAGS)
AC_SUBST(SOLIPA_LIBS)
/*
- * Copyright (C) 2011-2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2011-2016 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#include <glib/gstdio.h>
+#include <libzakutils/libzakutils.h>
+
#include "utils.h"
#include "ooo.h"
"found.String = %s.replace(found.String, u\"%s\", u\"%s\")\n",
!priv->with_search ? "search = document.createSearchDescriptor()\n" : "",
_search,
- priv->ooo_version == NULL || solipa_compare_version (priv->ooo_version, "3.0.0", NULL, &part) > 0 ? "str" : "unicode",
+ priv->ooo_version == NULL || zak_utils_compare_version (priv->ooo_version, "3.0.0", NULL, &part) > 0 ? "str" : "unicode",
_search,
_replace);
priv->with_search = TRUE;
guint part;
if (priv->ooo_version == NULL
- || solipa_compare_version (priv->ooo_version, "3.0.0", NULL, &part) > 0)
+ || zak_utils_compare_version (priv->ooo_version, "3.0.0", NULL, &part) > 0)
{
dash = g_strdup ("-");
}
/*
- * Copyright (C) 2010-2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2016 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
if (G_VALUE_HOLDS_STRING (gval))
{
/* try conversion */
- ret = (gint)trunc ((gfloat)solipa_unformat_money (g_value_get_string (gval)));
+ ret = (gint)trunc ((gfloat)zak_utils_unformat_money (g_value_get_string (gval)));
}
else if (G_VALUE_HOLDS_INT (gval))
{
if (G_VALUE_HOLDS_STRING (gval))
{
/* try conversion */
- ret = solipa_unformat_money (g_value_get_string (gval));
+ ret = zak_utils_unformat_money (g_value_get_string (gval));
}
else
{
dt = solipa_gtk_tree_model_get_value_gdatetime (model, iter, column, format);
- ret = solipa_gdatetime_to_tm (dt);
+ ret = zak_utils_gdatetime_to_tm (dt);
return ret;
}
value = solipa_gtk_tree_model_get_value_string (model, iter, column);
- ret = solipa_get_gdatetime_from_string (value, format);
+ ret = zak_utils_get_gdatetime_from_string (value, format);
return ret;
}
/*
- * Copyright (C) 2010 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2016 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <libzakutils/libzakutils.h>
+
#include <solipa.h>
#include <utils.h>
g_random_int_range (1, 31),
g_random_int_range (1, 12),
g_random_int_range (1990, 2011)),
- 4, solipa_format_money ((row + 1) * g_random_double_range (1000, 100000), -1, FALSE),
+ 4, zak_utils_format_money ((row + 1) * g_random_double_range (1000, 100000), -1, FALSE),
-1);
}
/*
- * Copyright (C) 2014 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2014-2016 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <libzakutils/libzakutils.h>
+
#include <solipa.h>
#include <utils.h>
if (argc == 3)
{
- ret = solipa_compare_version (argv[1], argv[2], NULL, &part);
+ ret = zak_utils_compare_version (argv[1], argv[2], NULL, &part);
g_message ("%s รจ %s %s (%d)",
argv[1],
ret == -1 ? "minore di" : ret == 0 ? "uguale a" : "maggiore di",
/*
- * Copyright (C) 2010-2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2016 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <libzakutils/libzakutils.h>
+
#include <solipa.h>
#include <utils.h>
g_message ("VALUE %s DOUBLE %s", argv[1], g_strdup_printf (g_strdup_printf ("%%.%df", n_dec), g_strtod (argv[1], NULL)));
g_message ("DECIMALS %d", n_dec);
- str = solipa_format_money (g_strtod (argv[1], NULL), n_dec, FALSE);
+ str = zak_utils_format_money (g_strtod (argv[1], NULL), n_dec, FALSE);
g_message ("FORMAT %s", str);
- g_message ("UNFORMAT %f", solipa_unformat_money (str));
+ g_message ("UNFORMAT %f", zak_utils_unformat_money (str));
return 0;
}
/*
- * Copyright (C) 2011-2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2011-2016 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <libzakutils/libzakutils.h>
+
#include <solipa.h>
#include <utils.h>
if (argc == 3)
{
- gdatetime = solipa_get_gdatetime_from_string (argv[1], argv[2]);
+ gdatetime = zak_utils_get_gdatetime_from_string (argv[1], argv[2]);
}
else
{
}
g_message ("g_date_time_format %s", g_date_time_format (gdatetime, "%d/%m/%Y %H.%M.%S"));
- g_message ("solipa_gdatetime_to_sql %s", solipa_gdatetime_to_sql (gdatetime, "datetime"));
+ g_message ("solipa_gdatetime_to_sql %s", zak_utils_gdatetime_to_sql (gdatetime, "datetime"));
return 0;
}
/*
- * Copyright (C) 2012-2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2012-2016 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <libzakutils/libzakutils.h>
+
#include <solipa.h>
#include <utils.h>
if (argc == 2)
{
str = g_string_new (argv[1]);
- solipa_gstring_initial_capital (str);
+ zak_utils_gstring_initial_capital (str);
g_message ("%s", str->str);
g_string_free (str, TRUE);
}
/*
- * Copyright (C) 2010-2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2016 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <libzakutils/libzakutils.h>
+
#include <solipa.h>
#include <utils.h>
{
gtk_init (&argc, &argv);
- g_message ("%f", solipa_round (g_strtod (argv[1], NULL), 2));
+ g_message ("%f", zak_utils_round (g_strtod (argv[1], NULL), 2));
return 0;
}