|
Last change
on this file since 1817 was
1817,
checked in by bensch, 22 years ago
|
|
orxonox/branches/bensch: added default settings and video-init
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | #include "orxonox_gui_video.h" |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | /* Drawing The VIDEO_FRAME */ |
|---|
| 8 | GtkWidget *orxonox_gui_video_frame (struct settings *orxonox_settings) |
|---|
| 9 | { |
|---|
| 10 | GtkWidget *frame; |
|---|
| 11 | GtkWidget *fullscreen_button; |
|---|
| 12 | GtkWidget *wireframe_button; |
|---|
| 13 | |
|---|
| 14 | frame = gtk_frame_new ( "Video-Options:"); |
|---|
| 15 | { |
|---|
| 16 | GtkWidget *orxonox_gui_video_vbox; |
|---|
| 17 | orxonox_gui_video_vbox = gtk_vbox_new (FALSE, 0); |
|---|
| 18 | { |
|---|
| 19 | fullscreen_button = gtk_check_button_new_with_label ("Fullscreen-mode"); |
|---|
| 20 | gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fullscreen_button), orxonox_settings->video_fullscreen); |
|---|
| 21 | |
|---|
| 22 | /* gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_gui_video_fullscreen); |
|---|
| 23 | */ |
|---|
| 24 | gtk_box_pack_start(GTK_BOX (orxonox_gui_video_vbox), fullscreen_button, TRUE, TRUE, 0); |
|---|
| 25 | |
|---|
| 26 | wireframe_button = gtk_check_button_new_with_label ("Wireframe-mode"); |
|---|
| 27 | gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wireframe_button), orxonox_settings->video_wireframe); |
|---|
| 28 | /* gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_gui_video_Wireframe); |
|---|
| 29 | */ |
|---|
| 30 | gtk_box_pack_start(GTK_BOX (orxonox_gui_video_vbox), wireframe_button, TRUE, TRUE, 0); |
|---|
| 31 | |
|---|
| 32 | } |
|---|
| 33 | gtk_container_add(GTK_CONTAINER(frame), orxonox_gui_video_vbox); |
|---|
| 34 | } |
|---|
| 35 | |
|---|
| 36 | return frame; |
|---|
| 37 | |
|---|
| 38 | } |
|---|
| 39 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.