Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2008, 6:29:08 PM (17 years ago)
Author:
landauf
Message:

you'll love this: separated displayed strings in autocompletion from actually inserted strings, to make fancy things like a really good autocompletion for files and directories.

@bensch: this is the "better system" I was talking about

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/ConsoleCommand.h

    r1434 r1441  
    3434#include "Executor.h"
    3535#include "ClassManager.h"
    36 #include "Identifier.h"
    3736#include "CommandExecutor.h"
    3837#include "ArgumentCompletionFunctions.h"
     
    104103
    105104            void createArgumentCompletionList(unsigned int param, const std::string& param1 = "", const std::string& param2 = "", const std::string& param3 = "", const std::string& param4 = "", const std::string& param5 = "");
    106             const std::list<std::pair<std::string, std::string> >& getArgumentCompletionList() const
     105            const ArgumentCompletionList& getArgumentCompletionList() const
    107106                { return this->argumentList_; }
    108             std::list<std::pair<std::string, std::string> >::const_iterator getArgumentCompletionListBegin() const
     107            ArgumentCompletionList::const_iterator getArgumentCompletionListBegin() const
    109108                { return this->argumentList_.begin(); }
    110             std::list<std::pair<std::string, std::string> >::const_iterator getArgumentCompletionListEnd() const
     109            ArgumentCompletionList::const_iterator getArgumentCompletionListEnd() const
    111110                { return this->argumentList_.end(); }
    112111
     
    114113            AccessLevel::Level accessLevel_;
    115114            ArgumentCompleter* argumentCompleter_[5];
    116             std::list<std::pair<std::string, std::string> > argumentList_;
     115            ArgumentCompletionList argumentList_;
    117116    };
    118117
Note: See TracChangeset for help on using the changeset viewer.