~ubuntu-branches/debian/jessie/xiphos/jessie

« back to all changes in this revision

Viewing changes to src/main/global_ops.cc

  • Committer: Bazaar Package Importer
  • Author(s): Dmitrijs Ledkovs
  • Date: 2010-03-22 18:15:54 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100322181554-qlqchymwhcw28c0c
* New upstream release:
  + Bugfix only
  + Compatible with xulrunner 1.9.2
  + Update translations

* Revert changes introduced in 3.1.2-1ubuntu1. Thank you Chris Coulson
  for temporary fix.
* debian/xiphos.1 - spelling mistake
* waf is now default buildsystem
* help is now licensed under GPL
* Bumped standards version no changes required
* Changed email to @ubuntu.com

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Xiphos Bible Study Tool
3
 
 * mod_global_ops.c - setup for SWORD global options and 
 
3
 * mod_global_ops.c - setup for SWORD global options and
4
4
 *                    a few of our own in the gui
5
5
 *
6
6
 * Copyright (C) 2000-2009 Xiphos Developer Team
94
94
 *   #include "main/global_ops.h"
95
95
 *
96
96
 *   int main_save_module_options(char * mod_name, char * option,
97
 
 *                                  int choice) 
 
97
 *                                  int choice)
98
98
 *
99
99
 * Description
100
100
 *
110
110
{
111
111
        gchar *buf = NULL;
112
112
#if 0
113
 
        if (dialog)     
 
113
        if (dialog)
114
114
                buf = g_strdup_printf("%s/modops-dialog.conf", settings.gSwordDir);
115
115
        else
116
116
#endif
117
117
                buf = g_strdup_printf("%s/modops.conf", settings.gSwordDir);
118
118
        SWConfig module_options(buf);
119
 
        
 
119
 
120
120
        module_options.Load();
121
 
        g_free(buf);    
 
121
        g_free(buf);
122
122
 
123
123
        module_options[mod_name][option] = (choice ? "On" : "Off");
124
124
 
147
147
                                    GLOBAL_OPS * ops)
148
148
{
149
149
        BackEnd* b = (BackEnd*)backend;
150
 
        
 
150
 
151
151
        _set_dialog_global_option(b, "Strong's Numbers",
152
152
                                 ops->strongs);
153
153
        _set_dialog_global_option(b, "Morphological Tags",
168
168
                                 ops->headings);
169
169
        _set_dialog_global_option(b, "Words of Christ in Red",
170
170
                                 ops->words_in_red);
171
 
        
 
171
 
172
172
        _set_dialog_global_textual(b, "Transliteration",
173
173
                                  (ops->transliteration
174
174
                                   ? "Latin" : "Off"));
175
175
 
176
176
        if (ops->variants_primary)
177
 
                _set_dialog_global_textual(b, "Textual Variants", 
 
177
                _set_dialog_global_textual(b, "Textual Variants",
178
178
                                          "Primary Reading");
179
179
        else if (ops->variants_secondary)
180
180
                _set_dialog_global_textual(b, "Textual Variants",
192
192
 * Synopsis
193
193
 *   #include "gui/mod_global_ops.h"
194
194
 *
195
 
 *   void main_set_global_options(GLOBAL_OPS * ops)     
 
195
 *   void main_set_global_options(GLOBAL_OPS * ops)
196
196
 *
197
197
 * Description
198
198
 *   set module global options
229
229
                            ? "Latin" : "Off"));
230
230
 
231
231
        if (ops->variants_primary)
232
 
                _set_global_textual(ops->module_type, "Textual Variants", 
 
232
                _set_global_textual(ops->module_type, "Textual Variants",
233
233
                                   "Primary Reading");
234
234
        else if (ops->variants_secondary)
235
235
                _set_global_textual(ops->module_type, "Textual Variants",
260
260
{
261
261
        GLOBAL_OPS *ops;
262
262
        gchar *buf = NULL;
263
 
        
 
263
 
264
264
#if 0
265
265
        if (dialog)
266
266
                buf = g_strdup_printf("%s/modops-dialog.conf", settings.gSwordDir);
268
268
#endif
269
269
                buf = g_strdup_printf("%s/modops.conf", settings.gSwordDir);
270
270
        SWConfig module_options(buf);
271
 
        
 
271
 
272
272
        module_options.Load();
273
 
        g_free(buf);    
 
273
        g_free(buf);
274
274
 
275
275
        ops = g_new0(GLOBAL_OPS, 1);
276
276
        ops->module_type = 0;