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)
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
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();