diff options
| author | MichaelTheShifter <[email protected]> | 2016-07-20 09:40:36 -0400 |
|---|---|---|
| committer | MichaelTheShifter <[email protected]> | 2016-07-20 09:40:36 -0400 |
| commit | d40fed5ce2bc806a91245adb18039634eac13ed0 (patch) | |
| tree | f1d7168aee6db109ac2c738ad18c9db667a6ba69 /source/ShiftUI/Enums | |
| parent | f1856e8ed30ed882229fd3fa2a4038122a5fb441 (diff) | |
| download | shiftos-c--d40fed5ce2bc806a91245adb18039634eac13ed0.tar.gz shiftos-c--d40fed5ce2bc806a91245adb18039634eac13ed0.tar.bz2 shiftos-c--d40fed5ce2bc806a91245adb18039634eac13ed0.zip | |
Move ShiftUI source code to ShiftOS
This'll be a lot easier to work on.
Diffstat (limited to 'source/ShiftUI/Enums')
94 files changed, 5237 insertions, 0 deletions
diff --git a/source/ShiftUI/Enums/AccessibleEvents.cs b/source/ShiftUI/Enums/AccessibleEvents.cs new file mode 100644 index 0000000..90a9e82 --- /dev/null +++ b/source/ShiftUI/Enums/AccessibleEvents.cs @@ -0,0 +1,74 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2005 Novell, Inc. (http://www.novell.com) +// +// Authors: +// Peter Bartok [email protected] +// +// + +// COMPLETE + +namespace ShiftUI { + public enum AccessibleEvents { + SystemSound = 1, + SystemAlert = 2, + SystemForeground = 3, + SystemMenuStart = 4, + SystemMenuEnd = 5, + SystemMenuPopupStart = 6, + SystemMenuPopupEnd = 7, + SystemCaptureStart = 8, + SystemCaptureEnd = 9, + SystemMoveSizeStart = 10, + SystemMoveSizeEnd = 11, + SystemContextHelpStart = 12, + SystemContextHelpEnd = 13, + SystemDragDropStart = 14, + SystemDragDropEnd = 15, + SystemDialogStart = 16, + SystemDialogEnd = 17, + SystemScrollingStart = 18, + SystemScrollingEnd = 19, + SystemSwitchStart = 20, + SystemSwitchEnd = 21, + SystemMinimizeStart = 22, + SystemMinimizeEnd = 23, + Create = 32768, + Destroy = 32769, + Show = 32770, + Hide = 32771, + Reorder = 32772, + Focus = 32773, + Selection = 32774, + SelectionAdd = 32775, + SelectionRemove = 32776, + SelectionWithin = 32777, + StateChange = 32778, + LocationChange = 32779, + NameChange = 32780, + DescriptionChange = 32781, + ValueChange = 32782, + ParentChange = 32783, + HelpChange = 32784, + DefaultActionChange = 32785, + AcceleratorChange = 32786 + } +} diff --git a/source/ShiftUI/Enums/AccessibleNavigation.cs b/source/ShiftUI/Enums/AccessibleNavigation.cs new file mode 100644 index 0000000..1fb49be --- /dev/null +++ b/source/ShiftUI/Enums/AccessibleNavigation.cs @@ -0,0 +1,39 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] + + +// COMPLETE + +namespace ShiftUI { + public enum AccessibleNavigation { + Up = 1, + Down = 2, + Left = 3, + Right = 4, + Next = 5, + Previous = 6, + FirstChild = 7, + LastChild = 8 + } +} diff --git a/source/ShiftUI/Enums/AccessibleObject.cs b/source/ShiftUI/Enums/AccessibleObject.cs new file mode 100644 index 0000000..9411c58 --- /dev/null +++ b/source/ShiftUI/Enums/AccessibleObject.cs @@ -0,0 +1,561 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2006 Novell, Inc. +// +// Authors: +// Peter Dennis Bartok [email protected] +// + + +// NOT COMPLETE + +using Accessibility; +using System.Drawing; +using System.Globalization; +using System.Reflection; +using System.Runtime.InteropServices; +using System; + +namespace ShiftUI { + [ComVisible(true)] + public class AccessibleObject : StandardOleMarshalObject, IReflect, IAccessible { + #region Private Variables + internal string name; + internal string value; + internal Widget owner; + internal AccessibleRole role; + internal AccessibleStates state; + internal string default_action; + internal string description; + internal string help; + internal string keyboard_shortcut; + #endregion // Private Variables + + #region Public Constructors + public AccessibleObject() { + this.owner = null; + this.value = null; + this.name = null; + this.role = AccessibleRole.Default; + this.default_action = null; + this.description = null; + this.help = null; + this.keyboard_shortcut = null; + this.state = AccessibleStates.None; + } + #endregion // Public Constructors + + #region Private Constructors + internal AccessibleObject(Widget owner) : this () { + this.owner=owner; + } + #endregion // Private Constructors + + #region Public Instance Properties + public virtual Rectangle Bounds { + get { + return owner.Bounds; + } + } + + public virtual string DefaultAction { + get { + return default_action; + } + } + + public virtual string Description { + get { + return description; + } + } + + public virtual string Help { + get { + return help; + } + } + + public virtual string KeyboardShortcut { + get { + return keyboard_shortcut; + } + } + + public virtual string Name { + get { + return name; + } + + set { + name=value; + } + } + + public virtual AccessibleObject Parent { + get { + if ((owner!=null) && (owner.Parent!=null)) { + return owner.Parent.AccessibilityObject; + } + return null; + } + } + + public virtual AccessibleRole Role { + get { + return role; + } + } + + public virtual AccessibleStates State { + get { +#if not + if (owner!=null) { + if (owner.Focused) { + state |= AccessibleStates.Focused; + } + + if (!owner.Visible) { + state |= AccessibleStates.Invisible; + } + } +#endif + return state; + } + } + + public virtual string Value { + get { + return this.value; + } + + set { + this.value=value; + } + } + #endregion // Public Instance Properties + + #region Public Instance Methods + public virtual void DoDefaultAction() { + if (owner!=null) { + owner.DoDefaultAction(); + } + } + + public virtual AccessibleObject GetChild(int index) { + if (owner!=null) { + if (index<owner.Widgets.Count) { + return owner.Widgets[index].AccessibilityObject; + } + } + return null; + } + + public virtual int GetChildCount() { + if (owner!=null) { + return owner.Widgets.Count; + } + return -1; + } + + public virtual AccessibleObject GetFocused() { + if (owner.has_focus) { + return owner.AccessibilityObject; + } + + return FindFocusWidget(owner); + } + + public virtual int GetHelpTopic (out string fileName) + { + fileName = null; + return -1; + } + + public virtual AccessibleObject GetSelected() { + if ((state & AccessibleStates.Selected) != 0) { + return this; + } + + return FindSelectedWidget(owner); + } + + public virtual AccessibleObject HitTest(int x, int y) { + Widget result; + + result = FindHittestWidget(owner, x, y); + + if (result != null) { + return result.AccessibilityObject; + } + + return null; + } + + public virtual AccessibleObject Navigate(AccessibleNavigation navdir) { + int index; + + // I'm not throwing exceptions if an object doesn't exist in the specified direction + // Might not be too helpful to a blind dude trying to navigate. Instead we return + // our own object + + if (owner.Parent != null) { + index = owner.Parent.Widgets.IndexOf(owner); + } else { + index = -1; + } + + switch (navdir) { + // Spatial navigation; limited to siblings + case AccessibleNavigation.Up: { + if (owner.Parent != null) { + for (int i=0; i<owner.Parent.Widgets.Count; i++) { + if ((owner != owner.Parent.Widgets[i]) && (owner.Parent.Widgets[i].Top<owner.Top)) { + return owner.Parent.Widgets[i].AccessibilityObject; + } + } + + } + return owner.AccessibilityObject; + } + + case AccessibleNavigation.Down: { + if (owner.Parent != null) { + for (int i=0; i<owner.Parent.Widgets.Count; i++) { + if ((owner != owner.Parent.Widgets[i]) && (owner.Parent.Widgets[i].Top>owner.Bottom)) { + return owner.Parent.Widgets[i].AccessibilityObject; + } + } + + } + return owner.AccessibilityObject; + } + + case AccessibleNavigation.Left: { + if (owner.Parent != null) { + for (int i=0; i<owner.Parent.Widgets.Count; i++) { + if ((owner != owner.Parent.Widgets[i]) && (owner.Parent.Widgets[i].Left<owner.Left)) { + return owner.Parent.Widgets[i].AccessibilityObject; + } + } + + } + return owner.AccessibilityObject; + } + + case AccessibleNavigation.Right: { + if (owner.Parent != null) { + for (int i=0; i<owner.Parent.Widgets.Count; i++) { + if ((owner != owner.Parent.Widgets[i]) && (owner.Parent.Widgets[i].Left>owner.Right)) { + return owner.Parent.Widgets[i].AccessibilityObject; + } + } + + } + return owner.AccessibilityObject; + } + + // Logical navigation + case AccessibleNavigation.Next: { + if (owner.Parent != null) { + if ((index+1)<owner.Parent.Widgets.Count) { + return owner.Parent.Widgets[index+1].AccessibilityObject; + } else { + return owner.Parent.Widgets[0].AccessibilityObject; + } + } else { + return owner.AccessibilityObject; + } + } + + case AccessibleNavigation.Previous: { + if (owner.Parent != null) { + if (index>0) { + return owner.Parent.Widgets[index-1].AccessibilityObject; + } else { + return owner.Parent.Widgets[owner.Parent.Widgets.Count-1].AccessibilityObject; + } + } else { + return owner.AccessibilityObject; + } + } + + case AccessibleNavigation.FirstChild: { + if (owner.Widgets.Count>0) { + return owner.Widgets[0].AccessibilityObject; + } else { + return owner.AccessibilityObject; + } + } + + case AccessibleNavigation.LastChild: { + if (owner.Widgets.Count>0) { + return owner.Widgets[owner.Widgets.Count-1].AccessibilityObject; + } else { + return owner.AccessibilityObject; + } + } + } + + return owner.AccessibilityObject; + } + + public virtual void Select(AccessibleSelection flags) { + if ((flags & AccessibleSelection.TakeFocus) != 0){ + owner.Focus(); + } + return; + } + #endregion // Public Instance Methods + + #region Protected Instance Methods + protected void UseStdAccessibleObjects(IntPtr handle) { + } + + protected void UseStdAccessibleObjects(IntPtr handle, int objid) { + UseStdAccessibleObjects(handle, 0); + } + #endregion // Protected Instance Methods + + + #region Internal Methods + internal static AccessibleObject FindFocusWidget(Widget parent) { + Widget child; + + if (parent != null) { + for (int i=0; i < parent.Widgets.Count; i++) { + child = parent.Widgets[i]; + if ((child.AccessibilityObject.state & AccessibleStates.Focused) != 0) { + return child.AccessibilityObject; + } + + if (child.Widgets.Count>0) { + AccessibleObject result; + + result = FindFocusWidget(child); + if (result != null) { + return result; + } + } + } + } + return null; + } + + internal static AccessibleObject FindSelectedWidget(Widget parent) { + Widget child; + + if (parent != null) { + for (int i=0; i < parent.Widgets.Count; i++) { + child = parent.Widgets[i]; + if ((child.AccessibilityObject.state & AccessibleStates.Selected) != 0) { + return child.AccessibilityObject; + } + if (child.Widgets.Count>0) { + AccessibleObject result; + + result = FindSelectedWidget(child); + if (result != null) { + return result; + } + } + } + } + return null; + } + + internal static Widget FindHittestWidget(Widget parent, int x, int y) { + Widget child; + Point child_point; + Point hittest_point; + + hittest_point = new Point(x, y); + + child_point = parent.PointToClient(hittest_point); + if (parent.ClientRectangle.Contains(child_point)) { + return parent; + } + + for (int i=0; i < parent.Widgets.Count; i++) { + child=parent.Widgets[i]; + child_point = child.PointToClient(hittest_point); + if (child.ClientRectangle.Contains(child_point)) { + return child; + } + if (child.Widgets.Count>0) { + Widget result; + + result = FindHittestWidget(child, x, y); + if (result != null) { + return result; + } + } + } + return null; + } + #endregion // Internal Methods + + #region IReflection Methods and Properties + FieldInfo IReflect.GetField(String name, BindingFlags bindingAttr) { + throw new NotImplementedException(); + } + + FieldInfo[] IReflect.GetFields(BindingFlags bindingAttr) { + throw new NotImplementedException(); + } + + MemberInfo[] IReflect.GetMember(String name, BindingFlags bindingAttr) { + throw new NotImplementedException(); + } + + MemberInfo[] IReflect.GetMembers(BindingFlags bindingAttr) { + throw new NotImplementedException(); + } + + MethodInfo IReflect.GetMethod(String name, BindingFlags bindingAttr) { + throw new NotImplementedException(); + } + + MethodInfo IReflect.GetMethod(String name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers) { + throw new NotImplementedException(); + } + + MethodInfo[] IReflect.GetMethods(BindingFlags bindingAttr) { + throw new NotImplementedException(); + } + + PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr) { + throw new NotImplementedException(); + } + + PropertyInfo IReflect.GetProperty(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) { + throw new NotImplementedException(); + } + + PropertyInfo[] IReflect.GetProperties(BindingFlags bindingAttr) { + throw new NotImplementedException(); + } + + Object IReflect.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) { + throw new NotImplementedException(); + } + + Type IReflect.UnderlyingSystemType { + get { + throw new NotImplementedException(); + } + } + #endregion // IReflection Methods and Properties + + #region IAccessible Methods and Properties + void IAccessible.accDoDefaultAction(object childID) { + throw new NotImplementedException(); + } + + int IAccessible.accChildCount { + get { + throw new NotImplementedException(); + } + } + + object IAccessible.accFocus { + get { + throw new NotImplementedException(); + } + } + + object IAccessible.accHitTest(int xLeft, int yTop) { + throw new NotImplementedException(); + } + + void IAccessible.accLocation(out int pxLeft, out int pyTop, out int pcxWidth, out int pcyHeight, object childID) { + throw new NotImplementedException(); + } + + object IAccessible.accNavigate(int navDir, object childID) { + throw new NotImplementedException(); + } + + object IAccessible.accParent { + get { + throw new NotImplementedException(); + } + } + + void IAccessible.accSelect(int flagsSelect, object childID) { + throw new NotImplementedException(); + } + + object IAccessible.accSelection { + get { + throw new NotImplementedException(); + } + } + + object IAccessible.get_accChild(object childID) { + throw new NotImplementedException(); + } + + string IAccessible.get_accDefaultAction(object childID) { + throw new NotImplementedException(); + } + + string IAccessible.get_accDescription(object childID) { + throw new NotImplementedException(); + } + + string IAccessible.get_accHelp(object childID) { + throw new NotImplementedException(); + } + + int IAccessible.get_accHelpTopic(out string pszHelpFile,object childID) { + throw new NotImplementedException(); + } + + string IAccessible.get_accKeyboardShortcut(object childID) { + throw new NotImplementedException(); + } + + string IAccessible.get_accName(object childID) { + throw new NotImplementedException(); + } + + object IAccessible.get_accRole(object childID) { + throw new NotImplementedException(); + } + + object IAccessible.get_accState(object childID) { + throw new NotImplementedException(); + } + + string IAccessible.get_accValue(object childID) { + throw new NotImplementedException(); + } + + void IAccessible.set_accName(object childID, string newName) { + throw new NotImplementedException(); + } + + void IAccessible.set_accValue(object childID, string newValue) { + throw new NotImplementedException(); + } + #endregion // IAccessible Methods and Properties + } +} diff --git a/source/ShiftUI/Enums/AccessibleRole.cs b/source/ShiftUI/Enums/AccessibleRole.cs new file mode 100644 index 0000000..95d0675 --- /dev/null +++ b/source/ShiftUI/Enums/AccessibleRole.cs @@ -0,0 +1,98 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE + +namespace ShiftUI { + public enum AccessibleRole { + None = 0, + TitleBar = 1, + MenuBar = 2, + ScrollBar = 3, + Grip = 4, + Sound = 5, + Cursor = 6, + Caret = 7, + Alert = 8, + Window = 9, + Client = 10, + MenuPopup = 11, + MenuItem = 12, + ToolTip = 13, + Application = 14, + Document = 15, + Pane = 16, + Chart = 17, + Dialog = 18, + Border = 19, + Grouping = 20, + Separator = 21, + ToolBar = 22, + StatusBar = 23, + Table = 24, + ColumnHeader = 25, + RowHeader = 26, + Column = 27, + Row = 28, + Cell = 29, + Link = 30, + HelpBalloon = 31, + Character = 32, + List = 33, + ListItem = 34, + Outline = 35, + OutlineItem = 36, + PageTab = 37, + PropertyPage = 38, + Indicator = 39, + Graphic = 40, + StaticText = 41, + Text = 42, + PushButton = 43, + CheckButton = 44, + RadioButton = 45, + ComboBox = 46, + DropList = 47, + ProgressBar = 48, + Dial = 49, + HotkeyField = 50, + Slider = 51, + SpinButton = 52, + Diagram = 53, + Animation = 54, + Equation = 55, + ButtonDropDown = 56, + ButtonMenu = 57, + ButtonDropDownGrid= 58, + WhiteSpace = 59, + PageTabList = 60, + Clock = 61, + Default = -1, + SplitButton = 62, + IpAddress = 63, + OutlineButton = 64 + } +} diff --git a/source/ShiftUI/Enums/AccessibleSelection.cs b/source/ShiftUI/Enums/AccessibleSelection.cs new file mode 100644 index 0000000..87186e9 --- /dev/null +++ b/source/ShiftUI/Enums/AccessibleSelection.cs @@ -0,0 +1,40 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE +using System; + +namespace ShiftUI { + [Flags] + public enum AccessibleSelection { + None = 0x00000000, + TakeFocus = 0x00000001, + TakeSelection = 0x00000002, + ExtendSelection = 0x00000004, + AddSelection = 0x00000008, + RemoveSelection = 0x00000010 + } +} diff --git a/source/ShiftUI/Enums/AccessibleStates.cs b/source/ShiftUI/Enums/AccessibleStates.cs new file mode 100644 index 0000000..e453e58 --- /dev/null +++ b/source/ShiftUI/Enums/AccessibleStates.cs @@ -0,0 +1,70 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE +using System; + +namespace ShiftUI { + + [Flags] + public enum AccessibleStates { + None = 0x00000000, + Unavailable = 0x00000001, + Selected = 0x00000002, + Focused = 0x00000004, + Pressed = 0x00000008, + Checked = 0x00000010, + Mixed = 0x00000020, + Indeterminate = 0x00000020, + ReadOnly = 0x00000040, + HotTracked = 0x00000080, + Default = 0x00000100, + Expanded = 0x00000200, + Collapsed = 0x00000400, + Busy = 0x00000800, + Floating = 0x00001000, + Marqueed = 0x00002000, + Animated = 0x00004000, + Invisible = 0x00008000, + Offscreen = 0x00010000, + Sizeable = 0x00020000, + Moveable = 0x00040000, + SelfVoicing = 0x00080000, + Focusable = 0x00100000, + Selectable = 0x00200000, + Linked = 0x00400000, + Traversed = 0x00800000, + MultiSelectable = 0x01000000, + ExtSelectable = 0x02000000, + AlertLow = 0x04000000, + AlertMedium = 0x08000000, + AlertHigh = 0x10000000, + Protected = 0x20000000, + [Obsolete] + Valid = 0x3FFFFFFF, + HasPopup = 0x40000000 + } +} diff --git a/source/ShiftUI/Enums/AmbientProperties.cs b/source/ShiftUI/Enums/AmbientProperties.cs new file mode 100644 index 0000000..fb1abe0 --- /dev/null +++ b/source/ShiftUI/Enums/AmbientProperties.cs @@ -0,0 +1,87 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2005 Novell, Inc. (http://www.novell.com) +// +// Authors: +// Peter Bartok ([email protected]) +// +// + +// COMPLETE + +using System.Drawing; + +namespace ShiftUI { + public sealed class AmbientProperties { + #region Local Variables + private Color fore_color; + private Color back_color; + private Font font; + private Cursor cursor; + #endregion // Local Variables + + #region Public Constructors + public AmbientProperties() { + } + #endregion // Public Constructors + + #region Public Instance Properties + public Color BackColor { + get { + return back_color; + } + + set { + back_color = value; + } + } + + public Cursor Cursor { + get { + return cursor; + } + + set { + cursor = value; + } + } + + public Font Font { + get { + return font; + } + + set { + font = value; + } + } + + public Color ForeColor { + get { + return fore_color; + } + + set { + fore_color = value; + } + } + #endregion // Public Instance Properties + } +} diff --git a/source/ShiftUI/Enums/AnchorStyles.cs b/source/ShiftUI/Enums/AnchorStyles.cs new file mode 100644 index 0000000..52e8c53 --- /dev/null +++ b/source/ShiftUI/Enums/AnchorStyles.cs @@ -0,0 +1,41 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2005 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE + +using System.ComponentModel; +using System; + +namespace ShiftUI { + [Flags] + public enum AnchorStyles { + None = 0x00000000, + Top = 0x00000001, + Bottom = 0x00000002, + Left = 0x00000004, + Right = 0x00000008 + } +} diff --git a/source/ShiftUI/Enums/Appearance.cs b/source/ShiftUI/Enums/Appearance.cs new file mode 100644 index 0000000..d9f8774 --- /dev/null +++ b/source/ShiftUI/Enums/Appearance.cs @@ -0,0 +1,37 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2005 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE + +using System.Runtime.InteropServices; + +namespace ShiftUI { + [ComVisible(true)] + public enum Appearance { + Normal = 0, + Button = 1 + } +} diff --git a/source/ShiftUI/Enums/ArrangeDirection.cs b/source/ShiftUI/Enums/ArrangeDirection.cs new file mode 100644 index 0000000..3b98715 --- /dev/null +++ b/source/ShiftUI/Enums/ArrangeDirection.cs @@ -0,0 +1,41 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2005 Novell, Inc. (http://www.novell.com) +// +// Authors: +// Peter Bartok [email protected] +// +// + +// COMPLETE + +using System; +using System.Runtime.InteropServices; + +namespace ShiftUI { + [Flags] + [ComVisible(true)] + public enum ArrangeDirection { + Left = 0, + Right = 0, + Down = 4, + Up = 4 + } +} diff --git a/source/ShiftUI/Enums/ArrangeStartingPosition.cs b/source/ShiftUI/Enums/ArrangeStartingPosition.cs new file mode 100644 index 0000000..7b56b3a --- /dev/null +++ b/source/ShiftUI/Enums/ArrangeStartingPosition.cs @@ -0,0 +1,39 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2005 Novell, Inc. (http://www.novell.com) +// +// Authors: +// Peter Bartok [email protected] +// +// + +// COMPLETE +using System; + +namespace ShiftUI { + [Flags] + public enum ArrangeStartingPosition { + BottomLeft = 0, + BottomRight = 1, + TopLeft = 2, + TopRight = 3, + Hide = 8 + } +} diff --git a/source/ShiftUI/Enums/ArrowDirection.cs b/source/ShiftUI/Enums/ArrowDirection.cs new file mode 100644 index 0000000..653b3aa --- /dev/null +++ b/source/ShiftUI/Enums/ArrowDirection.cs @@ -0,0 +1,39 @@ +// +// ArrowDirection.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum ArrowDirection + { + Left = 0, + Up = 1, + Right = 16, + Down = 17 + } +} diff --git a/source/ShiftUI/Enums/AutoCompleteMode.cs b/source/ShiftUI/Enums/AutoCompleteMode.cs new file mode 100644 index 0000000..0cfc065 --- /dev/null +++ b/source/ShiftUI/Enums/AutoCompleteMode.cs @@ -0,0 +1,38 @@ +// +// AutoCompleteMode.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + +namespace ShiftUI +{ + public enum AutoCompleteMode + { + None = 0, + Suggest = 1, + Append = 2, + SuggestAppend = 3 + } +} diff --git a/source/ShiftUI/Enums/AutoScaleMode.cs b/source/ShiftUI/Enums/AutoScaleMode.cs new file mode 100644 index 0000000..d4f53a0 --- /dev/null +++ b/source/ShiftUI/Enums/AutoScaleMode.cs @@ -0,0 +1,34 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. (http://www.novell.com) +// +// Authors: +// Peter Dennis Bartok ([email protected]) +// +// + +namespace ShiftUI { + public enum AutoScaleMode { + None = 0, + Font = 1, + Dpi = 2, + Inherit = 3 + } +} diff --git a/source/ShiftUI/Enums/AutoSizeMode.cs b/source/ShiftUI/Enums/AutoSizeMode.cs new file mode 100644 index 0000000..1811a2d --- /dev/null +++ b/source/ShiftUI/Enums/AutoSizeMode.cs @@ -0,0 +1,37 @@ +// +// AutoSizeMode.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum AutoSizeMode + { + GrowAndShrink = 0, + GrowOnly = 1 + } +} diff --git a/source/ShiftUI/Enums/AutoValidate.cs b/source/ShiftUI/Enums/AutoValidate.cs new file mode 100644 index 0000000..f46ccb2 --- /dev/null +++ b/source/ShiftUI/Enums/AutoValidate.cs @@ -0,0 +1,39 @@ +// +// AutoValidate.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum AutoValidate + { + Inherit = -1, + Disable = 0, + EnablePreventFocusChange = 1, + EnableAllowFocusChange = 2 + } +} diff --git a/source/ShiftUI/Enums/BatteryChargeStatus.cs b/source/ShiftUI/Enums/BatteryChargeStatus.cs new file mode 100644 index 0000000..19b6681 --- /dev/null +++ b/source/ShiftUI/Enums/BatteryChargeStatus.cs @@ -0,0 +1,42 @@ +// +// BatteryChargeStatus.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// +using System; + +namespace ShiftUI +{ + [Flags] + public enum BatteryChargeStatus + { + High = 1, + Low = 2, + Critical = 4, + Charging = 8, + NoSystemBattery = 128, + Unknown = 255 + } +} diff --git a/source/ShiftUI/Enums/BindingCompleteState.cs b/source/ShiftUI/Enums/BindingCompleteState.cs new file mode 100644 index 0000000..67adb05 --- /dev/null +++ b/source/ShiftUI/Enums/BindingCompleteState.cs @@ -0,0 +1,38 @@ +// +// BindingCompleteState.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum BindingCompleteState + { + Success = 0, + DataError = 1, + Exception = 2 + } +} diff --git a/source/ShiftUI/Enums/Border3DSide.cs b/source/ShiftUI/Enums/Border3DSide.cs new file mode 100644 index 0000000..5e827ff --- /dev/null +++ b/source/ShiftUI/Enums/Border3DSide.cs @@ -0,0 +1,42 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2005 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE +using System; +using System.Runtime.InteropServices; + +namespace ShiftUI { + [ComVisible(true)] + [Flags] + public enum Border3DSide { + Left = 0x00000001, + Top = 0x00000002, + Right = 0x00000004, + Bottom = 0x00000008, + Middle = 0x00000800, + All = 0x0000080F + } +} diff --git a/source/ShiftUI/Enums/Border3DStyle.cs b/source/ShiftUI/Enums/Border3DStyle.cs new file mode 100644 index 0000000..86113fd --- /dev/null +++ b/source/ShiftUI/Enums/Border3DStyle.cs @@ -0,0 +1,45 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2005 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE + +using System.Runtime.InteropServices; + +namespace ShiftUI { + [ComVisible(true)] + public enum Border3DStyle { + RaisedOuter = 1, + SunkenOuter = 2, + RaisedInner = 4, + Raised = 5, + Etched = 6, + SunkenInner = 8, + Bump = 9, + Sunken = 10, + Adjust = 8192, + Flat = 16394 + } +} diff --git a/source/ShiftUI/Enums/BorderStyle.cs b/source/ShiftUI/Enums/BorderStyle.cs new file mode 100644 index 0000000..1611341 --- /dev/null +++ b/source/ShiftUI/Enums/BorderStyle.cs @@ -0,0 +1,37 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2005 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + +// COMPLETE + +using System.Runtime.InteropServices; + +namespace ShiftUI { + [ComVisible(true)] + public enum BorderStyle { + None = 0, + FixedSingle = 1, + Fixed3D = 2 + } +} diff --git a/source/ShiftUI/Enums/ButtonBorderStyle.cs b/source/ShiftUI/Enums/ButtonBorderStyle.cs new file mode 100644 index 0000000..fb932b3 --- /dev/null +++ b/source/ShiftUI/Enums/ButtonBorderStyle.cs @@ -0,0 +1,38 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE + +namespace ShiftUI { + public enum ButtonBorderStyle { + None = 0, + Dotted = 1, + Dashed = 2, + Solid = 3, + Inset = 4, + Outset = 5 + } +} diff --git a/source/ShiftUI/Enums/ButtonState.cs b/source/ShiftUI/Enums/ButtonState.cs new file mode 100644 index 0000000..f11d71c --- /dev/null +++ b/source/ShiftUI/Enums/ButtonState.cs @@ -0,0 +1,41 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE +using System; + +namespace ShiftUI { + + [Flags] + public enum ButtonState { + Normal = 0x00000000, + Inactive = 0x00000100, + Pushed = 0x00000200, + Checked = 0x00000400, + Flat = 0x00004000, + All = 0x00004700 + } +} diff --git a/source/ShiftUI/Enums/CharacterCasing.cs b/source/ShiftUI/Enums/CharacterCasing.cs new file mode 100644 index 0000000..8bdba2b --- /dev/null +++ b/source/ShiftUI/Enums/CharacterCasing.cs @@ -0,0 +1,35 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. (http://www.novell.com) +// +// Authors: +// Peter Bartok [email protected] +// +// + +// COMPLETE + +namespace ShiftUI { + public enum CharacterCasing { + Normal = 0, + Upper = 1, + Lower = 2 + } +} diff --git a/source/ShiftUI/Enums/CheckState.cs b/source/ShiftUI/Enums/CheckState.cs new file mode 100644 index 0000000..b71f7be --- /dev/null +++ b/source/ShiftUI/Enums/CheckState.cs @@ -0,0 +1,34 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] + + +// COMPLETE + +namespace ShiftUI { + public enum CheckState { + Unchecked = 0, + Checked = 1, + Indeterminate = 2 + } +} diff --git a/source/ShiftUI/Enums/CloseReason.cs b/source/ShiftUI/Enums/CloseReason.cs new file mode 100644 index 0000000..f742ef4 --- /dev/null +++ b/source/ShiftUI/Enums/CloseReason.cs @@ -0,0 +1,42 @@ +// +// CloseReason.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum CloseReason + { + None = 0, + WindowsShutDown = 1, + MdiFormClosing = 2, + UserClosing = 3, + TaskManagerClosing = 4, + FormOwnerClosing = 5, + ApplicationExitCall = 6 + } +}
\ No newline at end of file diff --git a/source/ShiftUI/Enums/ColorDepth.cs b/source/ShiftUI/Enums/ColorDepth.cs new file mode 100644 index 0000000..1247141 --- /dev/null +++ b/source/ShiftUI/Enums/ColorDepth.cs @@ -0,0 +1,37 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok ([email protected]) +// + + +// COMPLETE + +namespace ShiftUI { + public enum ColorDepth { + Depth4Bit = 4, + Depth8Bit = 8, + Depth16Bit = 16, + Depth24Bit = 24, + Depth32Bit = 32 + } +} diff --git a/source/ShiftUI/Enums/ComboBoxStyle.cs b/source/ShiftUI/Enums/ComboBoxStyle.cs new file mode 100644 index 0000000..97e9e83 --- /dev/null +++ b/source/ShiftUI/Enums/ComboBoxStyle.cs @@ -0,0 +1,37 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jordi Mas i Hernandez, [email protected] +// + +using System; + +namespace ShiftUI { + + public enum ComboBoxStyle + { + Simple = 0, + DropDown = 1, + DropDownList = 2, + + } +} diff --git a/source/ShiftUI/Enums/ControlStyles.cs b/source/ShiftUI/Enums/ControlStyles.cs new file mode 100644 index 0000000..0cc2dab --- /dev/null +++ b/source/ShiftUI/Enums/ControlStyles.cs @@ -0,0 +1,58 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// +// + + +// COMPLETE + +using System.ComponentModel; +using System; + +namespace ShiftUI { + + [Flags] + public enum Widgetstyles { + ContainerWidget = 0x00000001, + UserPaint = 0x00000002, + Opaque = 0x00000004, + ResizeRedraw = 0x00000010, + FixedWidth = 0x00000020, + FixedHeight = 0x00000040, + StandardClick = 0x00000100, + Selectable = 0x00000200, + UserMouse = 0x00000400, + SupportsTransparentBackColor = 0x00000800, + StandardDoubleClick = 0x00001000, + AllPaintingInWmPaint = 0x00002000, + CacheText = 0x00004000, + EnableNotifyMessage = 0x00008000, + + //[EditorBrowsable (EditorBrowsableState.Never)] + DoubleBuffer = 0x00010000, + + OptimizedDoubleBuffer = 0x00020000, + UseTextForAccessibility = 0x00040000 + } +} diff --git a/source/ShiftUI/Enums/ControlUpdateMode.cs b/source/ShiftUI/Enums/ControlUpdateMode.cs new file mode 100644 index 0000000..ae7df34 --- /dev/null +++ b/source/ShiftUI/Enums/ControlUpdateMode.cs @@ -0,0 +1,37 @@ +// +// ControlUpdateMode.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum ControlUpdateMode + { + OnPropertyChanged = 0, + Never = 1 + } +} diff --git a/source/ShiftUI/Enums/CreateParams.cs b/source/ShiftUI/Enums/CreateParams.cs new file mode 100644 index 0000000..6712874 --- /dev/null +++ b/source/ShiftUI/Enums/CreateParams.cs @@ -0,0 +1,171 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2006 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE + +using System.Collections; +using System.ComponentModel; +using System; + +namespace ShiftUI { + public class CreateParams { + #region Local Variables + private string caption; + private string class_name; + private int class_style; + private int ex_style; + private int x; + private int y; + private int height; + private int width; + private int style; + private object param; + private IntPtr parent; + internal Menu menu; + internal Widget control; + #endregion // Local variables + + #region Public Constructors + public CreateParams() { + } + #endregion // Public Constructors + + #region Public Instance Properties + public string Caption { + get { return caption; } + set { caption = value; } + } + + public string ClassName { + get { return class_name; } + set { class_name = value; } + } + + public int ClassStyle { + get { return class_style; } + set { class_style = value; } + } + + public int ExStyle { + get { return ex_style; } + set { ex_style = value; } + } + + public int X { + get { return x; } + set { x = value; } + } + + public int Y { + get { return y; } + set { y = value; } + } + + public int Width { + get { return width; } + set { width = value; } + } + + public int Height { + get { return height; } + set { height = value; } + } + + public int Style { + get { return style; } + set { style = value; } + } + + public object Param { + get { return param; } + set { param = value; } + } + + public IntPtr Parent { + get { return parent; } + set { parent = value; } + } + #endregion // Public Instance Properties + + #region Internal Instance Methods + internal bool IsSet (WindowStyles Style) { + return (this.style & (int) Style) == (int) Style; + } + + internal bool IsSet (WindowExStyles ExStyle) { + return (this.ex_style & (int) ExStyle) == (int) ExStyle; + } + + internal static bool IsSet (WindowExStyles ExStyle, WindowExStyles Option) { + return (Option & ExStyle) == Option; + } + + internal static bool IsSet (WindowStyles Style, WindowStyles Option) { + return (Option & Style) == Option; + } + + internal bool HasWindowManager { + get { + if (control == null) + return false; + + Form form = control as Form; + + if (form == null) + return false; + + return form.window_manager != null; + } + } + internal WindowExStyles WindowExStyle { + get { + return (WindowExStyles) ex_style; + } + set + { + ex_style = (int)value; + } + } + + internal WindowStyles WindowStyle { + get { + return (WindowStyles) style; + } + set { + style = (int) value; + } + } + #endregion + + #region Public Instance Methods + public override string ToString() { + return string.Format ("CreateParams {{'{0}', '{1}', 0x{2:X}, 0x{3:X}, {{{4}, {5}, {6}, {7}}}}}", + class_name, caption, class_style, ex_style, x, y, width, height); + } + #endregion // Public Instance Methods + + } +} diff --git a/source/ShiftUI/Enums/DataFormats.cs b/source/ShiftUI/Enums/DataFormats.cs new file mode 100644 index 0000000..a70851d --- /dev/null +++ b/source/ShiftUI/Enums/DataFormats.cs @@ -0,0 +1,229 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2005 Novell, Inc. (http://www.novell.com) +// +// Authors: +// Peter Bartok ([email protected]) +// +// + +// COMPLETE + +using System; +using System.Collections; +using System.Text; + +namespace ShiftUI +{ + public class DataFormats + { + public class Format + { + static readonly object lockobj = new object (); + + private static Format formats; + private string name; + private int id; + private Format next; + internal bool is_serializable; + + public Format (string name, int id) + { + this.name = name; + this.id = id; + + lock (lockobj) { + if (formats == null) + formats = this; + else { + Format f = formats; + while (f.next != null) + f = f.next; + f.next = this; + } + } + } + + #region Public Instance Properties + public int Id { + get { + return this.id; + } + } + + public string Name { + get { + return this.name; + } + } + + internal Format Next { + get { + return this.next; + } + } + #endregion // Public Instance Properties + + #region Private Methods + internal static Format Add (string name) + { + Format f; + + f = Find (name); + if (f == null) { + IntPtr cliphandle; + + cliphandle = XplatUI.ClipboardOpen (false); + f = new Format (name, XplatUI.ClipboardGetID (cliphandle, name)); + XplatUI.ClipboardClose (cliphandle); + } + return f; + } + + internal static Format Add (int id) { + Format f; + + f = Find (id); + if (f == null) + f = new Format("Format" + id.ToString(), id); + return f; + } + + internal static Format Find (int id) { + Format f; + + f = formats; + while ((f != null) && (f.Id != id)) + f = f.next; + return f; + } + + internal static Format Find (string name) { + Format f; + + f = formats; + while ((f != null) && (!f.Name.Equals(name))) + f = f.next; + return f; + } + + internal static Format List { + get { + return formats; + } + } + #endregion // Private Methods + } + + private DataFormats () + { + } + + #region Public Static Fields + public static readonly string Bitmap = "Bitmap"; + public static readonly string CommaSeparatedValue = "Csv"; + public static readonly string Dib = "DeviceIndependentBitmap"; + public static readonly string Dif = "DataInterchangeFormat"; + public static readonly string EnhancedMetafile = "EnhancedMetafile"; + public static readonly string FileDrop = "FileDrop"; + public static readonly string Html = "HTML Format"; + public static readonly string Locale = "Locale"; + public static readonly string MetafilePict = "MetaFilePict"; + public static readonly string OemText = "OEMText"; + public static readonly string Palette = "Palette"; + public static readonly string PenData = "PenData"; + public static readonly string Riff = "RiffAudio"; + public static readonly string Rtf = "Rich Text Format"; + public static readonly string Serializable = "WindowsForms10PersistentObject"; + public static readonly string StringFormat = "System.String"; + public static readonly string SymbolicLink = "SymbolicLink"; + public static readonly string Text = "Text"; + public static readonly string Tiff = "Tiff"; + public static readonly string UnicodeText = "UnicodeText"; + public static readonly string WaveAudio = "WaveAudio"; + #endregion // Public Static Fields + + private static object lock_object = new object (); + private static bool initialized; + + // we don't want to force the creation of a new format + internal static bool ContainsFormat (int id) + { + lock (lock_object) { + if (!initialized) + Init (); + + return Format.Find (id) != null; + } + } + + public static Format GetFormat (int id) + { + lock (lock_object) { + if (!initialized) + Init (); + return Format.Find (id); + } + } + + public static Format GetFormat (string format) + { + lock (lock_object) { + if (!initialized) + Init (); + return Format.Add (format); + } + } + + // Assumes we are locked on the lock_object when it is called + private static void Init () + { + if (initialized) + return; + IntPtr cliphandle = XplatUI.ClipboardOpen(false); + + new Format (Text, XplatUI.ClipboardGetID (cliphandle, Text)); + new Format (Bitmap, XplatUI.ClipboardGetID (cliphandle, Bitmap)); + new Format (MetafilePict, XplatUI.ClipboardGetID (cliphandle, MetafilePict)); + new Format (SymbolicLink, XplatUI.ClipboardGetID (cliphandle, SymbolicLink)); + new Format (Dif, XplatUI.ClipboardGetID (cliphandle, Dif)) ; + new Format (Tiff, XplatUI.ClipboardGetID (cliphandle, Tiff)); + new Format (OemText, XplatUI.ClipboardGetID (cliphandle, OemText)); + new Format (Dib, XplatUI.ClipboardGetID (cliphandle, Dib)); + new Format (Palette, XplatUI.ClipboardGetID (cliphandle, Palette)); + new Format (PenData, XplatUI.ClipboardGetID (cliphandle, PenData)); + new Format (Riff, XplatUI.ClipboardGetID (cliphandle, Riff)); + new Format (WaveAudio, XplatUI.ClipboardGetID (cliphandle, WaveAudio)); + new Format (UnicodeText, XplatUI.ClipboardGetID (cliphandle, UnicodeText)); + new Format (EnhancedMetafile, XplatUI.ClipboardGetID (cliphandle, EnhancedMetafile)); + new Format (FileDrop, XplatUI.ClipboardGetID (cliphandle, FileDrop)); + new Format (Locale, XplatUI.ClipboardGetID (cliphandle, Locale)); + new Format (CommaSeparatedValue, XplatUI.ClipboardGetID (cliphandle, CommaSeparatedValue)); + new Format (Html, XplatUI.ClipboardGetID (cliphandle, Html)); + new Format (Rtf, XplatUI.ClipboardGetID (cliphandle, Rtf)); + new Format (Serializable, XplatUI.ClipboardGetID (cliphandle, Serializable)); + new Format (StringFormat, XplatUI.ClipboardGetID (cliphandle, StringFormat)); + + XplatUI.ClipboardClose (cliphandle); + + initialized = true; + } + } +} diff --git a/source/ShiftUI/Enums/DataSourceUpdateMode.cs b/source/ShiftUI/Enums/DataSourceUpdateMode.cs new file mode 100644 index 0000000..13c2a84 --- /dev/null +++ b/source/ShiftUI/Enums/DataSourceUpdateMode.cs @@ -0,0 +1,38 @@ +// +// DataSourceUpdateMode.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum DataSourceUpdateMode + { + OnValidation = 0, + OnPropertyChanged = 1, + Never = 2 + } +} diff --git a/source/ShiftUI/Enums/DateTimePickerFormat.cs b/source/ShiftUI/Enums/DateTimePickerFormat.cs new file mode 100644 index 0000000..a3f7e12 --- /dev/null +++ b/source/ShiftUI/Enums/DateTimePickerFormat.cs @@ -0,0 +1,33 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. (http://www.novell.com) +// +// Authors: +// John BouAntoun [email protected] +// + +namespace ShiftUI { + public enum DateTimePickerFormat { + Custom = 8, + Long = 1, + Short = 2, + Time = 4 + } +} diff --git a/source/ShiftUI/Enums/DialogResult.cs b/source/ShiftUI/Enums/DialogResult.cs new file mode 100644 index 0000000..6be5ce9 --- /dev/null +++ b/source/ShiftUI/Enums/DialogResult.cs @@ -0,0 +1,46 @@ +// +// ShiftUI.DialogResult.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Authors: +// Jordi Mas i Hernandez, [email protected] +// + +// COMPLETE + +using System.Runtime.InteropServices; + +namespace ShiftUI { + + [ComVisible(true)] + public enum DialogResult + { + None = 0, + OK = 1, + Cancel = 2, + Abort = 3, + Retry = 4, + Ignore = 5, + Yes = 6, + No = 7 + } +} + diff --git a/source/ShiftUI/Enums/DockStyle.cs b/source/ShiftUI/Enums/DockStyle.cs new file mode 100644 index 0000000..2beaa00 --- /dev/null +++ b/source/ShiftUI/Enums/DockStyle.cs @@ -0,0 +1,41 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2005 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE + +using System.ComponentModel; + +namespace ShiftUI { + //[Editor("ShiftUI.Design.DockEditor, " + Consts.AssemblySystem_Design, typeof(System.Drawing.Design.UITypeEditor))] + public enum DockStyle { + None = 0, + Top = 1, + Bottom = 2, + Left = 3, + Right = 4, + Fill = 5 + } +} diff --git a/source/ShiftUI/Enums/DragAction.cs b/source/ShiftUI/Enums/DragAction.cs new file mode 100644 index 0000000..ed52a7d --- /dev/null +++ b/source/ShiftUI/Enums/DragAction.cs @@ -0,0 +1,39 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2005 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// +// + + +// COMPLETE + +using System.Runtime.InteropServices; + +namespace ShiftUI { + [ComVisible(true)] + public enum DragAction { + Continue = 0, + Drop = 1, + Cancel = 2 + } +} diff --git a/source/ShiftUI/Enums/DragDropEffects.cs b/source/ShiftUI/Enums/DragDropEffects.cs new file mode 100644 index 0000000..00698b3 --- /dev/null +++ b/source/ShiftUI/Enums/DragDropEffects.cs @@ -0,0 +1,42 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// +// + + +// COMPLETE +using System; + +namespace ShiftUI { + + [Flags] + public enum DragDropEffects { + None = 0x00000000, + Copy = 0x00000001, + Move = 0x00000002, + Link = 0x00000004, + Scroll = unchecked((int)0x80000000), + All = unchecked((int)0x80000003) + } +} diff --git a/source/ShiftUI/Enums/DrawItemState.cs b/source/ShiftUI/Enums/DrawItemState.cs new file mode 100644 index 0000000..a838cf5 --- /dev/null +++ b/source/ShiftUI/Enums/DrawItemState.cs @@ -0,0 +1,44 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jackson Harper ([email protected]) +using System; + +namespace ShiftUI { + + [Flags] + public enum DrawItemState { + None = 0, + Selected = 1, + Grayed = 2, + Disabled = 4, + Checked = 8, + Focus = 16, + Default = 32, + HotLight = 64, + Inactive = 128, + NoAccelerator = 256, + NoFocusRect = 512, + ComboBoxEdit = 4096 + } +} + diff --git a/source/ShiftUI/Enums/DrawMode.cs b/source/ShiftUI/Enums/DrawMode.cs new file mode 100644 index 0000000..05e996a --- /dev/null +++ b/source/ShiftUI/Enums/DrawMode.cs @@ -0,0 +1,36 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jordi Mas i Hernandez, [email protected] +// +// + +namespace ShiftUI +{ + public enum DrawMode + { + Normal = 0, + OwnerDrawFixed = 1, + OwnerDrawVariable = 2, + } +} + diff --git a/source/ShiftUI/Enums/FlatButtonAppearance.cs b/source/ShiftUI/Enums/FlatButtonAppearance.cs new file mode 100644 index 0000000..9b933d6 --- /dev/null +++ b/source/ShiftUI/Enums/FlatButtonAppearance.cs @@ -0,0 +1,165 @@ +// +// FlatButtonAppearance.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Daniel Nauck +// +// Author: +// Daniel Nauck (dna(at)mono-project(dot)de) + + +using System; +using System.ComponentModel; +using System.Drawing; +using ShiftUI; +using System.Globalization; + +namespace ShiftUI +{ + [TypeConverter (typeof (FlatButtonAppearanceConverter))] + public class FlatButtonAppearance + { + private Color borderColor = Color.Empty; + private int borderSize = 1; + private Color checkedBackColor = Color.Empty; + private Color mouseDownBackColor = Color.Empty; + private Color mouseOverBackColor = Color.Empty; + private ButtonBase owner = null; + + internal FlatButtonAppearance (ButtonBase owner) + { + this.owner = owner; + } + + //[EditorBrowsable(EditorBrowsableState.Always)] + [DefaultValue(typeof(Color), "")] + [NotifyParentProperty(true)] + [Browsable(true)] + public Color BorderColor + { + get { return borderColor; } + set { + if(borderColor == value) + return; + + if (value == Color.Transparent) + throw new NotSupportedException ("Cannot have a Transparent border."); + + borderColor = value; + + if(owner != null) + owner.Invalidate (); + } + } + + //[EditorBrowsable(EditorBrowsableState.Always)] + [DefaultValue(1)] + [NotifyParentProperty(true)] + [Browsable(true)] + public int BorderSize + { + get { return borderSize; } + set { + if(borderSize == value) + return; + + if (value < 0) + throw new ArgumentOutOfRangeException ("value", string.Format ("'{0}' is not a valid value for 'BorderSize'. 'BorderSize' must be greater or equal than {1}.", value, 0)); + + borderSize = value; + + if(owner != null) + owner.Invalidate (); + } + } + + //[EditorBrowsable(EditorBrowsableState.Always)] + [DefaultValue(typeof(Color), "")] + [NotifyParentProperty(true)] + [Browsable(true)] + public Color CheckedBackColor + { + get { return checkedBackColor; } + set { + if(checkedBackColor == value) + return; + + checkedBackColor = value; + + if(owner != null) + owner.Invalidate (); + } + } + + //[EditorBrowsable(EditorBrowsableState.Always)] + [DefaultValue(typeof(Color), "")] + [Browsable(true)] + [NotifyParentProperty(true)] + public Color MouseDownBackColor + { + get { return mouseDownBackColor; } + set { + if(mouseDownBackColor == value) + return; + + mouseDownBackColor = value; + + if(owner != null) + owner.Invalidate (); + } + } + + //[EditorBrowsable(EditorBrowsableState.Always)] + [DefaultValue(typeof(Color), "")] + [NotifyParentProperty(true)] + [Browsable(true)] + public Color MouseOverBackColor + { + get { return mouseOverBackColor; } + set { + if(mouseOverBackColor == value) + return; + + mouseOverBackColor = value; + + if(owner != null) + owner.Invalidate (); + } + } + } + + internal class FlatButtonAppearanceConverter : ExpandableObjectConverter + { + public override object ConvertTo (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) + { + if (destinationType == typeof (string)) + return String.Empty; + return base.ConvertTo (context, culture, value, destinationType); + } + + public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType) + { + if (destinationType == typeof (string)) + return true; + return base.CanConvertTo (context, destinationType); + } + } +}
\ No newline at end of file diff --git a/source/ShiftUI/Enums/FlatStyle.cs b/source/ShiftUI/Enums/FlatStyle.cs new file mode 100644 index 0000000..4a40d5b --- /dev/null +++ b/source/ShiftUI/Enums/FlatStyle.cs @@ -0,0 +1,36 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE + +namespace ShiftUI { + public enum FlatStyle { + Flat = 0, + Popup = 1, + Standard = 2, + System = 3 + } +} diff --git a/source/ShiftUI/Enums/FlowDirection.cs b/source/ShiftUI/Enums/FlowDirection.cs new file mode 100644 index 0000000..1c5d86f --- /dev/null +++ b/source/ShiftUI/Enums/FlowDirection.cs @@ -0,0 +1,39 @@ +// +// FlowDirection.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum FlowDirection + { + LeftToRight = 0, + TopDown = 1, + RightToLeft = 2, + BottomUp = 3 + } +} diff --git a/source/ShiftUI/Enums/FormBorderStyle.cs b/source/ShiftUI/Enums/FormBorderStyle.cs new file mode 100644 index 0000000..53c3fea --- /dev/null +++ b/source/ShiftUI/Enums/FormBorderStyle.cs @@ -0,0 +1,42 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Ravindra ([email protected]) +// + + +using System.Runtime.InteropServices; + +namespace ShiftUI +{ + [ComVisible (true)] + public enum FormBorderStyle + { + None = 0, + FixedSingle = 1, + Fixed3D = 2, + FixedDialog = 3, + Sizable = 4, + FixedToolWindow = 5, + SizableToolWindow = 6 + } +} diff --git a/source/ShiftUI/Enums/FrameStyle.cs b/source/ShiftUI/Enums/FrameStyle.cs new file mode 100644 index 0000000..dabcaf0 --- /dev/null +++ b/source/ShiftUI/Enums/FrameStyle.cs @@ -0,0 +1,34 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// +// + +// COMPLETE + +namespace ShiftUI { + public enum FrameStyle { + Dashed = 0, + Thick = 1 + } +} diff --git a/source/ShiftUI/Enums/HorizontalAlignment.cs b/source/ShiftUI/Enums/HorizontalAlignment.cs new file mode 100644 index 0000000..b115fc0 --- /dev/null +++ b/source/ShiftUI/Enums/HorizontalAlignment.cs @@ -0,0 +1,37 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2005 Novell, Inc. +// +// Authors: +// Jackson Harper ([email protected]) +// + + +using System.Runtime.InteropServices; + +namespace ShiftUI { + [ComVisible(true)] + public enum HorizontalAlignment { + Left, + Right, + Center + } +} + diff --git a/source/ShiftUI/Enums/ImageLayout.cs b/source/ShiftUI/Enums/ImageLayout.cs new file mode 100644 index 0000000..1452a53 --- /dev/null +++ b/source/ShiftUI/Enums/ImageLayout.cs @@ -0,0 +1,37 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2005 Novell, Inc. (http://www.novell.com) +// +// Author: +// Pedro MartÃnez Juliá <[email protected]> +// + + +namespace ShiftUI { + + public enum ImageLayout { + None = 0, + Tile = 1, + Center = 2, + Stretch = 3, + Zoom = 4 + } + +} diff --git a/source/ShiftUI/Enums/ImeMode.cs b/source/ShiftUI/Enums/ImeMode.cs new file mode 100644 index 0000000..6d2d4e7 --- /dev/null +++ b/source/ShiftUI/Enums/ImeMode.cs @@ -0,0 +1,48 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2005 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + +using System.Runtime.InteropServices; + +namespace ShiftUI +{ + [ComVisible(true)] + public enum ImeMode + { + NoControl = 0, + On = 1, + Off = 2, + Disable = 3, + Hiragana = 4, + Katakana = 5, + KatakanaHalf = 6, + AlphaFull = 7, + Alpha = 8, + HangulFull = 9, + Hangul = 10, + Inherit = -1, + Close = 11, + OnHalf = 12 + } +} diff --git a/source/ShiftUI/Enums/ItemActivation.cs b/source/ShiftUI/Enums/ItemActivation.cs new file mode 100644 index 0000000..b6aeb81 --- /dev/null +++ b/source/ShiftUI/Enums/ItemActivation.cs @@ -0,0 +1,39 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Kevin Rector +// +// Copyright (c) 2004 Novell, Inc. (http://www.novell.com) +// +// Author: +// Kevin Rector ([email protected]) +// + + +// COMPLETE + +namespace ShiftUI +{ + public enum ItemActivation + { + OneClick = 1, + Standard = 0, + TwoClick = 2 + } +} diff --git a/source/ShiftUI/Enums/ItemBoundsPortion.cs b/source/ShiftUI/Enums/ItemBoundsPortion.cs new file mode 100644 index 0000000..d2c7de9 --- /dev/null +++ b/source/ShiftUI/Enums/ItemBoundsPortion.cs @@ -0,0 +1,36 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Ravindra ([email protected]) +// + + +namespace ShiftUI +{ + public enum ItemBoundsPortion + { + Entire = 0, + Icon = 1, + Label = 2, + ItemOnly = 3 + } +} diff --git a/source/ShiftUI/Enums/Keys.cs b/source/ShiftUI/Enums/Keys.cs new file mode 100644 index 0000000..c5d01cb --- /dev/null +++ b/source/ShiftUI/Enums/Keys.cs @@ -0,0 +1,235 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// +// + +// COMPLETE + +using System.ComponentModel; +using System.Runtime.InteropServices; +using System; + +namespace ShiftUI { + [Flags] + [ComVisible(true)] + [TypeConverter(typeof(KeysConverter))] + //[Editor ("ShiftUI.Design.ShortcutKeysEditor, " + Consts.AssemblySystem_Design, + //"System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)] + public enum Keys { + None = 0x00000000, + LButton = 0x00000001, + RButton = 0x00000002, + Cancel = 0x00000003, + MButton = 0x00000004, + XButton1 = 0x00000005, + XButton2 = 0x00000006, + Back = 0x00000008, + Tab = 0x00000009, + LineFeed = 0x0000000A, + Clear = 0x0000000C, + Return = 0x0000000D, + Enter = 0x0000000D, + ShiftKey = 0x00000010, + ControlKey = 0x00000011, + Menu = 0x00000012, + Pause = 0x00000013, + CapsLock = 0x00000014, + Capital = 0x00000014, + KanaMode = 0x00000015, + HanguelMode = 0x00000015, + HangulMode = 0x00000015, + JunjaMode = 0x00000017, + FinalMode = 0x00000018, + KanjiMode = 0x00000019, + HanjaMode = 0x00000019, + Escape = 0x0000001B, + IMEConvert = 0x0000001C, + IMENonconvert = 0x0000001D, + IMEAceept = 0x0000001E, + IMEModeChange = 0x0000001F, + Space = 0x00000020, + PageUp = 0x00000021, + Prior = 0x00000021, + PageDown = 0x00000022, + Next = 0x00000022, + End = 0x00000023, + Home = 0x00000024, + Left = 0x00000025, + Up = 0x00000026, + Right = 0x00000027, + Down = 0x00000028, + Select = 0x00000029, + Print = 0x0000002A, + Execute = 0x0000002B, + PrintScreen = 0x0000002C, + Snapshot = 0x0000002C, + Insert = 0x0000002D, + Delete = 0x0000002E, + Help = 0x0000002F, + D0 = 0x00000030, + D1 = 0x00000031, + D2 = 0x00000032, + D3 = 0x00000033, + D4 = 0x00000034, + D5 = 0x00000035, + D6 = 0x00000036, + D7 = 0x00000037, + D8 = 0x00000038, + D9 = 0x00000039, + A = 0x00000041, + B = 0x00000042, + C = 0x00000043, + D = 0x00000044, + E = 0x00000045, + F = 0x00000046, + G = 0x00000047, + H = 0x00000048, + I = 0x00000049, + J = 0x0000004A, + K = 0x0000004B, + L = 0x0000004C, + M = 0x0000004D, + N = 0x0000004E, + O = 0x0000004F, + P = 0x00000050, + Q = 0x00000051, + R = 0x00000052, + S = 0x00000053, + T = 0x00000054, + U = 0x00000055, + V = 0x00000056, + W = 0x00000057, + X = 0x00000058, + Y = 0x00000059, + Z = 0x0000005A, + LWin = 0x0000005B, + RWin = 0x0000005C, + Apps = 0x0000005D, + NumPad0 = 0x00000060, + NumPad1 = 0x00000061, + NumPad2 = 0x00000062, + NumPad3 = 0x00000063, + NumPad4 = 0x00000064, + NumPad5 = 0x00000065, + NumPad6 = 0x00000066, + NumPad7 = 0x00000067, + NumPad8 = 0x00000068, + NumPad9 = 0x00000069, + Multiply = 0x0000006A, + Add = 0x0000006B, + Separator = 0x0000006C, + Subtract = 0x0000006D, + Decimal = 0x0000006E, + Divide = 0x0000006F, + F1 = 0x00000070, + F2 = 0x00000071, + F3 = 0x00000072, + F4 = 0x00000073, + F5 = 0x00000074, + F6 = 0x00000075, + F7 = 0x00000076, + F8 = 0x00000077, + F9 = 0x00000078, + F10 = 0x00000079, + F11 = 0x0000007A, + F12 = 0x0000007B, + F13 = 0x0000007C, + F14 = 0x0000007D, + F15 = 0x0000007E, + F16 = 0x0000007F, + F17 = 0x00000080, + F18 = 0x00000081, + F19 = 0x00000082, + F20 = 0x00000083, + F21 = 0x00000084, + F22 = 0x00000085, + F23 = 0x00000086, + F24 = 0x00000087, + NumLock = 0x00000090, + Scroll = 0x00000091, + LShiftKey = 0x000000A0, + RShiftKey = 0x000000A1, + LControlKey = 0x000000A2, + RControlKey = 0x000000A3, + LMenu = 0x000000A4, + RMenu = 0x000000A5, + BrowserBack = 0x000000A6, + BrowserForward = 0x000000A7, + BrowserRefresh = 0x000000A8, + BrowserStop = 0x000000A9, + BrowserSearch = 0x000000AA, + BrowserFavorites= 0x000000AB, + BrowserHome = 0x000000AC, + VolumeMute = 0x000000AD, + VolumeDown = 0x000000AE, + VolumeUp = 0x000000AF, + MediaNextTrack = 0x000000B0, + MediaPreviousTrack= 0x000000B1, + MediaStop = 0x000000B2, + MediaPlayPause = 0x000000B3, + LaunchMail = 0x000000B4, + SelectMedia = 0x000000B5, + LaunchApplication1= 0x000000B6, + LaunchApplication2= 0x000000B7, + OemSemicolon = 0x000000BA, + Oemplus = 0x000000BB, + Oemcomma = 0x000000BC, + OemMinus = 0x000000BD, + OemPeriod = 0x000000BE, + OemQuestion = 0x000000BF, + Oemtilde = 0x000000C0, + OemOpenBrackets = 0x000000DB, + OemPipe = 0x000000DC, + OemCloseBrackets= 0x000000DD, + OemQuotes = 0x000000DE, + Oem8 = 0x000000DF, + OemBackslash = 0x000000E2, + ProcessKey = 0x000000E5, + Attn = 0x000000F6, + Crsel = 0x000000F7, + Exsel = 0x000000F8, + EraseEof = 0x000000F9, + Play = 0x000000FA, + Zoom = 0x000000FB, + NoName = 0x000000FC, + Pa1 = 0x000000FD, + OemClear = 0x000000FE, + KeyCode = 0x0000FFFF, + Shift = 0x00010000, + Widget = 0x00020000, + Alt = 0x00040000, + Modifiers = unchecked((int)0xFFFF0000), + IMEAccept = 0x0000001E, + Oem1 = 0x000000BA, + Oem102 = 0x000000E2, + Oem2 = 0x000000BF, + Oem3 = 0x000000C0, + Oem4 = 0x000000DB, + Oem5 = 0x000000DC, + Oem6 = 0x000000DD, + Oem7 = 0x000000DE, + Packet = 0x000000E7, + Sleep = 0x0000005F + } +} diff --git a/source/ShiftUI/Enums/LeftRightAlignment.cs b/source/ShiftUI/Enums/LeftRightAlignment.cs new file mode 100644 index 0000000..1ecef56 --- /dev/null +++ b/source/ShiftUI/Enums/LeftRightAlignment.cs @@ -0,0 +1,37 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2005 Novell, Inc. (http://www.novell.com) +// +// Authors: +// Peter Bartok [email protected] +// +// + +// COMPLETE + +using System.Runtime.InteropServices; + +namespace ShiftUI { + [ComVisible(true)] + public enum LeftRightAlignment { + Left = 0, + Right = 1 + } +} diff --git a/source/ShiftUI/Enums/ListViewAlignment.cs b/source/ShiftUI/Enums/ListViewAlignment.cs new file mode 100644 index 0000000..67d8314 --- /dev/null +++ b/source/ShiftUI/Enums/ListViewAlignment.cs @@ -0,0 +1,36 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Ravindra ([email protected]) +// + + +namespace ShiftUI +{ + public enum ListViewAlignment + { + Default = 0, + Left = 1, + Top = 2, + SnapToGrid = 5 + } +} diff --git a/source/ShiftUI/Enums/MergeAction.cs b/source/ShiftUI/Enums/MergeAction.cs new file mode 100644 index 0000000..24b248a --- /dev/null +++ b/source/ShiftUI/Enums/MergeAction.cs @@ -0,0 +1,40 @@ +// +// MergeAction.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum MergeAction + { + Append = 0, + Insert = 1, + Replace = 2, + Remove = 3, + MatchOnly = 4 + } +} diff --git a/source/ShiftUI/Enums/MessageBoxButtons.cs b/source/ShiftUI/Enums/MessageBoxButtons.cs new file mode 100644 index 0000000..5ea0a8c --- /dev/null +++ b/source/ShiftUI/Enums/MessageBoxButtons.cs @@ -0,0 +1,43 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jordi Mas i Hernandez, [email protected] +// +// + + +// COMPLETE + + +namespace ShiftUI +{ + public enum MessageBoxButtons + { + OK = 0, + OKCancel = 1, + AbortRetryIgnore = 2, + YesNoCancel = 3, + YesNo = 4, + RetryCancel = 5, + } +} + diff --git a/source/ShiftUI/Enums/MouseButtons.cs b/source/ShiftUI/Enums/MouseButtons.cs new file mode 100644 index 0000000..9025886 --- /dev/null +++ b/source/ShiftUI/Enums/MouseButtons.cs @@ -0,0 +1,17 @@ +/// <summary> +/// Mouse Buttons for mouse events +/// </summary> + +using System; + +namespace ShiftUI +{ + public enum MouseButtons + { + None, + Left, + Right, + Middle + } +} + diff --git a/source/ShiftUI/Enums/Orientation.cs b/source/ShiftUI/Enums/Orientation.cs new file mode 100644 index 0000000..0417e9b --- /dev/null +++ b/source/ShiftUI/Enums/Orientation.cs @@ -0,0 +1,39 @@ +// +// ShiftUI.Orientation.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Authors: +// Jordi Mas i Hernandez, [email protected] +// +// Copyright (C) Novell Inc., 2004 +// +// + + +namespace ShiftUI +{ + + public enum Orientation + { + Horizontal = 0, + Vertical = 1, + } +} diff --git a/source/ShiftUI/Enums/PowerLineStatus.cs b/source/ShiftUI/Enums/PowerLineStatus.cs new file mode 100644 index 0000000..00bbc5a --- /dev/null +++ b/source/ShiftUI/Enums/PowerLineStatus.cs @@ -0,0 +1,38 @@ +// +// PowerLineStatus.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum PowerLineStatus + { + Offline = 0, + Online = 1, + Unknown = 255 + } +} diff --git a/source/ShiftUI/Enums/PowerState.cs b/source/ShiftUI/Enums/PowerState.cs new file mode 100644 index 0000000..70e71d2 --- /dev/null +++ b/source/ShiftUI/Enums/PowerState.cs @@ -0,0 +1,37 @@ +// +// PowerState.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum PowerState + { + Suspend = 0, + Hibernate = 1 + } +} diff --git a/source/ShiftUI/Enums/PowerStatus.cs b/source/ShiftUI/Enums/PowerStatus.cs new file mode 100644 index 0000000..be1d12f --- /dev/null +++ b/source/ShiftUI/Enums/PowerStatus.cs @@ -0,0 +1,72 @@ +// +// PowerStatus.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2007 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + +namespace ShiftUI +{ + public class PowerStatus + { + private BatteryChargeStatus battery_charge_status; + private int battery_full_lifetime; + private float battery_life_percent; + private int battery_life_remaining; + private PowerLineStatus power_line_status; + + #region Internal Constructor + internal PowerStatus (BatteryChargeStatus batteryChargeStatus, int batteryFullLifetime, float batteryLifePercent, int batteryLifeRemaining, PowerLineStatus powerLineStatus) + { + this.battery_charge_status = batteryChargeStatus; + this.battery_full_lifetime = batteryFullLifetime; + this.battery_life_percent = batteryLifePercent; + this.battery_life_remaining = batteryLifeRemaining; + this.power_line_status = powerLineStatus; + } + #endregion + + #region Public Properties + public BatteryChargeStatus BatteryChargeStatus { + get { return battery_charge_status; } + } + + public int BatteryFullLifetime { + get { return battery_full_lifetime; } + } + + public float BatteryLifePercent { + get { return battery_life_percent; } + } + + public int BatteryLifeRemaining { + get { return battery_life_remaining; } + } + + public PowerLineStatus PowerLineStatus { + get { return power_line_status; } + } + #endregion + } +} diff --git a/source/ShiftUI/Enums/PreProcessControlState.cs b/source/ShiftUI/Enums/PreProcessControlState.cs new file mode 100644 index 0000000..c6c7bb3 --- /dev/null +++ b/source/ShiftUI/Enums/PreProcessControlState.cs @@ -0,0 +1,38 @@ +// +// PreProcessWidgetstate.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum PreProcessWidgetState + { + MessageProcessed = 0, + MessageNeeded = 1, + MessageNotNeeded = 2 + } +}
\ No newline at end of file diff --git a/source/ShiftUI/Enums/ProgressBarStyle.cs b/source/ShiftUI/Enums/ProgressBarStyle.cs new file mode 100644 index 0000000..db0f22b --- /dev/null +++ b/source/ShiftUI/Enums/ProgressBarStyle.cs @@ -0,0 +1,35 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. (http://www.novell.com) +// +// Authors: +// Peter Dennis Bartok ([email protected]) +// +// + +// COMPLETE + +namespace ShiftUI { + public enum ProgressBarStyle { + Blocks = 0, + Continuous = 1, + Marquee = 2 + } +} diff --git a/source/ShiftUI/Enums/RichTextBoxLanguageOptions.cs b/source/ShiftUI/Enums/RichTextBoxLanguageOptions.cs new file mode 100644 index 0000000..189aee2 --- /dev/null +++ b/source/ShiftUI/Enums/RichTextBoxLanguageOptions.cs @@ -0,0 +1,43 @@ +// +// RichTextBoxLanguageOptions.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// +using System; + +namespace ShiftUI +{ + [Flags] + public enum RichTextBoxLanguageOptions + { + AutoKeyboard = 1, + AutoFont = 2, + ImeCancelComplete = 4, + ImeAlwaysSendNotify = 8, + AutoFontSizeAdjust = 16, + UIFonts = 32, + DualFont = 128 + } +} diff --git a/source/ShiftUI/Enums/RichTextBoxSelectionTypes.cs b/source/ShiftUI/Enums/RichTextBoxSelectionTypes.cs new file mode 100644 index 0000000..f6d2a75 --- /dev/null +++ b/source/ShiftUI/Enums/RichTextBoxSelectionTypes.cs @@ -0,0 +1,38 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2005 Novell, Inc. (http://www.novell.com) +// +// Authors: +// Peter Bartok <[email protected]> +// +// + +// COMPLETE +using System; +namespace ShiftUI { + [Flags] + public enum RichTextBoxSelectionTypes { + Empty = 0x00000000, + Text = 0x00000001, + Object = 0x00000002, + MultiChar = 0x00000004, + MultiObject = 0x00000008 + } +} diff --git a/source/ShiftUI/Enums/RichTextBoxStreamType.cs b/source/ShiftUI/Enums/RichTextBoxStreamType.cs new file mode 100644 index 0000000..543bd9c --- /dev/null +++ b/source/ShiftUI/Enums/RichTextBoxStreamType.cs @@ -0,0 +1,37 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2005 Novell, Inc. (http://www.novell.com) +// +// Authors: +// Peter Bartok <[email protected]> +// +// + +// COMPLETE + +namespace ShiftUI { + public enum RichTextBoxStreamType { + RichText = 0, + PlainText = 1, + RichNoOleObjs = 2, + TextTextOleObjs = 3, + UnicodePlainText= 4 + } +} diff --git a/source/ShiftUI/Enums/RightToLeft.cs b/source/ShiftUI/Enums/RightToLeft.cs new file mode 100644 index 0000000..f7e0d9b --- /dev/null +++ b/source/ShiftUI/Enums/RightToLeft.cs @@ -0,0 +1,36 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// +// + + +// COMPLETE + +namespace ShiftUI { + public enum RightToLeft { + No = 0, + Yes = 1, + Inherit = 2 + } +} diff --git a/source/ShiftUI/Enums/RowStyle.cs b/source/ShiftUI/Enums/RowStyle.cs new file mode 100644 index 0000000..6970178 --- /dev/null +++ b/source/ShiftUI/Enums/RowStyle.cs @@ -0,0 +1,71 @@ +// +// RowStyle.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// +// Author: +// Miguel de Icaza ([email protected]) +// +// (C) 2004 Novell, Inc. +// +using System; + +namespace ShiftUI +{ + public class RowStyle : TableLayoutStyle + { + float height; + + public RowStyle () + { + this.height = 0; + } + + public RowStyle (SizeType sizeType) + { + this.height = 0; + base.SizeType = sizeType; + } + + public RowStyle (SizeType sizeType, float height) + { + if (height < 0) + throw new ArgumentOutOfRangeException("height"); + + base.SizeType = sizeType; + this.height = height; + } + + public float Height { + get { return this.height; } + set { + if (value < 0) + throw new ArgumentOutOfRangeException(); + + if (height != value) { + height = value; + if (base.Owner != null) + base.Owner.PerformLayout (); + } + } + } + } +} diff --git a/source/ShiftUI/Enums/ScreenOrientation.cs b/source/ShiftUI/Enums/ScreenOrientation.cs new file mode 100644 index 0000000..9d55dbd --- /dev/null +++ b/source/ShiftUI/Enums/ScreenOrientation.cs @@ -0,0 +1,39 @@ +// +// ScreenOrientation.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum ScreenOrientation + { + Angle0 = 0, + Angle90 = 1, + Angle180 = 2, + Angle270 = 3 + } +} diff --git a/source/ShiftUI/Enums/ScrollBars.cs b/source/ShiftUI/Enums/ScrollBars.cs new file mode 100644 index 0000000..8552190 --- /dev/null +++ b/source/ShiftUI/Enums/ScrollBars.cs @@ -0,0 +1,36 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Peter Bartok [email protected] +// + + +// COMPLETE + +namespace ShiftUI { + public enum ScrollBars { + None = 0, + Horizontal = 1, + Vertical = 2, + Both = 3 + } +} diff --git a/source/ShiftUI/Enums/ScrollOrientation.cs b/source/ShiftUI/Enums/ScrollOrientation.cs new file mode 100644 index 0000000..3ea4cfc --- /dev/null +++ b/source/ShiftUI/Enums/ScrollOrientation.cs @@ -0,0 +1,37 @@ +// +// ScrollOrientation.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum ScrollOrientation + { + HorizontalScroll = 0, + VerticalScroll = 1 + } +}
\ No newline at end of file diff --git a/source/ShiftUI/Enums/SearchDirectionHint.cs b/source/ShiftUI/Enums/SearchDirectionHint.cs new file mode 100644 index 0000000..3b06c60 --- /dev/null +++ b/source/ShiftUI/Enums/SearchDirectionHint.cs @@ -0,0 +1,39 @@ +// +// SearchDirectionHint.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum SearchDirectionHint + { + Left = 37, + Up = 38, + Right = 39, + Down = 40 + } +} diff --git a/source/ShiftUI/Enums/SelectionMode.cs b/source/ShiftUI/Enums/SelectionMode.cs new file mode 100644 index 0000000..49eec1f --- /dev/null +++ b/source/ShiftUI/Enums/SelectionMode.cs @@ -0,0 +1,42 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jordi Mas i Hernandez, [email protected] +// + +//COMPLETE + +using System.Runtime.InteropServices; + +namespace ShiftUI +{ + [ComVisible(true)] + public enum SelectionMode + { + None = 0, + One = 1, + MultiSimple = 2, + MultiExtended = 3, + + } +} + diff --git a/source/ShiftUI/Enums/SelectionRange.cs b/source/ShiftUI/Enums/SelectionRange.cs new file mode 100644 index 0000000..27ee453 --- /dev/null +++ b/source/ShiftUI/Enums/SelectionRange.cs @@ -0,0 +1,103 @@ +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004-2005 Novell, Inc. +// +// Authors: +// John BouAntoun [email protected] +// + +using System.ComponentModel; +using System; + +namespace ShiftUI { + [TypeConverter(typeof(SelectionRangeConverter))] + public sealed class SelectionRange { + #region local members + + DateTime end; + DateTime start; + + #endregion // local members + + #region public constructors + + // default parameterless construcor, use default values + public SelectionRange () { + end = DateTime.MaxValue.Date; + start = DateTime.MinValue.Date; + } + + // constructor that receives another range, copies it's Start and End values + public SelectionRange (SelectionRange range) { + end = range.End; + start = range.Start; + } + + // constructor that receives two dates, uses the lower of the two as start + public SelectionRange (DateTime lower, DateTime upper) { + if (lower <= upper) { + end = upper.Date; + start = lower.Date; + } else { + end = lower.Date; + start = upper.Date; + } + } + + #endregion // public constructors + + #region public properties + + // end date of this range + public DateTime End { + set { + if (end != value) { + end = value; + } + } + get { + return end; + } + } + + // start date of this range + public DateTime Start { + set { + if (start != value) { + start = value; + } + } + get { + return start; + } + } + + #endregion // public properties + + #region public methods + + public override string ToString() { + return "SelectionRange: Start: " + Start.ToString() + ", End: " + End.ToString(); + } + + #endregion // public methods + } +} diff --git a/source/ShiftUI/Enums/Shortcut.cs b/source/ShiftUI/Enums/Shortcut.cs new file mode 100644 index 0000000..170210d --- /dev/null +++ b/source/ShiftUI/Enums/Shortcut.cs @@ -0,0 +1,191 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jordi Mas i Hernandez, [email protected] +// +// + +using System.Runtime.InteropServices; + +namespace ShiftUI +{ + [ComVisible (true)] + public enum Shortcut + { + Alt0 = 0x040030, + Alt1 = 0x040031, + Alt2 = 0x040032, + Alt3 = 0x040033, + Alt4 = 0x040034, + Alt5 = 0x040035, + Alt6 = 0x040036, + Alt7 = 0x040037, + Alt8 = 0x040038, + Alt9 = 0x040039, + AltBksp = 0x040008, + AltDownArrow = 0x040028, + AltF1 = 0x040070, + AltF10 = 0x040079, + AltF11 = 0x04007A, + AltF12 = 0x04007B, + AltF2 = 0x040071, + AltF3 = 0x040072, + AltF4 = 0x040073, + AltF5 = 0x040074, + AltF6 = 0x040075, + AltF7 = 0x040076, + AltF8 = 0x040077, + AltF9 = 0x040078, + AltLeftArrow = 0x040025, + AltRightArrow = 0x040027, + AltUpArrow = 0x040026, + Ctrl0 = 0x020030, + Ctrl1 = 0x020031, + Ctrl2 = 0x020032, + Ctrl3 = 0x020033, + Ctrl4 = 0x020034, + Ctrl5 = 0x020035, + Ctrl6 = 0x020036, + Ctrl7 = 0x020037, + Ctrl8 = 0x020038, + Ctrl9 = 0x020039, + CtrlA = 0x020041, + CtrlB = 0x020042, + CtrlC = 0x020043, + CtrlD = 0x020044, + CtrlDel = 0x02002E, + CtrlE = 0x020045, + CtrlF = 0x020046, + CtrlF1 = 0x020070, + CtrlF10 = 0x020079, + CtrlF11 = 0x02007A, + CtrlF12 = 0x02007B, + CtrlF2 = 0x020071, + CtrlF3 = 0x020072, + CtrlF4 = 0x020073, + CtrlF5 = 0x020074, + CtrlF6 = 0x020075, + CtrlF7 = 0x020076, + CtrlF8 = 0x020077, + CtrlF9 = 0x020078, + CtrlG = 0x020047, + CtrlH = 0x020048, + CtrlI = 0x020049, + CtrlIns = 0x02002D, + CtrlJ = 0x02004A, + CtrlK = 0x02004B, + CtrlL = 0x02004C, + CtrlM = 0x02004D, + CtrlN = 0x02004E, + CtrlO = 0x02004F, + CtrlP = 0x020050, + CtrlQ = 0x020051, + CtrlR = 0x020052, + CtrlS = 0x020053, + CtrlShift0 = 0x030030, + CtrlShift1 = 0x030031, + CtrlShift2 = 0x030032, + CtrlShift3 = 0x030033, + CtrlShift4 = 0x030034, + CtrlShift5 = 0x030035, + CtrlShift6 = 0x030036, + CtrlShift7 = 0x030037, + CtrlShift8 = 0x030038, + CtrlShift9 = 0x030039, + CtrlShiftA = 0x030041, + CtrlShiftB = 0x030042, + CtrlShiftC = 0x030043, + CtrlShiftD = 0x030044, + CtrlShiftE = 0x030045, + CtrlShiftF = 0x030046, + CtrlShiftF1 = 0x030070, + CtrlShiftF10 = 0x030079, + CtrlShiftF11 = 0x03007A, + CtrlShiftF12 = 0x03007B, + CtrlShiftF2 = 0x030071, + CtrlShiftF3 = 0x030072, + CtrlShiftF4 = 0x030073, + CtrlShiftF5 = 0x030074, + CtrlShiftF6 = 0x030075, + CtrlShiftF7 = 0x030076, + CtrlShiftF8 = 0x030077, + CtrlShiftF9 = 0x030078, + CtrlShiftG = 0x030047, + CtrlShiftH = 0x030048, + CtrlShiftI = 0x030049, + CtrlShiftJ = 0x03004A, + CtrlShiftK = 0x03004B, + CtrlShiftL = 0x03004C, + CtrlShiftM = 0x03004D, + CtrlShiftN = 0x03004E, + CtrlShiftO = 0x03004F, + CtrlShiftP = 0x030050, + CtrlShiftQ = 0x030051, + CtrlShiftR = 0x030052, + CtrlShiftS = 0x030053, + CtrlShiftT = 0x030054, + CtrlShiftU = 0x030055, + CtrlShiftV = 0x030056, + CtrlShiftW = 0x030057, + CtrlShiftX = 0x030058, + CtrlShiftY = 0x030059, + CtrlShiftZ = 0x03005A, + CtrlT = 0x020054, + CtrlU = 0x020055, + CtrlV = 0x020056, + CtrlW = 0x020057, + CtrlX = 0x020058, + CtrlY = 0x020059, + CtrlZ = 0x02005A, + Del = 0x00002E, + F1 = 0x000070, + F10 = 0x000079, + F11 = 0x00007A, + F12 = 0x00007B, + F2 = 0x000071, + F3 = 0x000072, + F4 = 0x000073, + F5 = 0x000074, + F6 = 0x000075, + F7 = 0x000076, + F8 = 0x000077, + F9 = 0x000078, + Ins = 0x00002D, + None = 0x000000, + ShiftDel = 65582, + ShiftF1 = 65648, + ShiftF10 = 65657, + ShiftF11 = 65658, + ShiftF12 = 65659, + ShiftF2 = 65649, + ShiftF3 = 65650, + ShiftF4 = 65651, + ShiftF5 = 65652, + ShiftF6 = 65653, + ShiftF7 = 65654, + ShiftF8 = 65655, + ShiftF9 = 65656, + ShiftIns = 65581, + } +} + + diff --git a/source/ShiftUI/Enums/SizeType.cs b/source/ShiftUI/Enums/SizeType.cs new file mode 100644 index 0000000..3210d82 --- /dev/null +++ b/source/ShiftUI/Enums/SizeType.cs @@ -0,0 +1,33 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// +// Author: +// Miguel de Icaza ([email protected]) +// +// (C) 2004 Novell, Inc. +// + +namespace ShiftUI { + public enum SizeType { + AutoSize = 0, + Absolute = 1, + Percent = 2 + } +} diff --git a/source/ShiftUI/Enums/SortOrder.cs b/source/ShiftUI/Enums/SortOrder.cs new file mode 100644 index 0000000..a6d1730 --- /dev/null +++ b/source/ShiftUI/Enums/SortOrder.cs @@ -0,0 +1,37 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. (http://www.novell.com) +// +// Author: +// Ravindra ([email protected]) +// + +// COMPLETE + + +namespace ShiftUI +{ + public enum SortOrder + { + None = 0, + Ascending = 1, + Descending = 2 + } +} diff --git a/source/ShiftUI/Enums/StatusBarPanelAutoSize.cs b/source/ShiftUI/Enums/StatusBarPanelAutoSize.cs new file mode 100644 index 0000000..6a36680 --- /dev/null +++ b/source/ShiftUI/Enums/StatusBarPanelAutoSize.cs @@ -0,0 +1,33 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jackson Harper ([email protected]) + +namespace ShiftUI { + + public enum StatusBarPanelAutoSize { + None = 1, + Spring, + Contents + } +} + diff --git a/source/ShiftUI/Enums/StatusBarPanelBorderStyle.cs b/source/ShiftUI/Enums/StatusBarPanelBorderStyle.cs new file mode 100644 index 0000000..453c34d --- /dev/null +++ b/source/ShiftUI/Enums/StatusBarPanelBorderStyle.cs @@ -0,0 +1,33 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jackson Harper ([email protected]) + + +namespace ShiftUI { + + public enum StatusBarPanelBorderStyle { + None = 1, + Raised, + Sunken + } +} diff --git a/source/ShiftUI/Enums/StatusBarPanelStyle.cs b/source/ShiftUI/Enums/StatusBarPanelStyle.cs new file mode 100644 index 0000000..1096d44 --- /dev/null +++ b/source/ShiftUI/Enums/StatusBarPanelStyle.cs @@ -0,0 +1,33 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jackson Harper ([email protected]) + + +namespace ShiftUI { + + public enum StatusBarPanelStyle { + Text = 1, + OwnerDraw + } +} + diff --git a/source/ShiftUI/Enums/TabAlignment.cs b/source/ShiftUI/Enums/TabAlignment.cs new file mode 100644 index 0000000..f42b60b --- /dev/null +++ b/source/ShiftUI/Enums/TabAlignment.cs @@ -0,0 +1,35 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jackson Harper ([email protected]) + + +namespace ShiftUI { + + public enum TabAlignment { + Top, + Bottom, + Left, + Right + } +} + diff --git a/source/ShiftUI/Enums/TabAppearance.cs b/source/ShiftUI/Enums/TabAppearance.cs new file mode 100644 index 0000000..a12514a --- /dev/null +++ b/source/ShiftUI/Enums/TabAppearance.cs @@ -0,0 +1,34 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jackson Harper ([email protected]) + + +namespace ShiftUI { + + public enum TabAppearance { + Normal, + Buttons, + FlatButtons + } +} + diff --git a/source/ShiftUI/Enums/TabControlAction.cs b/source/ShiftUI/Enums/TabControlAction.cs new file mode 100644 index 0000000..960b729 --- /dev/null +++ b/source/ShiftUI/Enums/TabControlAction.cs @@ -0,0 +1,39 @@ +// +// TabControlAction.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum TabControlAction + { + Selecting = 0, + Selected = 1, + Deselecting = 2, + Deselected = 3 + } +} diff --git a/source/ShiftUI/Enums/TabDrawMode.cs b/source/ShiftUI/Enums/TabDrawMode.cs new file mode 100644 index 0000000..3964943 --- /dev/null +++ b/source/ShiftUI/Enums/TabDrawMode.cs @@ -0,0 +1,33 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jackson Harper ([email protected]) + + +namespace ShiftUI { + + public enum TabDrawMode { + Normal, + OwnerDrawFixed + } +} + diff --git a/source/ShiftUI/Enums/TabSizeMode.cs b/source/ShiftUI/Enums/TabSizeMode.cs new file mode 100644 index 0000000..6f423c7 --- /dev/null +++ b/source/ShiftUI/Enums/TabSizeMode.cs @@ -0,0 +1,34 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jackson Harper ([email protected]) + + +namespace ShiftUI { + + public enum TabSizeMode { + Normal, + FillToRight, + Fixed + } +} + diff --git a/source/ShiftUI/Enums/TextDataFormat.cs b/source/ShiftUI/Enums/TextDataFormat.cs new file mode 100644 index 0000000..c375d90 --- /dev/null +++ b/source/ShiftUI/Enums/TextDataFormat.cs @@ -0,0 +1,40 @@ +// +// TextDataFormat.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum TextDataFormat + { + Text = 0, + UnicodeText = 1, + Rtf = 2, + Html = 3, + CommaSeparatedValue = 4 + } +} diff --git a/source/ShiftUI/Enums/TextImageRelation.cs b/source/ShiftUI/Enums/TextImageRelation.cs new file mode 100644 index 0000000..d90c76a --- /dev/null +++ b/source/ShiftUI/Enums/TextImageRelation.cs @@ -0,0 +1,40 @@ +// +// TextImageRelation.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum TextImageRelation + { + Overlay = 0, + ImageAboveText = 1, + TextAboveImage = 2, + ImageBeforeText = 4, + TextBeforeImage = 8 + } +} diff --git a/source/ShiftUI/Enums/TickStyle.cs b/source/ShiftUI/Enums/TickStyle.cs new file mode 100644 index 0000000..48a92ee --- /dev/null +++ b/source/ShiftUI/Enums/TickStyle.cs @@ -0,0 +1,40 @@ +// +// ShiftUI.TickStyle.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Authors: +// Jordi Mas i Hernandez, [email protected] +// +// Copyright (C) Novell Inc., 2004 +// +// + + +namespace ShiftUI +{ + public enum TickStyle + { + None = 0, + TopLeft = 1, + BottomRight = 2, + Both = 3, + } +} diff --git a/source/ShiftUI/Enums/TreeNodeStates.cs b/source/ShiftUI/Enums/TreeNodeStates.cs new file mode 100644 index 0000000..1acd56a --- /dev/null +++ b/source/ShiftUI/Enums/TreeNodeStates.cs @@ -0,0 +1,45 @@ +// +// TreeNodeStates.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// +using System; + +namespace ShiftUI +{ + [Flags] + public enum TreeNodeStates + { + Selected = 1, + Grayed = 2, + Checked = 8, + Focused = 16, + Default = 32, + Hot = 64, + Marked = 128, + Indeterminate = 256, + ShowKeyboardCues = 512 + } +} diff --git a/source/ShiftUI/Enums/TreeViewAction.cs b/source/ShiftUI/Enums/TreeViewAction.cs new file mode 100644 index 0000000..63d9ffb --- /dev/null +++ b/source/ShiftUI/Enums/TreeViewAction.cs @@ -0,0 +1,35 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Jackson Harper ([email protected]) + +namespace ShiftUI { + + public enum TreeViewAction { + Unknown, + ByKeyboard, + ByMouse, + Collapse, + Expand + } +} + diff --git a/source/ShiftUI/Enums/TreeViewDrawMode.cs b/source/ShiftUI/Enums/TreeViewDrawMode.cs new file mode 100644 index 0000000..de01a4c --- /dev/null +++ b/source/ShiftUI/Enums/TreeViewDrawMode.cs @@ -0,0 +1,38 @@ +// +// TreeViewDrawMode.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum TreeViewDrawMode + { + Normal = 0, + OwnerDrawText = 1, + OwnerDrawAll = 2 + } +}
\ No newline at end of file diff --git a/source/ShiftUI/Enums/TreeViewHitTestLocations.cs b/source/ShiftUI/Enums/TreeViewHitTestLocations.cs new file mode 100644 index 0000000..9ec253a --- /dev/null +++ b/source/ShiftUI/Enums/TreeViewHitTestLocations.cs @@ -0,0 +1,50 @@ +// +// TreeViewHitTestLocations.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + +using System; +using System.Runtime.InteropServices; + +namespace ShiftUI +{ + [Flags] + [ComVisible(true)] + public enum TreeViewHitTestLocations + { + None = 1, + Image = 2, + Label = 4, + Indent = 8, + PlusMinus = 16, + RightOfLabel = 32, + StateImage = 64, + AboveClientArea = 256, + BelowClientArea = 512, + RightOfClientArea = 1024, + LeftOfClientArea = 2048 + } +} diff --git a/source/ShiftUI/Enums/UnhandledExceptionMode.cs b/source/ShiftUI/Enums/UnhandledExceptionMode.cs new file mode 100644 index 0000000..059228b --- /dev/null +++ b/source/ShiftUI/Enums/UnhandledExceptionMode.cs @@ -0,0 +1,38 @@ +// +// UnhandledExceptionMode.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// + + +namespace ShiftUI +{ + public enum UnhandledExceptionMode + { + Automatic = 0, + ThrowException = 1, + CatchException = 2 + } +} diff --git a/source/ShiftUI/Enums/ValidationConstraints.cs b/source/ShiftUI/Enums/ValidationConstraints.cs new file mode 100644 index 0000000..cc3d721 --- /dev/null +++ b/source/ShiftUI/Enums/ValidationConstraints.cs @@ -0,0 +1,42 @@ +// +// ValidationConstraints.cs +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2006 Novell, Inc. +// +// Authors: +// Jonathan Pobst ([email protected]) +// +using System; + +namespace ShiftUI +{ + [Flags] + public enum ValidationConstraints + { + None = 0, + Selectable = 1, + Enabled = 2, + Visible = 4, + TabStop = 8, + ImmediateChildren = 16 + } +} diff --git a/source/ShiftUI/Enums/View.cs b/source/ShiftUI/Enums/View.cs new file mode 100644 index 0000000..c2cf407 --- /dev/null +++ b/source/ShiftUI/Enums/View.cs @@ -0,0 +1,37 @@ +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// +// Copyright (c) 2004 Novell, Inc. +// +// Authors: +// Ravindra ([email protected]) +// + + +namespace ShiftUI +{ + public enum View + { + LargeIcon = 0, + Details = 1, + SmallIcon = 2, + List = 3, + Tile = 4 + } +} |
