Update TODO

Add Documentation
Add KissCount URL into about
Add Fix, non fix, both criteria into search
Fix a bug (modifying language and go to another panel than main)
This commit is contained in:
Grégory Soutadé 2010-10-30 20:52:53 +02:00
parent 6cb7b0ccf0
commit 521596abd5
12 changed files with 170 additions and 125 deletions

1
TODO
View File

@ -8,7 +8,6 @@ Can type a letter with a comboboxes
Windows version Windows version
Need packaging Need packaging
Better build system for wxFreeChart (hacked by me) Better build system for wxFreeChart (hacked by me)
Documentation (en)
Cool for 0.1: Cool for 0.1:
Database auto saving at startup Database auto saving at startup

Binary file not shown.

View File

@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-10-24 16:03+0200\n" "POT-Creation-Date: 2010-10-30 20:31+0200\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: Soutadé <soutade@gmail.com>\n" "Last-Translator: Soutadé <soutade@gmail.com>\n"
"Language-Team: \n" "Language-Team: \n"
@ -20,20 +20,20 @@ msgstr ""
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# #
#: src/view/StatsPanel.cpp:282 #: src/view/StatsPanel.cpp:282
#: src/view/PreferencesPanel.cpp:743 #: src/view/PreferencesPanel.cpp:745
msgid " - " msgid " - "
msgstr " - " msgstr " - "
#: src/view/UsersDialog.cpp:118 #: src/view/UsersDialog.cpp:118
#: src/view/PreferencesPanel.cpp:404 #: src/view/PreferencesPanel.cpp:406
#: src/view/PreferencesPanel.cpp:423 #: src/view/PreferencesPanel.cpp:425
#: src/view/PreferencesPanel.cpp:636 #: src/view/PreferencesPanel.cpp:638
#: src/view/PreferencesPanel.cpp:655 #: src/view/PreferencesPanel.cpp:657
#: src/view/PreferencesPanel.cpp:701 #: src/view/PreferencesPanel.cpp:703
msgid " already exists" msgid " already exists"
msgstr " existe déjà " msgstr " existe déjà "
#: src/view/SearchPanel.cpp:215 #: src/view/SearchPanel.cpp:227
msgid " entries found" msgid " entries found"
msgstr " entrées trouvées" msgstr " entrées trouvées"
@ -45,7 +45,7 @@ msgstr " non trouvé, arrêt"
msgid " operations ?" msgid " operations ?"
msgstr " opérations ?" msgstr " opérations ?"
#: src/view/PreferencesPanel.cpp:750 #: src/view/PreferencesPanel.cpp:752
msgid " profil ?" msgid " profil ?"
msgstr " profil ?" msgstr " profil ?"
@ -53,7 +53,7 @@ msgstr " profil ?"
msgid "!! Warning !! If there was a bug, the old database will be suppressed !" msgid "!! Warning !! If there was a bug, the old database will be suppressed !"
msgstr "!! Attention !! S'il y a eu un bug, l'ancienne base de donnée va être supprimée !" msgstr "!! Attention !! S'il y a eu un bug, l'ancienne base de donnée va être supprimée !"
#: src/view/SearchPanel.cpp:217 #: src/view/SearchPanel.cpp:229
msgid "1 entry found" msgid "1 entry found"
msgstr "1 entrée trouvée" msgstr "1 entrée trouvée"
@ -61,13 +61,13 @@ msgstr "1 entrée trouvée"
msgid "About" msgid "About"
msgstr "A propos" msgstr "A propos"
#: src/view/SearchPanel.cpp:85 #: src/view/SearchPanel.cpp:89
#: src/view/grid/GridAccount.cpp:63 #: src/view/grid/GridAccount.cpp:63
msgid "Account" msgid "Account"
msgstr "Compte" msgstr "Compte"
#: src/view/PreferencesPanel.cpp:404 #: src/view/PreferencesPanel.cpp:406
#: src/view/PreferencesPanel.cpp:423 #: src/view/PreferencesPanel.cpp:425
msgid "Account " msgid "Account "
msgstr "Le compte " msgstr "Le compte "
@ -84,26 +84,26 @@ msgstr "Numéro de compte"
msgid "Accounts" msgid "Accounts"
msgstr "Comptes" msgstr "Comptes"
#: src/view/SearchPanel.cpp:82 #: src/view/SearchPanel.cpp:86
msgid "Amount from" msgid "Amount from"
msgstr "Montant min" msgstr "Montant min"
#: src/view/SearchPanel.cpp:83 #: src/view/SearchPanel.cpp:87
msgid "Amount to" msgid "Amount to"
msgstr "Montant max" msgstr "Montant max"
#: src/view/PreferencesPanel.cpp:385 #: src/view/PreferencesPanel.cpp:387
#: src/view/PreferencesPanel.cpp:750 #: src/view/PreferencesPanel.cpp:752
#: src/view/AccountPanel.cpp:704 #: src/view/AccountPanel.cpp:704
msgid "Are you sure want to delete " msgid "Are you sure want to delete "
msgstr "Etes vous sûr de vouloir supprimer " msgstr "Etes vous sûr de vouloir supprimer "
#: src/view/PreferencesPanel.cpp:617 #: src/view/PreferencesPanel.cpp:619
#: src/view/grid/GridAccount.cpp:745 #: src/view/grid/GridAccount.cpp:760
msgid "Are you sure want to delete : \n" msgid "Are you sure want to delete : \n"
msgstr "Etes vous sûr de vouloir supprimer : \n" msgstr "Etes vous sûr de vouloir supprimer : \n"
#: src/view/PreferencesPanel.cpp:306 #: src/view/PreferencesPanel.cpp:308
msgid "Ascending" msgid "Ascending"
msgstr "Croissant" msgstr "Croissant"
@ -111,19 +111,23 @@ msgstr "Croissant"
msgid "Background color" msgid "Background color"
msgstr "Couleur d'arrière plan" msgstr "Couleur d'arrière plan"
#: src/view/SearchPanel.cpp:76
msgid "Both"
msgstr "Les deux"
#: src/view/UsersDialog.cpp:51 #: src/view/UsersDialog.cpp:51
#: src/view/GenerateDialog.cpp:60 #: src/view/GenerateDialog.cpp:60
#: src/view/PasswordDialog.cpp:56 #: src/view/PasswordDialog.cpp:56
msgid "Cancel" msgid "Cancel"
msgstr "Annuler" msgstr "Annuler"
#: src/view/grid/GridAccount.cpp:1129 #: src/view/grid/GridAccount.cpp:1144
#: src/view/grid/GridAccount.cpp:1136 #: src/view/grid/GridAccount.cpp:1151
msgid "Cannot group these operations" msgid "Cannot group these operations"
msgstr "Impossible de grouper ces opérations" msgstr "Impossible de grouper ces opérations"
#: src/view/grid/GridAccount.cpp:1263 #: src/view/grid/GridAccount.cpp:1280
#: src/view/grid/GridAccount.cpp:1269 #: src/view/grid/GridAccount.cpp:1286
msgid "Cannot ungroup these operations" msgid "Cannot ungroup these operations"
msgstr "Impossible de dégrouper ces opérations" msgstr "Impossible de dégrouper ces opérations"
@ -131,13 +135,13 @@ msgstr "Impossible de dégrouper ces opérations"
msgid "Categories" msgid "Categories"
msgstr "Catégories" msgstr "Catégories"
#: src/view/SearchPanel.cpp:84 #: src/view/SearchPanel.cpp:88
#: src/view/grid/GridAccount.cpp:63 #: src/view/grid/GridAccount.cpp:63
msgid "Category" msgid "Category"
msgstr "Catégorie" msgstr "Catégorie"
#: src/view/PreferencesPanel.cpp:636 #: src/view/PreferencesPanel.cpp:638
#: src/view/PreferencesPanel.cpp:655 #: src/view/PreferencesPanel.cpp:657
msgid "Category " msgid "Category "
msgstr "Catégorie" msgstr "Catégorie"
@ -212,35 +216,35 @@ msgstr "Défaut"
msgid "Delete" msgid "Delete"
msgstr "Supprimer" msgstr "Supprimer"
#: src/view/PreferencesPanel.cpp:307 #: src/view/PreferencesPanel.cpp:309
msgid "Descending" msgid "Descending"
msgstr "Décroissant" msgstr "Décroissant"
#: src/view/SearchPanel.cpp:81 #: src/view/SearchPanel.cpp:85
#: src/view/grid/GridAccount.cpp:63 #: src/view/grid/GridAccount.cpp:63
msgid "Description" msgid "Description"
msgstr "Description" msgstr "Description"
#: src/view/UsersDialog.cpp:88 #: src/view/UsersDialog.cpp:88
#: src/view/UsersDialog.cpp:118 #: src/view/UsersDialog.cpp:118
#: src/view/SearchPanel.cpp:135 #: src/view/SearchPanel.cpp:140
#: src/view/SearchPanel.cpp:145 #: src/view/SearchPanel.cpp:150
#: src/view/SearchPanel.cpp:159 #: src/view/SearchPanel.cpp:164
#: src/view/SearchPanel.cpp:170 #: src/view/SearchPanel.cpp:175
#: src/view/PreferencesPanel.cpp:381 #: src/view/PreferencesPanel.cpp:383
#: src/view/PreferencesPanel.cpp:404 #: src/view/PreferencesPanel.cpp:406
#: src/view/PreferencesPanel.cpp:423 #: src/view/PreferencesPanel.cpp:425
#: src/view/PreferencesPanel.cpp:636 #: src/view/PreferencesPanel.cpp:638
#: src/view/PreferencesPanel.cpp:655 #: src/view/PreferencesPanel.cpp:657
#: src/view/PreferencesPanel.cpp:695 #: src/view/PreferencesPanel.cpp:697
#: src/view/PreferencesPanel.cpp:701 #: src/view/PreferencesPanel.cpp:703
#: src/view/PasswordDialog.cpp:72 #: src/view/PasswordDialog.cpp:72
#: src/view/PasswordDialog.cpp:78 #: src/view/PasswordDialog.cpp:78
#: src/view/AccountPanel.cpp:700 #: src/view/AccountPanel.cpp:700
#: src/view/grid/GridAccount.cpp:1129 #: src/view/grid/GridAccount.cpp:1144
#: src/view/grid/GridAccount.cpp:1136 #: src/view/grid/GridAccount.cpp:1151
#: src/view/grid/GridAccount.cpp:1263 #: src/view/grid/GridAccount.cpp:1280
#: src/view/grid/GridAccount.cpp:1269 #: src/view/grid/GridAccount.cpp:1286
#: src/view/grid/wxGridCellFormulaEditor.cpp:69 #: src/view/grid/wxGridCellFormulaEditor.cpp:69
#: src/model/Database.cpp:38 #: src/model/Database.cpp:38
#: src/model/Database.cpp:55 #: src/model/Database.cpp:55
@ -261,6 +265,7 @@ msgstr "Erreur durant la création de la base de données initiale"
msgid "Final value" msgid "Final value"
msgstr "Valeur finale" msgstr "Valeur finale"
#: src/view/SearchPanel.cpp:76
#: src/view/grid/GridAccount.cpp:300 #: src/view/grid/GridAccount.cpp:300
#: src/model/Database.cpp:329 #: src/model/Database.cpp:329
#: src/controller/KissCount.cpp:335 #: src/controller/KissCount.cpp:335
@ -304,19 +309,19 @@ msgstr "Loisirs"
msgid "Initial value" msgid "Initial value"
msgstr "Valeur initiale" msgstr "Valeur initiale"
#: src/view/SearchPanel.cpp:145 #: src/view/SearchPanel.cpp:150
msgid "Invalid amount from" msgid "Invalid amount from"
msgstr "Montant min invalide" msgstr "Montant min invalide"
#: src/view/SearchPanel.cpp:170 #: src/view/SearchPanel.cpp:175
msgid "Invalid amount range" msgid "Invalid amount range"
msgstr "Intervalle des montants invalide" msgstr "Intervalle des montants invalide"
#: src/view/SearchPanel.cpp:159 #: src/view/SearchPanel.cpp:164
msgid "Invalid amount to" msgid "Invalid amount to"
msgstr "Montant max invalide" msgstr "Montant max invalide"
#: src/view/SearchPanel.cpp:135 #: src/view/SearchPanel.cpp:140
msgid "Invalid date range" msgid "Invalid date range"
msgstr "Intervalle de temps invalide" msgstr "Intervalle de temps invalide"
@ -324,7 +329,7 @@ msgstr "Intervalle de temps invalide"
msgid "Invalid formula !" msgid "Invalid formula !"
msgstr "Formule invalide !" msgstr "Formule invalide !"
#: src/view/PreferencesPanel.cpp:695 #: src/view/PreferencesPanel.cpp:697
msgid "Invalid name" msgid "Invalid name"
msgstr "Nom invalide" msgstr "Nom invalide"
@ -340,7 +345,7 @@ msgstr "Mot de passe invalide"
msgid "Invalide date range" msgid "Invalide date range"
msgstr "Intervalle de temps invalide" msgstr "Intervalle de temps invalide"
#: src/view/PreferencesPanel.cpp:381 #: src/view/PreferencesPanel.cpp:383
msgid "It must be at least one account !" msgid "It must be at least one account !"
msgstr "Il doit y avoir au moins un compte !" msgstr "Il doit y avoir au moins un compte !"
@ -353,8 +358,8 @@ msgid "Kill me"
msgstr "Kill me" msgstr "Kill me"
#: src/view/StatsPanel.cpp:302 #: src/view/StatsPanel.cpp:302
#: src/view/PreferencesPanel.cpp:735 #: src/view/PreferencesPanel.cpp:737
#: src/view/PreferencesPanel.cpp:738 #: src/view/PreferencesPanel.cpp:740
msgid "KissCount" msgid "KissCount"
msgstr "KissCount" msgstr "KissCount"
@ -362,11 +367,11 @@ msgstr "KissCount"
msgid "Language" msgid "Language"
msgstr "Langue" msgstr "Langue"
#: src/view/PreferencesPanel.cpp:738 #: src/view/PreferencesPanel.cpp:740
msgid "Language not changed" msgid "Language not changed"
msgstr "Langue non changée" msgstr "Langue non changée"
#: src/view/PreferencesPanel.cpp:735 #: src/view/PreferencesPanel.cpp:737
msgid "Language successfully changed, please go to another panel" msgid "Language successfully changed, please go to another panel"
msgstr "Langue changée, allez sur un autre panneau pour rendre le changement effectif" msgstr "Langue changée, allez sur un autre panneau pour rendre le changement effectif"
@ -376,7 +381,7 @@ msgstr "Langue changée, allez sur un autre panneau pour rendre le changement ef
msgid "Name" msgid "Name"
msgstr "Nom" msgstr "Nom"
#: src/view/PreferencesPanel.cpp:707 #: src/view/PreferencesPanel.cpp:709
msgid "Name changed" msgid "Name changed"
msgstr "Nom changé" msgstr "Nom changé"
@ -397,10 +402,14 @@ msgstr ""
"Aucune base de données trouvée, voulez vous en créer une nouvelle ?\n" "Aucune base de données trouvée, voulez vous en créer une nouvelle ?\n"
"\n" "\n"
#: src/view/SearchPanel.cpp:220 #: src/view/SearchPanel.cpp:232
msgid "No entry found" msgid "No entry found"
msgstr "Pas d'entrée trouvée" msgstr "Pas d'entrée trouvée"
#: src/view/SearchPanel.cpp:76
msgid "Non fix"
msgstr "Courantes"
#: src/view/PreferencesPanel.cpp:185 #: src/view/PreferencesPanel.cpp:185
msgid "Number" msgid "Number"
msgstr "Numéro de compte" msgstr "Numéro de compte"
@ -423,6 +432,7 @@ msgstr "Frais de fonctionnement"
msgid "Operation order" msgid "Operation order"
msgstr "Ordre des opérations" msgstr "Ordre des opérations"
#: src/view/SearchPanel.cpp:77
#: src/view/ButtonPanel.cpp:69 #: src/view/ButtonPanel.cpp:69
msgid "Operations" msgid "Operations"
msgstr "Opérations" msgstr "Opérations"
@ -443,18 +453,22 @@ msgstr "Mot de passe changé"
msgid "" msgid ""
"Personal accounting software\n" "Personal accounting software\n"
"\n" "\n"
"http://indefero.soutade.fr/p/kisscount/\n"
"\n"
"Copyright (C) 2010 Grégory Soutadé" "Copyright (C) 2010 Grégory Soutadé"
msgstr "" msgstr ""
"Logiciel de comptabilité personnelle\n" "Logiciel de comptabilité personnelle\n"
"\n" "\n"
"http://indefero.soutade.fr/p/kisscount/\n"
"\n"
"Copyright (C) 2010 Grégory Soutadé" "Copyright (C) 2010 Grégory Soutadé"
#: src/view/PasswordDialog.cpp:78 #: src/view/PasswordDialog.cpp:78
msgid "Please retype new password" msgid "Please retype new password"
msgstr "Re entrez le mot de passe" msgstr "Re entrez le mot de passe"
#: src/view/PreferencesPanel.cpp:709 #: src/view/PreferencesPanel.cpp:711
#: src/view/PreferencesPanel.cpp:743 #: src/view/PreferencesPanel.cpp:745
#: src/view/ButtonPanel.cpp:72 #: src/view/ButtonPanel.cpp:72
msgid "Preferences" msgid "Preferences"
msgstr "Préférences" msgstr "Préférences"
@ -475,8 +489,8 @@ msgstr "Quitter KissCount ?"
msgid "Remains" msgid "Remains"
msgstr "Restant" msgstr "Restant"
#: src/view/SearchPanel.cpp:79 #: src/view/SearchPanel.cpp:83
#: src/view/SearchPanel.cpp:231 #: src/view/SearchPanel.cpp:243
#: src/view/ButtonPanel.cpp:71 #: src/view/ButtonPanel.cpp:71
msgid "Search" msgid "Search"
msgstr "Chercher" msgstr "Chercher"
@ -542,7 +556,7 @@ msgstr "Utilisateur"
#: src/view/UsersDialog.cpp:38 #: src/view/UsersDialog.cpp:38
#: src/view/UsersDialog.cpp:118 #: src/view/UsersDialog.cpp:118
#: src/view/PreferencesPanel.cpp:701 #: src/view/PreferencesPanel.cpp:703
msgid "User " msgid "User "
msgstr "Utilisateur" msgstr "Utilisateur"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-10-24 16:03+0200\n" "POT-Creation-Date: 2010-10-30 20:52+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,17 +17,17 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: src/view/StatsPanel.cpp:282 src/view/PreferencesPanel.cpp:743 #: src/view/StatsPanel.cpp:282 src/view/PreferencesPanel.cpp:745
msgid " - " msgid " - "
msgstr "" msgstr ""
#: src/view/UsersDialog.cpp:118 src/view/PreferencesPanel.cpp:404 #: src/view/UsersDialog.cpp:118 src/view/PreferencesPanel.cpp:406
#: src/view/PreferencesPanel.cpp:423 src/view/PreferencesPanel.cpp:636 #: src/view/PreferencesPanel.cpp:425 src/view/PreferencesPanel.cpp:638
#: src/view/PreferencesPanel.cpp:655 src/view/PreferencesPanel.cpp:701 #: src/view/PreferencesPanel.cpp:657 src/view/PreferencesPanel.cpp:703
msgid " already exists" msgid " already exists"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:215 #: src/view/SearchPanel.cpp:227
msgid " entries found" msgid " entries found"
msgstr "" msgstr ""
@ -39,7 +39,7 @@ msgstr ""
msgid " operations ?" msgid " operations ?"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:750 #: src/view/PreferencesPanel.cpp:752
msgid " profil ?" msgid " profil ?"
msgstr "" msgstr ""
@ -47,7 +47,7 @@ msgstr ""
msgid "!! Warning !! If there was a bug, the old database will be suppressed !" msgid "!! Warning !! If there was a bug, the old database will be suppressed !"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:217 #: src/view/SearchPanel.cpp:229
msgid "1 entry found" msgid "1 entry found"
msgstr "" msgstr ""
@ -55,11 +55,11 @@ msgstr ""
msgid "About" msgid "About"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:85 src/view/grid/GridAccount.cpp:63 #: src/view/SearchPanel.cpp:89 src/view/grid/GridAccount.cpp:63
msgid "Account" msgid "Account"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:404 src/view/PreferencesPanel.cpp:423 #: src/view/PreferencesPanel.cpp:406 src/view/PreferencesPanel.cpp:425
msgid "Account " msgid "Account "
msgstr "" msgstr ""
@ -75,24 +75,24 @@ msgstr ""
msgid "Accounts" msgid "Accounts"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:82 #: src/view/SearchPanel.cpp:86
msgid "Amount from" msgid "Amount from"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:83 #: src/view/SearchPanel.cpp:87
msgid "Amount to" msgid "Amount to"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:385 src/view/PreferencesPanel.cpp:750 #: src/view/PreferencesPanel.cpp:387 src/view/PreferencesPanel.cpp:752
#: src/view/AccountPanel.cpp:704 #: src/view/AccountPanel.cpp:704
msgid "Are you sure want to delete " msgid "Are you sure want to delete "
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:617 src/view/grid/GridAccount.cpp:745 #: src/view/PreferencesPanel.cpp:619 src/view/grid/GridAccount.cpp:760
msgid "Are you sure want to delete : \n" msgid "Are you sure want to delete : \n"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:306 #: src/view/PreferencesPanel.cpp:308
msgid "Ascending" msgid "Ascending"
msgstr "" msgstr ""
@ -100,16 +100,20 @@ msgstr ""
msgid "Background color" msgid "Background color"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:76
msgid "Both"
msgstr ""
#: src/view/UsersDialog.cpp:51 src/view/GenerateDialog.cpp:60 #: src/view/UsersDialog.cpp:51 src/view/GenerateDialog.cpp:60
#: src/view/PasswordDialog.cpp:56 #: src/view/PasswordDialog.cpp:56
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
#: src/view/grid/GridAccount.cpp:1129 src/view/grid/GridAccount.cpp:1136 #: src/view/grid/GridAccount.cpp:1144 src/view/grid/GridAccount.cpp:1151
msgid "Cannot group these operations" msgid "Cannot group these operations"
msgstr "" msgstr ""
#: src/view/grid/GridAccount.cpp:1263 src/view/grid/GridAccount.cpp:1269 #: src/view/grid/GridAccount.cpp:1280 src/view/grid/GridAccount.cpp:1286
msgid "Cannot ungroup these operations" msgid "Cannot ungroup these operations"
msgstr "" msgstr ""
@ -117,11 +121,11 @@ msgstr ""
msgid "Categories" msgid "Categories"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:84 src/view/grid/GridAccount.cpp:63 #: src/view/SearchPanel.cpp:88 src/view/grid/GridAccount.cpp:63
msgid "Category" msgid "Category"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:636 src/view/PreferencesPanel.cpp:655 #: src/view/PreferencesPanel.cpp:638 src/view/PreferencesPanel.cpp:657
msgid "Category " msgid "Category "
msgstr "" msgstr ""
@ -194,24 +198,24 @@ msgstr ""
msgid "Delete" msgid "Delete"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:307 #: src/view/PreferencesPanel.cpp:309
msgid "Descending" msgid "Descending"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:81 src/view/grid/GridAccount.cpp:63 #: src/view/SearchPanel.cpp:85 src/view/grid/GridAccount.cpp:63
msgid "Description" msgid "Description"
msgstr "" msgstr ""
#: src/view/UsersDialog.cpp:88 src/view/UsersDialog.cpp:118 #: src/view/UsersDialog.cpp:88 src/view/UsersDialog.cpp:118
#: src/view/SearchPanel.cpp:135 src/view/SearchPanel.cpp:145 #: src/view/SearchPanel.cpp:140 src/view/SearchPanel.cpp:150
#: src/view/SearchPanel.cpp:159 src/view/SearchPanel.cpp:170 #: src/view/SearchPanel.cpp:164 src/view/SearchPanel.cpp:175
#: src/view/PreferencesPanel.cpp:381 src/view/PreferencesPanel.cpp:404 #: src/view/PreferencesPanel.cpp:383 src/view/PreferencesPanel.cpp:406
#: src/view/PreferencesPanel.cpp:423 src/view/PreferencesPanel.cpp:636 #: src/view/PreferencesPanel.cpp:425 src/view/PreferencesPanel.cpp:638
#: src/view/PreferencesPanel.cpp:655 src/view/PreferencesPanel.cpp:695 #: src/view/PreferencesPanel.cpp:657 src/view/PreferencesPanel.cpp:697
#: src/view/PreferencesPanel.cpp:701 src/view/PasswordDialog.cpp:72 #: src/view/PreferencesPanel.cpp:703 src/view/PasswordDialog.cpp:72
#: src/view/PasswordDialog.cpp:78 src/view/AccountPanel.cpp:700 #: src/view/PasswordDialog.cpp:78 src/view/AccountPanel.cpp:700
#: src/view/grid/GridAccount.cpp:1129 src/view/grid/GridAccount.cpp:1136 #: src/view/grid/GridAccount.cpp:1144 src/view/grid/GridAccount.cpp:1151
#: src/view/grid/GridAccount.cpp:1263 src/view/grid/GridAccount.cpp:1269 #: src/view/grid/GridAccount.cpp:1280 src/view/grid/GridAccount.cpp:1286
#: src/view/grid/wxGridCellFormulaEditor.cpp:69 src/model/Database.cpp:38 #: src/view/grid/wxGridCellFormulaEditor.cpp:69 src/model/Database.cpp:38
#: src/model/Database.cpp:55 src/model/Database.cpp:95 #: src/model/Database.cpp:55 src/model/Database.cpp:95
#: src/model/Database.cpp:102 src/model/Database.cpp:120 #: src/model/Database.cpp:102 src/model/Database.cpp:120
@ -228,8 +232,8 @@ msgstr ""
msgid "Final value" msgid "Final value"
msgstr "" msgstr ""
#: src/view/grid/GridAccount.cpp:300 src/model/Database.cpp:329 #: src/view/SearchPanel.cpp:76 src/view/grid/GridAccount.cpp:300
#: src/controller/KissCount.cpp:335 #: src/model/Database.cpp:329 src/controller/KissCount.cpp:335
msgid "Fix" msgid "Fix"
msgstr "" msgstr ""
@ -269,19 +273,19 @@ msgstr ""
msgid "Initial value" msgid "Initial value"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:145 #: src/view/SearchPanel.cpp:150
msgid "Invalid amount from" msgid "Invalid amount from"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:170 #: src/view/SearchPanel.cpp:175
msgid "Invalid amount range" msgid "Invalid amount range"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:159 #: src/view/SearchPanel.cpp:164
msgid "Invalid amount to" msgid "Invalid amount to"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:135 #: src/view/SearchPanel.cpp:140
msgid "Invalid date range" msgid "Invalid date range"
msgstr "" msgstr ""
@ -289,7 +293,7 @@ msgstr ""
msgid "Invalid formula !" msgid "Invalid formula !"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:695 #: src/view/PreferencesPanel.cpp:697
msgid "Invalid name" msgid "Invalid name"
msgstr "" msgstr ""
@ -305,7 +309,7 @@ msgstr ""
msgid "Invalide date range" msgid "Invalide date range"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:381 #: src/view/PreferencesPanel.cpp:383
msgid "It must be at least one account !" msgid "It must be at least one account !"
msgstr "" msgstr ""
@ -317,8 +321,8 @@ msgstr ""
msgid "Kill me" msgid "Kill me"
msgstr "" msgstr ""
#: src/view/StatsPanel.cpp:302 src/view/PreferencesPanel.cpp:735 #: src/view/StatsPanel.cpp:302 src/view/PreferencesPanel.cpp:737
#: src/view/PreferencesPanel.cpp:738 #: src/view/PreferencesPanel.cpp:740
msgid "KissCount" msgid "KissCount"
msgstr "" msgstr ""
@ -326,11 +330,11 @@ msgstr ""
msgid "Language" msgid "Language"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:738 #: src/view/PreferencesPanel.cpp:740
msgid "Language not changed" msgid "Language not changed"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:735 #: src/view/PreferencesPanel.cpp:737
msgid "Language successfully changed, please go to another panel" msgid "Language successfully changed, please go to another panel"
msgstr "" msgstr ""
@ -339,7 +343,7 @@ msgstr ""
msgid "Name" msgid "Name"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:707 #: src/view/PreferencesPanel.cpp:709
msgid "Name changed" msgid "Name changed"
msgstr "" msgstr ""
@ -357,10 +361,14 @@ msgid ""
"\n" "\n"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:220 #: src/view/SearchPanel.cpp:232
msgid "No entry found" msgid "No entry found"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:76
msgid "Non fix"
msgstr ""
#: src/view/PreferencesPanel.cpp:185 #: src/view/PreferencesPanel.cpp:185
msgid "Number" msgid "Number"
msgstr "" msgstr ""
@ -382,7 +390,7 @@ msgstr ""
msgid "Operation order" msgid "Operation order"
msgstr "" msgstr ""
#: src/view/ButtonPanel.cpp:69 #: src/view/SearchPanel.cpp:77 src/view/ButtonPanel.cpp:69
msgid "Operations" msgid "Operations"
msgstr "" msgstr ""
@ -402,6 +410,8 @@ msgstr ""
msgid "" msgid ""
"Personal accounting software\n" "Personal accounting software\n"
"\n" "\n"
"http://indefero.soutade.fr/p/kisscount/\n"
"\n"
"Copyright (C) 2010 Grégory Soutadé" "Copyright (C) 2010 Grégory Soutadé"
msgstr "" msgstr ""
@ -409,7 +419,7 @@ msgstr ""
msgid "Please retype new password" msgid "Please retype new password"
msgstr "" msgstr ""
#: src/view/PreferencesPanel.cpp:709 src/view/PreferencesPanel.cpp:743 #: src/view/PreferencesPanel.cpp:711 src/view/PreferencesPanel.cpp:745
#: src/view/ButtonPanel.cpp:72 #: src/view/ButtonPanel.cpp:72
msgid "Preferences" msgid "Preferences"
msgstr "" msgstr ""
@ -430,7 +440,7 @@ msgstr ""
msgid "Remains" msgid "Remains"
msgstr "" msgstr ""
#: src/view/SearchPanel.cpp:79 src/view/SearchPanel.cpp:231 #: src/view/SearchPanel.cpp:83 src/view/SearchPanel.cpp:243
#: src/view/ButtonPanel.cpp:71 #: src/view/ButtonPanel.cpp:71
msgid "Search" msgid "Search"
msgstr "" msgstr ""
@ -489,7 +499,7 @@ msgid "User"
msgstr "" msgstr ""
#: src/view/UsersDialog.cpp:38 src/view/UsersDialog.cpp:118 #: src/view/UsersDialog.cpp:38 src/view/UsersDialog.cpp:118
#: src/view/PreferencesPanel.cpp:701 #: src/view/PreferencesPanel.cpp:703
msgid "User " msgid "User "
msgstr "" msgstr ""

