Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9715 in orxonox.OLD for branches/new_class_id/src/lib/shell


Ignore:
Timestamp:
Sep 1, 2006, 8:06:39 PM (18 years ago)
Author:
bensch
Message:

renamed newclassid to classid and newobjectlist to objectlist

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  
    5454  ->completionPlugin(0, OrxShell::CompletorFileSystem(".ttf", "fonts/"));
    5555
    56   NewObjectListDefinition(Shell);
     56  ObjectListDefinition(Shell);
    5757
    5858  /**
  • branches/new_class_id/src/lib/shell/shell.h

    r9692 r9715  
    4848  class Shell : public Element2D, public EventListener
    4949  {
    50     NewObjectListDeclaration(Shell);
     50    ObjectListDeclaration(Shell);
    5151  public:
    5252    Shell();
  • branches/new_class_id/src/lib/shell/shell_command.cc

    r9709 r9715  
    2626namespace OrxShell
    2727{
    28   NewObjectListDefinition(ShellCommand);
     28  ObjectListDefinition(ShellCommand);
    2929  SHELL_COMMAND(debug, ShellCommandClass, help);
    3030
     
    241241      return false;
    242242
    243     const NewObjectListBase* const objectList = NewObjectListBase::getObjectList(cmd->shellClass->getName());
     243    const ObjectListBase* const objectList = ObjectListBase::getObjectList(cmd->shellClass->getName());
    244244    if (objectList != NULL)
    245245    {
    246       NewObjectListBase::base_list list;
     246      ObjectListBase::base_list list;
    247247      objectList->getBaseObjectList(&list);
    248       NewObjectListBase::base_iterator it;
     248      ObjectListBase::base_iterator it;
    249249
    250250      // No Description given (only for speedup)
  • branches/new_class_id/src/lib/shell/shell_command.h

    r9692 r9715  
    5858  class ShellCommand : public BaseObject
    5959  {
    60     NewObjectListDeclaration(ShellCommand);
     60    ObjectListDeclaration(ShellCommand);
    6161
    6262    friend class ShellCommandClass;
  • branches/new_class_id/src/lib/shell/shell_command_class.cc

    r9697 r9715  
    2727namespace OrxShell
    2828{
    29   NewObjectListDefinition(ShellCommandClass);
     29  ObjectListDefinition(ShellCommandClass);
    3030
    3131  CmdClassList* ShellCommandClass::_commandClassList = NULL;
  • branches/new_class_id/src/lib/shell/shell_command_class.h

    r9697 r9715  
    2525  class ShellCommandClass : public BaseObject
    2626  {
    27     NewObjectListDeclaration(ShellCommandClass);
     27    ObjectListDeclaration(ShellCommandClass);
    2828
    2929    friend class ShellCommand;
     
    3636    static void unregisterAllCommands();
    3737    static ShellCommandClass* getCommandClass(const std::string& className);
    38     NewClassID getClassID();
     38    ClassID getClassID();
    3939    static bool exists(const std::string& className);
    4040
  • branches/new_class_id/src/lib/shell/shell_completion.cc

    r9709 r9715  
    5050  bool ShellCompletion::autoComplete(std::string& input)
    5151  {
    52     NewClassID classID;
    53     const NewObjectListBase* objectList = NULL;      //< the list of Objects stored in classID's ClassList
     52    ClassID classID;
     53    const ObjectListBase* objectList = NULL;      //< the list of Objects stored in classID's ClassList
    5454    bool emptyComplete = false;                      //< if the completion input is empty string. e.g ""
    5555    long completeType = NullCompletion;              //< the Type we'd like to complete.
     
    8484             (!emptyComplete && inputSplits.size() == 2))
    8585    {
    86       objectList = NewObjectListBase::getObjectList(inputSplits[0]);
     86      objectList = ObjectListBase::getObjectList(inputSplits[0]);
    8787      if (objectList != NULL)
    8888        classID = objectList->identity();
     
    9595             (!emptyComplete && inputSplits.size() == 3))
    9696    {
    97       if (NewObjectListBase::getBaseObject(inputSplits[0], inputSplits[1]))
     97      if (ObjectListBase::getBaseObject(inputSplits[0], inputSplits[1]))
    9898        completeType |= FunctionCompletion;
    9999    }
     
    133133   * @return true on success, false otherwise
    134134   */
    135   bool ShellCompletion::objectComplete(const std::string& objectBegin, const NewObjectListBase* objectList)
     135  bool ShellCompletion::objectComplete(const std::string& objectBegin, const ObjectListBase* objectList)
    136136  {
    137137    assert (objectList != NULL);
     
    141141      type = ClassCompletion;
    142142
    143     NewObjectListBase::base_list list;
     143    ObjectListBase::base_list list;
    144144    objectList->getBaseObjectList(&list);
    145145
  • branches/new_class_id/src/lib/shell/shell_completion.h

    r9697 r9715  
    1616// FORWARD DECLARATION
    1717class BaseObject;
    18 class NewObjectListBase;
     18class ObjectListBase;
    1919
    2020namespace OrxShell
     
    5454
    5555    private:
    56       bool objectComplete(const std::string& objectBegin, const NewObjectListBase* const objectList);
     56      bool objectComplete(const std::string& objectBegin, const ObjectListBase* const objectList);
    5757      bool commandComplete(const std::string& commandBegin, const std::string& className);
    5858      bool aliasComplete(const std::string& aliasBegin);
  • branches/new_class_id/src/lib/shell/shell_input.cc

    r9692 r9715  
    3232  ->setAlias("help");
    3333
    34   NewObjectListDefinition(ShellInput);
     34  ObjectListDefinition(ShellInput);
    3535
    3636  /**
  • branches/new_class_id/src/lib/shell/shell_input.h

    r9692 r9715  
    3030  class ShellInput : public Text,  public EventListener
    3131  {
    32     NewObjectListDeclaration(ShellInput);
     32    ObjectListDeclaration(ShellInput);
    3333
    3434  public:
Note: See TracChangeset for help on using the changeset viewer.