Glade Interface Designer

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Glade
Original authorDamon Chaplin[1][2][3][4][5]
DeveloperThe GNOME Project
Initial release18 April 1998; 27 years ago (1998-04-18)[6]
Final release
3.40 / 10 August 2022; 3 years ago (2022-08-10)
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Written inC, XML
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemUnix-like, Windows[7]
    Platform GNU/Linux, Unix-like
    SuccessorCambalache Interface Designer
    Type
    LicenseGNU General Public License

    Glade Interface Designer is a graphical user interface builder for GTK, with additional components for GNOME. In its third version, Glade is programming language–independent, and does not produce code for events, but rather an XML file that is then used with an appropriate binding (such as GtkAda for use with the Ada programming language).

    Glade is free and open-source software distributed under the GNU General Public License. Glade's development and maintenance ceased in 2022, with the final release on 10 August 2022.[8]

    History and development

    [edit | edit source]

    The first Glade release, version 0.1, was made on 18 April 1998.[6]

    Glade 3 was released on 12 August 2006. According to the Glade Web site, the most noticeable differences for the end-user are:

    • Undo and redo support in all operations.
    • Support for multiple open projects.
    • Removal of code generation.
    • Contextual help system with Devhelp

    Most of the difference is in the internals. Glade-3 is a complete rewrite, in order to take advantage of the new features of GTK+ 2 and the GObject system (Glade-3 was started when Glade-1 hadn't yet been ported to GTK+ 2). Therefore, the Glade-3 codebase is smaller and allows new interesting things, including:

    • Catalogs of "pluggable" widgets. This means that external libraries can provide their set of widgets at runtime and Glade will detect them. In fact, Glade 3 supports only standard GTK widgets; GNOME UI and DB widgets are provided separately.
    • The various Glade Tools (palette, editor, etc.) are implemented as widgets. This allows for easier integration in IDEs like Anjuta, and makes it easier to change the Glade UI.

    On 5 April 2011, two parallel installable stable Glade versions[9][10][11] were released:

    • Glade 3.8: That includes all support for GTK+ up till version 2.24. This version is to serve as a decent migration path for older projects migrating to GTK+ 3.0.
    • Glade 3.10: That includes support only for widgets that are still included in GTK+ 3.0 and additionally drops support for Libglade.

    On 11 June 2015 Glade 3.19.0 was released. It depends at least on GTK+ 3.16.0. Among many bug fixes this version is the first to support the widgets GtkStack, GtkHeaderBar and GtkSidebar.[12]

    GtkBuilder

    [edit | edit source]

    GtkBuilder is the XML format that the Glade Interface Designer uses to save its forms. These documents can then be used in conjunction with the GtkBuilder object to instantiate the form using GTK. GladeXML is the XML format that was used with conjunction with libglade, which is now deprecated.[13]

    Glade Interface Designer automatically generates all the source code for a graphical control element.

    The "Gtk.Builder class" allows user interfaces to be designed without writing code.[14] The class describes the interface in an Extensible Markup Language (XML) file and then loads the XML description at runtime and creating the objects automatically. The Glade Interface Designer allows creation of the user interface in a WYSIWYG manner. The description of the user interface is independent from the programming language being used.

    Code sketching

    [edit | edit source]

    Code sketchers are software applications that help a user create source code from a GladeXML file. Most code sketchers create source code which uses libglade and a GladeXML file to create the GUI. Some sketchers are able to create raw code that does not need the GladeXML file. The table below compares basic information about GladeXML code sketcher packages.

    Name Author Programming languages Software license
    eglade Archived 13 May 2018 at the Wayback Machine Daniel Elphick Eiffel Eiffel Forum License
    Gladex Christopher Pax and Charles Edward Pax Perl, Python, Ruby GPLv3
    glc Bill Allen Python LGPL
    ruby-glade-create-template Archived 7 June 2013 at the Wayback Machine Masao Mutoh Ruby
    Tepache Sandino Flores Moreno Python LGPL
    GladeToBac Thomas Freiherr FreeBASIC (includes headers for GTK-3 and

    GTK-2.22.0 / GTKGlExt-1.2.0)

    GPLv3
    Glade2FB Arnel Borja FreeBASIC GPLv3
    gate3 F. J. Fabien Ada MIT License

    Cambalache

    [edit | edit source]
    Cambalache
    Original authorJuan Pablo Ugarte
    Repositoryhttps://gitlab.gnome.org/jpu/cambalache
    Written inPython
    Engine
      Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
      Operating systemUnix-like
      PredecessorGlade Interface Designer
      Type
      LicenseGNU Lesser General Public License
      Websitehttps://flathub.org/apps/ar.xjuan.Cambalache

      Cambalache (/kambaˈlat͡ʃe/)[15] is a free and open-source rapid application development (RAD) tool[16][17][18] designed for creating user interfaces with GTK 4. It is designed as a successor to Glade,[19][20] with a focus on supporting the GTK 4 library while maintaining compatibility with GTK 3. Cambalache is geared toward developers working within the GNOME ecosystem. Cambalache's design emphasizes the Model-View-Controller (MVC) architecture, ensuring separation between the UI components and the business logic of applications.

      The UI editing workspace is driven by a separate process called Merengue which interfaces with Casilda, a Wayland compositor embedded in a GTK widget. This architectural choice improves stability by separating the user interface preview from the main application. This separation enables the system to handle different GTK versions efficiently, ensuring the rendered UI accurately mirrors the application's appearance and behavior.[21]

      See also

      [edit | edit source]

      References

      [edit | edit source]
      1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value). Appendix B The GNOME Project > B.5.3 Programming Tools > ..."Of particular interest is Damon Chaplin's Glade..."
      4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      6. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      7. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      8. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      9. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      10. ^ Glade 3.8.0 and 3.10.0 released, Tuesday 5 April 2011 by Tristan Van Berkom – Glade 3.8.0 and 3.10.0 are now available for download. 3.8 is the last stable series of Glade for GTK+2 and 3.10 is the first stable series for GTK+3
      11. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      12. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      13. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      14. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      15. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      16. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      17. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      18. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      19. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      20. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      21. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
      [edit | edit source]