digitalmars.D.dwt - DWT on Mac OS X and with DMD 2
- amehat (80/80) Mar 23 2014 Hello everyone,
- Jacob Carlborg (6/12) Mar 24 2014 Unfortunately, DWT for OS X is not ready yet. That code is still written...
- amehat (7/20) Mar 24 2014 Hello,
- Jacob Carlborg (9/14) Mar 25 2014 What I'm currently doing is running snippets from the snippets
- FrankLike (2/18) May 12 2014 Good job.
- Jacob Carlborg (4/5) May 12 2014 Thanks :)
- FrankLike (11/11) May 14 2014 I'v compiled the all snippets examples,the examples are very
- Jacob Carlborg (4/12) May 14 2014 What does it do?
- FrankLike (2/14) May 14 2014 Ican send a mail to you, ok to email?
- Jacob Carlborg (4/5) May 14 2014 Sure.
- FrankLike (2/5) May 14 2014 Can you tell me your email? Thank you.
- Jacob Carlborg (4/5) May 14 2014 You should be able to see here somewhere.
- FrankLike (4/7) May 15 2014 I've mailed to you.waiting for you to answer.
- romain (7/20) Mar 22 2015 Hi. I think i might be interested in helping porting from d1 to
- Jacob Carlborg (21/24) Mar 23 2015 I'm not sure if that's a good idea before the Java -> D1 port is
Hello everyone, I apologize in advance for my english, I'm french and not good in the language of Shakespeare. I am running Mac OS X 10.9 and I use the DMD 2 compiler. I try to compile a basic script that uses DWT (https://github.com/d-widget-toolkit/dwt-mac) : module main; import dwt.widgets.Button; import dwt.widgets.Display; import dwt.widgets.Event; import dwt.widgets.Listener; import dwt.widgets.Shell; void main (){ Display display = new Display (); Shell shell = new Shell (display); Button button = new Button (shell, DWT.NONE); button.setSize(100,100); button.setText("Click me"); shell.pack; shell.open; while (!shell.isDisposed ()){ if (!display.readAndDispatch ()) display.sleep (); } } But when I compile, I have a lot of error (I use Xamarin). Is that I forget things or is that I do not compile it right (dmd -debug -gc "main.d" "-I/usr/share/dmd/src/" "-odobj/Debug" "-of/Users/amehat/Projects/D-test/D-test/bin/Debug/D-test")? md " /var/folders/80/82nj5n0n65196c_jq7ftllqw0000gn/T/tmp3f6ab167.tmp" dwt/browser/AppFileLocProvider.d(107): Deprecation: octal literals 0700 are deprecated, use std.conv.octal!700 instead dwt/browser/AuthenticationEvent.d(28): Error: { } expected following aggregate declaration dwt/browser/AuthenticationEvent.d(28): Error: semicolon expected, not '{' dwt/browser/AuthenticationEvent.d(28): Error: Declaration expected, not '{' dwt/browser/AuthenticationEvent.d(53): Error: function declaration without return type. (Note that constructors are always named 'this') dwt/browser/AuthenticationEvent.d(53): Error: no identifier for declarator AuthenticationEvent(Widget widget) dwt/browser/AuthenticationEvent.d(71): Error: unrecognized declaration dwt/browser/AuthenticationListener.d(27): Error: { } expected following aggregate declaration dwt/browser/AuthenticationListener.d(27): Error: semicolon expected, not '{' dwt/browser/AuthenticationListener.d(27): Error: Declaration expected, not '{' dwt/browser/AuthenticationListener.d(58): Error: unrecognized declaration dwt/browser/Browser.d(531): Error: semicolon expected following function declaration dwt/browser/Browser.d(531): Error: semicolon expected, not '{' dwt/browser/Browser.d(531): Error: Declaration expected, not '{' dwt/browser/Browser.d(533): Error: Declaration expected, not 'if' dwt/browser/Browser.d(534): Error: Declaration expected, not 'return' dwt/browser/Browser.d(994): Error: unrecognized declaration dwt/browser/BrowserFunction.d(76): Error: function declaration without return type. (Note that constructors are always named 'this') dwt/browser/BrowserFunction.d(76): Error: no identifier for declarator BrowserFunction(Browser browser, String name) dwt/browser/BrowserFunction.d(80): Error: function declaration without return type. (Note that constructors are always named 'this') dwt/browser/BrowserFunction.d(80): Error: no identifier for declarator BrowserFunction(Browser browser, String name, bool create) dwt/browser/BrowserFunction.d(139): Error: no identifier for declarator Object function(Object[] arguments) Exit code 1 Construction terminée -- 23 erreurs, 0 avertissement
Mar 23 2014
On 23/03/14 23:57, amehat wrote:Hello everyone, I apologize in advance for my english, I'm french and not good in the language of Shakespeare. I am running Mac OS X 10.9 and I use the DMD 2 compiler. I try to compile a basic script that uses DWT (https://github.com/d-widget-toolkit/dwt-mac) :Unfortunately, DWT for OS X is not ready yet. That code is still written in D1. I plan to port it to D2 when it's working as good as the Linux/Windows version. Any help is appreciated. -- /Jacob Carlborg
Mar 24 2014
On Monday, 24 March 2014 at 13:39:40 UTC, Jacob Carlborg wrote:On 23/03/14 23:57, amehat wrote:Hello, thank you for your reply. I am willing to help you, DWT MAC OS X is really important to me. Nevertheless, I started D and over time, I still do not have much time. But if I can afford to run the library on Mac, I would gladly.Hello everyone, I apologize in advance for my english, I'm french and not good in the language of Shakespeare. I am running Mac OS X 10.9 and I use the DMD 2 compiler. I try to compile a basic script that uses DWT (https://github.com/d-widget-toolkit/dwt-mac) :Unfortunately, DWT for OS X is not ready yet. That code is still written in D1. I plan to port it to D2 when it's working as good as the Linux/Windows version. Any help is appreciated.
Mar 24 2014
On 24/03/14 18:15, amehat wrote:Hello, thank you for your reply. I am willing to help you, DWT MAC OS X is really important to me. Nevertheless, I started D and over time, I still do not have much time. But if I can afford to run the library on Mac, I would gladly.What I'm currently doing is running snippets from the snippets directory. I'm also adding new snippets, both from the separate snippet repository [1] and the original SWT Java snippets [2]. Then just trying to make them all work. [1] https://github.com/d-widget-toolkit/org.eclipse.swt.snippets [2] http://www.eclipse.org/swt/snippets/ -- /Jacob Carlborg
Mar 25 2014
On Tuesday, 25 March 2014 at 07:36:19 UTC, Jacob Carlborg wrote:On 24/03/14 18:15, amehat wrote:Good job.Hello, thank you for your reply. I am willing to help you, DWT MAC OS X is really important to me. Nevertheless, I started D and over time, I still do not have much time. But if I can afford to run the library on Mac, I would gladly.What I'm currently doing is running snippets from the snippets directory. I'm also adding new snippets, both from the separate snippet repository [1] and the original SWT Java snippets [2]. Then just trying to make them all work. [1] https://github.com/d-widget-toolkit/org.eclipse.swt.snippets [2] http://www.eclipse.org/swt/snippets/
May 12 2014
On 2014-05-12 16:24, FrankLike wrote:Good job.Thanks :) -- /Jacob Carlborg
May 12 2014
I'v compiled the all snippets examples,the examples are very good,but no enableVisualStyles fuction in DWT,it will help dwt to be nice. You can look at the DFL's enableVisualStyles(). DFL /Application.d // Should be called before creating any controls. // This is typically the first function called in main(). // Does nothing if not supported. void enableVisualStyles() Thank you. Frank
May 14 2014
On 14/05/14 12:07, FrankLike wrote:I'v compiled the all snippets examples,the examples are very good,but no enableVisualStyles fuction in DWT,it will help dwt to be nice. You can look at the DFL's enableVisualStyles(). DFL /Application.d // Should be called before creating any controls. // This is typically the first function called in main(). // Does nothing if not supported. void enableVisualStyles()What does it do? -- /Jacob Carlborg
May 14 2014
On Wednesday, 14 May 2014 at 11:49:23 UTC, Jacob Carlborg wrote:On 14/05/14 12:07, FrankLike wrote:Ican send a mail to you, ok to email?I'v compiled the all snippets examples,the examples are very good,but no enableVisualStyles fuction in DWT,it will help dwt to be nice. You can look at the DFL's enableVisualStyles(). DFL /Application.d // Should be called before creating any controls. // This is typically the first function called in main(). // Does nothing if not supported. void enableVisualStyles()What does it do
May 14 2014
On 2014-05-14 15:03, FrankLike wrote:Ican send a mail to you, ok to email?Sure. -- /Jacob Carlborg
May 14 2014
On Wednesday, 14 May 2014 at 16:58:02 UTC, Jacob Carlborg wrote:On 2014-05-14 15:03, FrankLike wrote:Can you tell me your email? Thank you.Ican send a mail to you, ok to email?Sure.
May 14 2014
On 15/05/14 05:53, FrankLike wrote:Can you tell me your email? Thank you.You should be able to see here somewhere. -- /Jacob Carlborg
May 14 2014
On Thursday, 15 May 2014 at 06:25:50 UTC, Jacob Carlborg wrote:On 15/05/14 05:53, FrankLike wrote:I've mailed to you.waiting for you to answer. Thank you. FrankCan you tell me your email? Thank you.You should be able to see here somewhere.
May 15 2014
On Monday, 24 March 2014 at 13:39:40 UTC, Jacob Carlborg wrote:On 23/03/14 23:57, amehat wrote:Hi. I think i might be interested in helping porting from d1 to d2 as far as the Os x version is concerned, even though i don't really know how i could go about that. Any pointer or help would be appreciated. Thank you RomainHello everyone, I apologize in advance for my english, I'm french and not good in the language of Shakespeare. I am running Mac OS X 10.9 and I use the DMD 2 compiler. I try to compile a basic script that uses DWT (https://github.com/d-widget-toolkit/dwt-mac) :Unfortunately, DWT for OS X is not ready yet. That code is still written in D1. I plan to port it to D2 when it's working as good as the Linux/Windows version. Any help is appreciated.
Mar 22 2015
On 2015-03-22 15:41, romain wrote:Hi. I think i might be interested in helping porting from d1 to d2 as far as the Os x version is concerned, even though i don't really know how i could go about that. Any pointer or help would be appreciated.I'm not sure if that's a good idea before the Java -> D1 port is finished. If you run in to a bug it's hard to know if it's the Java -> D1 port or the D1 -> D2 port that caused the bug. I got tried of the manual porting so I'm trying out a new approach to port DWT. That is to create a tool that automatically convert the Java code to D (2). I've created a new project JPort [1], it's written in Scala and uses the Eclipse JDT compiler API's to translate Java to D. It's in a very early stage. If you really do want to port the D1 code to D2 you just need to start rewriting the parts that has changed from D1 to D2. I'm not sure if there's a list of changes between D1 and D2. Looking at the changelog will give you some hints, but it might be too detailed. The "-vtls" compiler flag will help to show which variables will be but in TLS. The code for the OS X port is available here [2]. The readme in that repository will have some documentation on how to port the Java code to D that is unique to the OS X port. [1] https://github.com/d-widget-toolkit/jport/tree/dev [2] https://github.com/d-widget-toolkit/dwt-mac -- /Jacob Carlborg
Mar 23 2015