~ubuntu-branches/ubuntu/precise/gtimer/precise-proposed

« back to all changes in this revision

Viewing changes to config.h

  • Committer: Bazaar Package Importer
  • Author(s): Taylor LeMasurier-Wren
  • Date: 2011-08-06 03:07:30 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110806030730-9wtxfpgsf1h4ulac
Tags: 2.0.0-1
* Update watch file
* Update debhelper compatibilty to V7 (significantly clean up packaging)
* New Upstream Release (Closes: #575666: RFP: GTimer -- GTK-based tool for
  timing tasks)
* Initial release. (Closes: #636822: ITP: gtimer -- GTK-based X11 task
  timer)
* Switch to dpkg-source 3.0 (quilt) format

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 1999 Craig Knudsen, cknudsen@cknudsen.com
 
3
 * 
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License
 
6
 * as published by the Free Software Foundation; either version 2
 
7
 * of the License, or (at your option) any later version.
 
8
 * 
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 * 
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
 
17
 *
 
18
 * Description:
 
19
 *      Helps you keep track of time spent on different tasks.
 
20
 *
 
21
 * Author:
 
22
 *      Craig Knudsen, cknudsen@cknudsen.com, http://www.cknudsen.com
 
23
 *
 
24
 * Home Page:
 
25
 *      http://www.cknudsen.com/gtimer/
 
26
 *
 
27
 * History:
 
28
 *      17-Apr-2005     Added configurability of the browser. (Russ Allbery)
 
29
 *      04-Apr-98       Created
 
30
 *                      (Code stolen from another project/program I wrote.)
 
31
 *
 
32
 ****************************************************************************/
 
33
 
 
34
 
 
35
#ifndef _CONFIG_H
 
36
#define _CONFIG_H
 
37
 
 
38
/* config file parameters */
 
39
 
 
40
#define CONFIG_DEFAULT_FILE             ".gtimerrc"
 
41
 
 
42
#define CONFIG_VERSION                  "version"
 
43
#define CONFIG_SORT                     "sort"
 
44
#define CONFIG_SORT_FORWARD             "sort-dir"
 
45
#define CONFIG_PRINT                    "print"
 
46
#define CONFIG_IDLE                     "idle"
 
47
#define CONFIG_IDLE_ON                  "idle-on"
 
48
#define CONFIG_TOOLBAR_STATUS           "toolbar-status"
 
49
#define CONFIG_AUTOSAVE                 "autosave"
 
50
#define CONFIG_ANIMATE                  "animate"
 
51
#define CONFIG_USE_PROJECTS             "use-projects"
 
52
#define CONFIG_MAIN_WINDOW_WIDTH        "win_width"
 
53
#define CONFIG_MAIN_WINDOW_HEIGHT       "win_height"
 
54
#define CONFIG_MAIN_WINDOW_PROJECT_WIDTH        "list_project_width"
 
55
#define CONFIG_MAIN_WINDOW_TASK_WIDTH   "list_task_width"
 
56
#define CONFIG_MAIN_WINDOW_TODAY_WIDTH  "list_today_width"
 
57
#define CONFIG_MAIN_WINDOW_TOTAL_WIDTH  "list_total_width"
 
58
#define CONFIG_NEXT_VERSION_CHECK       "next_version_check"
 
59
#define CONFIG_LAST_TIMED_TASKS         "timed_tasks"
 
60
#define CONFIG_BROWSER                  "browser"
 
61
 
 
62
/* default values */
 
63
#ifdef CONFIG_DEFAULTS
 
64
static char *default_config[] = {
 
65
  CONFIG_SORT, "0",
 
66
  CONFIG_SORT_FORWARD, "1",
 
67
  CONFIG_PRINT, "lpr",
 
68
  CONFIG_IDLE, "300",
 
69
  CONFIG_IDLE_ON, "1",
 
70
  CONFIG_AUTOSAVE, "1",
 
71
  CONFIG_ANIMATE, "1",
 
72
  CONFIG_USE_PROJECTS, "1",
 
73
  CONFIG_TOOLBAR_STATUS, "1",
 
74
  CONFIG_MAIN_WINDOW_WIDTH, "500",
 
75
  CONFIG_MAIN_WINDOW_HEIGHT, "400",
 
76
  CONFIG_NEXT_VERSION_CHECK, "0",
 
77
 
 
78
  /* rra 2005-07-15: Changed to sensible-browser for Debian. */
 
79
  CONFIG_BROWSER, "sensible-browser",
 
80
  NULL,
 
81
};
 
82
#endif
 
83
 
 
84
int configReadAttributes (
 
85
#ifndef _NO_PROTO
 
86
  char *attrfile
 
87
#endif
 
88
);
 
89
int configGetAttribute (
 
90
#ifndef _NO_PROTO
 
91
  char *attribute, char **value
 
92
#endif
 
93
);
 
94
int configGetAttributeInt (
 
95
#ifndef _NO_PROTO
 
96
  char *attribute, int *value
 
97
#endif
 
98
);
 
99
int configSetAttribute (
 
100
#ifndef _NO_PROTO
 
101
  char *attribute, char *value
 
102
#endif
 
103
);
 
104
int configSetAttributeInt (
 
105
#ifndef _NO_PROTO
 
106
  char *attribute, int value
 
107
#endif
 
108
);
 
109
int configSaveAttributes (
 
110
#ifndef _NO_PROTO
 
111
  char *attrfile
 
112
#endif
 
113
);
 
114
int configModified ();
 
115
void configClear ();
 
116
 
 
117
#endif /* _CONFIG_H */