Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/bensch/orxonox_gui.c @ 1812

Last change on this file since 1812 was 1812, checked in by bensch, 21 years ago

orxonox/branches/bensch: added exec.h and edited

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