[r26]: cbrpager-maemo / branches / MAEMO_0_9_20 / src / conf.h Maximize Restore History

Download this file

conf.h    81 lines (69 with data), 2.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* conf.h - configuration
*
* Copyright (C) 1997-2004 John Coppens (john@jcoppens.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#include <gtk/gtk.h>
#define prog_name "cbrPager"
#define prog_version "0.9.27"
#define FOLLOW_TIMER 150
enum {NAV_NW, NAV_NE, NAV_SE, NAV_SW};
enum {DIRM_LAST, DIRM_FIXED};
enum { ACC_FUNCTION,
ACC_MODS,
ACC_ACCEL,
ACC_DISABLE,
ACC_ESCAPE,
ACC_COLS
};
typedef struct {
// Preferences that are saved
char lastbook[200],
fixeddir[200],
nav_hidden; // Non-zero to hide navbar
int nextpage, // Next page 'mode'
prevpage, // Previous page 'mode'
nrpages, // Number of visible pages (1 or 2)
initwidth, // Initial window width
initheight, // Initial window height
nav_pos, // Horizontal navigator position
nav_hor, // Vertical navigator position
dirmode, // Remembered or fixed directory
manga_mode, // Whether we're in manga mode for 2-page reading
auto_rotate, // Whether we're in auto rotate mode
pagenumber, /* Last page number used */
zone_size, /* Size of scroll zone, in pels */
buffer_size, /* Image buffer size, in KB */
scrollbars_fullscreen, /* Whether to show scrollbars when fullscreen */
rotate_ccw, /* Whether rotation is counter-clockwise (default clockwise) */
sort_order, /* Sort order: ascii, case insensitive or natural */
cache_next; /* Number of pages forward to cache for your reading pleasure */
// Preferences that are not remembered
char explicit_file;
} preferences;
extern preferences pref;
extern double zoom_factor;
extern int debug;
void save_config(void);
void load_config(void);
void show_config(GtkWidget *ref);
void parse_config(GtkWidget *ref);
void conf_accel_tview_cursor_changed(void);
void conf_accel_tview_realize(GtkTreeView *tview, gboolean main_keys);
const char* find_accelerator(int keyval, int state);
gboolean toggle_accelerator_mode(void);