OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Data Fields | Protected Slots | Protected Member Functions | Protected Attributes
PythonShellWidget Class Reference

#include <python_shell_widget.hh>

Inherits QPlainTextEdit.

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_
 
PythonCompletercompleter_
 
PathCompleterpath_completer_
 
BlockEditMode block_edit_mode_
 
ShellHistory history_
 
Guttergutter_
 
bool output_visible_
 
int completion_start_
 
int completion_end_
 
QTextBlock block_edit_start_
 
OutputBlockList output_blocks_
 
StateMachinemachine_
 
StateMachinereadonly_machine_
 
Statereadwrite_state_
 
Statemultiline_active_state_
 

Detailed Description

Definition at line 47 of file python_shell_widget.hh.

Constructor & Destructor Documentation

PythonShellWidget ( QWidget *  parent = NULL)

Member Function Documentation

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_ ( )
protectedslot
void handle_clear_all_ ( )
protectedslot
void handle_completion_ ( )
protectedslot
void handle_delete_ ( )
protectedslot
void handle_output_toggle_ ( )
protectedslot
void handle_select_all_ ( )
protectedslot
void handle_select_all_rw_ ( )
protectedslot
void handle_wrap_to_function_ ( )
protectedslot
void InsertCompletion ( const QString &  completion)
slot
virtual void insertFromMimeData ( const QMimeData *  source)
protectedvirtual
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)
protectedvirtual
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)
protectedvirtual
void wrap_into_function_ ( const QString &  command)
protected

Field Documentation

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.

Gutter* gutter_
protected

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.


The documentation for this class was generated from the following file: