Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Sep 13, 2005, 12:12:11 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: added class ShellInput for the InputLine, also worked a bit on ShellCompletion

File:
1 copied

Legend:

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

    r5177 r5178  
    11/*!
    2  * @file proto_class.h
     2 * @file shell_input.h
    33 * @brief Definition of ...
    44*/
    55
    6 #ifndef _PROTO_CLASS_H
    7 #define _PROTO_CLASS_H
    8 
    9 #include "base_object.h"
     6#ifndef _SHELL_INPUT_H
     7#define _SHELL_INPUT_H
    108
    119// FORWARD DECLARATION
    12 
     10class Text;
     11template<class T> class tList;
    1312
    1413
    1514//! A class for ...
    16 class ProtoClass : public BaseObject {
     15class ShellInput {
    1716
    1817 public:
    19   ProtoClass();
    20   virtual ~ProtoClass();
     18  ShellInput();
     19  virtual ~ShellInput();
     20
     21
     22  // InputLine
     23  void flush();
     24  void addCharacter(char character);
     25  void addCharacters(const char* characters);
     26  void removeCharacters(unsigned int characterCount = 1);
     27  void setRepeatDelay(float repeatDelay, float repeatRate);
    2128
    2229
    2330 private:
     31    // HANDLING TEXT INPUT
     32   Text*                    inputLineText;          //!< The inputLine of the Shell
     33   char*                    inputLine;              //!< the Char-Array of the Buffer
     34   float                    repeatRate;             //!< The Repeat-Delay.
     35   float                    repeatDelay;            //!< The delay of the first Character of a given Character.
     36   float                    delayed;                //!< how much of the delay is remaining.
     37   int                      pressedKey;             //!< the pressed key that will be repeated.
     38
     39   tList<char>*             inputHistory;           //!< The history of given commands.
    2440
    2541};
    2642
    27 #endif /* _PROTO_CLASS_H */
     43#endif /* _SHELL_INPUT_H */
Note: See TracChangeset for help on using the changeset viewer.