Jump to page: 1 24  
Page
Thread overview
SWT port - first step
Jan 21, 2004
Brad Anderson
Jan 21, 2004
John Reimer
Jan 21, 2004
John Reimer
Jan 21, 2004
Brad Anderson
Jan 21, 2004
John Reimer
Jan 21, 2004
Matthew
Jan 21, 2004
davepermen
Jan 21, 2004
Brad Anderson
Jan 21, 2004
Matthew
Re: SWT port - license
Jan 21, 2004
Mark T
Jan 21, 2004
Brad Anderson
Jan 22, 2004
Walter
Jan 21, 2004
davepermen
Jan 21, 2004
Georg Wrede
Jan 21, 2004
davepermen
Jan 21, 2004
Ant
Jan 21, 2004
Georg Wrede
Jan 21, 2004
davepermen
Jan 21, 2004
Andy Friesen
Jan 21, 2004
Georg Wrede
Jan 22, 2004
Walter
Feb 04, 2004
Ant
Jan 23, 2004
Ilya Minkov
Jan 21, 2004
Andy Friesen
Jan 21, 2004
Brad Anderson
Jan 21, 2004
Ant
Jan 21, 2004
John Reimer
Jan 21, 2004
John Reimer
Jan 21, 2004
Andy Friesen
Feb 01, 2004
Mark T
Feb 01, 2004
Brad Anderson
January 21, 2004
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
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
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
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
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
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
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
hehe, no comment:D

"Matthew" <matthew.hat@stlsoft.dot.org> schrieb im Newsbeitrag news:bul76l$2gku$1@digitaldaemon.com...
> IANAL??


January 21, 2004
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
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
> >>
> >
> >
>


« First   ‹ Prev
1 2 3 4