Changed mind about translating short currency names, instead use the full name in...
[gcalctool.git] / src / math-buttons.h
blobe6e6f252a35f8d7ee1b4165d4bc1af34c5bf93e0
1 /* Copyright (c) 2008-2009 Robert Ancell
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2, or (at your option)
6 * any later version.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
16 * 02111-1307, USA.
19 #ifndef MATH_BUTTONS_H
20 #define MATH_BUTTONS_H
22 #include <glib-object.h>
23 #include <gtk/gtk.h>
24 #include "math-equation.h"
26 G_BEGIN_DECLS
28 #define MATH_BUTTONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_buttons_get_type(), MathButtons))
30 typedef struct MathButtonsPrivate MathButtonsPrivate;
32 typedef struct
34 GtkVBox parent_instance;
35 MathButtonsPrivate *priv;
36 } MathButtons;
38 typedef struct
40 GtkVBoxClass parent_class;
41 } MathButtonsClass;
43 typedef enum {
44 BASIC,
45 ADVANCED,
46 FINANCIAL,
47 PROGRAMMING
48 } ButtonMode;
50 GType math_buttons_get_type(void);
52 MathButtons *math_buttons_new(MathEquation *equation);
54 void math_buttons_set_mode(MathButtons *buttons, ButtonMode mode);
56 ButtonMode math_buttons_get_mode(MathButtons *buttons);
58 void math_buttons_set_programming_base(MathButtons *buttons, gint base);
60 gint math_buttons_get_programming_base(MathButtons *buttons);
62 G_END_DECLS
64 #endif /* MATH_BUTTONS_H */