Updated Latvian translation and added Latvian translation for help by Viesturs Ružāns...
[gcalctool.git] / src / math-buttons.h
blob405a3dee8968a3f7f49f570ae2ed8b9c09848e50
1 /*
2 * Copyright (C) 2008-2011 Robert Ancell
4 * This program is free software: you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License as published by the Free Software
6 * Foundation, either version 2 of the License, or (at your option) any later
7 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
8 * license.
9 */
11 #ifndef MATH_BUTTONS_H
12 #define MATH_BUTTONS_H
14 #include <glib-object.h>
15 #include <gtk/gtk.h>
16 #include "math-equation.h"
18 G_BEGIN_DECLS
20 #define MATH_BUTTONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_buttons_get_type(), MathButtons))
22 typedef struct MathButtonsPrivate MathButtonsPrivate;
24 typedef struct
26 GtkVBox parent_instance;
27 MathButtonsPrivate *priv;
28 } MathButtons;
30 typedef struct
32 GtkVBoxClass parent_class;
33 } MathButtonsClass;
35 typedef enum {
36 BASIC,
37 ADVANCED,
38 FINANCIAL,
39 PROGRAMMING
40 } ButtonMode;
42 GType math_buttons_get_type(void);
44 MathButtons *math_buttons_new(MathEquation *equation);
46 void math_buttons_set_mode(MathButtons *buttons, ButtonMode mode);
48 ButtonMode math_buttons_get_mode(MathButtons *buttons);
50 void math_buttons_set_programming_base(MathButtons *buttons, gint base);
52 gint math_buttons_get_programming_base(MathButtons *buttons);
54 G_END_DECLS
56 #endif /* MATH_BUTTONS_H */