Changeset 9715 in orxonox.OLD for branches/new_class_id/src/lib/shell
- Timestamp:
- Sep 1, 2006, 8:06:39 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/shell
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/shell/shell.cc
r9692 r9715 54 54 ->completionPlugin(0, OrxShell::CompletorFileSystem(".ttf", "fonts/")); 55 55 56 NewObjectListDefinition(Shell);56 ObjectListDefinition(Shell); 57 57 58 58 /** -
branches/new_class_id/src/lib/shell/shell.h
r9692 r9715 48 48 class Shell : public Element2D, public EventListener 49 49 { 50 NewObjectListDeclaration(Shell);50 ObjectListDeclaration(Shell); 51 51 public: 52 52 Shell(); -
branches/new_class_id/src/lib/shell/shell_command.cc
r9709 r9715 26 26 namespace OrxShell 27 27 { 28 NewObjectListDefinition(ShellCommand);28 ObjectListDefinition(ShellCommand); 29 29 SHELL_COMMAND(debug, ShellCommandClass, help); 30 30 … … 241 241 return false; 242 242 243 const NewObjectListBase* const objectList = NewObjectListBase::getObjectList(cmd->shellClass->getName());243 const ObjectListBase* const objectList = ObjectListBase::getObjectList(cmd->shellClass->getName()); 244 244 if (objectList != NULL) 245 245 { 246 NewObjectListBase::base_list list;246 ObjectListBase::base_list list; 247 247 objectList->getBaseObjectList(&list); 248 NewObjectListBase::base_iterator it;248 ObjectListBase::base_iterator it; 249 249 250 250 // No Description given (only for speedup) -
branches/new_class_id/src/lib/shell/shell_command.h
r9692 r9715 58 58 class ShellCommand : public BaseObject 59 59 { 60 NewObjectListDeclaration(ShellCommand);60 ObjectListDeclaration(ShellCommand); 61 61 62 62 friend class ShellCommandClass; -
branches/new_class_id/src/lib/shell/shell_command_class.cc
r9697 r9715 27 27 namespace OrxShell 28 28 { 29 NewObjectListDefinition(ShellCommandClass);29 ObjectListDefinition(ShellCommandClass); 30 30 31 31 CmdClassList* ShellCommandClass::_commandClassList = NULL; -
branches/new_class_id/src/lib/shell/shell_command_class.h
r9697 r9715 25 25 class ShellCommandClass : public BaseObject 26 26 { 27 NewObjectListDeclaration(ShellCommandClass);27 ObjectListDeclaration(ShellCommandClass); 28 28 29 29 friend class ShellCommand; … … 36 36 static void unregisterAllCommands(); 37 37 static ShellCommandClass* getCommandClass(const std::string& className); 38 NewClassID getClassID();38 ClassID getClassID(); 39 39 static bool exists(const std::string& className); 40 40 -
branches/new_class_id/src/lib/shell/shell_completion.cc
r9709 r9715 50 50 bool ShellCompletion::autoComplete(std::string& input) 51 51 { 52 NewClassID classID;53 const NewObjectListBase* objectList = NULL; //< the list of Objects stored in classID's ClassList52 ClassID classID; 53 const ObjectListBase* objectList = NULL; //< the list of Objects stored in classID's ClassList 54 54 bool emptyComplete = false; //< if the completion input is empty string. e.g "" 55 55 long completeType = NullCompletion; //< the Type we'd like to complete. … … 84 84 (!emptyComplete && inputSplits.size() == 2)) 85 85 { 86 objectList = NewObjectListBase::getObjectList(inputSplits[0]);86 objectList = ObjectListBase::getObjectList(inputSplits[0]); 87 87 if (objectList != NULL) 88 88 classID = objectList->identity(); … … 95 95 (!emptyComplete && inputSplits.size() == 3)) 96 96 { 97 if ( NewObjectListBase::getBaseObject(inputSplits[0], inputSplits[1]))97 if (ObjectListBase::getBaseObject(inputSplits[0], inputSplits[1])) 98 98 completeType |= FunctionCompletion; 99 99 } … … 133 133 * @return true on success, false otherwise 134 134 */ 135 bool ShellCompletion::objectComplete(const std::string& objectBegin, const NewObjectListBase* objectList)135 bool ShellCompletion::objectComplete(const std::string& objectBegin, const ObjectListBase* objectList) 136 136 { 137 137 assert (objectList != NULL); … … 141 141 type = ClassCompletion; 142 142 143 NewObjectListBase::base_list list;143 ObjectListBase::base_list list; 144 144 objectList->getBaseObjectList(&list); 145 145 -
branches/new_class_id/src/lib/shell/shell_completion.h
r9697 r9715 16 16 // FORWARD DECLARATION 17 17 class BaseObject; 18 class NewObjectListBase;18 class ObjectListBase; 19 19 20 20 namespace OrxShell … … 54 54 55 55 private: 56 bool objectComplete(const std::string& objectBegin, const NewObjectListBase* const objectList);56 bool objectComplete(const std::string& objectBegin, const ObjectListBase* const objectList); 57 57 bool commandComplete(const std::string& commandBegin, const std::string& className); 58 58 bool aliasComplete(const std::string& aliasBegin); -
branches/new_class_id/src/lib/shell/shell_input.cc
r9692 r9715 32 32 ->setAlias("help"); 33 33 34 NewObjectListDefinition(ShellInput);34 ObjectListDefinition(ShellInput); 35 35 36 36 /** -
branches/new_class_id/src/lib/shell/shell_input.h
r9692 r9715 30 30 class ShellInput : public Text, public EventListener 31 31 { 32 NewObjectListDeclaration(ShellInput);32 ObjectListDeclaration(ShellInput); 33 33 34 34 public:
Note: See TracChangeset
for help on using the changeset viewer.