1 /*
2 
3 Copyright (C) 2002  Paul Wilkins
4 
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 
19 */
20 /* mode.h  by Paul Wilkins 2/8/98 */
21 
22 #ifndef __MODE_H
23 #define __MODE_H
24 
25 #include <gtk/gtk.h>
26 
27 #define BINARY      0x1
28 #define OCTAL       0x2
29 #define DECIMAL     0x4
30 #define HEXADECIMAL 0x8
31 
32 #define DEGREES 0x10
33 #define RADIANS 0x20
34 
35 #define RECTANGULAR 0x40
36 #define POLAR 0x80
37 
38 #define LONG_DISPLAY 0x100
39 #define SHORT_DISPLAY 0x200
40 
41 #define DECIMAL_ENG 0x400
42 
43 void setPolarMode(int);
44 int getPolarMode();
45 
46 void setRadixMode(int);
47 int getRadixMode();
48 
49 void setBaseMode(int);
50 int getBaseMode();
51 
52 
53 /* the mode display window */
54 void refreshModeDisplay();
55 
56 GtkWidget *setupModeDisplay(GtkWidget *);
57 
58 #endif
59 
60