diff options
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 44 |
1 files changed, 5 insertions, 39 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index b6e5b3f1..9b291a32 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -42,55 +42,21 @@ namespace Crow public static int TabSize = 4; public static string LineBreak = "\r\n"; + public static bool FocusOnHover = false; + /// <summary> Time to wait in millisecond before starting repeat loop</summary> + public static int DeviceRepeatDelay = 1000; + /// <summary> Time interval in millisecond between device event repeat</summary> + public static int DeviceRepeatInterval = 100; public static bool ReplaceTabsWithSpace = false; /// <summary> Allow rendering of interface in development environment </summary> public static bool DesignerMode = false; /// <summary> Threshold to catch borders for sizing </summary> public static int BorderThreshold = 5; - /// <summary> - /// Graphic objects References use in dynamic delegates for binding - /// </summary> - public static List<object> References = new List<object> (); - public static Queue<int> FreeRefIndices = new Queue<int> (); public static List<ListBox> LoadingLists= new List<ListBox>(); - - public static void Unreference (Object o) - { - int idxt = Interface.References.IndexOf (o); - if (idxt < 0) - return; - References [idxt] = null; - FreeRefIndices.Enqueue (idxt); - } - - /// <summary> register target object reference in an array for binding CIL </summary> - public static int Reference (object o) - { - - int dstIdx = Interface.References.IndexOf (o); - - if (dstIdx < 0) { - if (FreeRefIndices.Count == 0) { - dstIdx = Interface.References.Count (); - Interface.References.Add (o); - } else { - dstIdx = FreeRefIndices.Dequeue (); - Interface.References [dstIdx] = o; - } - } - return dstIdx; - } - public static LayoutingQueue LayoutingQueue = new LayoutingQueue (); #region Load/Save - - internal static Stack<List<DynAttribute>> GOMLResolutionStack = new Stack<List<DynAttribute>> (); - - internal static List<DynAttribute> GOMLResolver { - get { return GOMLResolutionStack.Peek (); } - } //internal static List<DynAttribute> Bindings; |