IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
CShell.Modules.Repl.Controls.CSRepl Class Reference

Interaction logic for CommandLineControl.xaml More...

+ Inheritance diagram for CShell.Modules.Repl.Controls.CSRepl:
+ Collaboration diagram for CShell.Modules.Repl.Controls.CSRepl:

Public Member Functions

 CSRepl ()
 
void SuppressWarning (string warningCode)
 
void ShowWarning (string warningCode)
 
void Clear ()
 
void ClearLine ()
 
void WritePrompt ()
 
void Write (string text)
 
void Write (string text, TextType textType)
 
void WriteLine ()
 
void WriteLine (string text)
 
void WriteLine (string text, TextType textType)
 
Color GetColor (TextType textType)
 
void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 
 CSRepl ()
 
void SuppressWarning (string warningCode)
 
void ShowWarning (string warningCode)
 
void Clear ()
 
void ClearLine ()
 
void WritePrompt ()
 
void Write (string text)
 
void Write (string text, TextType textType)
 
void WriteLine ()
 
void WriteLine (string text)
 
void WriteLine (string text, TextType textType)
 
Color GetColor (TextType textType)
 
void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 

Properties

ScriptingEngine ScriptingEngine [get, set]
 
bool IsEvaluating [get]
 
string Font [get, set]
 
new double FontSize [get, set]
 
Color BackgroundColor [get, set]
 
Color OutputColor [get, set]
 
Color WarningColor [get, set]
 
Color ErrorColor [get, set]
 
Color ReplColor [get, set]
 
IEnumerable< string > SuppressedWarnings [get]
 
bool ShowConsoleOutput [get, set]
 
TextDocument Doc [get]
 
int Offset [get]
 
int PromptOffset [get]
 

Private Member Functions

IEnumerable< string > FilterWarnings (IEnumerable< string > warnings)
 
string GetWarningCode (string warning)
 
void CommandEntered (string command)
 
void ShowPreviousCommand ()
 
void ShowNextCommand ()
 
void ScriptingEngineOnEvaluateStarted (object sender, EvaluateStartedEventArgs evaluateStartedEventArgs)
 
void ScriptingEngineOnEvaluateCompleted (object sender, EvaluateCompletedEventArgs evaluateCompletedEventArgs)
 
void ScriptingEngineOnConsoleOutput (object sender, ConsoleEventArgs eventArgs)
 
string ToPrettyString (object o)
 
void TextAreaOnPreviewKeyDown (object sender, KeyEventArgs keyEventArgs)
 
void MoveCaretToEnd ()
 
bool IsCaretAtCurrentLine ()
 
bool IsCaretAfterPrompt ()
 
bool IsCaretAtPrompt ()
 
bool IsCaretAtWritablePosition ()
 
bool IsSelectionBeforePrompOffset ()
 
void SelectCurrentLineOnly ()
 
void SelectCurrentLine ()
 
string GetCurrentLineText ()
 
void
System.Windows.Markup.IComponentConnector. 
Connect (int connectionId, object target)
 
void
System.Windows.Markup.IComponentConnector. 
Connect (int connectionId, object target)
 
void
System.Windows.Markup.IComponentConnector. 
Connect (int connectionId, object target)
 
void
System.Windows.Markup.IComponentConnector. 
Connect (int connectionId, object target)
 
IEnumerable< string > FilterWarnings (IEnumerable< string > warnings)
 
string GetWarningCode (string warning)
 
void CommandEntered (string command)
 
void ShowPreviousCommand ()
 
void ShowNextCommand ()
 
void ScriptingEngineOnEvaluateStarted (object sender, EvaluateStartedEventArgs evaluateStartedEventArgs)
 
void ScriptingEngineOnEvaluateCompleted (object sender, EvaluateCompletedEventArgs evaluateCompletedEventArgs)
 
void ScriptingEngineOnConsoleOutput (object sender, ConsoleEventArgs eventArgs)
 
string ToPrettyString (object o)
 
void TextAreaOnPreviewKeyDown (object sender, KeyEventArgs keyEventArgs)
 
void MoveCaretToEnd ()
 
bool IsCaretAtCurrentLine ()
 
bool IsCaretAfterPrompt ()
 
bool IsCaretAtPrompt ()
 
bool IsCaretAtWritablePosition ()
 
bool IsSelectionBeforePrompOffset ()
 
void SelectCurrentLineOnly ()
 
void SelectCurrentLine ()
 
string GetCurrentLineText ()
 
void
System.Windows.Markup.IComponentConnector. 
Connect (int connectionId, object target)
 
void
System.Windows.Markup.IComponentConnector. 
Connect (int connectionId, object target)
 

Private Attributes

CSReplTextEditor textEditor
 
ScriptingEngine scriptingEngine
 
readonly CommandHistory commandHistory
 
bool executingInternalCommand
 
string partialCommand = ""
 
int evaluationsRunning
 
IVisualLineTransformer[] initialTransformers
 
CompletionWindow completionWindow
 
OverloadInsightWindow insightWindow
 
readonly HashSet< string > suppressedWarnings = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
 
