Disable localized digits (Bug #644980)
[gcalctool.git] / src / math-window.h
blob6cc3e4b2e8b4aca58420ab9b569be3265595dbec
1 /* Copyright (c) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.
2 * Copyright (c) 2008-2009 Robert Ancell
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17 * 02111-1307, USA.
20 #ifndef MATH_WINDOW_H
21 #define MATH_WINDOW_H
23 #include <glib-object.h>
24 #include "math-equation.h"
25 #include "math-display.h"
26 #include "math-buttons.h"
28 G_BEGIN_DECLS
30 #define MATH_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_window_get_type(), MathWindow))
32 typedef struct MathWindowPrivate MathWindowPrivate;
34 typedef struct
36 GtkWindow parent_instance;
37 MathWindowPrivate *priv;
38 } MathWindow;
40 typedef struct
42 GtkWindowClass parent_class;
44 void (*quit)(MathWindow *window);
45 } MathWindowClass;
47 GType math_window_get_type(void);
49 MathWindow *math_window_new(MathEquation *equation);
51 GtkWidget *math_window_get_menu_bar(MathWindow *window);
53 MathEquation *math_window_get_equation(MathWindow *window);
55 MathDisplay *math_window_get_display(MathWindow *window);
57 MathButtons *math_window_get_buttons(MathWindow *window);
59 void math_window_critical_error(MathWindow *window, const gchar *title, const gchar *contents);
61 G_END_DECLS
63 #endif /* MATH_WINDOW_H */