Changeset 1880 in orxonox.OLD for orxonox/branches/gui/console/orxonox_console_log.cc
- Timestamp:
- May 8, 2004, 1:56:59 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/gui/console/orxonox_console_log.cc
r1878 r1880 29 29 GtkWidget* OrxonoxConsoleLog::createLog() 30 30 { 31 //frame = gtk_frame_new ("Console Log:"); 32 frame = gtk_scrolled_window_new (NULL, NULL); 33 34 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (frame), 35 GTK_POLICY_AUTOMATIC, 36 GTK_POLICY_AUTOMATIC); 37 38 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (frame), 39 GTK_SHADOW_IN); 40 gtk_container_set_border_width (GTK_CONTAINER(frame), 5); 41 42 log = gtk_text_view_new(); 43 gtk_text_view_set_editable(GTK_TEXT_VIEW(log), FALSE); 44 gtk_container_add(GTK_CONTAINER(frame), log); 45 31 frame = gtk_frame_new ("Console Log:"); 32 { 33 scrollframe = gtk_scrolled_window_new (NULL, NULL); 34 logtext = new char; 35 36 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrollframe), 37 GTK_POLICY_AUTOMATIC, 38 GTK_POLICY_AUTOMATIC); 39 40 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrollframe), 41 GTK_SHADOW_IN); 42 gtk_container_set_border_width (GTK_CONTAINER(scrollframe), 5); 43 44 log = gtk_text_view_new(); 45 gtk_text_view_set_editable(GTK_TEXT_VIEW(log), FALSE); 46 gtk_container_add(GTK_CONTAINER(scrollframe), log); 47 gtk_container_add(GTK_CONTAINER(frame),scrollframe); 48 } 46 49 return (frame); 47 50 } 48 51 52 void OrxonoxConsoleLog::appendText(char* append) 53 { 54 printf ("appending %s\n", append); 55 /* strcat(logtext, append); 56 printf(logtext); 57 return;*/ 58 } 59 60 void OrxonoxConsoleLog::clear() 61 { 62 sprintf(logtext, ""); 63 return; 64 }
Note: See TracChangeset
for help on using the changeset viewer.