Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: completion works again :)
now it is time to go to bed again

File size: 1.4 KB
RevLine 
[4838]1/*!
[5178]2 * @file shell_input.h
[4838]3 * @brief Definition of ...
[3245]4*/
[1853]5
[5178]6#ifndef _SHELL_INPUT_H
7#define _SHELL_INPUT_H
[1853]8
[5179]9#include "text_engine.h"
[5180]10#include "event_listener.h"
[5179]11
[4838]12// FORWARD DECLARATION
[5178]13template<class T> class tList;
[5181]14class ShellCompletion;
[3543]15
16
[3955]17//! A class for ...
[5180]18class ShellInput : public Text,  public EventListener {
[1853]19
[1904]20 public:
[5178]21  ShellInput();
22  virtual ~ShellInput();
[1853]23
[3245]24
[5178]25  // InputLine
26  void flush();
27  void addCharacter(char character);
28  void addCharacters(const char* characters);
29  void removeCharacters(unsigned int characterCount = 1);
30  void setRepeatDelay(float repeatDelay, float repeatRate);
[5179]31  bool executeCommand();
[5180]32  void help() const;
[5178]33
[5180]34  virtual void tick(float dt);
35  virtual void process(const Event &event);
36
[3245]37 private:
[5178]38    // HANDLING TEXT INPUT
[5181]39   ShellCompletion*         completion;             //!< The Completion Interface.
40
41   char*                    inputLine;              //!< the Char-Array of the Buffer @todo not needed anymore
[5178]42   float                    repeatRate;             //!< The Repeat-Delay.
43   float                    repeatDelay;            //!< The delay of the first Character of a given Character.
44   float                    delayed;                //!< how much of the delay is remaining.
45   int                      pressedKey;             //!< the pressed key that will be repeated.
[3245]46
[5178]47   tList<char>*             inputHistory;           //!< The history of given commands.
[1853]48};
49
[5178]50#endif /* _SHELL_INPUT_H */
Note: See TracBrowser for help on using the repository browser.