Changeset 5183 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Sep 15, 2005, 1:01:00 AM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r5181 r5183 46 46 this->setName("Shell"); 47 47 48 // Element2D and generals 48 49 this->setAbsCoor2D(3, -400); 49 50 this->textSize = 15; 50 51 this->lineSpacing = 5; 51 52 this->bActive = false; 52 53 53 54 54 // BUFFER -
trunk/src/lib/shell/shell.h
r5181 r5183 48 48 49 49 // BUFFERS 50 void flush();51 50 void setBufferDisplaySize(unsigned int bufferDisplaySize); 52 51 void printToDisplayBuffer(const char* text); 52 void flush(); 53 53 54 54 void clear(); … … 56 56 // EventListener 57 57 virtual void process(const Event &event); 58 59 58 // Element2D-functions 60 59 virtual void draw() const; … … 63 62 64 63 private: 65 66 64 // helpers // 67 65 Vector calculateLinePosition(unsigned int lineNumber); 68 // void testI (int i); 69 // void testS (const char* s); 70 // void testB (bool b); 71 // void testF (float f); 72 // void testSF (const char* s, float f); 66 67 // void testI (int i); 68 // void testS (const char* s); 69 // void testB (bool b); 70 // void testF (float f); 71 // void testSF (const char* s, float f); 73 72 74 73 private: -
trunk/src/lib/shell/shell_buffer.cc
r5177 r5183 91 91 #endif 92 92 93 vprintf(line, arguments);93 vprintf(line, arguments); 94 94 #if DEBUG < 3 95 95 else -
trunk/src/lib/shell/shell_completion.cc
r5182 r5183 20 20 #include "shell_input.h" 21 21 22 #include "substring.h" 22 23 #include "base_object.h" 23 24 #include "class_list.h" … … 62 63 bool ShellCompletion::autoComplete(ShellInput* input) 63 64 { 65 char* completionLine; 66 67 long classID; //< the classID retrieved from the Class. 68 char* classBegin; //< the beginn of the slass string 69 char* classEnd; //< the end of the class string 70 char* objectBegin; //< the begin of the object string 71 char* objectEnd; //< the end of the object string 72 char* functionBegin; //< the begin of the function string 73 char* functionEnd; //< the end of the function string 74 64 75 if (input != NULL) 65 76 this->input = input; 66 //PRINTF(3)("AutoCompletion not implemented yet\n"); 67 68 char* completionLine = new char[strlen(this->input->getText())+1]; 77 78 SubString(input->getText(), true).debug(); 79 80 /* completionLine = new char[strlen(this->input->getText())+1]; 69 81 strcpy(completionLine, this->input->getText()); 70 82 … … 92 104 this->classComplete(commandBegin); 93 105 94 delete[] completionLine; 106 delete[] completionLine;*/ 95 107 } 96 108 -
trunk/src/lib/shell/shell_completion.h
r5182 r5183 24 24 bool autoComplete(ShellInput* input); 25 25 bool classComplete(const char* classBegin); 26 long classMatch(const char* input, unsigned int* length); 26 27 bool objectComplete(const char* objectBegin, long classID); 28 bool objectMatch(const char* objectBegin, long classID, unsigned int* length); 27 29 bool functionComplete(const char* functionBegin); 30 bool functionMatch(const char* functionBegin, long classID, unsigned int* length); 28 31 29 32 bool generalComplete(const tList<const char>* stringList, const char* begin, const char* displayAs = "%s", const char* addBack = NULL, const char* addFront = NULL);
Note: See TracChangeset
for help on using the changeset viewer.