Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] C++ Toolkit for SWT

How about to create the UI in XWT, which is language-independent and
XML-based UI, and use this library to event handling and dynamic UI via
SWT APIs.

Reagrds
yves
----
Soyatec - Declarative UI, Modeling UI and Visual Outils

> As mentioned below, the answer is Yes. It's called SWT C++ and it's a 100%
> native C++ implementation of SWT. It's produced entirely from the SWT Java
> implementation. Basically, it is SWT Java source code compiled to C++
> source code instead of compiled to Java bytecode. It is like another
> platform target for SWT: native C++, requiring no JRE and no JNI. It is
> feature-for-feature, bug-for-bug, and pixel-accurate to SWT Java.
> Presently, it is at SWT version 3.4.1 and only supported for Win32 desktop
> and Win CE (Pocket PC and Windows Mobile), and Visual C++ 8.0 (Visual
> Studio 2005) and 7.1 (Visual Studio 2003). Visual C++ 9.0 (Visual Studio
> 2008) support is working but not released. Other target OS platforms are
> being considered.
>
> Regarding the use case "such that even the GUI elements could be coded in
> C++ only," this is not supported out-of-the-box, and we have not pursued
> this ourselves. That being said, by nature of SWT's design, it should be
> entirely possible to re-host an SWT C++ control in a SWT Java control or
> an Eclipse Workbench part (either a view or an editor) along with a JNI
> wrapper for the SWT C++ control. It may even be possible to do this
> without changing SWT C++ at all but no guarantees. There's a good
> explanation of how to wrap a native Win32 or Motif control as an SWT Java
> control along with JNI DLL on the Eclipse Web site. See the headings
> "Wrapping a Native Widget", "Windows Native Code", and "Motif Native Code"
> in the following article:
> http://www.eclipse.org/articles/Article-Writing%20Your%20Own%20Widget/Writing%20Your%20Own%20Widget.htm
>
>   ----- Original Message -----
>   From: Grant Gayed
>   To: Eclipse Platform SWT component developers list.
>   Sent: Wednesday, April 14, 2010 12:44 PM
>   Subject: Re: [platform-swt-dev] C++ Toolkit for SWT
>
>
>
>   First to answer your question, there is a project at
> http://www.pure-native.com/ that takes an SWT release and conver



Back to the top