Thread overview | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
January 21, 2004 SWT port - first step | ||||
---|---|---|---|---|
| ||||
I'm starting a new thread so we can discuss the best way to do a proof-of-concept for a D port of SWT. For reference, we were under "Active Projects" and "D gui" before this) I would like to propose that we accomplish the following: 1. Write enough code so that the following works /+ + HelloWorldGUI.d +/ import dwt.widgets.Display; import dwt.widgets.Shell; int main (char[][] args) { Display display = new Display(); Shell shell = new Shell(display); shell.open(); while ( !shell.isDisposed() ) { if ( !display.readAndDispatch() ) { display.sleep(); } } display.dispose(); } 2. Demonstrate that it works on Win32 and Linux/GTK. 3. Figure out a forum for the small team to exchange ideas and communicate (rather than loading up the DMD newsgroup.) We will report back on feasibility. This should give us enough of a look at the plumbing of SWT. We can see where we will have to work hard to get around a feature in Java that D does not have, or that we want to improve because we have more capabilities in D. For the moment, let's assume we're going to use listeners and try to stay as close to SWT as possible. Optimizations can come much later... What can we leave out for the proof-of-concept? Unicode, threading, Thoughts? Volunteers? Platform preferences? I don't have dev access to a Linux box, so I'll probably hack around with Win32. I can, however, set up a forum using phpBB on a public site. Brad |
January 21, 2004 Re: SWT port - first step | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | I'll respond in more detail to this in a bit, but for now here are a couple of links to the SWT toolkit so others can get familar with it: Download and web viewable cvs: http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/main.html The Developer's SWT page: http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/dev.html Also, it probably be wise to get further information on the license of this toolkit. I know we would be modifying it in D, but I don't know what our obligation would be for adopting the design. Notice also, in the above website, there are branches for win32 and Gtk in place. This is a good thing :). Oh and watch out, the name "dwt" might not be so popular ;-). Nice sample! Later, John |
January 21, 2004 Re: SWT port - first step | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Reimer | On Tue, 20 Jan 2004 21:48:38 -0800, John Reimer wrote: > The Developer's SWT page: > > http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/dev.html > The CVS tree is actually in the above link, not the first one provided. > Also, it probably be wise to get further information on the license of this toolkit. I know we would be modifying it in D, but I don't know what our obligation would be for adopting the design. > From what I can see, the code is under the Mozilla Public License 1.1. I'm not familiar with the extent of it. I guess I'll be doing some reading. |
January 21, 2004 Re: SWT port - first step | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Reimer | In the code, links to Common Public License 1.0 http://www.eclipse.org/legal/cpl-v10.html However, we'll be putting this into the public domain. IANAL, but I would guess that we could give some lip-service to Eclipse, SWT, and IBM in documentation (not source code), and then choose our own license. BA John Reimer wrote: > I'll respond in more detail to this in a bit, but for now here are a > couple of links to the SWT toolkit so others can get familar with it: > > Download and web viewable cvs: > > http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/main.html > > The Developer's SWT page: > > http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/dev.html > > > Also, it probably be wise to get further information on the license of > this toolkit. I know we would be modifying it in D, but I don't know what > our obligation would be for adopting the design. > > Notice also, in the above website, there are branches for win32 and Gtk in > place. This is a good thing :). > > Oh and watch out, the name "dwt" might not be so popular ;-). > > Nice sample! > > Later, > > John |
January 21, 2004 Re: SWT port - first step | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | On Tue, 20 Jan 2004 23:54:46 -0600, Brad Anderson wrote: > In the code, links to Common Public License 1.0 > > http://www.eclipse.org/legal/cpl-v10.html > You're right. For some strange reason I landed in a directory with a source file using the "Mozilla Public License." Must have been just a few files. > However, we'll be putting this into the public domain. IANAL, but I > would guess that we could give some lip-service to Eclipse, SWT, and IBM in documentation (not source code), and then choose our own license. > Ok, I don't know much about this. As long as we know what we're doing. I was browsing some of the Java code, and it's great! I think for the most part, it will be pretty easy to convert. The os dependent features are clearly indicated with calls like OS.GetClassInfo(...) for win32. It'll be a snap to duplicate in place. Gtk would be similar. This just means we have to work on class structure and members. Most of it is pretty similar to what D can do. This looks promising! Later, John |
January 21, 2004 Re: SWT port - first step | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | I think thats a nice idea. I hope to have a forum since quite some while anyways, hehe. But i think there should be one change done right from the start: use delegates, not listeners. This is NOT an optimisation, but such a general design issue, i think it should be done right from the start. For all other points, i fully agree. "Brad Anderson" <brad@sankaty.dot.com> schrieb im Newsbeitrag news:bul1v1$281v$1@digitaldaemon.com... > I'm starting a new thread so we can discuss the best way to do a proof-of-concept for a D port of SWT. For reference, we were under "Active > Projects" and "D gui" before this) > > I would like to propose that we accomplish the following: > > 1. Write enough code so that the following works > > /+ > + HelloWorldGUI.d > +/ > > import dwt.widgets.Display; > import dwt.widgets.Shell; > > int main (char[][] args) { > > Display display = new Display(); > Shell shell = new Shell(display); > shell.open(); > while ( !shell.isDisposed() ) { > if ( !display.readAndDispatch() ) { > display.sleep(); > } > } > display.dispose(); > } > > > 2. Demonstrate that it works on Win32 and Linux/GTK. > > 3. Figure out a forum for the small team to exchange ideas and communicate > (rather than loading up the DMD newsgroup.) We will report back on feasibility. > > This should give us enough of a look at the plumbing of SWT. We can see where > we will have to work hard to get around a feature in Java that D does not have, > or that we want to improve because we have more capabilities in D. > > For the moment, let's assume we're going to use listeners and try to stay as > close to SWT as possible. Optimizations can come much later... > > What can we leave out for the proof-of-concept? Unicode, threading, > > Thoughts? Volunteers? Platform preferences? > > I don't have dev access to a Linux box, so I'll probably hack around with Win32. > I can, however, set up a forum using phpBB on a public site. > > Brad > > |
January 21, 2004 Re: SWT port - first step | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | IANAL?? "Brad Anderson" <brad@sankaty.dot.com> wrote in message news:bul4fv$2cg1$1@digitaldaemon.com... > In the code, links to Common Public License 1.0 > > http://www.eclipse.org/legal/cpl-v10.html > > However, we'll be putting this into the public domain. IANAL, but I would guess > that we could give some lip-service to Eclipse, SWT, and IBM in documentation > (not source code), and then choose our own license. > > BA > > John Reimer wrote: > > > I'll respond in more detail to this in a bit, but for now here are a couple of links to the SWT toolkit so others can get familar with it: > > > > Download and web viewable cvs: > > > > http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/main.html > > > > The Developer's SWT page: > > > > http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/dev.html > > > > > > Also, it probably be wise to get further information on the license of this toolkit. I know we would be modifying it in D, but I don't know what > > our obligation would be for adopting the design. > > > > Notice also, in the above website, there are branches for win32 and Gtk in > > place. This is a good thing :). > > > > Oh and watch out, the name "dwt" might not be so popular ;-). > > > > Nice sample! > > > > Later, > > > > John > |
January 21, 2004 Re: SWT port - first step | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | hehe, no comment:D "Matthew" <matthew.hat@stlsoft.dot.org> schrieb im Newsbeitrag news:bul76l$2gku$1@digitaldaemon.com... > IANAL?? |
January 21, 2004 Re: SWT port - first step | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | I am not a lawyer
Matthew wrote:
> IANAL??
>
> "Brad Anderson" <brad@sankaty.dot.com> wrote in message
> news:bul4fv$2cg1$1@digitaldaemon.com...
>
>>In the code, links to Common Public License 1.0
>>
>>http://www.eclipse.org/legal/cpl-v10.html
>>
>>However, we'll be putting this into the public domain. IANAL, but I would
>
> guess
>
>>that we could give some lip-service to Eclipse, SWT, and IBM in
>
> documentation
>
>>(not source code), and then choose our own license.
>>
>>BA
>>
>>John Reimer wrote:
>>
>>
>>>I'll respond in more detail to this in a bit, but for now here are a
>>>couple of links to the SWT toolkit so others can get familar with it:
>>>
>>>Download and web viewable cvs:
>>>
>>>
>
> http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/main.html
>
>>>The Developer's SWT page:
>>>
>>>
>
> http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/dev.html
>
>>>
>>>Also, it probably be wise to get further information on the license of
>>>this toolkit. I know we would be modifying it in D, but I don't know
>
> what
>
>>>our obligation would be for adopting the design.
>>>
>>>Notice also, in the above website, there are branches for win32 and Gtk
>
> in
>
>>>place. This is a good thing :).
>>>
>>>Oh and watch out, the name "dwt" might not be so popular ;-).
>>>
>>>Nice sample!
>>>
>>>Later,
>>>
>>>John
>>
>
>
|
January 21, 2004 Re: SWT port - first step | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | Ah ... Well, better than a couple of the alternatives I'd postulated ... :) "Brad Anderson" <brad@sankaty.dot.com> wrote in message news:bul83n$2hlk$1@digitaldaemon.com... > I am not a lawyer > > > Matthew wrote: > > IANAL?? > > > > "Brad Anderson" <brad@sankaty.dot.com> wrote in message news:bul4fv$2cg1$1@digitaldaemon.com... > > > >>In the code, links to Common Public License 1.0 > >> > >>http://www.eclipse.org/legal/cpl-v10.html > >> > >>However, we'll be putting this into the public domain. IANAL, but I would > > > > guess > > > >>that we could give some lip-service to Eclipse, SWT, and IBM in > > > > documentation > > > >>(not source code), and then choose our own license. > >> > >>BA > >> > >>John Reimer wrote: > >> > >> > >>>I'll respond in more detail to this in a bit, but for now here are a couple of links to the SWT toolkit so others can get familar with it: > >>> > >>>Download and web viewable cvs: > >>> > >>> > > > > http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/main.html > > > >>>The Developer's SWT page: > >>> > >>> > > > > http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/dev.html > > > >>> > >>>Also, it probably be wise to get further information on the license of this toolkit. I know we would be modifying it in D, but I don't know > > > > what > > > >>>our obligation would be for adopting the design. > >>> > >>>Notice also, in the above website, there are branches for win32 and Gtk > > > > in > > > >>>place. This is a good thing :). > >>> > >>>Oh and watch out, the name "dwt" might not be so popular ;-). > >>> > >>>Nice sample! > >>> > >>>Later, > >>> > >>>John > >> > > > > > |
Copyright © 1999-2021 by the D Language Foundation