Lluis Sanchez
261039e76d
Ongoing work on multi-toolkit support
2012-11-23 11:53:31 +01:00
Lluis Sanchez
aca46f5a8c
Merge branch 'master' into multi-toolkit-lluis
...
Conflicts:
Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
Xwt.Gtk/Xwt.GtkBackend/GtkEngine.cs
Xwt.Gtk/Xwt.GtkBackend/GtkWorkarounds.cs
Xwt.Gtk/Xwt.GtkBackend/NotebookBackend.cs
Xwt.Gtk/Xwt.GtkBackend/PopoverBackend.cs
Xwt.Gtk/Xwt.GtkBackend/Util.cs
Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs
Xwt.Mac/Xwt.Mac.csproj
Xwt.Mac/Xwt.Mac/MacEngine.cs
Xwt.sln
Xwt/Xwt.Backends/BackendHost.cs
Xwt/Xwt.Backends/IFrontend.cs
Xwt/Xwt.Backends/ToolkitEngineBackend.cs
Xwt/Xwt.Drawing/Context.cs
Xwt/Xwt.Drawing/Font.cs
Xwt/Xwt.Drawing/Gradient.cs
Xwt/Xwt.Drawing/Image.cs
Xwt/Xwt.Drawing/ImageBuilder.cs
Xwt/Xwt.Drawing/ImagePattern.cs
Xwt/Xwt.Drawing/TextLayout.cs
Xwt/Xwt.Engine/WidgetRegistry.cs
Xwt/Xwt.csproj
Xwt/Xwt/Application.cs
Xwt/Xwt/Clipboard.cs
Xwt/Xwt/ComboBox.cs
Xwt/Xwt/Dialog.cs
Xwt/Xwt/DragOperation.cs
Xwt/Xwt/FileDialog.cs
Xwt/Xwt/ListBox.cs
Xwt/Xwt/ListView.cs
Xwt/Xwt/Menu.cs
Xwt/Xwt/MenuButton.cs
Xwt/Xwt/MenuItem.cs
Xwt/Xwt/MessageDialog.cs
Xwt/Xwt/Popover.cs
Xwt/Xwt/SelectColorDialog.cs
Xwt/Xwt/SelectFolderDialog.cs
Xwt/Xwt/Spinner.cs
Xwt/Xwt/TreeView.cs
Xwt/Xwt/Widget.cs
Xwt/Xwt/Window.cs
Xwt/Xwt/XwtComponent.cs
Xwt/Xwt/XwtObject.cs
2012-11-23 10:07:52 +01:00
Lluis Sanchez
818eb0a1b0
Renamed EngineBackend to ToolkitEngineBackend
2012-11-22 18:11:15 +01:00
Alan McGovern
e078969d64
[Gtk] Correctly load stock icons
...
This is the only way we get a working stock icon. I'm not sure if
SetFromIconName is supposed to work in this scenario, but it does
not.
2012-10-09 22:02:19 +01:00
Lluis Sanchez
64c0913ba1
When disposing a widget dispose all children
2012-10-08 21:04:42 +02:00
Lluis Sanchez
e293aec066
[GTK] Implement pixel font size support
2012-10-08 21:04:42 +02:00
Jeffrey Stedfast
80a4327fd6
Added a RadialGradient
2012-10-03 16:37:11 -04:00
Jeremie Laval
1b675b6ea2
[Gtk/RichTextView] Don't wrap code block
2012-10-03 13:35:34 +01:00
Michael Hutchinson
71f0c9103a
Fix unnecessary newlines in GTK markdown widget
2012-10-02 20:44:10 -04:00
Lluis Sanchez
676ec26f92
[GTK] Another window sizing fix
2012-10-02 16:41:26 +02:00
Lluis Sanchez
96e224bedf
[GTK] Hide the ActionArea of a dialog if there are not dialog buttons
2012-10-02 16:41:26 +02:00
Lluis Sanchez
82ab6d6e3a
[GTK] Fix dialog display issue
...
When showing a dialog use the DefaultSize to calculate
the initial dialog position if the dialog is not yet visible.
2012-10-02 16:41:26 +02:00
Lluis Sanchez
f01978f88e
[GTK] Fix more window sizing issues
...
Fix calculation of the min size of a window when it is in
non-resizable mode.
Don't fire the OnBoundsChanged event in the Resize method,
since at that point the Bounds won't have the right value, and
the event is fired anyway when the content is reallocated.
2012-10-02 16:41:26 +02:00
Lluis Sanchez
f13e470719
Revert "Revert "Set the correct window size for Dialogs""
...
This reverts commit 36d2479dd9
.
2012-10-02 16:41:26 +02:00
Lluis Sanchez
349ee966d8
[GTK] Use correct coordinates for mouse button events
2012-10-02 14:38:30 +02:00
Jeremie Laval
36d2479dd9
Revert "Set the correct window size for Dialogs"
...
This reverts commit 36de440d7a
.
2012-10-02 13:19:40 +01:00
Lluis Sanchez
df6fcdcf44
[Gtk] Fix Dialog command handling issue
...
Don't use AddButton to add a button to the dialog because
the dialog will bind an action to it and a response will be
emitted when clicked. We now add a regular button and
we manually handle the click event.
2012-10-01 21:24:11 +02:00
Lluis Sanchez
36de440d7a
Set the correct window size for Dialogs
...
Added new ImplicitMinSize which returns the min size
required for decorations around the window content.
This new property is used to calculate the correct
default size when displaying a dialog. Also fixed
some sizing issues in GTK when the dialog is not
resizable.
2012-10-01 21:18:08 +02:00
Alan McGovern
bfe813350f
[Gtk] Fix a typo
2012-10-01 14:13:27 +01:00
Alan McGovern
8c60a343e6
[Gtk] Ensure we always specify CDecl calling convention
...
Fixes execution on Windows
2012-10-01 13:47:50 +01:00
Alan McGovern
0a33da54ef
[Gtk] Correctly specify CDecl calling convention
...
The previous attribute has been obsoleted as it did not work.
2012-10-01 10:31:39 +01:00
Alex Corrado
0643cb795a
[Xwt.Drawing] Add ArcNegative method to Context and fix Wpf and Mac implementations of Arc
...
Previously, the Mac backend would always draw arcs counterclockwise, and the Wpf implementation
could as well, depending on the angle arguments passed. This commit fixes Arc to draw clockwise
on all platforms and adds a new method, ArcNegative, for drawing counterclockwise arcs.
2012-09-28 15:52:37 -04:00
Lluis Sanchez Gual
c5e13bfec9
On master: Multi toolkit changes
2012-09-27 17:39:48 +02:00
Lluis Sanchez Gual
92b85a59a1
index on master: c769c7a
Add GtkMac bridge (MonoMac hosted in Gtk) project
2012-09-27 17:39:48 +02:00
Alan McGovern
25adae3761
[Gtk] Fix a bad comparison of Gtk.TreePath
...
We need to use .Equals so we get a value comparison instead of a
reference comparison.
2012-09-27 13:20:02 +01:00
Alex Corrado
b198c21f87
Always style LinkLabel text and invoke the handler, even if the Uri property is null
2012-09-26 21:22:03 -04:00
Jeremie Laval
7cff0b3c96
[Gtk.WindowBackend] When a size is set we do force with a size request
...
Previously no size request was set which caused incorrect resizing if an action on the window triggered a gtk_widget_queue_resize
2012-09-26 14:02:49 +01:00
Jeremie Laval
fa651fe6b2
[WindowFrame] Add Resizable option with impl on all backends
2012-09-25 17:03:10 +01:00
Lluis Sanchez
43b322d062
[Gtk] Remove the window content before adding a new child
2012-09-25 13:26:49 +02:00
Alex Corrado
e67f64e92c
Improve markdown parser to be closer to the spec
2012-09-20 01:57:22 -04:00
Alex Corrado
8a3ca92cf7
[GtkBackend] LinkLabelBackend: escape special characters that interfere with Gtk markup
2012-09-20 01:57:22 -04:00
Michael Hutchinson
3e4c113852
Update GtkWorkarounds from MD
...
* Better container leak fix
* Context menu positioning fixes
* Easier to diff in future
2012-09-19 20:29:52 -04:00
Alex Corrado
c2f98712d0
Refactor MarkdownView into a more generalized RichTextView API
2012-09-18 22:23:45 -04:00
Jérémie Laval
5809655998
[Gtk/LabelBackend] Handle dynamic resizing when label is wrapping text
2012-09-17 13:52:25 +02:00
Lluis Sanchez
9f6b8e8c52
Merge pull request #128 from antmicro/optimization_in_release
...
Set optimize to true in release mode.
2012-09-14 11:13:19 -07:00
Jeffrey Stedfast
a5767d9690
[GtkWorkarounds] Only parent the menu if it isn't already parented
2012-09-13 16:18:09 -04:00
Jeffrey Stedfast
8a4916ed01
[Xwt.Gtk] Put a VSeparator between the content and the down-arrow
2012-09-13 12:25:34 -04:00
Konrad M. Kruczynski
8879b4c27d
Set optimize to true in release mode.
2012-09-13 14:24:53 +02:00
Lluis Sanchez
670a17c858
[Gtk] Force a resize when removing a widget from a Box
2012-09-13 12:09:52 +02:00
Alex Corrado
28def0b825
[GtkBackend] Use a more specific Atom name for custom TransferDataTypes
...
Previously, "application/Xwt.TransferDataType" was used in all cases,
which could cause problems when different custom types were used in
Copy/Paste vs Drag/Drop (for example)
2012-09-12 16:30:33 -04:00
Jérémie Laval
2d4f256d77
[Gtk.LabelBackend] Fix compilation
2012-09-12 17:46:47 +02:00
Jérémie Laval
476d0a8b5d
[Label] Add WrapMode and implementation
2012-09-12 17:36:50 +02:00
Lluis Sanchez
3215b2d7c6
Merge pull request #126 from antmicro/rename_per_slluis_tips
...
Closed -> CloseRequested rename as per slluis' tips in #125 .
2012-09-11 09:16:25 -07:00
Konrad M. Kruczynski
e3c23fd51b
Closed -> CloseRequested rename as per slluis' tips in #125 .
2012-09-11 12:13:50 +02:00
Lluis Sanchez
00b9eb4635
Merge pull request #124 from silwol/mouse-scrolling
...
Mouse scrolling
2012-09-10 07:58:47 -07:00
Lluis Sanchez
8a89e18b3c
Merge pull request #125 from antmicro/master
...
Window closed event
2012-09-10 07:39:49 -07:00
Michael Hutchinson
3fd54f0324
[gtk] Apply the container resurrection leak fix
2012-09-07 18:00:42 -04:00
Konrad M. Kruczynski
3d583b34e4
Window close event with GTK backend.
2012-09-04 11:05:59 +02:00
Lluis Sanchez
a94aaa9c82
Improved implementation of Popover
...
Popover is now a subclass of XwtComponent and uses an
event sink to notify events. It can now be subclassed. Added
new Content property for setting the content widget.
2012-09-03 11:25:46 +02:00
Lluis Sanchez
42d3781eda
[GTK] Fix widget embeeding issue
...
The NativeWidget property in WidgetBackend should return the root widget,
which can be an alignment introduced to add padding.
2012-09-03 11:24:08 +02:00
Jeremie Laval
960b6db7d8
[Popover] Backport popover changes from mixed-toolkit
2012-08-31 15:29:47 +01:00
Alan McGovern
e9500d9b06
[ListView] Add a BorderVisible property across all impls of ListView
2012-08-31 11:05:19 +01:00
Wolfgang Silbermayr
b8c57700f8
Merge branch 'master' of https://github.com/mono/xwt into mouse-scrolling
...
Conflicts:
Xwt/Xwt.csproj
Xwt/Xwt/Widget.cs
2012-08-31 09:11:44 +02:00
Jeffrey Stedfast
8aab614b52
Added a TextColor property to Xwt.Label
2012-08-30 14:50:39 -04:00
Alan McGovern
2f357ba5a4
[Xwt.Gtk] Propagate LinkLabel click events through to the MarkdownView
...
We now propagate the events from internal hyperlinks to the MarkdownView
so we can consistently handle them across the various toolkits.
2012-08-30 16:38:25 +01:00
Alan McGovern
f69c919d44
[Xwt] Put the Uri in the NavigateToUriEventArgs
...
This will make it possible to cleanly share the class between the LinkLabel
and the MarkdownView.
2012-08-30 16:23:44 +01:00
Alan McGovern
407de93a42
[Xwt] Rename LinkLabel.Clicked to LinkLabel.NavigateToUri for clarity
...
If you need to know when the actual Uri has been clicked, you should use
the NavigateToUri event as opposed to the ButtonPresse event.
2012-08-29 19:31:52 +01:00
Jeremie Laval
b1f445ed0e
Add backend registration calls that got lost
2012-08-29 16:18:43 +01:00
Alan McGovern
ffcbc803a4
[Xwt.Gtk] Clean up the Gtk LinkLabelBackend class
...
Use a slightly nicer method of proxying the events to
the frontend.
2012-08-29 10:36:42 +01:00
Alan McGovern
d1ca73f7d0
[Xwt.Gtk] Implement LinkLabel.Clicked in the Xwt standard way
...
It now respects EnableEvent/DisableEvent. Though this is hacky
because Gtk.Label cannot unset the event handler we attach. We
need to work on that and it's not worth the time right now.
2012-08-28 21:57:47 +01:00
Alan McGovern
44b3d18fc5
[Xwt.Gtk] Use the LinkLabel widget properly in the MarkDown widget
...
Use the widget registry to correctly get the native widget from the
xwt widget.
2012-08-28 20:54:34 +01:00
Alan McGovern
f422138218
[Xwt.Wpf] Implement the LinkLabel backend for Wpf
...
Also refactor the interface slightly so that we can proxy the click events
from the various backends to the Xwt.LinkLabel object so we can
decide what to do with it. Currently we just open it in an external
browser.
2012-08-28 19:58:14 +01:00
Jeremie Laval
37b9141119
[Gtk/Markdown] Uniformize spacing
2012-08-28 11:37:59 +01:00
Jeremie Laval
b5957a1fba
[Gtk/Markdown] Gtk base implementation
2012-08-27 17:01:01 +01:00
Jeremie Laval
547b0fac6f
[Gtk/LinkLabel] Use GtkWorkarounds to set a link handler
2012-08-27 16:56:04 +01:00
Jeremie Laval
6396f91ba8
[GtkWorkarounds] Update to be able to set Label URL-link handlers
2012-08-27 16:49:29 +01:00
Jeremie Laval
3366f642be
[Notebook] Add TabOrientation property
2012-08-22 15:55:52 +01:00
Jeremie Laval
a886a4b642
[Spinner] Add a spinner widget
2012-08-21 16:56:47 +01:00
Jeremie Laval
74014b84eb
[WindowFrame] Add TransientFor property
2012-08-20 20:26:04 +01:00
Jeremie Laval
7425e1cbcf
[Placement] Add a Placement container akin to Gtk.Alignment
2012-08-20 18:50:14 +01:00
Jeremie Laval
8f7e8c9f15
[LinkLabel] Add LinkLabel widget to display link w/ a Gtk backend
2012-08-20 15:51:37 +01:00
Wolfgang Silbermayr
f2b669bd83
Merge branch 'master' of https://github.com/mono/xwt into mouse-scrolling
2012-08-20 08:07:09 +02:00
Wolfgang Silbermayr
6ef8bc23fe
add mouse-scrolling events to widgets
2012-08-17 10:31:33 +02:00
Jérémie Laval
71508bb6ea
[Gtk/Popover] Unparent the inner widget after closing the popover so that it can be reused
2012-08-13 16:43:51 +01:00
Lluis Sanchez
78006feb2d
Flush
2012-08-09 12:03:03 +02:00
Lluis Sanchez
59c6997d58
Added Application.DispatchPendingEvents.
2012-08-09 11:07:44 +02:00
Lluis Sanchez
041dc62f7f
[GTK] Fix Window.Present method when runnin on Mac
2012-08-09 11:05:31 +02:00
Lluis Sanchez
270450a893
[GTK] Fix some focus handling issues
2012-08-09 11:04:47 +02:00
Wolfgang Silbermayr
45188f0968
add icon property to WindowFrame on Gtk backend
2012-08-09 07:24:19 +02:00
Alan McGovern
e46262a475
Revert "Remove staticness from WidgetRegistry."
...
This reverts commit 4fbaff92dc
.
2012-08-01 14:31:01 -04:00
Alan McGovern
1a15623725
Revert "Update Popover API to be simpler"
...
This reverts commit f49902c09a
.
2012-08-01 14:30:55 -04:00
Jeremie Laval
4fbaff92dc
Remove staticness from WidgetRegistry.
...
This allow to have different registry instance for different toolkit and to use them at the same time. The staticness is still present through a static property in WidgetRegistry giving the "main" registry.
2012-07-26 16:41:53 +01:00
Jeremie Laval
f49902c09a
Update Popover API to be simpler
2012-07-26 16:41:53 +01:00
Jeremie Laval
0a9b79dca0
Add Expander widget + Gtk and Mac implementation
...
Also add a sample to the widget factory
2012-07-26 16:41:53 +01:00
Alan McGovern
8224377adc
Update the csprojs
2012-07-26 15:47:53 +01:00
Lluis Sanchez
64aa15d232
Fix window position when shown for the first time
2012-06-25 11:34:56 +02:00
Jeremie Laval
226d840c49
[Popover] Pass widget as a reference instead of position
2012-06-22 19:24:07 +01:00
Jeremie Laval
3c983994da
Add some missing headers
2012-06-22 19:24:07 +01:00
Jeremie Laval
9970aa9b4f
[Gtk.PopoverBackend] Improves drawing so that border is consistent and better tailored
2012-06-22 19:24:06 +01:00
Jeremie Laval
8a9950ac6a
[SpinButton] Allow to set ButtonStyle on the spinner
2012-06-14 16:38:31 +01:00
Jeremie Laval
e37d000ea9
[Gtk.SpinButtonBackend] Fix event name, s/ChangeValue/ValueChanged/
2012-06-14 16:38:31 +01:00
Jeremie Laval
85af81e125
[GtkBackend] Prevent multiple fire of the ValueChanged event in DatePicker
2012-06-06 15:15:32 +01:00
Jeremie Laval
d0ec4fcc4b
Implement correct event sink boilerplate for DatePicker
2012-06-05 15:01:55 +01:00
Jeremie Laval
261db46096
Add a DatePicker widget and its Gtk backend
2012-06-05 13:40:19 +01:00
Jeremie Laval
a4af4dffa6
[GtkBackend] Toggle button should change arrow orientation when button type is disclosure
2012-06-05 13:40:19 +01:00
Lluis Sanchez
b35b11ff98
[Gtk] Fix drag&drop events
...
Properly get the drag data types in the DragMotion event.
2012-06-04 20:43:50 +02:00
Jeremie Laval
e04c20e498
[GtkBackend.SpinButton] Show the widget by default
2012-05-17 18:19:41 +01:00
Jeremie Laval
e35b890636
Revert "[WindowFrame] Add support for setting window opacity"
...
Not useful for now
This reverts commit e79ecc19a9
.
2012-05-17 18:16:58 +01:00
Jeremie Laval
2d5c104db5
Add Popover widget/dialog
...
Conflicts:
Xwt.Gtk/Xwt.Gtk.csproj
Xwt.Gtk/Xwt.GtkBackend/GtkEngine.cs
Xwt/Xwt.csproj
2012-05-17 17:20:49 +01:00
Jeremie Laval
8f56ffe768
Add SpinButton widget
...
Conflicts:
Xwt.Gtk/Xwt.GtkBackend/GtkEngine.cs
2012-05-17 17:19:08 +01:00