Sunday, November 30, 2025

DB GUI 0.3.0 & Glimmer DSL for LibUI 0.13.1 Released

DB GUI 0.3.0 & Glimmer DSL for LibUI (Ruby Desktop Development Cross-Platform Native GUI Library)  0.13.1 have been released. DB GUI now supports remembering multiple database profiles, including which one was last selected. Glimmer DSL for LibUI now supports combobox items data-binding. In the past, it supported combobox selected_item data-binding while assuming that the master items list is static (the older version of the C LibUI library had that limitation). After the last release, it now enables dynamically updating the items of a combobox as needed (the newer version of the wrapped C LibUI library now supports dynamic combobox items). This was useful for implementing the latest version of DB GUI as it will automatically add an item to a combobox's items upon saving a new database profile.

GitHub Projects:

    Ruby Gems:

    Screenshots to illustrate the latest changes: 


    DB GUI combobox with items data-binding:

    combobox { |me|
      label 'Selected Config:'
      items <= [db_presenter, :dbs, on_read: ->(dbs) { dbs.map(&:name) }]
      selected_item <=> [db_presenter, :selected_db_name]
      enabled <= [db_presenter, 'selected_db.connected', on_read: :!]
    }

    items are data-bound unidirectionally to the names of the database profiles (dbs) in the presenter. That means, if the user fills in the database profile config form and saves, the items of the combobox are automatically amended.

    Happy Glimmering!

    No comments: