|
@@ -56,6 +56,8 @@ public:
|
|
|
void Toggle();
|
|
void Toggle();
|
|
|
/// Automatically set console to visible when receiving an error log message.
|
|
/// Automatically set console to visible when receiving an error log message.
|
|
|
void SetAutoVisibleOnError(bool enable) { autoVisibleOnError_ = enable; }
|
|
void SetAutoVisibleOnError(bool enable) { autoVisibleOnError_ = enable; }
|
|
|
|
|
+ /// Set the command interpreter.
|
|
|
|
|
+ void SetCommandInterpreter(const String& interpreter) { commandInterpreter_ = interpreter; }
|
|
|
/// Set number of buffered rows.
|
|
/// Set number of buffered rows.
|
|
|
void SetNumBufferedRows(unsigned rows);
|
|
void SetNumBufferedRows(unsigned rows);
|
|
|
/// Set number of displayed rows.
|
|
/// Set number of displayed rows.
|
|
@@ -77,6 +79,8 @@ public:
|
|
|
bool IsVisible() const;
|
|
bool IsVisible() const;
|
|
|
/// Return true when console is set to automatically visible when receiving an error log message.
|
|
/// Return true when console is set to automatically visible when receiving an error log message.
|
|
|
bool IsAutoVisibleOnError() const { return autoVisibleOnError_; }
|
|
bool IsAutoVisibleOnError() const { return autoVisibleOnError_; }
|
|
|
|
|
+ /// Return the last used command interpreter.
|
|
|
|
|
+ const String& GetCommandInterpreter() const { return commandInterpreter_; }
|
|
|
/// Return number of buffered rows.
|
|
/// Return number of buffered rows.
|
|
|
unsigned GetNumBufferedRows() const;
|
|
unsigned GetNumBufferedRows() const;
|
|
|
/// Return number of displayed rows.
|
|
/// Return number of displayed rows.
|
|
@@ -95,6 +99,8 @@ public:
|
|
|
private:
|
|
private:
|
|
|
/// Populate the command line interpreters that could handle the console command.
|
|
/// Populate the command line interpreters that could handle the console command.
|
|
|
bool PopulateInterpreter();
|
|
bool PopulateInterpreter();
|
|
|
|
|
+ /// Handle interpreter being selected on the drop down list.
|
|
|
|
|
+ void HandleInterpreterSelected(StringHash eventType, VariantMap& eventData);
|
|
|
/// Handle enter pressed on the line edit.
|
|
/// Handle enter pressed on the line edit.
|
|
|
void HandleTextFinished(StringHash eventType, VariantMap& eventData);
|
|
void HandleTextFinished(StringHash eventType, VariantMap& eventData);
|
|
|
/// Handle unhandled key on the line edit for scrolling the history.
|
|
/// Handle unhandled key on the line edit for scrolling the history.
|
|
@@ -116,6 +122,8 @@ private:
|
|
|
SharedPtr<UIElement> commandLine_;
|
|
SharedPtr<UIElement> commandLine_;
|
|
|
/// Interpreter drop down list.
|
|
/// Interpreter drop down list.
|
|
|
SharedPtr<DropDownList> interpreters_;
|
|
SharedPtr<DropDownList> interpreters_;
|
|
|
|
|
+ /// Last used command interpreter.
|
|
|
|
|
+ String commandInterpreter_;
|
|
|
/// Line edit.
|
|
/// Line edit.
|
|
|
SharedPtr<LineEdit> lineEdit_;
|
|
SharedPtr<LineEdit> lineEdit_;
|
|
|
/// Command history.
|
|
/// Command history.
|