[1809] | 1 | #include "orxonox_gui.h" |
---|
| 2 | #include "orxonox_gui_video.h" |
---|
[1813] | 3 | #include "orxonox_gui_audio.h" |
---|
| 4 | #include "orxonox_gui_exec.h" |
---|
[1809] | 5 | int verbose; |
---|
| 6 | int close_window = 0; |
---|
| 7 | int app_drawed = 0; |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | gint delete_event ( GtkWidget *widget, GdkEvent *event, gpointer data ) |
---|
| 11 | { |
---|
| 12 | return FALSE; |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | int main( int argc, char *argv[] ) |
---|
| 17 | { |
---|
| 18 | |
---|
| 19 | GtkWidget *window; |
---|
| 20 | GtkWidget *vbox_main; |
---|
| 21 | GtkWidget *hbox_video_audio; |
---|
| 22 | GtkWidget *hbox_view_exec; |
---|
| 23 | |
---|
| 24 | gtk_init (&argc, &argv); |
---|
| 25 | /* Main Window */ |
---|
| 26 | window = gtk_window_new (GTK_WINDOW_TOPLEVEL); |
---|
| 27 | gtk_window_set_title ( GTK_WINDOW (window), "orxonox"); |
---|
| 28 | g_signal_connect (G_OBJECT (window), "delete_event", G_CALLBACK (gtk_main_quit), NULL); |
---|
| 29 | g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (gtk_main_quit), NULL); |
---|
| 30 | gtk_container_set_border_width (GTK_CONTAINER (window), 5); |
---|
| 31 | |
---|
| 32 | /* VBOX - MAIN */ |
---|
| 33 | vbox_main = gtk_vbox_new (FALSE, 0); |
---|
| 34 | { |
---|
| 35 | hbox_video_audio = gtk_hbox_new (FALSE, 0); |
---|
| 36 | |
---|
| 37 | { |
---|
| 38 | gtk_box_pack_start(GTK_BOX(hbox_video_audio), orxonox_gui_video_frame(hbox_video_audio), TRUE, TRUE, 0); |
---|
| 39 | |
---|
| 40 | gtk_box_pack_start(GTK_BOX(hbox_video_audio), orxonox_gui_audio_frame(hbox_video_audio), TRUE, TRUE, 0); |
---|
| 41 | } |
---|
| 42 | gtk_box_pack_start (GTK_BOX (vbox_main), hbox_video_audio, TRUE, TRUE, 0); |
---|
[1812] | 43 | |
---|
[1809] | 44 | { |
---|
| 45 | hbox_view_exec = gtk_hbox_new ( FALSE,0); |
---|
[1812] | 46 | /* |
---|
[1809] | 47 | { |
---|
| 48 | info ( hbox_view_exec ); |
---|
| 49 | } |
---|
[1812] | 50 | */ |
---|
[1809] | 51 | { |
---|
[1812] | 52 | gtk_box_pack_start(GTK_BOX(hbox_video_audio), orxonox_gui_exec_frame(hbox_video_audio), TRUE, TRUE, 0); |
---|
[1809] | 53 | |
---|
| 54 | } |
---|
| 55 | gtk_box_pack_start (GTK_BOX (vbox_main), hbox_view_exec, TRUE, TRUE, 0); |
---|
[1812] | 56 | } |
---|
[1809] | 57 | } |
---|
| 58 | gtk_container_add (GTK_CONTAINER (window), vbox_main); |
---|
| 59 | |
---|
| 60 | gtk_widget_show_all (window); |
---|
[1812] | 61 | |
---|
[1809] | 62 | app_drawed =1; |
---|
| 63 | gtk_main (); |
---|
| 64 | |
---|
| 65 | return(0); |
---|
| 66 | } |
---|