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)
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
23 #include <glib-object.h>
24 #include "math-equation.h"
25 #include "math-display.h"
26 #include "math-buttons.h"
30 #define MATH_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_window_get_type(), MathWindow))
32 typedef struct MathWindowPrivate MathWindowPrivate
;
36 GtkWindow parent_instance
;
37 MathWindowPrivate
*priv
;
42 GtkWindowClass parent_class
;
44 void (*quit
)(MathWindow
*window
);
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
);
63 #endif /* MATH_WINDOW_H */