string promptComplete = " > "
 
string promptIncomplete = " "
 
string prompt = " > "
 
bool _contentLoaded
 

Detailed Description

Interaction logic for CommandLineControl.xaml

CSRepl

Constructor & Destructor Documentation

CShell.Modules.Repl.Controls.CSRepl.CSRepl ( )
inline
CShell.Modules.Repl.Controls.CSRepl.CSRepl ( )
inline

Member Function Documentation

void CShell.Modules.Repl.Controls.CSRepl.SuppressWarning ( string  warningCode)
inline
void CShell.Modules.Repl.Controls.CSRepl.ShowWarning ( string  warningCode)
inline
IEnumerable<string> CShell.Modules.Repl.Controls.CSRepl.FilterWarnings ( IEnumerable< string >  warnings)
inlineprivate
string CShell.Modules.Repl.Controls.CSRepl.GetWarningCode ( string  warning)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.Clear ( )
inline
void CShell.Modules.Repl.Controls.CSRepl.CommandEntered ( string  command)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ShowPreviousCommand ( )
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ShowNextCommand ( )
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ScriptingEngineOnEvaluateStarted ( object  sender,
EvaluateStartedEventArgs  evaluateStartedEventArgs 
)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ScriptingEngineOnEvaluateCompleted ( object  sender,
EvaluateCompletedEventArgs  evaluateCompletedEventArgs 
)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ScriptingEngineOnConsoleOutput ( object  sender,
ConsoleEventArgs  eventArgs 
)
inlineprivate
string CShell.Modules.Repl.Controls.CSRepl.ToPrettyString ( object  o)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.TextAreaOnPreviewKeyDown ( object  sender,
KeyEventArgs  keyEventArgs 
)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.MoveCaretToEnd ( )
inlineprivate
bool CShell.Modules.Repl.Controls.CSRepl.IsCaretAtCurrentLine ( )
inlineprivate
bool CShell.Modules.Repl.Controls.CSRepl.IsCaretAfterPrompt ( )
inlineprivate
bool CShell.Modules.Repl.Controls.CSRepl.IsCaretAtPrompt ( )
inlineprivate
bool CShell.Modules.Repl.Controls.CSRepl.IsCaretAtWritablePosition ( )
inlineprivate
bool CShell.Modules.Repl.Controls.CSRepl.IsSelectionBeforePrompOffset ( )
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.SelectCurrentLineOnly ( )
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.SelectCurrentLine ( )
inlineprivate
string CShell.Modules.Repl.Controls.CSRepl.GetCurrentLineText ( )
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ClearLine ( )
inline
void CShell.Modules.Repl.Controls.CSRepl.WritePrompt ( )
inline
void CShell.Modules.Repl.Controls.CSRepl.Write ( string  text)
inline
void CShell.Modules.Repl.Controls.CSRepl.Write ( string  text,
TextType  textType 
)
inline
void CShell.Modules.Repl.Controls.CSRepl.WriteLine ( )
inline
void CShell.Modules.Repl.Controls.CSRepl.WriteLine ( string  text)
inline
void CShell.Modules.Repl.Controls.CSRepl.WriteLine ( string  text,
TextType  textType 
)
inline
Color CShell.Modules.Repl.Controls.CSRepl.GetColor ( TextType  textType)
inline
void CShell.Modules.Repl.Controls.CSRepl.InitializeComponent ( )
inline

InitializeComponent

void System.Windows.Markup.IComponentConnector. CShell.Modules.Repl.Controls.CSRepl.Connect ( int  connectionId,
object  target 
)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.InitializeComponent ( )
inline

InitializeComponent

void System.Windows.Markup.IComponentConnector. CShell.Modules.Repl.Controls.CSRepl.Connect ( int  connectionId,
object  target 
)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.InitializeComponent ( )
inline

InitializeComponent

void System.Windows.Markup.IComponentConnector. CShell.Modules.Repl.Controls.CSRepl.Connect ( int  connectionId,
object  target 
)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.InitializeComponent ( )
inline

InitializeComponent

