doom3-gpl
Doom 3 GPL source release
|
View in the Material Editor that functions as a Doom III console. More...
#include <ConsoleView.h>
Public Types | |
enum | { IDD = IDD_CONSOLE_FORM } |
Public Member Functions | |
virtual | ~ConsoleView () |
Destructor for ConsoleView. More... | |
void | AddText (const char *msg) |
Adds text to the end of the console output window. More... | |
void | SetConsoleText (const idStr &text) |
Replaces the text in the console window with the specified text. More... | |
void | ExecuteCommand (const idStr &cmd="") |
Executes the specified console command. More... | |
Public Attributes | |
CEdit | editConsole |
CEdit | editInput |
idStr | consoleStr |
idStrList | consoleHistory |
idStr | currentCommand |
int | currentHistoryPosition |
bool | saveCurrentCommand |
Protected Member Functions | |
ConsoleView () | |
Constructor for ConsoleView. More... | |
virtual BOOL | PreTranslateMessage (MSG *pMsg) |
Handles keyboard input to process the "Enter" key to execute commands and command history. More... | |
virtual void | DoDataExchange (CDataExchange *pDX) |
Transfers data to and from the controls in the console. More... | |
virtual void | OnInitialUpdate () |
Transfers data to and from the controls in the console. More... | |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
Windows message called when the window is resized. More... | |
const char * | TranslateString (const char *buf) |
Replaces \n with \r\n for carriage returns in an edit control. More... | |
View in the Material Editor that functions as a Doom III console.
It allows users to view console output as well as issue console commands to the engine.
Definition at line 37 of file ConsoleView.h.
anonymous enum |
Enumerator | |
---|---|
IDD |
Definition at line 41 of file ConsoleView.h.
|
virtual |
Destructor for ConsoleView.
Definition at line 56 of file ConsoleView.cpp.
|
protected |
Constructor for ConsoleView.
Definition at line 49 of file ConsoleView.cpp.
Adds text to the end of the console output window.
msg | The text to append. |
Definition at line 65 of file ConsoleView.cpp.
|
protectedvirtual |
Transfers data to and from the controls in the console.
Definition at line 238 of file ConsoleView.cpp.
Executes the specified console command.
If the command is passed as a parameter then it is executed otherwise the command in the input box is executed.
cmd | The text to execute. If this string is empty then the input edit box text is used. |
Definition at line 107 of file ConsoleView.cpp.
|
protectedvirtual |
Transfers data to and from the controls in the console.
Definition at line 248 of file ConsoleView.cpp.
Windows message called when the window is resized.
Definition at line 265 of file ConsoleView.cpp.
|
protectedvirtual |
Handles keyboard input to process the "Enter" key to execute commands and command history.
Definition at line 157 of file ConsoleView.cpp.
Replaces the text in the console window with the specified text.
text | The text to place in the console window. |
Definition at line 95 of file ConsoleView.cpp.
Replaces \n with \r\n for carriage returns in an edit control.
Definition at line 279 of file ConsoleView.cpp.
idStrList ConsoleView::consoleHistory |
Definition at line 47 of file ConsoleView.h.
idStr ConsoleView::consoleStr |
Definition at line 46 of file ConsoleView.h.
idStr ConsoleView::currentCommand |
Definition at line 48 of file ConsoleView.h.
int ConsoleView::currentHistoryPosition |
Definition at line 49 of file ConsoleView.h.
CEdit ConsoleView::editConsole |
Definition at line 43 of file ConsoleView.h.
CEdit ConsoleView::editInput |
Definition at line 44 of file ConsoleView.h.
bool ConsoleView::saveCurrentCommand |
Definition at line 50 of file ConsoleView.h.