Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/shell/shell_input.h @ 5179

Last change on this file since 5179 was 5179, checked in by bensch, 19 years ago

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

File size: 1.2 KB
Line 
1/*!
2 * @file shell_input.h
3 * @brief Definition of ...
4*/
5
6#ifndef _SHELL_INPUT_H
7#define _SHELL_INPUT_H
8
9#include "text_engine.h"
10
11// FORWARD DECLARATION
12template<class T> class tList;
13
14
15//! A class for ...
16class ShellInput : public Text {
17
18 public:
19  ShellInput();
20  virtual ~ShellInput();
21
22
23  // InputLine
24  void flush();
25  void addCharacter(char character);
26  void addCharacters(const char* characters);
27  void removeCharacters(unsigned int characterCount = 1);
28  void setRepeatDelay(float repeatDelay, float repeatRate);
29  bool executeCommand();
30  const char* getInputString() const { return this->inputLine; };
31
32
33 private:
34    // HANDLING TEXT INPUT
35   char*                    inputLine;              //!< the Char-Array of the Buffer
36   float                    repeatRate;             //!< The Repeat-Delay.
37   float                    repeatDelay;            //!< The delay of the first Character of a given Character.
38   float                    delayed;                //!< how much of the delay is remaining.
39   int                      pressedKey;             //!< the pressed key that will be repeated.
40
41   tList<char>*             inputHistory;           //!< The history of given commands.
42
43};
44
45#endif /* _SHELL_INPUT_H */
Note: See TracBrowser for help on using the repository browser.