Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1151


Ignore:
Timestamp:
Apr 24, 2008, 12:47:29 AM (17 years ago)
Author:
landauf
Message:

added cpptcl and some first tests

Location:
code/branches/console
Files:
19 added
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/CMakeLists.txt

    r1133 r1151  
    6363FIND_PACKAGE(ZLIB)
    6464FIND_PACKAGE(Lua)
     65FIND_PACKAGE(TCL)
    6566
    6667#Set the search paths for the linking
     
    7273  ${Boost_LIBRARY_DIRS}
    7374  ${Zlib_LIBRARY_DIR}
     75  ${TCL_LIBRARY}
    7476)
    7577
     
    8688  ${OGG_INCLUDE_DIR}
    8789  ${Lua_INCLUDE_DIR}
     90  ${TCL_INCLUDE_PATH}
    8891)
    8992
  • code/branches/console/src/CMakeLists.txt

    r1115 r1151  
    11INCLUDE_DIRECTORIES(.)
    22INCLUDE_DIRECTORIES(orxonox)
    3 INCLUDE_DIRECTORIES(tolua)
    43
    54ADD_SUBDIRECTORY(tolua)
     5ADD_SUBDIRECTORY(cpptcl)
    66ADD_SUBDIRECTORY(util)
    77ADD_SUBDIRECTORY(core)
  • code/branches/console/src/core/CMakeLists.txt

    r1133 r1151  
    2626  Tickable.cc
    2727  Script.cc
     28  TclBind.cc
    2829)
    2930
     
    3334  util
    3435  tolualib
     36  cpptcl
    3537  ${Lua_LIBRARIES}
    3638  ${OIS_LIBRARIES}
  • code/branches/console/src/core/InputBuffer.cc

    r1066 r1151  
    3939    {
    4040        //this->bActivated_ = false;
    41         this->allowedChars_ = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZäöüÄÖÜ0123456789 \\\"().:,;_-+*/=!?<>[|]";
     41        this->allowedChars_ = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZäöüÄÖÜ0123456789 \\\"(){}[]<>.:,;_-+*/=!?|$&%^";
    4242        this->keyboard_ = InputManager::getSingleton().getKeyboard();
    4343        this->buffer_ = "";
    4444
    4545        //this->keyboard_->setEventCallback(this);
     46    }
     47
     48    InputBuffer::InputBuffer(const std::string allowedChars)
     49    {
     50        //this->bActivated_ = false;
     51        this->allowedChars_ = allowedChars;
     52        this->keyboard_ = InputManager::getSingleton().getKeyboard();
     53        this->buffer_ = "";
    4654    }
    4755/*
  • code/branches/console/src/core/InputBuffer.h

    r1142 r1151  
    5959        public:
    6060            InputBuffer();
     61            InputBuffer(const std::string allowedChars);
    6162
    6263            template <class T>
  • code/branches/console/src/orxonox/Orxonox.cc

    r1145 r1151  
    423423    ib->registerListener(console, &Testconsole::listen, true);
    424424    ib->registerListener(console, &Testconsole::execute, '\r', false);
    425     ib->registerListener(console, &Testconsole::execute, '\n', false);
    426425    ib->registerListener(console, &Testconsole::hintandcomplete, '\t', true);
    427426    ib->registerListener(console, &Testconsole::clear, '§', true);
     
    433432    ib->registerListener(orxonoxConsole_, &InGameConsole::listen, true);
    434433    ib->registerListener(orxonoxConsole_, &InGameConsole::execute, '\r', false);
    435     ib->registerListener(orxonoxConsole_, &InGameConsole::execute, '\n', false);
    436434    ib->registerListener(orxonoxConsole_, &InGameConsole::hintandcomplete, '\t', true);
    437435    ib->registerListener(orxonoxConsole_, &InGameConsole::clear, '§', true);
Note: See TracChangeset for help on using the changeset viewer.