From f1c5b4e0a932354f418b7ac1a7e503af3a6843e5 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Sun, 13 Jan 2019 19:53:13 -0300 Subject: [PATCH] a lot of changes --- data/ui/main.window.ui | 51 ++- data/ui/meson.build | 6 + data/ui/query.1.ui | 59 +++ data/ui/query.gresource.xml | 20 + data/ui/query.window.ui | 243 ++++++++++++ data/ui/tour.editor.ui | 333 ++++++++++++++++ data/ui/tour.gresource.xml | 3 +- data/ui/{tour.window.ui => tour.list.ui} | 123 +++--- lib/db.vala | 71 ++++ lib/db/ciudad.vala | 47 +++ lib/db/regiones_sin_descuento.vala | 82 ++++ lib/db/tour.vala | 29 +- lib/dbwrapper.vala | 9 +- lib/meson.build | 5 +- lib/{rut.vala => misc.vala} | 56 ++- lib/queries.vala | 51 +++ po/POTFILES | 13 +- po/es.po | 360 +++++++++-------- po/sernatur.pot | 142 +++++-- src/main_window.vala | 77 ++-- src/meson.build | 7 +- src/queries.vala | 44 +++ src/query_window.vala | 131 +++++++ src/sernatur.vala | 1 + src/tour_editor.vala | 306 +++++++++++++++ src/tour_list.vala | 475 +++++++++++++++++++++++ src/tour_window.vala | 139 ------- 27 files changed, 2432 insertions(+), 451 deletions(-) create mode 100644 data/ui/query.1.ui create mode 100644 data/ui/query.gresource.xml create mode 100644 data/ui/query.window.ui create mode 100644 data/ui/tour.editor.ui rename data/ui/{tour.window.ui => tour.list.ui} (69%) create mode 100644 lib/db.vala create mode 100644 lib/db/regiones_sin_descuento.vala rename lib/{rut.vala => misc.vala} (81%) create mode 100644 lib/queries.vala create mode 100644 src/queries.vala create mode 100644 src/query_window.vala create mode 100644 src/tour_editor.vala create mode 100644 src/tour_list.vala delete mode 100644 src/tour_window.vala diff --git a/data/ui/main.window.ui b/data/ui/main.window.ui index ca5b415..ea9320e 100644 --- a/data/ui/main.window.ui +++ b/data/ui/main.window.ui @@ -21,9 +21,9 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND SERNATUR center sernatur - - - + + + @@ -48,41 +48,52 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND True False - + True False Tours - + - + + True + False + Places + + + + True False Staff + - + True False Tourists + True False - + True False Illnesses + - + True False Participate + @@ -90,10 +101,11 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - + True False Vehicles + @@ -103,11 +115,11 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - + True False Quit - + @@ -125,38 +137,43 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND True False - + True False (Q1) Regions with discounts + - + True False (Q2) Tour values + - + True False (Q3) Coordinator total + - + True False (Q4) Tourist total + - + True False (Q5) Vehicle total + diff --git a/data/ui/meson.build b/data/ui/meson.build index 60b72d6..0759598 100644 --- a/data/ui/meson.build +++ b/data/ui/meson.build @@ -11,3 +11,9 @@ tour_gresource = gnome.compile_resources('tour_gresource', c_name: meson.project_name() + '_resource_tour', export: true, install_header: true) +query_gresource = gnome.compile_resources('query_gresource', + 'query.gresource.xml', + source_dir: '.', + c_name: meson.project_name() + '_resource_query', + export: true, + install_header: true) diff --git a/data/ui/query.1.ui b/data/ui/query.1.ui new file mode 100644 index 0000000..b6ee62d --- /dev/null +++ b/data/ui/query.1.ui @@ -0,0 +1,59 @@ + + + + + + True + True + True + True + natural + natural + True + both + True + + + none + + + + + fixed + Region Name + + + + 0 + + + + + + + fixed + Quantity + + + + 1 + + + + + + diff --git a/data/ui/query.gresource.xml b/data/ui/query.gresource.xml new file mode 100644 index 0000000..722e564 --- /dev/null +++ b/data/ui/query.gresource.xml @@ -0,0 +1,20 @@ + + + + + query.window.ui + query.1.ui + + diff --git a/data/ui/query.window.ui b/data/ui/query.window.ui new file mode 100644 index 0000000..bfb3fb9 --- /dev/null +++ b/data/ui/query.window.ui @@ -0,0 +1,243 @@ + + + + + + diff --git a/data/ui/tour.editor.ui b/data/ui/tour.editor.ui new file mode 100644 index 0000000..5961f26 --- /dev/null +++ b/data/ui/tour.editor.ui @@ -0,0 +1,333 @@ + + + + + + 1 + 1000 + 1 + 1 + 10 + + + diff --git a/data/ui/tour.gresource.xml b/data/ui/tour.gresource.xml index cd5decb..6fd11f1 100644 --- a/data/ui/tour.gresource.xml +++ b/data/ui/tour.gresource.xml @@ -14,6 +14,7 @@ --> - tour.window.ui + tour.list.ui + tour.editor.ui diff --git a/data/ui/tour.window.ui b/data/ui/tour.list.ui similarity index 69% rename from data/ui/tour.window.ui rename to data/ui/tour.list.ui index 7468f61..43c392b 100644 --- a/data/ui/tour.window.ui +++ b/data/ui/tour.list.ui @@ -16,13 +16,16 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND --> -