Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5179 in orxonox.OLD for trunk/src/lib/shell/shell.h


Ignore:
Timestamp:
Sep 13, 2005, 11:23:34 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ShellInput is now almost perfectly extern.
ShellCompletion taken out.
Working again :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.h

    r5178 r5179  
    1414// FORWARD DECLARATION
    1515class Text;
     16class ShellInput;
    1617class ShellCommandBase;
    1718template<class T> class tList;
     
    5152    void printToDisplayBuffer(const char* text);
    5253
    53     // InputLine
    54     void flushInputLine();
    55     void addCharacter(char character);
    56     void addCharacters(const char* characters);
    57     void removeCharacters(unsigned int characterCount = 1);
    58     void setRepeatDelay(float repeatDelay, float repeatRate);
    59     bool executeCommand();
    60 
    6154    void clear();
    6255
     
    7366
    7467  private:
    75     bool autoComplete();
    76     bool classComplete(const char* classBegin);
    77     bool objectComplete(const char* objectBegin, long classID);
    78     bool functionComplete(const char* functionBegin);
    79 
    80     bool generalComplete(const tList<const char>* stringList, const char* begin, const char* displayAs = "%s", const char* addBack = NULL, const char* addFront = NULL);
    81 
    82     const tList<const char>* createCompleteList(const tList<const char>* inputList, const char* classNameBegin);
    83     const tList<const char>* createCompleteList(const tList<BaseObject>* inputList, const char* classNameBegin);
    84 //    const tList<const char>* createCompleteList(const tList<ShellCommandBase>* inputList, const char* classNameBegin);
    8568
    8669    // helpers //
     
    9982
    10083    // HANDLING TEXT INPUT
    101     Text*                    inputLineText;          //!< The inputLine of the Shell
    102     char*                    inputLine;              //!< the Char-Array of the Buffer
     84    ShellInput*              shellInput;
     85
    10386    float                    repeatRate;             //!< The Repeat-Delay.
    10487    float                    repeatDelay;            //!< The delay of the first Character of a given Character.
Note: See TracChangeset for help on using the changeset viewer.