#include <python_shell_widget.hh>
Public Slots | |
void | InsertCompletion (const QString &completion) |
void | InsertPathCompletion (const QString &completion) |
void | AppendOutput (unsigned int id, const QString &output) |
void | AppendError (unsigned int id, const QString &output) |
void | OutputFinished (unsigned int id, bool error) |
void | Complete (bool inline_completion=true) |
void | Recomplete (const QString &completion) |
void | OnSingleLineStateEntered () |
void | OnMultiLineActiveStateEntered () |
void | OnMultiLineInactiveStateEntered () |
void | OnHistoryUpStateEntered () |
void | OnHistoryDownStateEntered () |
void | OnExecuteStateEntered () |
void | NewLineAtEnd () |
void | NewLineAtCursor () |
void | OnReadonlyEntered () |
void | OnReadwriteEntered () |
void | OnMixedToReadwrite () |
Signals | |
void | Execute (const QString &command) |
void | RequestCompletion (const QRect &rect, bool inline_completion) |
void | SetCompletionPrefix (const QString &prefix) |
void | RequestPathCompletion (const QRect &rect, bool inline_completion) |
void | SetPathCompletionPrefix (const QString &prefix) |
Public Member Functions | |
PythonShellWidget (QWidget *parent=NULL) | |
GutterBlockList | GetGutterBlocks (const QRect &rect) |
void | SetTabWidth (int width) |
int | GetTabWidth () const |
QString | GetCommand () |
QTextBlock | GetEditStartBlock () |
Data Fields | |
int | tab_width_ |
Protected Slots | |
void | handle_completion_ () |
void | handle_output_toggle_ () |
void | handle_wrap_to_function_ () |
void | handle_select_all_ () |
void | handle_select_all_rw_ () |
void | handle_delete_ () |
void | handle_backspace_ () |
void | handle_clear_all_ () |
Protected Member Functions | |
virtual void | resizeEvent (QResizeEvent *event) |
virtual void | showEvent (QShowEvent *event) |
virtual void | insertFromMimeData (const QMimeData *source) |
void | set_output_visible_ (bool flag=true) |
void | setup_readonly_state_machine_ () |
void | setup_state_machine_ () |
void | wrap_into_function_ (const QString &command) |
void | set_command_ (const QString &command) |
void | set_block_edit_mode_ (BlockEditMode flag) |
BlockEditMode | get_block_edit_mode_ () |
void | set_block_type_ (const QTextBlock &start, const QTextBlock &end, BlockType type) |
Protected Attributes | |
PythonSyntaxHighlighter | highlighter_ |
PythonCompleter * | completer_ |
PathCompleter * | path_completer_ |
BlockEditMode | block_edit_mode_ |
ShellHistory | history_ |
Gutter * | gutter_ |
bool | output_visible_ |
int | completion_start_ |
int | completion_end_ |
QTextBlock | block_edit_start_ |
OutputBlockList | output_blocks_ |
StateMachine * | machine_ |
StateMachine * | readonly_machine_ |
State * | readwrite_state_ |
State * | multiline_active_state_ |
Definition at line 47 of file python_shell_widget.hh.
PythonShellWidget | ( | QWidget * | parent = NULL |
) |
void AppendError | ( | unsigned int | id, | |
const QString & | output | |||
) | [slot] |
void AppendOutput | ( | unsigned int | id, | |
const QString & | output | |||
) | [slot] |
void Complete | ( | bool | inline_completion = true |
) | [slot] |
void Execute | ( | const QString & | command | ) | [signal] |
BlockEditMode get_block_edit_mode_ | ( | ) | [protected] |
QString GetCommand | ( | ) |
QTextBlock GetEditStartBlock | ( | ) |
GutterBlockList GetGutterBlocks | ( | const QRect & | rect | ) |
int GetTabWidth | ( | ) | const |
void handle_backspace_ | ( | ) | [protected, slot] |
void handle_clear_all_ | ( | ) | [protected, slot] |
void handle_completion_ | ( | ) | [protected, slot] |
void handle_delete_ | ( | ) | [protected, slot] |
void handle_output_toggle_ | ( | ) | [protected, slot] |
void handle_select_all_ | ( | ) | [protected, slot] |
void handle_select_all_rw_ | ( | ) | [protected, slot] |
void handle_wrap_to_function_ | ( | ) | [protected, slot] |
void InsertCompletion | ( | const QString & | completion | ) | [slot] |
virtual void insertFromMimeData | ( | const QMimeData * | source | ) | [protected, virtual] |
void InsertPathCompletion | ( | const QString & | completion | ) | [slot] |
void NewLineAtCursor | ( | ) | [slot] |
void NewLineAtEnd | ( | ) | [slot] |
void OnExecuteStateEntered | ( | ) | [slot] |
void OnHistoryDownStateEntered | ( | ) | [slot] |
void OnHistoryUpStateEntered | ( | ) | [slot] |
void OnMixedToReadwrite | ( | ) | [slot] |
void OnMultiLineActiveStateEntered | ( | ) | [slot] |
void OnMultiLineInactiveStateEntered | ( | ) | [slot] |
void OnReadonlyEntered | ( | ) | [slot] |
void OnReadwriteEntered | ( | ) | [slot] |
void OnSingleLineStateEntered | ( | ) | [slot] |
void OutputFinished | ( | unsigned int | id, | |
bool | error | |||
) | [slot] |
void Recomplete | ( | const QString & | completion | ) | [slot] |
void RequestCompletion | ( | const QRect & | rect, | |
bool | inline_completion | |||
) | [signal] |
void RequestPathCompletion | ( | const QRect & | rect, | |
bool | inline_completion | |||
) | [signal] |
virtual void resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
void set_block_edit_mode_ | ( | BlockEditMode | flag | ) | [protected] |
void set_block_type_ | ( | const QTextBlock & | start, | |
const QTextBlock & | end, | |||
BlockType | type | |||
) | [protected] |
void set_command_ | ( | const QString & | command | ) | [protected] |
void set_output_visible_ | ( | bool | flag = true |
) | [protected] |
void SetCompletionPrefix | ( | const QString & | prefix | ) | [signal] |
void SetPathCompletionPrefix | ( | const QString & | prefix | ) | [signal] |
void SetTabWidth | ( | int | width | ) |
void setup_readonly_state_machine_ | ( | ) | [protected] |
void setup_state_machine_ | ( | ) | [protected] |
virtual void showEvent | ( | QShowEvent * | event | ) | [protected, virtual] |
void wrap_into_function_ | ( | const QString & | command | ) | [protected] |
BlockEditMode block_edit_mode_ [protected] |
Definition at line 115 of file python_shell_widget.hh.
QTextBlock block_edit_start_ [protected] |
Definition at line 121 of file python_shell_widget.hh.
PythonCompleter* completer_ [protected] |
Definition at line 113 of file python_shell_widget.hh.
int completion_end_ [protected] |
Definition at line 120 of file python_shell_widget.hh.
int completion_start_ [protected] |
Definition at line 119 of file python_shell_widget.hh.
Definition at line 117 of file python_shell_widget.hh.
PythonSyntaxHighlighter highlighter_ [protected] |
Definition at line 112 of file python_shell_widget.hh.
ShellHistory history_ [protected] |
Definition at line 116 of file python_shell_widget.hh.
StateMachine* machine_ [protected] |
Definition at line 123 of file python_shell_widget.hh.
State* multiline_active_state_ [protected] |
Definition at line 126 of file python_shell_widget.hh.
OutputBlockList output_blocks_ [protected] |
Definition at line 122 of file python_shell_widget.hh.
bool output_visible_ [protected] |
Definition at line 118 of file python_shell_widget.hh.
PathCompleter* path_completer_ [protected] |
Definition at line 114 of file python_shell_widget.hh.
StateMachine* readonly_machine_ [protected] |
Definition at line 124 of file python_shell_widget.hh.
State* readwrite_state_ [protected] |
Definition at line 125 of file python_shell_widget.hh.
int tab_width_ |
Definition at line 60 of file python_shell_widget.hh.