PythonShellWidget Class Reference

#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 OnEnterTransition ()
void OnKeypadEnterTransition ()
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 Member Functions

virtual void mouseReleaseEvent (QMouseEvent *event)
virtual void keyPressEvent (QKeyEvent *event)
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)
bool handle_completion_ (QKeyEvent *event)
bool handle_custom_commands_ (QKeyEvent *event)
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 46 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

bool handle_completion_ ( QKeyEvent *  event  )  [protected]

bool handle_custom_commands_ ( QKeyEvent *  event  )  [protected]

void InsertCompletion ( const QString &  completion  )  [slot]

virtual void insertFromMimeData ( const QMimeData *  source  )  [protected, virtual]

void InsertPathCompletion ( const QString &  completion  )  [slot]

virtual void keyPressEvent ( QKeyEvent *  event  )  [protected, virtual]

virtual void mouseReleaseEvent ( QMouseEvent *  event  )  [protected, virtual]

void OnEnterTransition (  )  [slot]

void OnExecuteStateEntered (  )  [slot]

void OnHistoryDownStateEntered (  )  [slot]

void OnHistoryUpStateEntered (  )  [slot]

void OnKeypadEnterTransition (  )  [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]


Field Documentation

Definition at line 109 of file python_shell_widget.hh.

QTextBlock block_edit_start_ [protected]

Definition at line 115 of file python_shell_widget.hh.

Definition at line 107 of file python_shell_widget.hh.

int completion_end_ [protected]

Definition at line 114 of file python_shell_widget.hh.

int completion_start_ [protected]

Definition at line 113 of file python_shell_widget.hh.

Gutter* gutter_ [protected]

Definition at line 111 of file python_shell_widget.hh.

Definition at line 106 of file python_shell_widget.hh.

ShellHistory history_ [protected]

Definition at line 110 of file python_shell_widget.hh.

StateMachine* machine_ [protected]

Definition at line 117 of file python_shell_widget.hh.

Definition at line 120 of file python_shell_widget.hh.

OutputBlockList output_blocks_ [protected]

Definition at line 116 of file python_shell_widget.hh.

bool output_visible_ [protected]

Definition at line 112 of file python_shell_widget.hh.

Definition at line 108 of file python_shell_widget.hh.

Definition at line 118 of file python_shell_widget.hh.

State* readwrite_state_ [protected]

Definition at line 119 of file python_shell_widget.hh.

Definition at line 59 of file python_shell_widget.hh.


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

Generated on Fri Jul 2 14:23:06 2010 for OpenStructure by  doxygen 1.5.8