Komputer Sains    
   
Daftar Isi
(Sebelumnya) List of web testing toolsLists of programming languages (Berikutnya)

Daftar/Tabel -- widget toolkits

Contents

Low-level widget toolkits

Integrated in the operating system

As a separate layer on top of the operating system

  • The X Window System contains primitive building blocks, called Xt or "Intrinsics", but they are used only by Motif and Xaw. Most other toolkits, such as GTK+ or Qt, bypass them and use Xlib.
  • The Amiga OS Intuition was formerly present in the Amiga Kickstart ROM and integrated itself with a medium-high level widget library which invoked the Workbench Amiga native GUI. Since Amiga OS 2.0, Intuition.library became disk based and object oriented. Also Workbench.library and Icon.library became disk based, and could be replaced with similar third-party solutions.
  • Since 2005 Microsoft has taken the graphics system out of Windows' kernel[2]

High-level widget toolkits

Widget toolkit comparison table
Toolkit nameWindowsMac OS XUnix-likeProgramming languageLicense
QtYesYesYesC++LGPL
MFCYesNoNoC++Proprietary
OWL (superseded by VCL)YesNoNoC++ (Borland C++)Proprietary
VCL (supersedes OWL)YesNoNoObject Pascal (Delphi)Proprietary
WTLYesNoNoC++Microsoft Public License
LCLYesYesYesObject Pascal (Free Pascal)LGPL
LessTifNoNoYesCLGPL
GTK+YesYesYesCLGPL
FLTKYesYesYesC++LGPL
Fox toolkitYesNoYesC++LGPL
wxWidgetsYesYesYesC++WxWindows license
SmartWin++YesNoNoC++BSD
TnFOXYesYesYesC++LGPL
Ultimate++YesNoYesC++BSD
IUPYesYesYesCMIT
AWTcross-platformJava 
Swingcross-platformJava 
Pivot (WTK)cross-platformJavaApache License
GNUstepYesYesYesObjective-CLGPL
JuceYesYesYesC++GPL
CocoaNoYesNoObjective-CProprietary
NTKWith third-partyWith third-partyYesC++LGPL

OS dependent

On Amiga

  • BOOPSI (Basic Object Oriented Programming System for Intuition) was introduced with OS 2.0 and enhanced Intuition with a system of classes in which every class represents a single widget or describes an interface event. This led to an evolution in which third-party developers each realised their own personal systems of classes.
  • MUI: object-oriented GUI toolkit and the official toolkit for MorphOS.
  • Zune (GUI toolkit) is an open source clone of MUI and the official toolkit for AROS.

On Macintosh

On Microsoft Windows

On Unix, under the X Window System

Note that the X Window System was originally primarily for Unix-like operating systems, but it now runs on Microsoft Windows as well using, for example, Cygwin, so some or all of these toolkits can also be used under Windows.

Cross-platform

Based on C (including bindings to other languages)

  • Elementary, open source (LGPL), a part of the Enlightenment Foundation Libraries, a fast, stable, and scalable library that can be used to create both rich and fast applications that can be used on anything from every day desktop computers to small PDA's and set-top boxes.
  • GTK+, open source (LGPL), primarily for the X Window System, ported to and emulated under other platforms; used in the GNOME, Rox, LXDE and Xfce desktop environments. The Windows port has support for native widgets.
  • IUP, open source (MIT), a minimalist GUI toolkit in ANSI C for Windows, UNIX and Linux.
  • Tk, a widget set accessed from Tcl and other high-level script languages (interfaced in Python as Tkinter).
  • XForms, the Forms Library for X
  • XVT, Extensible Virtual Toolkit

Based on C++ (including bindings to other languages)

Based on OpenGL

  • GLUI (LGPL) is a GLUT-based C++ user interface library which provides controls such as buttons, checkboxes, radio buttons, and spinners to OpenGL applications.
  • Clutter (LGPL) (in C) is an open source software library for creating fast, visually rich and animated graphical user interfaces.
  • NUI (GPL) (C++) is based on 3D rendered dynamic layouts. Build your visual interface as a composition of widgets and behaviors.

Based on Flash

  • Adobe Flash allows creating widgets running in most web browsers and in several mobile phones.
  • Adobe Flex provides high-level widgets for building web user interfaces. Flash widgets can be used in Flex.
  • Flash and Flex widgets will run without a web browser in the Adobe AIR runtime environment.
  • The free software reimplementation of Flash, GNU Gnash, which is under development, can also run Flash widgets outside of a browser.
  • Independent software vendors propose to embed the flash application into an executable: MDM Zinc, mProjector and more. Those solutions are cross-platform (depending on the vendors solution).

Based on XML

Based on Ajax

General

RIAs

Framework

Resource-based

