Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5129 in orxonox.OLD for trunk/src/util/shell.h


Ignore:
Timestamp:
Aug 25, 2005, 10:52:11 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: minor extension-addition to the Shell.

File:
1 edited

Legend:

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

    r5127 r5129  
    3737    /** @returns a Pointer to the only object of this Class */
    3838    inline static Shell* getInstance() { if (!Shell::singletonRef) Shell::singletonRef = new Shell();  return Shell::singletonRef; };
    39 
    4039
    4140    void activate();
     
    8281    bool generalComplete(const tList<const char>* stringList, const char* begin, const char* displayAs = "%s", const char* addBack = NULL, const char* addFront = NULL);
    8382
    84     const tList<const char>* Shell::createCompleteList(const tList<const char>* inputList, const char* classNameBegin);
    85     const tList<const char>* Shell::createCompleteList(const tList<BaseObject>* inputList, const char* classNameBegin);
     83    const tList<const char>* createCompleteList(const tList<const char>* inputList, const char* classNameBegin);
     84    const tList<const char>* createCompleteList(const tList<BaseObject>* inputList, const char* classNameBegin);
    8685
    8786    // helpers //
     
    9190  private:
    9291    Shell();
    93     static Shell*          singletonRef;           //!< The singleton-reference to the only memeber of this class.
     92    static Shell*            singletonRef;           //!< The singleton-reference to the only memeber of this class.
    9493
    95     unsigned int           bufferSize;             //!< The Size of the buffer
    96     unsigned int           bufferDisplaySize;      //!< The Size of the Display-buffer, in lines (not in characters)
     94    unsigned int             bufferSize;             //!< The Size of the buffer
     95    unsigned int             bufferDisplaySize;      //!< The Size of the Display-buffer, in lines (not in characters)
    9796
    98     Text*                  inputLineText;          //!< The inputLine of the Shell
    99     char*                  inputLine;              //!< the Char-Array of the Buffer
    100     float                  repeatRate;             //!< The Repeat-Delay.
    101     float                  repeatDelay;            //!< The delay of the first Character of a given Character.
    102     float                  delayed;                //!< how much of the delay is remaining.
    103     int                    pressedKey;             //!< the pressed key that will be repeated.
     97    Text*                    inputLineText;          //!< The inputLine of the Shell
     98    char*                    inputLine;              //!< the Char-Array of the Buffer
     99    float                    repeatRate;             //!< The Repeat-Delay.
     100    float                    repeatDelay;            //!< The delay of the first Character of a given Character.
     101    float                    delayed;                //!< how much of the delay is remaining.
     102    int                      pressedKey;             //!< the pressed key that will be repeated.
    104103
    105     tList<char>*           buffer;                 //!< A list of stored char-arrays(strings) to store the history
    106     tIterator<char>*       bufferIterator;         //!< An iterator for the Shells main buffer.
     104    tList<char>*             buffer;                 //!< A list of stored char-arrays(strings) to store the history
     105    tIterator<char>*         bufferIterator;         //!< An iterator for the Shells main buffer.
    107106
    108     Text**                 bufferText;             //!< A list of stored bufferTexts for the display of the buffer
    109     unsigned int           textSize;               //!< The size of the text.
    110     unsigned int           lineSpacing;            //!< The Spacing between lines.
    111     unsigned int           shellHeight;            //!< The hight of the Shell in Pixels
    112     bool                   bActive;                //!< if the shell is active;
     107    tList<char>*             inputHistory;           //!< The history of given commands.
    113108
    114     char                   bufferArray[SHELL_BUFFER_SIZE];     //!< a BUFFER for fast writing
    115     char                   keepBufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER to have multi-non-newLine commands be copied into the shell.
    116     bool                   keepBuffer;
     109    Text**                   bufferText;             //!< A list of stored bufferTexts for the display of the buffer
     110    unsigned int             textSize;               //!< The size of the text.
     111    unsigned int             lineSpacing;            //!< The Spacing between lines.
     112    unsigned int             shellHeight;            //!< The hight of the Shell in Pixels
     113    bool                     bActive;                //!< if the shell is active;
     114
     115    char                     bufferArray[SHELL_BUFFER_SIZE];     //!< a BUFFER for fast writing
     116    char                     keepBufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER to have multi-non-newLine commands be copied into the shell.
     117    bool                     keepBuffer;
    117118
    118119    // completion
    119     tList<const char>*    completionList;          //!< A list of completions, that are io.
     120    tList<const char>*       completionList;          //!< A list of completions, that are io.
    120121};
    121122
Note: See TracChangeset for help on using the changeset viewer.