Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1884 in orxonox.OLD


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

/orxonox/branch/gui/ log working now

Location:
orxonox/branches/gui/console
Files:
3 edited

Legend:

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

    r1882 r1884  
    3131void OrxonoxConsole::createWindow ()
    3232{
     33  //entry = new OrxonoxConsoleEntry(*log, entry);
    3334 
    3435  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
     
    4344      gtk_box_pack_start(GTK_BOX(vbox_main), log.createLog(), TRUE, TRUE, 0);
    4445      gtk_box_pack_start(GTK_BOX(vbox_main), entry.createEntry(), FALSE, FALSE, 0);
    45       entry.setLog(&log);
     46      entry.setLog(&log,&entry);
    4647    }
    4748  gtk_container_add(GTK_CONTAINER(window), vbox_main);
  • 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;
  • orxonox/branches/gui/console/orxonox_console_entry.h

    r1882 r1884  
    1919  GtkWidget *entry;
    2020  OrxonoxConsoleLog* consoleLog;
     21
     22  static OrxonoxConsoleEntry* test;
    2123 
    2224
    2325
    2426 public:
    25   //  OrxonoxConsoleEntry(OrxonoxConsoleLog* log);
     27  //OrxonoxConsoleEntry(OrxonoxConsoleLog* log, OrxonoxConsoleEntry* test);
    2628 
    2729  GtkWidget* createEntry(void);
    28   void setLog(OrxonoxConsoleLog* log);
     30  void setLog(OrxonoxConsoleLog* log, OrxonoxConsoleEntry* entry);
    2931  static void submit(GtkWidget *widget, GtkWidget* data);
    3032  void sendtoLog(char* submitText);
Note: See TracChangeset for help on using the changeset viewer.