more simplification, got gtk.c under 3k lines
[gcalctool.git] / gcalctool / ui.h
blob9fb18b2f3dcb07d01fedea8a6e87207dfcfd4727
2 /* $Header$
4 * Copyright (c) 1987-2007 Sun Microsystems, Inc. All Rights Reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 * 02111-1307, USA.
22 #ifndef UI_H
23 #define UI_H
25 #include "calctool.h"
27 void ui_init();
28 void ui_load();
29 void ui_start();
31 void ui_make_registers(void);
32 void ui_set_undo_enabled(gboolean, gboolean);
34 void ui_set_display(char *);
35 gchar *ui_get_display(void);
36 int ui_get_cursor(void);
38 void ui_set_syntax_mode(enum syntax);
39 void ui_set_registers_visible(gboolean);
40 void ui_set_accuracy(int);
41 void ui_set_mode(enum mode_type);
42 void ui_set_base(enum base_type);
43 void ui_set_inverse_state(gboolean);
44 void ui_set_hyperbolic_state(gboolean);
45 void ui_set_trigonometric_mode(enum trig_type);
46 void ui_set_numeric_mode(enum base_type);
47 void ui_set_show_thousands_seperator(gboolean);
48 void ui_set_show_bitcalculating(gboolean);
49 void ui_set_show_trailing_zeroes(gboolean);
51 void ui_set_error_state(gboolean);
52 void ui_set_statusbar(gchar *, const gchar *);
54 void ui_beep(void);
55 char *ui_get_localized_numeric_point(void);
57 #endif /* UI_H */