Updated Danish translation
[gcalctool.git] / src / get.h
blob96f2fd10cabfdae9ad97b36bfadb6dd59dd62d55
1 /* Copyright (c) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.
2 * Copyright (c) 2008-2009 Robert Ancell
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
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
17 * 02111-1307, USA.
20 #ifndef GET_H
21 #define GET_H
23 #include "calctool.h"
25 #define R_ACCURACY "accuracy"
26 #define R_DISPLAY "result_format"
27 #define R_MODE "button_layout"
28 #define R_TRIG "angle_units"
29 #define R_ZEROES "showzeroes"
30 #define R_TSEP "showthousands"
31 #define R_WORDLEN "wordlen"
33 void resources_init();
35 void set_resource(const char *key, const char *value);
36 void set_int_resource(const char *key, int value);
37 void set_boolean_resource(const char *key, int value);
38 void set_enumerated_resource(const char *key, const char *values[], int value);
40 char *get_resource(const char *key);
41 int get_int_resource(const char *key, int *value);
42 int get_boolean_resource(const char *key, int *value);
43 int get_enumerated_resource(const char *key, const char *values[], int *value);
45 const char *get_radix();
46 const char *get_tsep();
47 int get_tsep_count();
49 #endif /* GET_H */