Changeset 5129 in orxonox.OLD for trunk/src/util/shell.h
- Timestamp:
- Aug 25, 2005, 10:52:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/shell.h
r5127 r5129 37 37 /** @returns a Pointer to the only object of this Class */ 38 38 inline static Shell* getInstance() { if (!Shell::singletonRef) Shell::singletonRef = new Shell(); return Shell::singletonRef; }; 39 40 39 41 40 void activate(); … … 82 81 bool generalComplete(const tList<const char>* stringList, const char* begin, const char* displayAs = "%s", const char* addBack = NULL, const char* addFront = NULL); 83 82 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); 86 85 87 86 // helpers // … … 91 90 private: 92 91 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. 94 93 95 unsigned int bufferSize; //!< The Size of the buffer96 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) 97 96 98 Text* inputLineText; //!< The inputLine of the Shell99 char* inputLine; //!< the Char-Array of the Buffer100 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. 104 103 105 tList<char>* buffer; //!< A list of stored char-arrays(strings) to store the history106 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. 107 106 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. 113 108 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; 117 118 118 119 // 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. 120 121 }; 121 122
Note: See TracChangeset
for help on using the changeset viewer.