Changeset 1908 in orxonox.OLD for orxonox/branches/gui/console
- Timestamp:
- Jun 2, 2004, 12:55:48 AM (21 years ago)
- Location:
- orxonox/branches/gui/console
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/gui/console/orxonox_console.cc
r1893 r1908 41 41 vbox_main = gtk_vbox_new(FALSE, 5); 42 42 { 43 gtk_box_pack_start(GTK_BOX(vbox_main), entry.createEntry(), FALSE, FALSE, 0); 43 44 gtk_box_pack_start(GTK_BOX(vbox_main), log.createLog(), TRUE, TRUE, 0); 44 gtk_box_pack_start(GTK_BOX(vbox_main), entry.createEntry(), FALSE, FALSE, 0);45 45 entry.setLog(&log); 46 46 } -
orxonox/branches/gui/console/orxonox_console_log.cc
r1907 r1908 47 47 gtk_container_add(GTK_CONTAINER(scrollframe), logView); 48 48 gtk_container_add(GTK_CONTAINER(frame),scrollframe); 49 gtk_text_buffer_set_text (log, "Orxonox Console :\n", -1);49 gtk_text_buffer_set_text (log, "Orxonox Console started.\n", -1); 50 50 51 51 } … … 55 55 void OrxonoxConsoleLog::appendText(char* append) 56 56 { 57 GtkTextIter iter; 57 58 if (verbose>=1) 58 59 printf ("appending: %s\n", append); 59 60 strcat (append,"\n"); 61 gtk_text_buffer_get_start_iter (log, &iter); 62 gtk_text_buffer_place_cursor (log, &iter); 60 63 gtk_text_buffer_insert_at_cursor (log, append, -1); 61 64 return;
Note: See TracChangeset
for help on using the changeset viewer.