Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Custom Native Widgets(Want to create custom widgets using C and then bind it to SWT)
Custom Native Widgets [message #503228] Fri, 11 December 2009 08:33 Go to next message
Andrey is currently offline AndreyFriend
Messages: 1
Registered: July 2009
Junior Member
Hello!

I'm participating in logistics and business automatization system development.
Our system is client-server. Client part built upon Eclipse RCP. Our user have Windows, Mac OS X, as well as Linux OS'es.

In pursue of better user experience sometimes appears tasks of designing new type of widgets. Up until now they were solved in Java/SWT environment.

Here's brief description of one such widget. Users of MacOS should be familiar with NSSearchField control. We want to create control like this, but with ability to add arbitrary amount of buttons to it. We need ability to add more than 1 button to control. We also want to have autocompletion, though this bit can be accomplished with standard JFace methods. To make it more understandable, there is a picture attached. In this picture one can see such a control on Windows and Mac OS X.

The way those controls are created now is not to our liking. We think, it would be better to create them using native means (like C/Win32API or Objective-C/Cocoa etc.). Hence we want to know, are there some rules or guidelines we should learn in order to start development of native custom widget on C and it's SWT counterpart?

Another question, are there any criteria of selection of ideas or code for participating in swt-upstream?I'm participating in logistics and business automatization system development.
Our system is client-server. Client part built upon Eclipse RCP. Our user have Windows, Mac OS X, as well as Linux OS'es.

In pursue of better user experience sometimes appears tasks of designing new type of widgets. Up until now they were solved in Java/SWT environment.

Here's brief description of one such widget. Users of MacOS should be familiar with NSSearchField control. We want to create control like this, but with ability to add arbitrary amount of buttons to it. We need ability to add more than 1 button to control. We also want to have autocompletion, though this bit can be accomplished with standard JFace methods. To make it more understandable, there is a picture attached. In this picture one can see such a control on Windows and Mac OS X.

The way those controls are created now is not to our liking. We think, it would be better to create them using native means (like C/Win32API or Objective-C/Cocoa etc.). Hence we want to know, are there some rules or guidelines we should learn in order to start development of native custom widget on C and it's SWT counterpart?

Another question, are there any criteria of selection of ideas or code for participating in swt-upstream?
Re: Custom Native Widgets [message #503235 is a reply to message #503228] Fri, 11 December 2009 14:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5470
Registered: July 2009
Senior Member
Hi Andrey,

There's a special project named Nebula which deals with custom controls
and controls not going into SWT itself.

I invite you to contribute your widgets to Nebula if you want to. We
happily accept new widgets. If you are interested please send a mail the
nebula-dev@eclipse.org (you need to subscribed before posting to the
mailing list) or contact me under this E-Mail-Address.

Tom
Nebula Project Lead


Am 11.12.09 09:33, schrieb Andrey:
> Hello!
>
> I'm participating in logistics and business automatization system
> development.
> Our system is client-server. Client part built upon Eclipse RCP. Our
> user have Windows, Mac OS X, as well as Linux OS'es.
>
> In pursue of better user experience sometimes appears tasks of designing
> new type of widgets. Up until now they were solved in Java/SWT environment.
>
> Here's brief description of one such widget. Users of MacOS should be
> familiar with NSSearchField control. We want to create control like
> this, but with ability to add arbitrary amount of buttons to it. We need
> ability to add more than 1 button to control. We also want to have
> autocompletion, though this bit can be accomplished with standard JFace
> methods. To make it more understandable, there is a picture attached. In
> this picture one can see such a control on Windows and Mac OS X.
>
> The way those controls are created now is not to our liking. We think,
> it would be better to create them using native means (like C/Win32API or
> Objective-C/Cocoa etc.). Hence we want to know, are there some rules or
> guidelines we should learn in order to start development of native
> custom widget on C and it's SWT counterpart?
>
> Another question, are there any criteria of selection of ideas or code
> for participating in swt-upstream?I'm participating in logistics and
> business automatization system development.
> Our system is client-server. Client part built upon Eclipse RCP. Our
> user have Windows, Mac OS X, as well as Linux OS'es.
>
> In pursue of better user experience sometimes appears tasks of designing
> new type of widgets. Up until now they were solved in Java/SWT environment.
>
> Here's brief description of one such widget. Users of MacOS should be
> familiar with NSSearchField control. We want to create control like
> this, but with ability to add arbitrary amount of buttons to it. We need
> ability to add more than 1 button to control. We also want to have
> autocompletion, though this bit can be accomplished with standard JFace
> methods. To make it more understandable, there is a picture attached. In
> this picture one can see such a control on Windows and Mac OS X.
>
> The way those controls are created now is not to our liking. We think,
> it would be better to create them using native means (like C/Win32API or
> Objective-C/Cocoa etc.). Hence we want to know, are there some rules or
> guidelines we should learn in order to start development of native
> custom widget on C and it's SWT counterpart?
>
> Another question, are there any criteria of selection of ideas or code
> for participating in swt-upstream?
Re: Custom Native Widgets [message #503279 is a reply to message #503228] Fri, 11 December 2009 16:30 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Hi,

Eclipse Corner article
http://www.eclipse.org/articles/Article-Writing%20Your%20Own %20Widget/Writing%20Your%20Own%20Widget.htm
discusses creating custom controls. The article is old but still 100%
applicable today.

Based on your description, Nebula would probably be the best destination for
your new control (I see Tom has given you the Nebula details).

HTH,
Grant


"Andrey" <andyglow@gmail.com> wrote in message
news:hftho6$52e$1@build.eclipse.org...
> Hello!
>
> I'm participating in logistics and business automatization system
development.
> Our system is client-server. Client part built upon Eclipse RCP. Our user
have Windows, Mac OS X, as well as Linux OS'es.
>
> In pursue of better user experience sometimes appears tasks of designing
new type of widgets. Up until now they were solved in Java/SWT environment.
>
> Here's brief description of one such widget. Users of MacOS should be
familiar with NSSearchField control. We want to create control like this,
but with ability to add arbitrary amount of buttons to it. We need ability
to add more than 1 button to control. We also want to have autocompletion,
though this bit can be accomplished with standard JFace methods. To make it
more understandable, there is a picture attached. In this picture one can
see such a control on Windows and Mac OS X.
>
> The way those controls are created now is not to our liking. We think, it
would be better to create them using native means (like C/Win32API or
Objective-C/Cocoa etc.). Hence we want to know, are there some rules or
guidelines we should learn in order to start development of native custom
widget on C and it's SWT counterpart?
>
> Another question, are there any criteria of selection of ideas or code for
participating in swt-upstream?I'm participating in logistics and business
automatization system development.
> Our system is client-server. Client part built upon Eclipse RCP. Our user
have Windows, Mac OS X, as well as Linux OS'es.
>
> In pursue of better user experience sometimes appears tasks of designing
new type of widgets. Up until now they were solved in Java/SWT environment.
>
> Here's brief description of one such widget. Users of MacOS should be
familiar with NSSearchField control. We want to create control like this,
but with ability to add arbitrary amount of buttons to it. We need ability
to add more than 1 button to control. We also want to have autocompletion,
though this bit can be accomplished with standard JFace methods. To make it
more understandable, there is a picture attached. In this picture one can
see such a control on Windows and Mac OS X.
>
> The way those controls are created now is not to our liking. We think, it
would be better to create them using native means (like C/Win32API or
Objective-C/Cocoa etc.). Hence we want to know, are there some rules or
guidelines we should learn in order to start development of native custom
widget on C and it's SWT counterpart?
>
> Another question, are there any criteria of selection of ideas or code for
participating in swt-upstream?
Previous Topic:Set scrollbar selection
Next Topic:Open browser links in OS Default Web browser
Goto Forum:
  


Current Time: Fri Nov 28 21:06:35 GMT 2014

Powered by FUDForum. Page generated in 0.01545 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software