Modificados VnGrid y DbIterator para mejorar el comportamiento de las inserciones
This commit is contained in:
parent
2d850f41c8
commit
e5e83eaa91
|
@ -1,8 +1,8 @@
|
||||||
# Definition of the install directories
|
# Definition of the install directories
|
||||||
# Libraries
|
# Libraries
|
||||||
if ENABLE_INSTALL
|
if ENABLE_INSTALL
|
||||||
hedera_libdir = $(libdir)/$(PACKAGE)
|
hedera_libdir = $(pkglibdir)
|
||||||
hedera_datadir = $(datadir)/$(PACKAGE)
|
hedera_datadir = $(pkgdatadir)
|
||||||
else
|
else
|
||||||
hedera_libdir = $(abs_top_builddir)
|
hedera_libdir = $(abs_top_builddir)
|
||||||
hedera_datadir = $(abs_top_srcdir)
|
hedera_datadir = $(abs_top_srcdir)
|
||||||
|
@ -30,7 +30,7 @@ pg_libdir = $(plugin_libdir)/pg
|
||||||
hedera_bindir = $(bindir)
|
hedera_bindir = $(bindir)
|
||||||
|
|
||||||
# Headers and development files
|
# Headers and development files
|
||||||
hedera_includedir = $(includedir)/$(PACKAGE)
|
hedera_includedir = $(pkgincludedir)
|
||||||
|
|
||||||
gvn_includedir = $(hedera_includedir)/gvn
|
gvn_includedir = $(hedera_includedir)/gvn
|
||||||
sql_includedir = $(hedera_includedir)/sql
|
sql_includedir = $(hedera_includedir)/sql
|
||||||
|
|
|
@ -24,7 +24,7 @@ Configuration list=1:Default:build%%%1:Debug:build%%%1:Uninstalled:build%%%1:Opt
|
||||||
Selected Configuration=Debug
|
Selected Configuration=Debug
|
||||||
BuildArgs/Default=
|
BuildArgs/Default=
|
||||||
BuildArgs/Debug=--enable-debug
|
BuildArgs/Debug=--enable-debug
|
||||||
BuildArgs/Uninstalled=UNINSTALLED_DIR=~/hedera --enable-uninstalled
|
BuildArgs/Uninstalled=UNINSTALLED_DIR=~/hedera
|
||||||
BuildArgs/Optimized=
|
BuildArgs/Optimized=
|
||||||
BuildArgs/Profiling=
|
BuildArgs/Profiling=
|
||||||
|
|
||||||
|
|
|
@ -64,20 +64,11 @@ AC_SUBST([[+NameCLower+]_datadir], ['$(datadir)/hedera/module'])
|
||||||
LT_INIT
|
LT_INIT
|
||||||
|
|
||||||
AC_ARG_VAR([UNINSTALLED_DIR], [the directory of the uninstalled hedera project])
|
AC_ARG_VAR([UNINSTALLED_DIR], [the directory of the uninstalled hedera project])
|
||||||
dnl This requires the user to specify the UNINSTALLED_DIR variable, with the
|
: ${UNINSTALLED_DIR=''}
|
||||||
dnl path to the directory of the unsinstalled hedera project.
|
|
||||||
AC_MSG_CHECKING([use uninstalled Hedera])
|
|
||||||
AC_ARG_ENABLE([uninstalled],
|
|
||||||
[AS_HELP_STRING([--enable-uninstalled],
|
|
||||||
[Enable the use of uninstalled Hedera located in the UNINSTALLED_DIR
|
|
||||||
directory, which must be defined [default = no]])],
|
|
||||||
[UNINSTALLED="$enableval"],
|
|
||||||
[UNINSTALLED=no])
|
|
||||||
AC_MSG_RESULT([$UNINSTALLED])
|
|
||||||
|
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
|
|
||||||
if test x"$UNINSTALLED" = x"yes"; then
|
if test $UNINSTALLED_DIR; then
|
||||||
PKG_CHECK_MODULES([+NameCUpper+], [gtk+-3.0])
|
PKG_CHECK_MODULES([+NameCUpper+], [gtk+-3.0])
|
||||||
[+NameCUpper+]_CFLAGS+=-I$UNINSTALLED_DIR
|
[+NameCUpper+]_CFLAGS+=-I$UNINSTALLED_DIR
|
||||||
[+NameCUpper+]_LIBS+=$UNINSTALLED_DIR/build/main/libhedera.la
|
[+NameCUpper+]_LIBS+=$UNINSTALLED_DIR/build/main/libhedera.la
|
||||||
|
|
|
@ -327,7 +327,7 @@ void db_iterator_set_mode (DbIterator * obj, DbIteratorMode mode)
|
||||||
/**
|
/**
|
||||||
* db_iterator_get_iter:
|
* db_iterator_get_iter:
|
||||||
* @obj: a #DbIterator
|
* @obj: a #DbIterator
|
||||||
* @iter: (allow-none): return location for selected row iter, or %NULL.
|
* @iter: (allow-none) (out): return location for selected row iter, or %NULL.
|
||||||
*
|
*
|
||||||
* Gets the currently selected iter.
|
* Gets the currently selected iter.
|
||||||
*
|
*
|
||||||
|
@ -361,7 +361,12 @@ void db_iterator_move_iter (DbIterator * obj, DbIter * iter)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (obj->mode != DB_ITERATOR_MODE_ON_DEMAND)
|
if (obj->mode != DB_ITERATOR_MODE_ON_DEMAND)
|
||||||
|
{
|
||||||
|
if (db_model_get_row_operations (obj->model, &obj->iter) == DB_MODEL_ROW_OP_INSERT)
|
||||||
|
db_model_reverse_operations (obj->model);
|
||||||
|
|
||||||
db_model_perform_operations (obj->model, FALSE);
|
db_model_perform_operations (obj->model, FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
db_iterator_set_iter (obj, iter);
|
db_iterator_set_iter (obj, iter);
|
||||||
}
|
}
|
||||||
|
@ -495,7 +500,12 @@ void db_iterator_insert (DbIterator * obj)
|
||||||
g_return_if_fail (obj->model);
|
g_return_if_fail (obj->model);
|
||||||
|
|
||||||
if (obj->mode != DB_ITERATOR_MODE_ON_DEMAND)
|
if (obj->mode != DB_ITERATOR_MODE_ON_DEMAND)
|
||||||
|
{
|
||||||
|
if (db_model_get_row_operations (obj->model, &obj->iter) == DB_MODEL_ROW_OP_INSERT)
|
||||||
|
return;
|
||||||
|
|
||||||
db_model_perform_operations (obj->model, FALSE);
|
db_model_perform_operations (obj->model, FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
if (db_model_insert (obj->model, &iter))
|
if (db_model_insert (obj->model, &iter))
|
||||||
db_iterator_set_iter (obj, &iter);
|
db_iterator_set_iter (obj, &iter);
|
||||||
|
|
|
@ -2996,7 +2996,7 @@ gint db_model_get_path (DbModel * obj, DbIter * iter)
|
||||||
/**
|
/**
|
||||||
* db_model_get_iter:
|
* db_model_get_iter:
|
||||||
* @obj: a #DbModel
|
* @obj: a #DbModel
|
||||||
* @iter: (out): an unitialized #DbIter
|
* @iter: (out): an uninitialized #DbIter
|
||||||
* @path: the number of the row being accessed
|
* @path: the number of the row being accessed
|
||||||
*
|
*
|
||||||
* Sets @iter pointing to the row of @obj specified by @path.
|
* Sets @iter pointing to the row of @obj specified by @path.
|
||||||
|
|
|
@ -121,7 +121,7 @@ DbModelStatus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DbModelMode:
|
* DbModelMode:
|
||||||
* @DB_MODEL_MODE_ON_CHANGE: every change made in the model will be inmediatelly
|
* @DB_MODEL_MODE_ON_CHANGE: every change made in the model will be immediatelly
|
||||||
* sent to the database
|
* sent to the database
|
||||||
* @DB_MODEL_MODE_ON_DEMAND: nothing will be sent to the database since demanded
|
* @DB_MODEL_MODE_ON_DEMAND: nothing will be sent to the database since demanded
|
||||||
* by calling db_model_perform_operations()
|
* by calling db_model_perform_operations()
|
||||||
|
|
|
@ -20,7 +20,7 @@ Description: Database access and widget provider library (core)
|
||||||
.
|
.
|
||||||
The library also has a modular system to add and remove the different widgets
|
The library also has a modular system to add and remove the different widgets
|
||||||
in run time. And includes Glade integration, to design the programs in an
|
in run time. And includes Glade integration, to design the programs in an
|
||||||
easiest, graphical way.
|
easy graphical way.
|
||||||
.
|
.
|
||||||
This package contains the core of the library. It also provides the plugins to
|
This package contains the core of the library. It also provides the plugins to
|
||||||
connect a PostgreSQL or MySQL database.
|
connect a PostgreSQL or MySQL database.
|
||||||
|
@ -37,7 +37,7 @@ Description: Database access and widget provider library (runtime)
|
||||||
.
|
.
|
||||||
The library also has a modular system to add and remove the different widgets
|
The library also has a modular system to add and remove the different widgets
|
||||||
in run time. And includes Glade integration, to design the programs in an
|
in run time. And includes Glade integration, to design the programs in an
|
||||||
easiest, graphical way.
|
easy graphical way.
|
||||||
.
|
.
|
||||||
This package contains the executable and data files.
|
This package contains the executable and data files.
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ Description: Database access and widget provider library (development)
|
||||||
.
|
.
|
||||||
The library also has a modular system to add and remove the different widgets
|
The library also has a modular system to add and remove the different widgets
|
||||||
in run time. And includes Glade integration, to design the programs in an
|
in run time. And includes Glade integration, to design the programs in an
|
||||||
easiest, graphical way.
|
easy graphical way.
|
||||||
.
|
.
|
||||||
This package contains development files to compile C and Vala programs that
|
This package contains development files to compile C and Vala programs that
|
||||||
use the hedera library. It also contains the documentation and introspection
|
use the hedera library. It also contains the documentation and introspection
|
||||||
|
@ -72,6 +72,6 @@ Description: Database access and widget provider library (debug)
|
||||||
.
|
.
|
||||||
The library also has a modular system to add and remove the different widgets
|
The library also has a modular system to add and remove the different widgets
|
||||||
in run time. And includes Glade integration, to design the programs in an
|
in run time. And includes Glade integration, to design the programs in an
|
||||||
easiest, graphical way.
|
easy graphical way.
|
||||||
.
|
.
|
||||||
This package contains the debugging symbols for hedera.
|
This package contains the debugging symbols for hedera.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<interface>
|
<interface>
|
||||||
<!-- interface-requires gtk+ 3.0 -->
|
|
||||||
<!-- interface-requires vn 0.0 -->
|
<!-- interface-requires vn 0.0 -->
|
||||||
|
<!-- interface-requires gtk+ 3.0 -->
|
||||||
<!-- interface-local-resource-path ../image -->
|
<!-- interface-local-resource-path ../image -->
|
||||||
<object class="GtkActionGroup" id="actions">
|
<object class="GtkActionGroup" id="actions">
|
||||||
<child>
|
<child>
|
||||||
|
@ -217,13 +217,14 @@
|
||||||
<object class="VnHandler" id="handler">
|
<object class="VnHandler" id="handler">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
<property name="layout_style">end</property>
|
<property name="layout_style">end</property>
|
||||||
<property name="show_flags">VN_HANDLER_SHOW_REFRESH | VN_HANDLER_SHOW_UNDO | VN_HANDLER_SHOW_SAVE | VN_HANDLER_SHOW_REMOVE | VN_HANDLER_SHOW_ADD</property>
|
<property name="show_flags">VN_HANDLER_SHOW_REFRESH | VN_HANDLER_SHOW_UNDO | VN_HANDLER_SHOW_SAVE | VN_HANDLER_SHOW_REMOVE | VN_HANDLER_SHOW_ADD | VN_HANDLER_SHOW_SCROLL</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">True</property>
|
<property name="expand">True</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="position">1</property>
|
<property name="position">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|
|
@ -201,8 +201,7 @@ static void vn_consulter_open (VnConsulter * obj)
|
||||||
,obj->file
|
,obj->file
|
||||||
,"/*pg*/ SELECT id1, id2, name, ok, date, number, floating, image "
|
,"/*pg*/ SELECT id1, id2, name, ok, date, number, floating, image "
|
||||||
"FROM prueben"
|
"FROM prueben"
|
||||||
,"/*pg*/ SELECT id1, id2, floating "
|
,"/*pg*/ SELECT id1, id2, floating FROM prueben LIMIT 1"
|
||||||
"FROM prueben"
|
|
||||||
,NULL
|
,NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
58
po/ca.po
58
po/ca.po
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: hedera 1.0\n"
|
"Project-Id-Version: hedera 1.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2013-12-31 13:28+0100\n"
|
"POT-Creation-Date: 2014-01-10 15:00+0100\n"
|
||||||
"PO-Revision-Date: 2013-06-04 13:38+0200\n"
|
"PO-Revision-Date: 2013-06-04 13:38+0200\n"
|
||||||
"Last-Translator: Alejandro T. Colombini Gómez <atcolombini@verdnatura.es>\n"
|
"Last-Translator: Alejandro T. Colombini Gómez <atcolombini@verdnatura.es>\n"
|
||||||
"Language-Team: Catalan\n"
|
"Language-Team: Catalan\n"
|
||||||
|
@ -132,7 +132,7 @@ msgstr ""
|
||||||
msgid "The master GvnParam of this parameter"
|
msgid "The master GvnParam of this parameter"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../gvn/gvn-param.c:457 ../db/db-iterator.c:987
|
#: ../gvn/gvn-param.c:457 ../db/db-iterator.c:997
|
||||||
msgid "Mode"
|
msgid "Mode"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -226,16 +226,16 @@ msgstr ""
|
||||||
msgid "Can't allocate the needed memory"
|
msgid "Can't allocate the needed memory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../db/db-iterator.c:988
|
#: ../db/db-iterator.c:998
|
||||||
msgid "The mode in which the iterator is working"
|
msgid "The mode in which the iterator is working"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../db/db-iterator.c:995
|
#: ../db/db-iterator.c:1005
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Remember selection"
|
msgid "Remember selection"
|
||||||
msgstr "Recordar"
|
msgstr "Recordar"
|
||||||
|
|
||||||
#: ../db/db-iterator.c:996
|
#: ../db/db-iterator.c:1006
|
||||||
msgid "Wether to rememeber the selection when model is refreshed"
|
msgid "Wether to rememeber the selection when model is refreshed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ msgstr ""
|
||||||
msgid "A column to apply the operations over it"
|
msgid "A column to apply the operations over it"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../db/db-param.c:251 ../vn/vn-grid.c:470 ../vn/vn-field.c:532
|
#: ../db/db-param.c:251 ../vn/vn-grid.c:483 ../vn/vn-field.c:532
|
||||||
msgid "Iterator"
|
msgid "Iterator"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -566,7 +566,7 @@ msgstr "Funció vn_model_set_sort_func no implementada"
|
||||||
msgid "Function vn_model_set_default_sort_func not implemented"
|
msgid "Function vn_model_set_default_sort_func not implemented"
|
||||||
msgstr "Funció vn_model_set_default_sort_func no implementada"
|
msgstr "Funció vn_model_set_default_sort_func no implementada"
|
||||||
|
|
||||||
#: ../vn/vn-grid.c:471
|
#: ../vn/vn-grid.c:484
|
||||||
msgid "The iterator used by VnGrid"
|
msgid "The iterator used by VnGrid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -705,28 +705,28 @@ msgid "Whether the field value can be of type GVN_TYPE_NULL"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-entry.c:153 ../vn/field/vn-spin.c:172
|
#: ../vn/field/vn-entry.c:153 ../vn/field/vn-spin.c:172
|
||||||
#: ../vn/column/vn-column-entry.c:119 ../vn/column/vn-column-spin.c:179
|
#: ../vn/column/vn-column-entry.c:119 ../vn/column/vn-column-spin.c:183
|
||||||
msgid "Digits"
|
msgid "Digits"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-entry.c:154 ../vn/field/vn-spin.c:173
|
#: ../vn/field/vn-entry.c:154 ../vn/field/vn-spin.c:173
|
||||||
#: ../vn/column/vn-column-entry.c:120 ../vn/column/vn-column-spin.c:180
|
#: ../vn/column/vn-column-entry.c:120 ../vn/column/vn-column-spin.c:184
|
||||||
msgid "The number of decimal places to display."
|
msgid "The number of decimal places to display."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:286 ../vn/column/vn-column-combo.c:361
|
#: ../vn/field/vn-combo.c:286 ../vn/column/vn-column-combo.c:329
|
||||||
msgid "Index column"
|
msgid "Index column"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:287 ../vn/column/vn-column-combo.c:362
|
#: ../vn/field/vn-combo.c:287 ../vn/column/vn-column-combo.c:330
|
||||||
msgid "The column index of the model"
|
msgid "The column index of the model"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:293 ../vn/column/vn-column-combo.c:368
|
#: ../vn/field/vn-combo.c:293 ../vn/column/vn-column-combo.c:336
|
||||||
msgid "Show column"
|
msgid "Show column"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:294 ../vn/column/vn-column-combo.c:369
|
#: ../vn/field/vn-combo.c:294 ../vn/column/vn-column-combo.c:337
|
||||||
msgid "The column of the model shown by combo"
|
msgid "The column of the model shown by combo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -805,54 +805,46 @@ msgstr ""
|
||||||
msgid "Order in which the tab selects the columns for edition"
|
msgid "Order in which the tab selects the columns for edition"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:171
|
#: ../vn/column/vn-column-spin.c:175
|
||||||
msgid "Climb rate"
|
msgid "Climb rate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:172
|
#: ../vn/column/vn-column-spin.c:176
|
||||||
msgid "The acceleration rate when you hold down a button."
|
msgid "The acceleration rate when you hold down a button."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:187
|
#: ../vn/column/vn-column-spin.c:191
|
||||||
msgid "Minimum value"
|
msgid "Minimum value"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:188
|
#: ../vn/column/vn-column-spin.c:192
|
||||||
msgid "The minimum value of the adjustment."
|
msgid "The minimum value of the adjustment."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:195
|
#: ../vn/column/vn-column-spin.c:199
|
||||||
msgid "Maximum value"
|
msgid "Maximum value"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:196
|
#: ../vn/column/vn-column-spin.c:200
|
||||||
msgid "The maximum value of the adjustment."
|
msgid "The maximum value of the adjustment."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:203
|
#: ../vn/column/vn-column-spin.c:207
|
||||||
msgid "Step Increment"
|
msgid "Step Increment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:204
|
#: ../vn/column/vn-column-spin.c:208
|
||||||
msgid "The step increment of the adjustment"
|
msgid "The step increment of the adjustment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:375
|
#: ../vn/column/vn-column-combo.c:343
|
||||||
msgid "Sort column"
|
msgid "Sort column"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:376
|
#: ../vn/column/vn-column-combo.c:344
|
||||||
msgid "The field number of the Grid model used to sort the column"
|
msgid "The field number of the Grid model used to sort the column"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:382
|
|
||||||
msgid "Filter field"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:383
|
|
||||||
msgid "Name of the field to be used as query filter by the model"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../vn/column/vn-column-image.c:502
|
#: ../vn/column/vn-column-image.c:502
|
||||||
msgid "Base path from the host where the images will be downloaded"
|
msgid "Base path from the host where the images will be downloaded"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -1121,10 +1113,10 @@ msgstr ""
|
||||||
msgid "Immediate changes"
|
msgid "Immediate changes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../module/src/vn-consulter.c:216
|
#: ../module/src/vn-consulter.c:215
|
||||||
msgid "Type or select a query"
|
msgid "Type or select a query"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../module/src/vn-consulter.c:218
|
#: ../module/src/vn-consulter.c:217
|
||||||
msgid "Message"
|
msgid "Message"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
64
po/es.po
64
po/es.po
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: hedera 1.0\n"
|
"Project-Id-Version: hedera 1.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2013-12-31 13:28+0100\n"
|
"POT-Creation-Date: 2014-01-10 15:00+0100\n"
|
||||||
"PO-Revision-Date: 2013-06-04 13:36+0200\n"
|
"PO-Revision-Date: 2013-06-04 13:36+0200\n"
|
||||||
"Last-Translator: Alejandro T. Colombini Gómez <atcolombini@verdnatura.es>\n"
|
"Last-Translator: Alejandro T. Colombini Gómez <atcolombini@verdnatura.es>\n"
|
||||||
"Language-Team: Spanish\n"
|
"Language-Team: Spanish\n"
|
||||||
|
@ -134,7 +134,7 @@ msgstr "Maestro"
|
||||||
msgid "The master GvnParam of this parameter"
|
msgid "The master GvnParam of this parameter"
|
||||||
msgstr "El GvnParam maestro de este parámetro"
|
msgstr "El GvnParam maestro de este parámetro"
|
||||||
|
|
||||||
#: ../gvn/gvn-param.c:457 ../db/db-iterator.c:987
|
#: ../gvn/gvn-param.c:457 ../db/db-iterator.c:997
|
||||||
msgid "Mode"
|
msgid "Mode"
|
||||||
msgstr "Modo"
|
msgstr "Modo"
|
||||||
|
|
||||||
|
@ -228,15 +228,15 @@ msgstr "Una cadena SQL arbitraria"
|
||||||
msgid "Can't allocate the needed memory"
|
msgid "Can't allocate the needed memory"
|
||||||
msgstr "No es posible asignar la memoria necesaria"
|
msgstr "No es posible asignar la memoria necesaria"
|
||||||
|
|
||||||
#: ../db/db-iterator.c:988
|
#: ../db/db-iterator.c:998
|
||||||
msgid "The mode in which the iterator is working"
|
msgid "The mode in which the iterator is working"
|
||||||
msgstr "El modo en el que está trabajando el Iterator"
|
msgstr "El modo en el que está trabajando el Iterator"
|
||||||
|
|
||||||
#: ../db/db-iterator.c:995
|
#: ../db/db-iterator.c:1005
|
||||||
msgid "Remember selection"
|
msgid "Remember selection"
|
||||||
msgstr "Recordar fila seleccionada"
|
msgstr "Recordar fila seleccionada"
|
||||||
|
|
||||||
#: ../db/db-iterator.c:996
|
#: ../db/db-iterator.c:1006
|
||||||
msgid "Wether to rememeber the selection when model is refreshed"
|
msgid "Wether to rememeber the selection when model is refreshed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Si se recordará o no la fila seleccionado cuando se refresque el modelo"
|
"Si se recordará o no la fila seleccionado cuando se refresque el modelo"
|
||||||
|
@ -350,7 +350,7 @@ msgstr "Columna"
|
||||||
msgid "A column to apply the operations over it"
|
msgid "A column to apply the operations over it"
|
||||||
msgstr "Una columna sobre la que se aplicarán las operaciones"
|
msgstr "Una columna sobre la que se aplicarán las operaciones"
|
||||||
|
|
||||||
#: ../db/db-param.c:251 ../vn/vn-grid.c:470 ../vn/vn-field.c:532
|
#: ../db/db-param.c:251 ../vn/vn-grid.c:483 ../vn/vn-field.c:532
|
||||||
msgid "Iterator"
|
msgid "Iterator"
|
||||||
msgstr "Iterator"
|
msgstr "Iterator"
|
||||||
|
|
||||||
|
@ -578,7 +578,7 @@ msgstr "Función vn_model_set_sort_func no implementada"
|
||||||
msgid "Function vn_model_set_default_sort_func not implemented"
|
msgid "Function vn_model_set_default_sort_func not implemented"
|
||||||
msgstr "Función vn_model_set_default_sort_func no implementada"
|
msgstr "Función vn_model_set_default_sort_func no implementada"
|
||||||
|
|
||||||
#: ../vn/vn-grid.c:471
|
#: ../vn/vn-grid.c:484
|
||||||
msgid "The iterator used by VnGrid"
|
msgid "The iterator used by VnGrid"
|
||||||
msgstr "El Iterator empleado por VnGrid"
|
msgstr "El Iterator empleado por VnGrid"
|
||||||
|
|
||||||
|
@ -717,28 +717,28 @@ msgid "Whether the field value can be of type GVN_TYPE_NULL"
|
||||||
msgstr "Si el campo puede ser del tipo GVN_TYPE_NULL"
|
msgstr "Si el campo puede ser del tipo GVN_TYPE_NULL"
|
||||||
|
|
||||||
#: ../vn/field/vn-entry.c:153 ../vn/field/vn-spin.c:172
|
#: ../vn/field/vn-entry.c:153 ../vn/field/vn-spin.c:172
|
||||||
#: ../vn/column/vn-column-entry.c:119 ../vn/column/vn-column-spin.c:179
|
#: ../vn/column/vn-column-entry.c:119 ../vn/column/vn-column-spin.c:183
|
||||||
msgid "Digits"
|
msgid "Digits"
|
||||||
msgstr "Dígitos"
|
msgstr "Dígitos"
|
||||||
|
|
||||||
#: ../vn/field/vn-entry.c:154 ../vn/field/vn-spin.c:173
|
#: ../vn/field/vn-entry.c:154 ../vn/field/vn-spin.c:173
|
||||||
#: ../vn/column/vn-column-entry.c:120 ../vn/column/vn-column-spin.c:180
|
#: ../vn/column/vn-column-entry.c:120 ../vn/column/vn-column-spin.c:184
|
||||||
msgid "The number of decimal places to display."
|
msgid "The number of decimal places to display."
|
||||||
msgstr "El número de posiciones decimales que se muestran"
|
msgstr "El número de posiciones decimales que se muestran"
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:286 ../vn/column/vn-column-combo.c:361
|
#: ../vn/field/vn-combo.c:286 ../vn/column/vn-column-combo.c:329
|
||||||
msgid "Index column"
|
msgid "Index column"
|
||||||
msgstr "Columna índice"
|
msgstr "Columna índice"
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:287 ../vn/column/vn-column-combo.c:362
|
#: ../vn/field/vn-combo.c:287 ../vn/column/vn-column-combo.c:330
|
||||||
msgid "The column index of the model"
|
msgid "The column index of the model"
|
||||||
msgstr "La columna índice del modelo"
|
msgstr "La columna índice del modelo"
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:293 ../vn/column/vn-column-combo.c:368
|
#: ../vn/field/vn-combo.c:293 ../vn/column/vn-column-combo.c:336
|
||||||
msgid "Show column"
|
msgid "Show column"
|
||||||
msgstr "Columna visible"
|
msgstr "Columna visible"
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:294 ../vn/column/vn-column-combo.c:369
|
#: ../vn/field/vn-combo.c:294 ../vn/column/vn-column-combo.c:337
|
||||||
msgid "The column of the model shown by combo"
|
msgid "The column of the model shown by combo"
|
||||||
msgstr "La columna del modelo que se mostrará en el combo"
|
msgstr "La columna del modelo que se mostrará en el combo"
|
||||||
|
|
||||||
|
@ -817,55 +817,47 @@ msgstr "Tab index"
|
||||||
msgid "Order in which the tab selects the columns for edition"
|
msgid "Order in which the tab selects the columns for edition"
|
||||||
msgstr "Orden en el cual el tabulador selecciona las columnas para editar"
|
msgstr "Orden en el cual el tabulador selecciona las columnas para editar"
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:171
|
#: ../vn/column/vn-column-spin.c:175
|
||||||
msgid "Climb rate"
|
msgid "Climb rate"
|
||||||
msgstr "Tasa de subida"
|
msgstr "Tasa de subida"
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:172
|
#: ../vn/column/vn-column-spin.c:176
|
||||||
msgid "The acceleration rate when you hold down a button."
|
msgid "The acceleration rate when you hold down a button."
|
||||||
msgstr "La tasa de aceleración cuando se mantiene apretado el botón."
|
msgstr "La tasa de aceleración cuando se mantiene apretado el botón."
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:187
|
#: ../vn/column/vn-column-spin.c:191
|
||||||
msgid "Minimum value"
|
msgid "Minimum value"
|
||||||
msgstr "Valor mínimo"
|
msgstr "Valor mínimo"
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:188
|
#: ../vn/column/vn-column-spin.c:192
|
||||||
msgid "The minimum value of the adjustment."
|
msgid "The minimum value of the adjustment."
|
||||||
msgstr "Valor mínimo del ajuste."
|
msgstr "Valor mínimo del ajuste."
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:195
|
#: ../vn/column/vn-column-spin.c:199
|
||||||
msgid "Maximum value"
|
msgid "Maximum value"
|
||||||
msgstr "Valor máximo"
|
msgstr "Valor máximo"
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:196
|
#: ../vn/column/vn-column-spin.c:200
|
||||||
msgid "The maximum value of the adjustment."
|
msgid "The maximum value of the adjustment."
|
||||||
msgstr "Valor máximo del ajuste"
|
msgstr "Valor máximo del ajuste"
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:203
|
#: ../vn/column/vn-column-spin.c:207
|
||||||
msgid "Step Increment"
|
msgid "Step Increment"
|
||||||
msgstr "Incremento del paso"
|
msgstr "Incremento del paso"
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:204
|
#: ../vn/column/vn-column-spin.c:208
|
||||||
msgid "The step increment of the adjustment"
|
msgid "The step increment of the adjustment"
|
||||||
msgstr "El incremento del paso del ajuste"
|
msgstr "El incremento del paso del ajuste"
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:375
|
#: ../vn/column/vn-column-combo.c:343
|
||||||
msgid "Sort column"
|
msgid "Sort column"
|
||||||
msgstr "Columna de ordenación"
|
msgstr "Columna de ordenación"
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:376
|
#: ../vn/column/vn-column-combo.c:344
|
||||||
msgid "The field number of the Grid model used to sort the column"
|
msgid "The field number of the Grid model used to sort the column"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"El número de campo del modelo del Grid que se usa para ordenar la columna"
|
"El número de campo del modelo del Grid que se usa para ordenar la columna"
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:382
|
|
||||||
msgid "Filter field"
|
|
||||||
msgstr "Campo de filtro"
|
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:383
|
|
||||||
msgid "Name of the field to be used as query filter by the model"
|
|
||||||
msgstr "Nombre del campo que se usará como filtro en la consulta del modelo"
|
|
||||||
|
|
||||||
#: ../vn/column/vn-column-image.c:502
|
#: ../vn/column/vn-column-image.c:502
|
||||||
msgid "Base path from the host where the images will be downloaded"
|
msgid "Base path from the host where the images will be downloaded"
|
||||||
msgstr "La ruta base del servidor desde donde se descargarán las imágenes."
|
msgstr "La ruta base del servidor desde donde se descargarán las imágenes."
|
||||||
|
@ -1156,10 +1148,16 @@ msgstr "Consulta:"
|
||||||
msgid "Immediate changes"
|
msgid "Immediate changes"
|
||||||
msgstr "Cambios inmediatos"
|
msgstr "Cambios inmediatos"
|
||||||
|
|
||||||
#: ../module/src/vn-consulter.c:216
|
#: ../module/src/vn-consulter.c:215
|
||||||
msgid "Type or select a query"
|
msgid "Type or select a query"
|
||||||
msgstr "Escribe o selecciona la consulta"
|
msgstr "Escribe o selecciona la consulta"
|
||||||
|
|
||||||
#: ../module/src/vn-consulter.c:218
|
#: ../module/src/vn-consulter.c:217
|
||||||
msgid "Message"
|
msgid "Message"
|
||||||
msgstr "Mensaje"
|
msgstr "Mensaje"
|
||||||
|
|
||||||
|
#~ msgid "Filter field"
|
||||||
|
#~ msgstr "Campo de filtro"
|
||||||
|
|
||||||
|
#~ msgid "Name of the field to be used as query filter by the model"
|
||||||
|
#~ msgstr "Nombre del campo que se usará como filtro en la consulta del modelo"
|
||||||
|
|
58
po/nl.po
58
po/nl.po
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: hedera 1.0\n"
|
"Project-Id-Version: hedera 1.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2013-12-31 13:28+0100\n"
|
"POT-Creation-Date: 2014-01-10 15:00+0100\n"
|
||||||
"PO-Revision-Date: 2012-10-09 11:38+0200\n"
|
"PO-Revision-Date: 2012-10-09 11:38+0200\n"
|
||||||
"Last-Translator: Alejandro T. Colombini Gómez <atcolombini@verdnatura.es>\n"
|
"Last-Translator: Alejandro T. Colombini Gómez <atcolombini@verdnatura.es>\n"
|
||||||
"Language-Team: Dutch\n"
|
"Language-Team: Dutch\n"
|
||||||
|
@ -134,7 +134,7 @@ msgstr ""
|
||||||
msgid "The master GvnParam of this parameter"
|
msgid "The master GvnParam of this parameter"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../gvn/gvn-param.c:457 ../db/db-iterator.c:987
|
#: ../gvn/gvn-param.c:457 ../db/db-iterator.c:997
|
||||||
msgid "Mode"
|
msgid "Mode"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -228,15 +228,15 @@ msgstr ""
|
||||||
msgid "Can't allocate the needed memory"
|
msgid "Can't allocate the needed memory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../db/db-iterator.c:988
|
#: ../db/db-iterator.c:998
|
||||||
msgid "The mode in which the iterator is working"
|
msgid "The mode in which the iterator is working"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../db/db-iterator.c:995
|
#: ../db/db-iterator.c:1005
|
||||||
msgid "Remember selection"
|
msgid "Remember selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../db/db-iterator.c:996
|
#: ../db/db-iterator.c:1006
|
||||||
msgid "Wether to rememeber the selection when model is refreshed"
|
msgid "Wether to rememeber the selection when model is refreshed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -343,7 +343,7 @@ msgstr ""
|
||||||
msgid "A column to apply the operations over it"
|
msgid "A column to apply the operations over it"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../db/db-param.c:251 ../vn/vn-grid.c:470 ../vn/vn-field.c:532
|
#: ../db/db-param.c:251 ../vn/vn-grid.c:483 ../vn/vn-field.c:532
|
||||||
msgid "Iterator"
|
msgid "Iterator"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -567,7 +567,7 @@ msgstr ""
|
||||||
msgid "Function vn_model_set_default_sort_func not implemented"
|
msgid "Function vn_model_set_default_sort_func not implemented"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/vn-grid.c:471
|
#: ../vn/vn-grid.c:484
|
||||||
msgid "The iterator used by VnGrid"
|
msgid "The iterator used by VnGrid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -706,28 +706,28 @@ msgid "Whether the field value can be of type GVN_TYPE_NULL"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-entry.c:153 ../vn/field/vn-spin.c:172
|
#: ../vn/field/vn-entry.c:153 ../vn/field/vn-spin.c:172
|
||||||
#: ../vn/column/vn-column-entry.c:119 ../vn/column/vn-column-spin.c:179
|
#: ../vn/column/vn-column-entry.c:119 ../vn/column/vn-column-spin.c:183
|
||||||
msgid "Digits"
|
msgid "Digits"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-entry.c:154 ../vn/field/vn-spin.c:173
|
#: ../vn/field/vn-entry.c:154 ../vn/field/vn-spin.c:173
|
||||||
#: ../vn/column/vn-column-entry.c:120 ../vn/column/vn-column-spin.c:180
|
#: ../vn/column/vn-column-entry.c:120 ../vn/column/vn-column-spin.c:184
|
||||||
msgid "The number of decimal places to display."
|
msgid "The number of decimal places to display."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:286 ../vn/column/vn-column-combo.c:361
|
#: ../vn/field/vn-combo.c:286 ../vn/column/vn-column-combo.c:329
|
||||||
msgid "Index column"
|
msgid "Index column"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:287 ../vn/column/vn-column-combo.c:362
|
#: ../vn/field/vn-combo.c:287 ../vn/column/vn-column-combo.c:330
|
||||||
msgid "The column index of the model"
|
msgid "The column index of the model"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:293 ../vn/column/vn-column-combo.c:368
|
#: ../vn/field/vn-combo.c:293 ../vn/column/vn-column-combo.c:336
|
||||||
msgid "Show column"
|
msgid "Show column"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/field/vn-combo.c:294 ../vn/column/vn-column-combo.c:369
|
#: ../vn/field/vn-combo.c:294 ../vn/column/vn-column-combo.c:337
|
||||||
msgid "The column of the model shown by combo"
|
msgid "The column of the model shown by combo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -806,54 +806,46 @@ msgstr ""
|
||||||
msgid "Order in which the tab selects the columns for edition"
|
msgid "Order in which the tab selects the columns for edition"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:171
|
#: ../vn/column/vn-column-spin.c:175
|
||||||
msgid "Climb rate"
|
msgid "Climb rate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:172
|
#: ../vn/column/vn-column-spin.c:176
|
||||||
msgid "The acceleration rate when you hold down a button."
|
msgid "The acceleration rate when you hold down a button."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:187
|
#: ../vn/column/vn-column-spin.c:191
|
||||||
msgid "Minimum value"
|
msgid "Minimum value"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:188
|
#: ../vn/column/vn-column-spin.c:192
|
||||||
msgid "The minimum value of the adjustment."
|
msgid "The minimum value of the adjustment."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:195
|
#: ../vn/column/vn-column-spin.c:199
|
||||||
msgid "Maximum value"
|
msgid "Maximum value"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:196
|
#: ../vn/column/vn-column-spin.c:200
|
||||||
msgid "The maximum value of the adjustment."
|
msgid "The maximum value of the adjustment."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:203
|
#: ../vn/column/vn-column-spin.c:207
|
||||||
msgid "Step Increment"
|
msgid "Step Increment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-spin.c:204
|
#: ../vn/column/vn-column-spin.c:208
|
||||||
msgid "The step increment of the adjustment"
|
msgid "The step increment of the adjustment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:375
|
#: ../vn/column/vn-column-combo.c:343
|
||||||
msgid "Sort column"
|
msgid "Sort column"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:376
|
#: ../vn/column/vn-column-combo.c:344
|
||||||
msgid "The field number of the Grid model used to sort the column"
|
msgid "The field number of the Grid model used to sort the column"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:382
|
|
||||||
msgid "Filter field"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../vn/column/vn-column-combo.c:383
|
|
||||||
msgid "Name of the field to be used as query filter by the model"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../vn/column/vn-column-image.c:502
|
#: ../vn/column/vn-column-image.c:502
|
||||||
msgid "Base path from the host where the images will be downloaded"
|
msgid "Base path from the host where the images will be downloaded"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -1121,10 +1113,10 @@ msgstr ""
|
||||||
msgid "Immediate changes"
|
msgid "Immediate changes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../module/src/vn-consulter.c:216
|
#: ../module/src/vn-consulter.c:215
|
||||||
msgid "Type or select a query"
|
msgid "Type or select a query"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../module/src/vn-consulter.c:218
|
#: ../module/src/vn-consulter.c:217
|
||||||
msgid "Message"
|
msgid "Message"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "vn-column-spin.h"
|
#include "vn-column-spin.h"
|
||||||
|
#include "../vn-model.h"
|
||||||
|
|
||||||
G_DEFINE_TYPE (VnColumnSpin, vn_column_spin, VN_TYPE_COLUMN);
|
G_DEFINE_TYPE (VnColumnSpin, vn_column_spin, VN_TYPE_COLUMN);
|
||||||
|
|
||||||
|
@ -23,6 +24,10 @@ static void vn_column_spin_on_edited (GtkCellRendererSpin * cell,
|
||||||
const gchar * path, gchar * text, VnColumnSpin * obj)
|
const gchar * path, gchar * text, VnColumnSpin * obj)
|
||||||
{
|
{
|
||||||
GValue value = {0};
|
GValue value = {0};
|
||||||
|
DbModelStatus status = db_model_get_status (vn_column_get_model (VN_COLUMN (obj)));
|
||||||
|
|
||||||
|
if (status != DB_MODEL_STATUS_READY)
|
||||||
|
return;
|
||||||
|
|
||||||
if (g_strcmp0 (text, ""))
|
if (g_strcmp0 (text, ""))
|
||||||
{
|
{
|
||||||
|
@ -53,16 +58,58 @@ static void vn_column_spin_on_edited (GtkCellRendererSpin * cell,
|
||||||
g_value_unset (&value);
|
g_value_unset (&value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void vn_column_spin_on_editing_started (GtkCellRenderer * renderer,
|
||||||
|
GtkEntry * entry, gchar * path, GtkTreeViewColumn * obj)
|
||||||
|
{
|
||||||
|
GtkTreeIter iter;
|
||||||
|
GtkTreeModel * model;
|
||||||
|
GtkTreeView * tree;
|
||||||
|
|
||||||
|
if (!GTK_IS_SPIN_BUTTON (entry))
|
||||||
|
return;
|
||||||
|
|
||||||
|
tree = GTK_TREE_VIEW (gtk_tree_view_column_get_tree_view (obj));
|
||||||
|
model = gtk_tree_view_get_model (tree);
|
||||||
|
|
||||||
|
if (gtk_tree_model_get_iter_from_string (model, &iter, path))
|
||||||
|
{
|
||||||
|
gint i = 0;
|
||||||
|
GList * columns, * n;
|
||||||
|
GValue value;
|
||||||
|
VnColumn * column = VN_COLUMN (obj);
|
||||||
|
|
||||||
|
columns = gtk_tree_view_get_columns (tree);
|
||||||
|
|
||||||
|
for (n = columns; n; n = n->next, i++)
|
||||||
|
if (n->data == column)
|
||||||
|
break;
|
||||||
|
|
||||||
|
gtk_tree_model_get_value (model, &iter, i, &value);
|
||||||
|
g_list_free (columns);
|
||||||
|
|
||||||
|
if (gvn_value_is_null (&value))
|
||||||
|
gtk_entry_set_text (entry, "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void vn_column_spin_set_editable (VnColumn * obj, gboolean editable)
|
static void vn_column_spin_set_editable (VnColumn * obj, gboolean editable)
|
||||||
{
|
{
|
||||||
g_object_set (obj->cell, "editable", editable, NULL);
|
|
||||||
|
|
||||||
if (editable)
|
if (editable)
|
||||||
|
{
|
||||||
|
g_signal_connect (obj->cell, "editing-started",
|
||||||
|
G_CALLBACK (vn_column_spin_on_editing_started), obj);
|
||||||
g_signal_connect (obj->cell, "edited",
|
g_signal_connect (obj->cell, "edited",
|
||||||
G_CALLBACK (vn_column_spin_on_edited), obj);
|
G_CALLBACK (vn_column_spin_on_edited), obj);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
g_signal_handlers_disconnect_by_func (obj->cell,
|
||||||
|
vn_column_spin_on_editing_started, obj);
|
||||||
g_signal_handlers_disconnect_by_func (obj->cell,
|
g_signal_handlers_disconnect_by_func (obj->cell,
|
||||||
vn_column_spin_on_edited, obj);
|
vn_column_spin_on_edited, obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
g_object_set (obj->cell, "editable", editable, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vn_column_spin_set_value (VnColumnSpin * obj, GtkTreeModel * model,
|
static void vn_column_spin_set_value (VnColumnSpin * obj, GtkTreeModel * model,
|
||||||
|
|
|
@ -227,7 +227,7 @@ static void vn_date_chooser_on_toggled (GtkToggleButton * button, VnDateChooser
|
||||||
gtk_window_move (GTK_WINDOW (obj->popup), x, y);
|
gtk_window_move (GTK_WINDOW (obj->popup), x, y);
|
||||||
gtk_widget_show_all (obj->popup);
|
gtk_widget_show_all (obj->popup);
|
||||||
|
|
||||||
// Graving the focus on the popup window
|
// Grabbing the focus on the popup window
|
||||||
|
|
||||||
obj->device = gtk_get_current_event_device ();
|
obj->device = gtk_get_current_event_device ();
|
||||||
|
|
||||||
|
|
25
vn/vn-grid.c
25
vn/vn-grid.c
|
@ -201,6 +201,13 @@ static gboolean vn_grid_on_cursor_key_pressed (GtkTreeView * obj,
|
||||||
if (inverted)
|
if (inverted)
|
||||||
leave = !gtk_tree_path_prev (path);
|
leave = !gtk_tree_path_prev (path);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
DbIter iter;
|
||||||
|
|
||||||
|
if (db_model_get_iter (VN_GRID (obj)->model, &iter, gtk_tree_path_get_indices (path)[0])
|
||||||
|
&& db_model_get_row_operations (VN_GRID (obj)->model, &iter) == DB_MODEL_ROW_OP_INSERT)
|
||||||
|
leave = TRUE;
|
||||||
|
else
|
||||||
{
|
{
|
||||||
gtk_tree_path_next (path);
|
gtk_tree_path_next (path);
|
||||||
|
|
||||||
|
@ -214,6 +221,7 @@ static gboolean vn_grid_on_cursor_key_pressed (GtkTreeView * obj,
|
||||||
leave = TRUE;
|
leave = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (leave)
|
if (leave)
|
||||||
{
|
{
|
||||||
|
@ -229,6 +237,17 @@ static gboolean vn_grid_on_cursor_key_pressed (GtkTreeView * obj,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean vn_grid_on_escape_pressed (VnGrid * obj,
|
||||||
|
GdkEventKey * event, gpointer data)
|
||||||
|
{
|
||||||
|
if (event->type == GDK_KEY_PRESS
|
||||||
|
&& event->keyval == GDK_KEY_Escape
|
||||||
|
&& db_iterator_get_mode (obj->iterator) != DB_ITERATOR_MODE_ON_DEMAND)
|
||||||
|
db_iterator_reverse_operations (obj->iterator);
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++ Public
|
//+++++++++++++++++++++++++++++++++++++++++++++++++++ Public
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -279,10 +298,11 @@ void vn_grid_set_iterator (VnGrid * obj, DbIterator * iterator)
|
||||||
,"signal::status-changed", vn_grid_on_status_changed, obj
|
,"signal::status-changed", vn_grid_on_status_changed, obj
|
||||||
,NULL
|
,NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
vn_grid_on_status_changed (iterator,
|
vn_grid_on_status_changed (iterator,
|
||||||
db_iterator_is_ready (iterator), obj);
|
db_iterator_is_ready (iterator), obj);
|
||||||
|
|
||||||
g_signal_connect (obj, "cursor-changed",
|
g_signal_connect_after (obj, "cursor-changed",
|
||||||
G_CALLBACK (vn_grid_on_cursor_changed), iterator);
|
G_CALLBACK (vn_grid_on_cursor_changed), iterator);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -446,9 +466,10 @@ static void vn_grid_init (VnGrid * obj)
|
||||||
|
|
||||||
g_signal_connect (obj, "notify::model",
|
g_signal_connect (obj, "notify::model",
|
||||||
G_CALLBACK (vn_grid_on_model_changed), NULL);
|
G_CALLBACK (vn_grid_on_model_changed), NULL);
|
||||||
|
|
||||||
g_signal_connect (obj, "key-press-event",
|
g_signal_connect (obj, "key-press-event",
|
||||||
G_CALLBACK (vn_grid_on_cursor_key_pressed), NULL);
|
G_CALLBACK (vn_grid_on_cursor_key_pressed), NULL);
|
||||||
|
g_signal_connect (obj, "key-press-event",
|
||||||
|
G_CALLBACK (vn_grid_on_escape_pressed), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vn_grid_finalize (VnGrid * obj)
|
static void vn_grid_finalize (VnGrid * obj)
|
||||||
|
|
Reference in New Issue