gutopia-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rgui-dev] update


From: Tom Sawyer
Subject: [rgui-dev] update
Date: Mon, 6 Jan 2003 01:51:14 -0700
User-agent: KMail/1.4.3

just to let you all know i'm still on the GUtopIa case, but i have to finish 
my accounting application ASAP. so it will be a little while before i get 
back to it. fell free to explore more ideas though. nows the time to do it!

here's the last bit of work i had done (there are actually a few other files 
too) but this will give you a taste. it is full on YAML doc using yaml's type 
definitions and namespaces (the !^ things). i also have some an idea for 
handling cli's which i haven't integrated yet.


--- !rubygui.org/clairvoyance/^interface

#
# eclipsecalc.interface
#

models:
  - eclipse

eclipse_form: !^container
  eclipse_menu: !^container
    file_menu:
      file_menu_req: !^include
        import_from: './filemenu.interface'
        include: file_menu
        attributes:
          fma: eclipse
        remove:
          - exit
        extend:
          close: !^action
            label: Close
            index: 3
            callback: eclipse.exit
    help_menu: !^container
      label: Help
      help: !^action
        label: Help
        index: 0
        callback: eclipse.help
      about: !^action
        label: About
        index: 1
        callback: eclipse.about
  entry_frame: !^container
    day: !^entry
      label: Day
      index: 0
      value: #{Time.now.day}
    month: !^entry
      label: Month
      index: 1
      value: #{Time.now.mon}
    year: !^entry
      label: Year
      index: 2
      value: #{Time.now.year}
  actions: !^container
    ok: !^action
      label: Ok
      callback: eclipse.calc(year, month, day)
    cancel: !^action
      label: Cancel
      callback: eclipse.exit
  message: !^text
    value: ''
    ok_pre_event: !^event
      on: eclipse_form.actions.ok
      order: pre
      value: Calculating...
    ok_post_event: !^event
      on: eclipse_form.actions.ok
      order: post
      value: >
        Next eclipse is on the
        #{eclipse.day}
        of #{eclipse.mon},
        #{eclipse.year}.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]