1 |
/* |
/* |
2 |
PSPPIRE --- A Graphical User Interface for PSPP |
PSPPIRE --- A Graphical User Interface for PSPP |
3 |
Copyright (C) 2004 Free Software Foundation |
Copyright (C) 2004, 2005 Free Software Foundation |
4 |
Written by John Darrington |
Written by John Darrington |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
29 |
#include <gtk/gtk.h> |
#include <gtk/gtk.h> |
30 |
#include <glade/glade.h> |
#include <glade/glade.h> |
31 |
#include "callbacks.h" |
#include "callbacks.h" |
32 |
|
#include "pspp-dict.h" |
33 |
|
|
34 |
|
|
35 |
|
#include "data_sheet.h" |
36 |
|
#include "var_sheet.h" |
37 |
|
|
38 |
GladeXML *xml; |
GladeXML *xml; |
39 |
|
|
42 |
{ |
{ |
43 |
|
|
44 |
gtk_init(&argc, &argv); |
gtk_init(&argc, &argv); |
45 |
|
|
46 |
glade_init(); |
glade_init(); |
47 |
|
|
48 |
/* load the interface */ |
/* load the interface */ |
57 |
/* connect the signals in the interface */ |
/* connect the signals in the interface */ |
58 |
glade_xml_signal_autoconnect(xml); |
glade_xml_signal_autoconnect(xml); |
59 |
|
|
60 |
psppire_reinitialise(); |
GtkWidget *var_sheet = glade_xml_get_widget(xml, "variable_sheet"); |
61 |
|
GtkWidget *data_sheet = glade_xml_get_widget(xml, "data_sheet"); |
62 |
|
|
63 |
|
PSPP_Dict *d = psppire_var_sheet_get_dictionary(var_sheet); |
64 |
|
|
65 |
|
psppire_data_sheet_set_dictionary(data_sheet, d); |
66 |
|
|
67 |
|
|
68 |
/* start the event loop */ |
/* start the event loop */ |
69 |
gtk_main(); |
gtk_main(); |