- Timestamp:
- Aug 26, 2010, 12:09:12 AM (14 years ago)
- Location:
- code/branches/consolecommands3/src/libraries/core/command
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/command/ConsoleCommandCompilation.cc
r7202 r7219 37 37 #include "util/StringUtils.h" 38 38 #include "ConsoleCommand.h" 39 #include "CommandExecutor.h" 39 40 40 41 namespace orxonox 41 42 { 42 SetConsoleCommandShortcutExtern(source).argumentCompleter(0, autocompletion::files());43 SetConsoleCommandShortcutExtern(echo);44 SetConsoleCommandShortcutExtern(puts);43 _SetConsoleCommand("source", source).argumentCompleter(0, autocompletion::files()); 44 _SetConsoleCommand("echo", echo); 45 _SetConsoleCommand("puts", puts); 45 46 46 SetConsoleCommandShortcutExtern(read).argumentCompleter(0, autocompletion::files());47 SetConsoleCommandShortcutExtern(append).argumentCompleter(0, autocompletion::files());48 SetConsoleCommandShortcutExtern(write).argumentCompleter(0, autocompletion::files());47 _SetConsoleCommand("read", read).argumentCompleter(0, autocompletion::files()); 48 _SetConsoleCommand("append", append).argumentCompleter(0, autocompletion::files()); 49 _SetConsoleCommand("write", write).argumentCompleter(0, autocompletion::files()); 49 50 50 SetConsoleCommandShortcutExtern(calculate);51 _SetConsoleCommand("calculate", calculate); 51 52 52 53 void source(const std::string& filename) -
code/branches/consolecommands3/src/libraries/core/command/IRC.cc
r7203 r7219 42 42 static const unsigned int IRC_TCL_THREADID = 1421421421; 43 43 44 SetConsoleCommand(IRC, say, true).accessLevel(AccessLevel::User);45 SetConsoleCommand(IRC, msg, false).accessLevel(AccessLevel::User);46 SetConsoleCommand(IRC, nick, false).accessLevel(AccessLevel::User);44 _SetConsoleCommand("IRC", "say", &IRC::say); 45 _SetConsoleCommand("IRC", "msg", &IRC::msg); 46 _SetConsoleCommand("IRC", "nick", &IRC::nick); 47 47 48 48 IRC::IRC() -
code/branches/consolecommands3/src/libraries/core/command/Shell.cc
r7203 r7219 40 40 namespace orxonox 41 41 { 42 SetConsoleCommandShortcut(OutputHandler, log);43 SetConsoleCommandShortcut(OutputHandler, error);44 SetConsoleCommandShortcut(OutputHandler,warning);45 SetConsoleCommandShortcut(OutputHandler, info);46 SetConsoleCommandShortcut(OutputHandler, debug);42 _SetConsoleCommand("log", OutputHandler::log ); 43 _SetConsoleCommand("error", OutputHandler::error ); 44 _SetConsoleCommand("warning", OutputHandler::warning); 45 _SetConsoleCommand("info", OutputHandler::info ); 46 _SetConsoleCommand("debug", OutputHandler::debug ); 47 47 48 48 Shell::Shell(const std::string& consoleName, bool bScrollable) -
code/branches/consolecommands3/src/libraries/core/command/TclBind.cc
r7203 r7219 44 44 namespace orxonox 45 45 { 46 SetConsoleCommandShortcut(TclBind,tcl);47 SetConsoleCommandShortcut(TclBind,bgerror);46 _SetConsoleCommand("tcl", &TclBind::tcl); 47 _SetConsoleCommand("bgerror", &TclBind::bgerror); 48 48 49 49 TclBind* TclBind::singletonPtr_s = 0; -
code/branches/consolecommands3/src/libraries/core/command/TclThreadManager.cc
r7203 r7219 50 50 const float TCLTHREADMANAGER_MAX_CPU_USAGE = 0.50f; 51 51 52 SetConsoleCommandShortcutAlias(TclThreadManager, execute, "tclexecute").argumentCompleter(0, autocompletion::tclthreads());53 SetConsoleCommandShortcutAlias(TclThreadManager, query, "tclquery").argumentCompleter(0, autocompletion::tclthreads());54 SetConsoleCommand(TclThreadManager, create, false);55 SetConsoleCommand(TclThreadManager, destroy, false).argumentCompleter(0, autocompletion::tclthreads());56 SetConsoleCommand(TclThreadManager, execute, false).argumentCompleter(0, autocompletion::tclthreads());57 SetConsoleCommand(TclThreadManager, query, false).argumentCompleter(0, autocompletion::tclthreads());58 SetConsoleCommand(TclThreadManager, source, false).argumentCompleter(0, autocompletion::tclthreads());52 _SetConsoleCommand("tclexecute", &TclThreadManager::execute).argumentCompleter(0, autocompletion::tclthreads()); 53 _SetConsoleCommand("tclquery", &TclThreadManager::query ).argumentCompleter(0, autocompletion::tclthreads()); 54 _SetConsoleCommand("TclThreadManager", "create", &TclThreadManager::create); 55 _SetConsoleCommand("TclThreadManager", "destroy", &TclThreadManager::destroy).argumentCompleter(0, autocompletion::tclthreads()); 56 _SetConsoleCommand("TclThreadManager", "execute", &TclThreadManager::execute).argumentCompleter(0, autocompletion::tclthreads()); 57 _SetConsoleCommand("TclThreadManager", "query", &TclThreadManager::query ).argumentCompleter(0, autocompletion::tclthreads()); 58 _SetConsoleCommand("TclThreadManager", "source", &TclThreadManager::source ).argumentCompleter(0, autocompletion::tclthreads()); 59 59 60 60 /**
Note: See TracChangeset
for help on using the changeset viewer.