GnuCash  4.8a-176-g88ecf8dd1
qofbookslots.h
1 /********************************************************************\
2  * qofbookslots.h -- Defines the names of slots used in the book. *
3  * This program is free software; you can redistribute it and/or *
4  * modify it under the terms of the GNU General Public License as *
5  * published by the Free Software Foundation; either version 2 of *
6  * the License, or (at your option) any later version. *
7  * *
8  * This program is distributed in the hope that it will be useful, *
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
11  * GNU General Public License for more details. *
12  * *
13  * You should have received a copy of the GNU General Public License*
14  * along with this program; if not, contact: *
15  * *
16  * Free Software Foundation Voice: +1-617-542-5942 *
17  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
18  * Boston, MA 02110-1301, USA gnu@gnu.org *
19  * *
20 \********************************************************************/
21 
22 #ifndef SWIG /* swig doesn't see N_() as a string constant */
23 #include <glib/gi18n.h>
24 #else
25 #define N_(string) string
26 #endif
27 
37 /*
38  * See also SET_ENUM() in src/engine/engine.i
39  *
40  * SOME_DEFINED_NAME gets mapped into SOME-DEFINED-NAME by SWIG
41  * http://www.swig.org/Doc1.3/Guile.html#Guile_nn10
42  */
43 
44 
45 /*
46  * gnc:*kvp-option-path* is used to refer to the kvp frame
47  * in which book-level options are stored.
48  * It is tied from this C #define in
49  * src/app-utils/app-utils.scm
50  * and is extensively used in
51  * src/app-utils/option-util.c
52  * src/gnome-utils/gnome-utils.scm
53  * various reports
54  */
55 
56 #define KVP_OPTION_PATH "options"
57 
58 /*
59  * Various option sections and options within those sections
60  * The untranslated string is used for the key in the KVP
61  * The translated string appears as the tab name and as the
62  * text associated with the option selector on the tab
63  */
64 
65 #define OPTION_SECTION_ACCOUNTS N_("Accounts")
66 #define OPTION_NAME_TRADING_ACCOUNTS N_("Use Trading Accounts")
67 #define OPTION_NAME_CURRENCY_ACCOUNTING N_("Currency Accounting")
68 #define OPTION_NAME_BOOK_CURRENCY N_("Book Currency")
69 #define OPTION_NAME_DEFAULT_GAINS_POLICY N_("Default Gains Policy")
70 #define OPTION_NAME_DEFAULT_GAINS_LOSS_ACCT_GUID N_("Default Gain or Loss Account")
71 #define OPTION_NAME_AUTO_READONLY_DAYS N_("Day Threshold for Read-Only Transactions (red line)")
72 #define OPTION_NAME_NUM_FIELD_SOURCE N_("Use Split Action Field for Number")
73 
74 #define OPTION_SECTION_BUDGETING N_("Budgeting")
75 #define OPTION_NAME_DEFAULT_BUDGET N_("Default Budget")
76 
79 /* For the grep-happy:
80  * KVP-OPTION-PATH
81  * OPTION-SECTION-ACCOUNTS
82  * OPTION-NAME-TRADING-ACCOUNTS
83  * OPTION-NAME-CURRENCY-ACCOUNTING
84  * OPTION-NAME-BOOK-CURRENCY
85  * OPTION_NAME_DEFAULT_GAINS_POLICY
86  * OPTION_NAME_DEFAULT_GAINS_LOSS_ACCT_GUID
87  * OPTION-NAME-AUTO-READONLY-DAYS
88  * OPTION-NAME_NUM-FIELD-SOURCE
89  * OPTION-SECTION-BUDGETING
90  * OPTION-NAME-DEFAULT-BUDGET
91  */