337 changed files with 811 additions and 4043 deletions
@ -1,32 +0,0 @@
@@ -1,32 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows.Input; |
||||
|
||||
namespace ICSharpCode.PythonBinding |
||||
{ |
||||
public delegate void ConsoleTextEditorKeyEventHandler(object source, ConsoleTextEditorKeyEventArgs e); |
||||
|
||||
public abstract class ConsoleTextEditorKeyEventArgs : EventArgs |
||||
{ |
||||
Key key; |
||||
|
||||
public ConsoleTextEditorKeyEventArgs(Key key) |
||||
{ |
||||
this.key = key; |
||||
} |
||||
|
||||
public Key Key { |
||||
get { return key; } |
||||
} |
||||
|
||||
public abstract bool Handled { |
||||
get; set; |
||||
} |
||||
} |
||||
} |
@ -1,33 +0,0 @@
@@ -1,33 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows; |
||||
using System.Windows.Threading; |
||||
|
||||
namespace ICSharpCode.PythonBinding |
||||
{ |
||||
public class ControlDispatcher : IControlDispatcher |
||||
{ |
||||
Dispatcher dispatcher; |
||||
|
||||
public ControlDispatcher(UIElement uiElement) |
||||
{ |
||||
dispatcher = uiElement.Dispatcher; |
||||
} |
||||
|
||||
public bool CheckAccess() |
||||
{ |
||||
return dispatcher.CheckAccess(); |
||||
} |
||||
|
||||
public object Invoke(Delegate method, params object[] args) |
||||
{ |
||||
return dispatcher.Invoke(method, args); |
||||
} |
||||
} |
||||
} |
@ -1,65 +0,0 @@
@@ -1,65 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.IO; |
||||
using System.Text; |
||||
|
||||
namespace ICSharpCode.PythonBinding |
||||
{ |
||||
public class CreateTextWriterInfo |
||||
{ |
||||
string fileName; |
||||
Encoding encoding; |
||||
bool append; |
||||
|
||||
public CreateTextWriterInfo(string fileName, Encoding encoding, bool append) |
||||
{ |
||||
this.fileName = fileName; |
||||
this.encoding = encoding; |
||||
this.append = append; |
||||
} |
||||
|
||||
public string FileName { |
||||
get { return fileName; } |
||||
} |
||||
|
||||
public Encoding Encoding { |
||||
get { return encoding; } |
||||
} |
||||
|
||||
public bool Append { |
||||
get { return append; } |
||||
} |
||||
|
||||
public override bool Equals(object obj) |
||||
{ |
||||
CreateTextWriterInfo rhs = obj as CreateTextWriterInfo; |
||||
if (rhs != null) { |
||||
return Equals(rhs); |
||||
} |
||||
return false; |
||||
} |
||||
|
||||
bool Equals(CreateTextWriterInfo rhs) |
||||
{ |
||||
return (fileName == rhs.fileName) && |
||||
(encoding == rhs.encoding) && |
||||
(append == rhs.append); |
||||
} |
||||
|
||||
public override int GetHashCode() |
||||
{ |
||||
return base.GetHashCode(); |
||||
} |
||||
|
||||
public TextWriter CreateTextWriter() |
||||
{ |
||||
return new StreamWriter(fileName, append, encoding); |
||||
} |
||||
} |
||||
} |
@ -1,17 +0,0 @@
@@ -1,17 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
|
||||
namespace ICSharpCode.PythonBinding |
||||
{ |
||||
public interface IControlDispatcher |
||||
{ |
||||
bool CheckAccess(); |
||||
object Invoke(Delegate method, params object[] args); |
||||
} |
||||
} |
@ -1,16 +0,0 @@
@@ -1,16 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace ICSharpCode.PythonBinding |
||||
{ |
||||
public interface ILock : IDisposable |
||||
{ |
||||
} |
||||
} |
@ -1,39 +0,0 @@
@@ -1,39 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Threading; |
||||
|
||||
namespace ICSharpCode.PythonBinding |
||||
{ |
||||
public class StringListLock : ILock |
||||
{ |
||||
List<string> lines; |
||||
|
||||
public StringListLock(List<string> lines) |
||||
{ |
||||
this.lines = lines; |
||||
Lock(); |
||||
} |
||||
|
||||
void Lock() |
||||
{ |
||||
Monitor.Enter(lines); |
||||
} |
||||
|
||||
public void Dispose() |
||||
{ |
||||
Unlock(); |
||||
} |
||||
|
||||
void Unlock() |
||||
{ |
||||
Monitor.Exit(lines); |
||||
} |
||||
} |
||||
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue