Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2004, 1:22:35 PM (21 years ago)
Author:
patrick
Message:

/orxonox/branch/gui/ log working now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/gui/console/orxonox_console_entry.cc

    r1882 r1884  
    2727#include "orxonox_console_entry.h"
    2828
    29 /*OrxonoxConsoleEntry::OrxonoxConsoleEntry(OrxonoxConsoleLog* log)
    30   {
     29
     30OrxonoxConsoleEntry* OrxonoxConsoleEntry::test = 0;
     31
     32/*
     33OrxonoxConsoleEntry::OrxonoxConsoleEntry(OrxonoxConsoleLog* log,
     34                                         OrxonoxConsoleEntry* test)
     35{
    3136  consoleLog = log;
    32   }*/
     37
     38}
     39*/
    3340
    3441GtkWidget* OrxonoxConsoleEntry::createEntry()
     
    5562}
    5663
    57 void OrxonoxConsoleEntry::setLog(OrxonoxConsoleLog* log)
     64void OrxonoxConsoleEntry::setLog(OrxonoxConsoleLog* log, OrxonoxConsoleEntry* entry)
    5865{
    5966  consoleLog = log;
     67  test = entry;
    6068}
    6169
     
    6573  char* entryText = (char*)gtk_entry_get_text(GTK_ENTRY(entry));
    6674  printf("%s\n", entryText);
    67   //sendtoLog(entryText);
     75  test->sendtoLog(entryText);
    6876  gtk_entry_set_text(GTK_ENTRY(entry),"");
    6977  // freen entryText;
Note: See TracChangeset for help on using the changeset viewer.