
(use-modules (g-golf support sxml))


(define %plugin-root-dialog
  `(interface
    (requires (@ (version "4.0") (lib "gtk")))
    (template
     (@ (class "PluginRootDialog")
        (parent "GtkWindow"))
     (property (@ (name "title")
                  (translatable "yes")) "Plugin Setup")
     (property (@ (name "default-width")) 500)
     (property (@ (name "default-height")) 200)
     (property
      (@ (name "child"))
      (object
       (@ (class "GtkBox"))
       (property (@ (name "orientation")) "vertical")
       (property (@ (name "spacing")) 20)
       (property (@ (name "margin-start")) 20)
       (property (@ (name "margin-end")) 20)
       (property (@ (name "margin-top")) 20)
       (property (@ (name "margin-bottom")) 20)
       (child
        (object
         (@ (class "GtkBox"))
         (property (@ (name "orientation")) "horizontal")
         (property (@ (name "spacing")) 10)
         (child
          (object
           (@ (class "GtkLabel"))
           (property
            (@ (name "label"))
            "Function")
           (property (@ (name "halign")) "start")
           (property (@ (name "xalign")) 0.0)
           (property (@ (name "width-request")) 100)))
         (child
          (object
           (@ (class "GtkDropDown")
              (id "dropdown-index"))
           (property (@ (name "width-request")) 150)))
         (child
          (object
           (@ (class "GtkButton") (id "button-conf"))
           (property (@ (name "label")
                        (translatable "yes")) "Configure")))))
       (child
        (object
         (@ (class "GtkBox"))
         (property (@ (name "orientation")) "horizontal")
         (property (@ (name "spacing")) 10)
         (child
          (object
           (@ (class "GtkButton") (id "button-ok"))
           (property (@ (name "label")
                        (translatable "yes")) "Ok")
           (property (@ (name "width-request")) 150))))))))))


(define (make-ui)
  (sxml->ui %plugin-root-dialog))



         