~ubuntu-branches/ubuntu/trusty/dlume/trusty

« back to all changes in this revision

Viewing changes to src/prefs.h

  • Committer: Bazaar Package Importer
  • Author(s): David Moreno Garza
  • Date: 2004-07-26 23:23:27 UTC
  • Revision ID: james.westby@ubuntu.com-20040726232327-mrmwx90sd8c1s3b4
Tags: upstream-0.2.4
Import upstream version 0.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
 * Dlume
 
4
 *
 
5
 * Copyright (C) 2003-2004 Tomasz M�ka
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
20
 */
 
21
 
 
22
 
 
23
#include <gtk/gtk.h>
 
24
 
 
25
#define config_filename         "dlume"
 
26
#define config_a_filename       "dlume-accels"
 
27
 
 
28
#define P_READ                          1
 
29
#define P_WRITE                         2
 
30
 
 
31
#define null_char                       '\0'
 
32
#define crlf_char                       '\n'
 
33
#define space_char                      ' '
 
34
#define comma_char                      ','
 
35
#define under_char                      '_'
 
36
#define slash                           "/"
 
37
#define space                           " "
 
38
#define crlf                            "\n"
 
39
#define dot                                     "."
 
40
 
 
41
#define MAX_LINE_LEN            4096
 
42
#define MAX_VALUE_LEN           2048
 
43
 
 
44
#define MAX_PATH                        1024
 
45
#define MAX_FONT_STR            256
 
46
#define MAX_COLOR_STR           32
 
47
#define MAX_COMMAND                     128
 
48
 
 
49
gchar*  s_strcpy        (gchar *dest, const gchar *src, guint maxlength);
 
50
gchar*  s_strcat        (gchar *dest, const gchar *src, guint maxlength);
 
51
 
 
52
 
 
53
struct dlumeprefs
 
54
{
 
55
        gint            window_x;
 
56
        gint            window_y;
 
57
        gint            window_size_x;
 
58
        gint            window_size_y;
 
59
        gint            run_counter;
 
60
        gint            pane_pos;
 
61
        gint            find_type;
 
62
        gint            find_activate;
 
63
        gint            contact_window_x;
 
64
        gint            contact_window_y;
 
65
        gint            edit_window_x;
 
66
        gint            edit_window_y;
 
67
        gint            prefs_window_x;
 
68
        gint            prefs_window_y;
 
69
        gint            select_window_x;
 
70
        gint            select_window_y;
 
71
        gint            sorting_mode;
 
72
        gint            toolbar_style;
 
73
        gint            restore_windows_pos;
 
74
        gint            selected_fields;
 
75
        gchar           web_browser[MAX_COMMAND];
 
76
        gchar           email_client[MAX_COMMAND];
 
77
        gchar           font_header[MAX_FONT_STR];
 
78
        gchar           font_text[MAX_FONT_STR];
 
79
        gchar           color1[MAX_COLOR_STR];
 
80
        gchar           color2[MAX_COLOR_STR];
 
81
        gchar           color3[MAX_COLOR_STR];
 
82
        gchar           color4[MAX_COLOR_STR];
 
83
        gchar           color5[MAX_COLOR_STR];
 
84
};
 
85
 
 
86
extern  struct dlumeprefs               config;
 
87
 
 
88
gchar*  s_getfilename_config    (void);
 
89
gchar*  s_getfilename_config_a  (void);
 
90
void    read_config                             (void);
 
91
void    write_config                    (void);
 
92
 
 
93