Based on SVG

  • Raphaël is a JavaScript toolkit for SVG interfaces and animations

Based on Java

  • The Abstract Window Toolkit (AWT) is Sun Microsystems' original widget toolkit for Java applications. It typically uses another toolkit on each platform on which it runs.
  • Swing is a richer widget toolkit supported since J2SE 1.2 as a replacement for AWT widgets. Swing is a lightweight toolkit, meaning it does not rely on native widgets.
  • Apache Pivot is an open-source platform for building rich web applications in Java or any JVM-compatible language, and relies on the WTK widget toolkit.
  • JavaFX
  • The Standard Widget Toolkit (SWT) is a native widget toolkit for Java that was developed as part of the Eclipse project. SWT uses a standard toolkit for the running platform (such as the Windows API or GTK+) underneath.
  • Qt Jambi, the official Java binding to Qt from Trolltech. The commercial support and development has stopped[4]

Based on Object Pascal

  • IP Pascal uses a graphics library built on top of standard language constructs. Also unusual for being a procedural toolkit that is cross-platform (no callbacks or other tricks), and is completely upward compatible with standard serial input and output paradigms. Completely standard programs with serial output can be run and extended with graphical constructs.
  • Lazarus LCL (for Pascal, Object Pascal and Delphi programming language via Free Pascal compiler), a class library wrapping GTK+ 1.2, Gtk+ 2.x and the Windows API (Carbon, Windows CE and Qt4 support are all in development).
  • fpGUI is created with the Free Pascal compiler. It doesn't rely on any large 3rdParty libraries and currently runs on Linux, Windows and Windows CE. A Carbon (Mac OS X) port is under way.
  • CLX (Component Library for Cross-platform), used with Borland's Delphi, C++ Builder, and Kylix, for producing cross-platform applications. It is based on Qt, wrapped in such a way that its programming interface is similar to that of the VCL toolkit.

Based on Ada

  • RAPID is the Rapid Ada Portable Interface Design tool. Current implementations utilize the TASH binding to Tcl/Tk, the GNAT to JVM compiler, the Microsoft .NET Framework, or GtkAda.
  • GWindows is a GUI framework that mostly supports Windows development, but also has incomplete implementations for Mac OS X and Linux.
  • QtAda, the official Ada binding to Qt.

Based on Objective-C

Based on Eiffel

  • EiffelVision is a cross-platform, object-oriented framework for graphical user interface development.

Not yet categorised

Perbandingan -- widget toolkits