View File

@ -376,10 +376,10 @@ void KissCount::SetOperationOrder(const wxString& order)
std::vector<Operation>* KissCount::Search(wxString* description, wxDateTime* dateFrom, wxDateTime* dateTo, std::vector<Operation>* KissCount::Search(wxString* description, wxDateTime* dateFrom, wxDateTime* dateTo,
wxString* amountFrom, wxString* amountTo, wxString* amountFrom, wxString* amountTo,
std::vector<wxString> categories, std::vector<wxString> accounts) std::vector<wxString> categories, int Fix, std::vector<wxString> accounts)
{ {
return _db->Search(_user, description, dateFrom, dateTo, amountFrom, amountTo, categories, accounts, true); return _db->Search(_user, description, dateFrom, dateTo, amountFrom, amountTo, categories, Fix, accounts, true);
} }
bool KissCount::SearchPreviousOperation(Operation* res, wxString& description, int month, int year) bool KissCount::SearchPreviousOperation(Operation* res, wxString& description, int month, int year)
@ -398,7 +398,7 @@ bool KissCount::SearchPreviousOperation(Operation* res, wxString& description, i
date = new wxDateTime(0, (wxDateTime::Month)month, year); date = new wxDateTime(0, (wxDateTime::Month)month, year);
operations = _db->Search(_user, &description, date, NULL, NULL, NULL, v, v, false); operations = _db->Search(_user, &description, date, NULL, NULL, NULL, v, BOTH, v, false);
delete date; delete date;

View File

@ -82,7 +82,7 @@ public:
std::vector<Operation>* Search(wxString* description, wxDateTime* dateFrom, wxDateTime* dateTo, std::vector<Operation>* Search(wxString* description, wxDateTime* dateFrom, wxDateTime* dateTo,
wxString* amountFrom, wxString* amountTo, wxString* amountFrom, wxString* amountTo,
std::vector<wxString> categories, std::vector<wxString> accounts); std::vector<wxString> categories, int Fix, std::vector<wxString> accounts);
bool SearchPreviousOperation(Operation* res, wxString& description, int month, int year); bool SearchPreviousOperation(Operation* res, wxString& description, int month, int year);

View File

@ -1221,7 +1221,7 @@ void Database::UpdatePreference(User* user, const wxString& preference)
std::vector<Operation>* Database::Search(User* user, wxString* description, wxDateTime* dateFrom, wxDateTime* dateTo, std::vector<Operation>* Database::Search(User* user, wxString* description, wxDateTime* dateFrom, wxDateTime* dateTo,
wxString* amountFrom, wxString* amountTo, wxString* amountFrom, wxString* amountTo,
std::vector<wxString> categories, std::vector<wxString> accounts, bool wildcards) std::vector<wxString> categories, int Fix, std::vector<wxString> accounts, bool wildcards)
{ {
wxSQLite3ResultSet set; wxSQLite3ResultSet set;
wxString req; wxString req;
@ -1310,6 +1310,13 @@ std::vector<Operation>* Database::Search(User* user, wxString* description, wxDa
if (firstCond) req += wxT(" AND ") ; else firstCond = true; if (firstCond) req += wxT(" AND ") ; else firstCond = true;
if (Fix == FIX_OP)
req += wxT(" AND fix_cost='1'");
else if (Fix == NON_FIX_OP)
req += wxT(" AND fix_cost='0'");
if (firstCond) req += wxT(" AND ") ; else firstCond = true;
if (accounts.size()) if (accounts.size())
{ {
req += wxT("(account IN ('"); req += wxT("(account IN ('");

View File

@ -33,6 +33,8 @@
#define BDD_FILE "kc.bdd" #define BDD_FILE "kc.bdd"
#define INIT_SCRIPT "init.sql" #define INIT_SCRIPT "init.sql"
enum {BOTH, FIX_OP, NON_FIX_OP};
class KissCount; class KissCount;
class User; class User;
@ -81,7 +83,7 @@ public:
std::vector<Operation>* Search(User* user, wxString* description, wxDateTime* dateFrom, wxDateTime* dateTo, std::vector<Operation>* Search(User* user, wxString* description, wxDateTime* dateFrom, wxDateTime* dateTo,
wxString* amountFrom, wxString* amountTo, wxString* amountFrom, wxString* amountTo,
std::vector<wxString> categories, std::vector<wxString> accounts, bool wildcards); std::vector<wxString> categories, int Fix, std::vector<wxString> accounts, bool wildcards);
void GetStats(User* user, const wxString& monthFrom, const wxString& yearFrom, const wxString& monthTo, void GetStats(User* user, const wxString& monthFrom, const wxString& yearFrom, const wxString& monthTo,
const wxString& yearTo, std::map<wxString, std::map<int, std::map<int, double> > >* accountAmounts, const wxString& yearTo, std::map<wxString, std::map<int, std::map<int, double> > >* accountAmounts,

View File

@ -149,7 +149,7 @@ AccountPanel::AccountPanel(KissCount* kiss, wxUI *parent) : wxScrolledWindow(&(*
ChangeUser(); ChangeUser();
Fit(); //Fit();
SetMinSize(wxSize(rect.width-rect.x, rect.height-rect.y-128)); SetMinSize(wxSize(rect.width-rect.x, rect.height-rect.y-128));
SetScrollbars(10, 10, 100/10, 100/10); SetScrollbars(10, 10, 100/10, 100/10);
@ -237,7 +237,7 @@ void AccountPanel::ChangeUser()
else else
_tree.AppendItem(rootNode, wxString::Format(wxT("%d"), it->first)); _tree.AppendItem(rootNode, wxString::Format(wxT("%d"), it->first));
} }
Fit(); //Fit();
if (curYear != -1) if (curYear != -1)
{ {
_tree.SelectItem(curNode, true); _tree.SelectItem(curNode, true);
@ -280,7 +280,7 @@ void AccountPanel::LoadYear(int year, bool showMonth)
} }
_tree.Expand(parentNode); _tree.Expand(parentNode);
Fit(); //Fit();
if (showMonth) if (showMonth)
{ {
_tree.SelectItem(curMonthNode, true); _tree.SelectItem(curMonthNode, true);
@ -356,7 +356,7 @@ void AccountPanel::ShowMonth(int month, int year)
UpdateStats(); UpdateStats();
Fit(); //Fit();
// SetMinSize(GetSize()); // SetMinSize(GetSize());
} }

View File

@ -102,7 +102,7 @@ void ButtonPanel::OnButtonChangeUser(wxCommandEvent& event)
void ButtonPanel::OnButtonAbout(wxCommandEvent& event) void ButtonPanel::OnButtonAbout(wxCommandEvent& event)
{ {
wxMessageBox( _("Personal accounting software\n\nCopyright (C) 2010 Grégory Soutadé"), wxMessageBox( _("Personal accounting software\n\nhttp://indefero.soutade.fr/p/kisscount/\n\nCopyright (C) 2010 Grégory Soutadé"),
wxT("KissCount " APP_VERSION "\n\n"), wxT("KissCount " APP_VERSION "\n\n"),
wxOK | wxICON_INFORMATION, _wxUI ); wxOK | wxICON_INFORMATION, _wxUI );
} }

View File

@ -52,7 +52,7 @@ SearchPanel::SearchPanel(KissCount* kiss, wxUI *parent) : wxScrolledWindow(&(*pa
_checkDateFrom->SetValue(wxT("1")); _checkDateFrom->SetValue(wxT("1"));
_checkDateTo->SetValue(wxT("1")); _checkDateTo->SetValue(wxT("1"));
wxGridBagSizer *gridBagSizer = new wxGridBagSizer(3, 9); wxGridBagSizer *gridBagSizer = new wxGridBagSizer(3, 10);
firstOfMonth.SetToCurrent(); firstOfMonth.SetToCurrent();
firstOfMonth.SetDay(1); firstOfMonth.SetDay(1);
@ -72,6 +72,10 @@ SearchPanel::SearchPanel(KissCount* kiss, wxUI *parent) : wxScrolledWindow(&(*pa
_category = new wxCheckListBox(this, wxID_ANY); _category = new wxCheckListBox(this, wxID_ANY);
for(categoryIt = user->_categories.begin(); categoryIt != user->_categories.end(); categoryIt++) for(categoryIt = user->_categories.begin(); categoryIt != user->_categories.end(); categoryIt++)
_category->Append(categoryIt->name); _category->Append(categoryIt->name);
wxString fixop[] = {_("Both"), _("Fix"), _("Non fix")};
_fix = new wxRadioBox(this, wxID_ANY, _("Operations"), wxDefaultPosition, wxDefaultSize, 3, fixop);
_account = new wxCheckListBox(this, wxID_ANY); _account = new wxCheckListBox(this, wxID_ANY);
for(accountIt = user->_accounts.begin(); accountIt != user->_accounts.end(); accountIt++) for(accountIt = user->_accounts.begin(); accountIt != user->_accounts.end(); accountIt++)
_account->Append(accountIt->name); _account->Append(accountIt->name);
@ -96,8 +100,9 @@ SearchPanel::SearchPanel(KissCount* kiss, wxUI *parent) : wxScrolledWindow(&(*pa
gridBagSizer->Add(_amountTo, wxGBPosition(1, 4)); gridBagSizer->Add(_amountTo, wxGBPosition(1, 4));
gridBagSizer->Add(labelCategory, wxGBPosition(0, 5)); gridBagSizer->Add(labelCategory, wxGBPosition(0, 5));
gridBagSizer->Add(_category, wxGBPosition(1, 5)); gridBagSizer->Add(_category, wxGBPosition(1, 5));
gridBagSizer->Add(labelAccount, wxGBPosition(0, 6)); gridBagSizer->Add(_fix, wxGBPosition(1, 6));
gridBagSizer->Add(_account, wxGBPosition(1, 6)); gridBagSizer->Add(labelAccount, wxGBPosition(0, 7));
gridBagSizer->Add(_account, wxGBPosition(1, 7));
gridBagSizer->Add(_searchButton, wxGBPosition(2, 0)); gridBagSizer->Add(_searchButton, wxGBPosition(2, 0));
vbox->Add(gridBagSizer); vbox->Add(gridBagSizer);
@ -126,7 +131,7 @@ void SearchPanel::OnButtonSearch(wxCommandEvent& event)
std::vector<wxString> categories, accounts; std::vector<wxString> categories, accounts;
wxDateTime *dateFrom=NULL, *dateTo=NULL; wxDateTime *dateFrom=NULL, *dateTo=NULL;
User* user= _kiss->GetUser(); User* user= _kiss->GetUser();
int i; int i, fix;
std::vector<Operation>::iterator it; std::vector<Operation>::iterator it;
double af, at; double af, at;
@ -202,6 +207,13 @@ void SearchPanel::OnButtonSearch(wxCommandEvent& event)
if (_category->IsChecked(i)) if (_category->IsChecked(i))
categories.push_back(user->_categories[i].id); categories.push_back(user->_categories[i].id);
if (_fix->IsItemEnabled(FIX_OP))
fix = FIX_OP;
if (_fix->IsItemEnabled(NON_FIX_OP))
fix = NON_FIX_OP;
else
fix = BOTH;
for(i=0; i<user->GetAccountsNumber(); i++) for(i=0; i<user->GetAccountsNumber(); i++)
if (_account->IsChecked(i)) if (_account->IsChecked(i))
accounts.push_back(user->_accounts[i].id); accounts.push_back(user->_accounts[i].id);
@ -209,7 +221,7 @@ void SearchPanel::OnButtonSearch(wxCommandEvent& event)
if (_operations) if (_operations)
delete _operations; delete _operations;
_operations = _kiss->Search(description, dateFrom, dateTo, amountFrom, amountTo, categories, accounts); _operations = _kiss->Search(description, dateFrom, dateTo, amountFrom, amountTo, categories,fix, accounts);
if (_operations->size() > 1) if (_operations->size() > 1)
wxMessageBox(wxString::Format(wxT("%d"), _operations->size()) + _(" entries found"), wxT("KissCount"), wxICON_INFORMATION | wxOK); wxMessageBox(wxString::Format(wxT("%d"), _operations->size()) + _(" entries found"), wxT("KissCount"), wxICON_INFORMATION | wxOK);

View File

@ -59,6 +59,7 @@ private:
wxCheckBox *_checkDateFrom, *_checkDateTo; wxCheckBox *_checkDateFrom, *_checkDateTo;
wxTextCtrl* _description, *_amountFrom, *_amountTo; wxTextCtrl* _description, *_amountFrom, *_amountTo;
wxCheckListBox* _category, *_account; wxCheckListBox* _category, *_account;
wxRadioBox* _fix;
wxButton* _searchButton; wxButton* _searchButton;
DECLARE_EVENT_TABLE(); DECLARE_EVENT_TABLE();
}; };