Changeset 5188 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Sep 17, 2005, 1:45:40 AM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r5174 r5188 35 35 ShellCommandClass::ShellCommandClass(const char* className) 36 36 { 37 this->setClassID(CL_SHELL_COMMAND_CLASS, "ShellCommandClass"); 38 this->setName(className); 39 37 40 this->className = className; 38 41 this->classID = CL_NULL; -
trunk/src/lib/shell/shell_completion.cc
r5187 r5188 49 49 if (this->completionList) 50 50 { 51 this->emptyCompletionList(); 51 52 delete this->completionList; 52 53 } … … 85 86 } 86 87 if (this->input->getInput() == NULL) 87 return this-> classComplete("");88 return this->objectComplete("", CL_SHELL_COMMAND_CLASS); 88 89 89 90 … … 97 98 { 98 99 PRINTF(5)("Listing all Classes\n"); 99 this-> classComplete("");100 this->objectComplete("", CL_SHELL_COMMAND_CLASS); 100 101 return false; 101 102 } 102 103 else if (inputSplits.getCount() == 1 && strlen(inputSplits.getString(0)) == strlen(completionLine)) 103 104 { 104 printf("trying to complete a Class with %d\n", inputSplits.getString(0));105 this-> classComplete(inputSplits.getString(0));105 printf("trying to complete a Class with '%s'\n", inputSplits.getString(0)); 106 this->objectComplete(inputSplits.getString(0), CL_SHELL_COMMAND_CLASS); 106 107 } 107 108 … … 182 183 bool ShellCompletion::objectComplete(const char* objectBegin, long classID) 183 184 { 184 printf("%s\n", objectBegin);185 186 185 if (unlikely(objectBegin == NULL)) 187 186 return false; … … 189 188 if (boList != NULL) 190 189 { 191 printf("\n", boList->firstElement()->getName());190 //printf("%s\n", boList->firstElement()->getName()); 192 191 const tList<ShellC_Element>* objectList = this->addToCompleteList(boList, objectBegin); 193 192 if (objectList != NULL) … … 325 324 newElem->name = enumBO->getName(); 326 325 this->completionList->add(newElem); 326 printf("%s\n",enumBO->getName()); 327 327 } 328 328 enumBO = iterator->nextElement();
Note: See TracChangeset
for help on using the changeset viewer.