ToolkitInitial releaseLatest releaseMain languageBindingsToolsLicenseProsConsBack-end
Agar  C  BSDportable, unique across platforms, fast, low-levelno property grid
Xaw / Athena1983 C     
AWT1995 Java   portable 
Clutter2006 CPerl, Python, C#, C++, Vala, Ruby LGPLGTK+ and WebKit embedding 
Elementary2007 (EFL: 2001)2011CJavaScript, Python, Vala, C++editje, edjeLGPLPortable, stable, fast, finger-friendly 
FLTK1998 C++Python (pyFLTK), Perl (FLTK.pm), Ruby (Ruby/FLTK), Tcl (Tcl Fltk), Guile (guile-fltk), Eiffel (IFLTK)FLUID (Fast Light UI Designer)LGPL (with an exception that allows static linking)fast, small enough to static linklimited widget selection
FOX1997 C++Ruby (FXRuby), Python (FXPy), Eiffel (EiffelFox)  consistent across platformsnon-native look and feel
GLUI  C++     
GNUstep19942010Objective-CJava, Ruby, SchemeGorm (computing)GPL for the apps, LGPL for the libs  X11
GTK+19972011-04-15CC++ (gtkmm), Perl (Gtk2-perl), Ruby (ruby-gtk2), Python (PyGTK), Haskell (Gtk2Hs), Java (java-gnome) (not available for Microsoft Windows), C# (Gtk#), PHP (PHP-GTK), Ada (GTKAda), D (gtkD), FreeBasic (GladeToBac), Go (go-gtk), OCaml (lablgtk), JavaScript (Gjs, Seed), Fortran (gtk-fortran), Lua (lua-lgi), R (RGtk2) and others via GTK-serverGladeLGPLPortable, stable API, free licensePartly native only.[5][6]
IUP19922011[7]CLua (IupLua)[8]LEDC: a compiler for LEDMITPortable, lightweight, use the native API, native look&feel, free licenceNon‑Unicode (only plain ASCII) [9]
KWWidgets  C++Tcl/Tk, PythonVisualStudio, gccBSDportable 
Motif / Lesstif1980s C BX Pro   
MWT Multi-Platform Widget Toolkit2000-11-152009-10-20C/C++Ruby, Perl, Python, Java, Objective CamlWideStudio Application Builder, Eclipse/NABMIT Licensevery portable, many language bindings (incl. embeded systems) 
Nana20072011-12-05C++ VisualStudio, Dev-C++, Code::Blocks, GCC portable, lightweight, C++ style 
NTK20122012C++  LGPLFree license, portable, stable, fast 
Qt19912011-05-04C++Ruby (QtRuby), Python (PyQt, PySide, PythonQt), Ada (QtAda), c# ( Qyoto), Java (Qt Jambi), Pascal ( FreePascal Qt4 ), Perl (Perl Qt4), PHP(PHP-Qt), Haskell (Qt Haskell), Lua (lqt, QtLua), Dao ( DaoQt), Tcl ( qtcl ), Common Lisp (CommonQt), D (QtD), Harbour (hbqt)Qt Designer, Qt CreatorGPL, LGPL.[10]Portable, rich widget set, GUI builder, free license, stable APIPartially native only.[11][12]
SWT  JavaD (DWT[disambiguation needed])Eclipse portable 
Swing1996 Java Eclipse, NetBeans Portable (Java), advanced widgets, GUI builders 
Tk  TclRuby (RubyTk), Python (Tkinter), Perl (Perl/Tk), Ada (TASH), CommonLisp (LTk), Erlang (etk), ... | BSDvery portable, many language bindings 
Ultimate++2004 C++ TheIDEBSDportable, NTL, free license 
VCF  C++  BSDfree license 
Windows Forms  CLI languagesCLI languagesExpression, Visual Studio  portability issues, no MVC
WPF / XAML / Silverlight2007 CLI languagesCLI languagesExpression, Visual Studio  Portability issues
MFC / WinAPI1992 C++ Visual Studio  not portable (but Wine implements it for X Window)
ATL / WTL2004 C++ Visual Studio  not portable
wxWidgets19922011-03-28C++C++ (native), Ruby (wxRuby), Python (wxPython), Perl (wxPerl), Java (wxJava, jwx!), Lua (wxLua), Tcl(wxTCL), JavaScript (GLUEscript), Smalltalk (wxSqueak), Erlang (wxErlang), Haskell (wxHaskell), C (wxC), D (wxD), .NET Framework (wxNet), Common Lisp (wxCL), Basic (wxBasic), BlitzMax (wxMax), Euphoria (wxEuphoria), Ada (wxAda), Pike (wxPike)VisualWx, Boa Constructor, PythonCard, Spe, XRCed, wxGlade, wxFormBuilder, DialogBlocks ($), wxDesigner ($), Philasmicos Entwickler StudiowxWindows LicensePortable, rich widget set, free licence, semantic similarities to MFC make migration easy. 
XUL  XML/JavaScript   portable 
YAAF  C++     
SmartWin++  C++     
Juce2004 C++ JucerGPL  
XVT19892010C and C++ Design for C and architect for C++ C ross-platform, rich widget set, C and C++ GUI builders, very stable 
NUI  C++ YapukaGPL and proprietary  
CLX  C++     
InterViews  C++     
VCL  Delphi     
tekUI  C / Lua     
ToolkitInitial releaseLatest releaseMain languageBindingsToolsLicenseProsCons

See also

References

  1. ^ Microsoft: MS Windows NT Kernel-mode User
  2. ^ Techworld: Microsoft to move graphics outside OS kernel
  3. ^ This version provides the core API of the .NET Framework 2.0, but its implementation of this API is still incomplete.
  4. ^ Qt Software to discontinue Qt Jambi after 4.5 release
  5. ^ Migrating to client-side windows: “GDK looks for the GDK_NATIVE_WINDOWS environment variable and makes all windows native if it is set. It also tries to be more compatible with the way prior versions worked in some other ways.”
  6. ^ Coding Horror: Non-Native UI Sucks: “[…] has a cross-platform UI based on GTK, which produces predictably bland, least-common-denominator results:”
  7. ^ http://sourceforge.net/projects/iup/f iles/3.5/
  8. ^ http://www.tecgraf.puc-rio.br/iup/
  9. ^ Comparing IUP with Other Interface Toolkits: “[…] it does not have support for Unicode characters.”
  10. ^ LGPL License Option Added to Qt
  11. ^ Nokia Announces Qt 5 Plans - Slashdot: “Qt doesn't use native widgets. They never have. What they have recently changed is using the native drawing APIs. That is not the same thing.”
  12. ^ WxWidgets Compared To Other Toolkits: “Qt doesn't have true native ports like wxWidgets does. Qt does not use system provided widgets, but emulates it with themes. What we mean by this is that even though Qt draws them quite realistically, Qt draws its own widgets on each platform.”

External links

(Sebelumnya) List of web testing toolsLists of programming languages (Berikutnya)