Correctly populate the constant and function menus (Bug #527545)
[gcalctool.git] / gcalctool / ui.h
blob810e6c28138954286d7784eba292b05b2769293a
2 /* $Header$
4 * Copyright (c) 1987-2008 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(int *argc, char ***argv);
28 void ui_load(void);
29 void ui_start(void);
31 void ui_make_registers(void);
32 void ui_set_undo_enabled(gboolean, gboolean);
34 void ui_set_display(char *, int);
35 gchar *ui_get_display(void);
37 void ui_set_syntax_mode(enum syntax);
38 void ui_set_registers_visible(gboolean);
39 void ui_set_accuracy(int);
40 void ui_set_mode(enum mode_type);
41 void ui_set_base(enum base_type);
42 void ui_set_inverse_state(gboolean);
43 void ui_set_hyperbolic_state(gboolean);
44 void ui_set_trigonometric_mode(enum trig_type);
45 void ui_set_numeric_mode(enum base_type);
46 void ui_set_show_thousands_separator(gboolean);
47 void ui_set_show_bitcalculating(gboolean);
48 void ui_set_show_trailing_zeroes(gboolean);
50 void ui_set_error_state(gboolean);
51 void ui_set_statusbar(gchar *, const gchar *);
53 void ui_beep(void);
54 char *ui_get_localized_numeric_point(void);
56 #endif /* UI_H */