Changeset 1884 in orxonox.OLD for orxonox/branches/gui/console
- Timestamp:
- May 10, 2004, 1:22:35 PM (21 years ago)
- Location:
- orxonox/branches/gui/console
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/gui/console/orxonox_console.cc
r1882 r1884 31 31 void OrxonoxConsole::createWindow () 32 32 { 33 //entry = new OrxonoxConsoleEntry(*log, entry); 33 34 34 35 window = gtk_window_new (GTK_WINDOW_TOPLEVEL); … … 43 44 gtk_box_pack_start(GTK_BOX(vbox_main), log.createLog(), TRUE, TRUE, 0); 44 45 gtk_box_pack_start(GTK_BOX(vbox_main), entry.createEntry(), FALSE, FALSE, 0); 45 entry.setLog(&log );46 entry.setLog(&log,&entry); 46 47 } 47 48 gtk_container_add(GTK_CONTAINER(window), vbox_main); -
orxonox/branches/gui/console/orxonox_console_entry.cc
r1882 r1884 27 27 #include "orxonox_console_entry.h" 28 28 29 /*OrxonoxConsoleEntry::OrxonoxConsoleEntry(OrxonoxConsoleLog* log) 30 { 29 30 OrxonoxConsoleEntry* OrxonoxConsoleEntry::test = 0; 31 32 /* 33 OrxonoxConsoleEntry::OrxonoxConsoleEntry(OrxonoxConsoleLog* log, 34 OrxonoxConsoleEntry* test) 35 { 31 36 consoleLog = log; 32 }*/ 37 38 } 39 */ 33 40 34 41 GtkWidget* OrxonoxConsoleEntry::createEntry() … … 55 62 } 56 63 57 void OrxonoxConsoleEntry::setLog(OrxonoxConsoleLog* log )64 void OrxonoxConsoleEntry::setLog(OrxonoxConsoleLog* log, OrxonoxConsoleEntry* entry) 58 65 { 59 66 consoleLog = log; 67 test = entry; 60 68 } 61 69 … … 65 73 char* entryText = (char*)gtk_entry_get_text(GTK_ENTRY(entry)); 66 74 printf("%s\n", entryText); 67 //sendtoLog(entryText);75 test->sendtoLog(entryText); 68 76 gtk_entry_set_text(GTK_ENTRY(entry),""); 69 77 // freen entryText; -
orxonox/branches/gui/console/orxonox_console_entry.h
r1882 r1884 19 19 GtkWidget *entry; 20 20 OrxonoxConsoleLog* consoleLog; 21 22 static OrxonoxConsoleEntry* test; 21 23 22 24 23 25 24 26 public: 25 // OrxonoxConsoleEntry(OrxonoxConsoleLog* log);27 //OrxonoxConsoleEntry(OrxonoxConsoleLog* log, OrxonoxConsoleEntry* test); 26 28 27 29 GtkWidget* createEntry(void); 28 void setLog(OrxonoxConsoleLog* log );30 void setLog(OrxonoxConsoleLog* log, OrxonoxConsoleEntry* entry); 29 31 static void submit(GtkWidget *widget, GtkWidget* data); 30 32 void sendtoLog(char* submitText);
Note: See TracChangeset
for help on using the changeset viewer.