void System.Windows.Markup.IComponentConnector. CShell.Modules.Repl.Controls.CSRepl.Connect ( int  connectionId,
object  target 
)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.SuppressWarning ( string  warningCode)
inline
void CShell.Modules.Repl.Controls.CSRepl.ShowWarning ( string  warningCode)
inline
IEnumerable<string> CShell.Modules.Repl.Controls.CSRepl.FilterWarnings ( IEnumerable< string >  warnings)
inlineprivate
string CShell.Modules.Repl.Controls.CSRepl.GetWarningCode ( string  warning)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.Clear ( )
inline
void CShell.Modules.Repl.Controls.CSRepl.CommandEntered ( string  command)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ShowPreviousCommand ( )
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ShowNextCommand ( )
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ScriptingEngineOnEvaluateStarted ( object  sender,
EvaluateStartedEventArgs  evaluateStartedEventArgs 
)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ScriptingEngineOnEvaluateCompleted ( object  sender,
EvaluateCompletedEventArgs  evaluateCompletedEventArgs 
)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ScriptingEngineOnConsoleOutput ( object  sender,
ConsoleEventArgs  eventArgs 
)
inlineprivate
string CShell.Modules.Repl.Controls.CSRepl.ToPrettyString ( object  o)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.TextAreaOnPreviewKeyDown ( object  sender,
KeyEventArgs  keyEventArgs 
)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.MoveCaretToEnd ( )
inlineprivate
bool CShell.Modules.Repl.Controls.CSRepl.IsCaretAtCurrentLine ( )
inlineprivate
bool CShell.Modules.Repl.Controls.CSRepl.IsCaretAfterPrompt ( )
inlineprivate
bool CShell.Modules.Repl.Controls.CSRepl.IsCaretAtPrompt ( )
inlineprivate
bool CShell.Modules.Repl.Controls.CSRepl.IsCaretAtWritablePosition ( )
inlineprivate
bool CShell.Modules.Repl.Controls.CSRepl.IsSelectionBeforePrompOffset ( )
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.SelectCurrentLineOnly ( )
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.SelectCurrentLine ( )
inlineprivate
string CShell.Modules.Repl.Controls.CSRepl.GetCurrentLineText ( )
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.ClearLine ( )
inline
void CShell.Modules.Repl.Controls.CSRepl.WritePrompt ( )
inline
void CShell.Modules.Repl.Controls.CSRepl.Write ( string  text)
inline
void CShell.Modules.Repl.Controls.CSRepl.Write ( string  text,
TextType  textType 
)
inline
void CShell.Modules.Repl.Controls.CSRepl.WriteLine ( )
inline
void CShell.Modules.Repl.Controls.CSRepl.WriteLine ( string  text)
inline
void CShell.Modules.Repl.Controls.CSRepl.WriteLine ( string  text,
TextType  textType 
)
inline
Color CShell.Modules.Repl.Controls.CSRepl.GetColor ( TextType  textType)
inline
void CShell.Modules.Repl.Controls.CSRepl.InitializeComponent ( )
inline

InitializeComponent

void System.Windows.Markup.IComponentConnector. CShell.Modules.Repl.Controls.CSRepl.Connect ( int  connectionId,
object  target 
)
inlineprivate
void CShell.Modules.Repl.Controls.CSRepl.InitializeComponent ( )
inline

InitializeComponent

void System.Windows.Markup.IComponentConnector. CShell.Modules.Repl.Controls.CSRepl.Connect ( int  connectionId,
object  target 
)
inlineprivate

Member Data Documentation

CSReplTextEditor CShell.Modules.Repl.Controls.CSRepl.textEditor
private
ScriptingEngine CShell.Modules.Repl.Controls.CSRepl.scriptingEngine
private
readonly CommandHistory CShell.Modules.Repl.Controls.CSRepl.commandHistory
private
bool CShell.Modules.Repl.Controls.CSRepl.executingInternalCommand
private
string CShell.Modules.Repl.Controls.CSRepl.partialCommand = ""
private
int CShell.Modules.Repl.Controls.CSRepl.evaluationsRunning
private
IVisualLineTransformer [] CShell.Modules.Repl.Controls.CSRepl.initialTransformers
private
CompletionWindow CShell.Modules.Repl.Controls.CSRepl.completionWindow
private
OverloadInsightWindow CShell.Modules.Repl.Controls.CSRepl.insightWindow
private
readonly HashSet< string > CShell.Modules.Repl.Controls.CSRepl.suppressedWarnings = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
private
string CShell.Modules.Repl.Controls.CSRepl.promptComplete = " > "
private
string CShell.Modules.Repl.Controls.CSRepl.promptIncomplete = " "
private
string CShell.Modules.Repl.Controls.CSRepl.prompt = " > "
private
bool CShell.Modules.Repl.Controls.CSRepl._contentLoaded
private

Property Documentation

ScriptingEngine CShell.Modules.Repl.Controls.CSRepl.ScriptingEngine
getset
bool CShell.Modules.Repl.Controls.CSRepl.IsEvaluating
get
string CShell.Modules.Repl.Controls.CSRepl.Font
getset
new double CShell.Modules.Repl.Controls.CSRepl.FontSize
getset
Color CShell.Modules.Repl.Controls.CSRepl.BackgroundColor
getset
Color CShell.Modules.Repl.Controls.CSRepl.OutputColor
getset
Color CShell.Modules.Repl.Controls.CSRepl.WarningColor
getset
Color CShell.Modules.Repl.Controls.CSRepl.ErrorColor
getset
Color CShell.Modules.Repl.Controls.CSRepl.ReplColor
getset
IEnumerable< string > CShell.Modules.Repl.Controls.CSRepl.SuppressedWarnings
get
bool CShell.Modules.Repl.Controls.CSRepl.ShowConsoleOutput
getset
TextDocument CShell.Modules.Repl.Controls.CSRepl.Doc
getprivate
int CShell.Modules.Repl.Controls.CSRepl.Offset
getprivate
int CShell.Modules.Repl.Controls.CSRepl.PromptOffset
getprivate

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