Created
March 18, 2009 02:06
-
-
Save NigelThorne/80890 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module UISpec | |
class UI < UIDefinition | |
def initialize(out) | |
super(out, "", "x.exe") | |
end | |
has_tab :slide_setup, {:name => "Slide Setup Tab", :action => show(:slide_setup_screen) } | |
has_screen :slide_setup_screen do | |
has_button :add_case, {:name => "Add Case", :action => show(:add_case_dialog) } | |
has_grid :active_cases_grid, {:name => "Active Cases Grid", :columns => ["Case Id", "Patient Name" , "Number of Slides"] } | |
end | |
has_dialog :add_case_dialog do | |
has_text_box :case_id | |
has_text_box :patient_name | |
has_drop_down :doctor | |
has_text_box :case_comments | |
has_radio_buttons :dispense_volume, { :name => "Dispense Volume", :v100ml => "100ml" ,:v150ml => "150ml" } | |
has_drop_down :preparation_protocol | |
has_button :ok | |
end | |
has_dialog :duplicate_id_dialog do | |
has_button :cancel | |
has_button :create_new | |
has_button :use_selected | |
end | |
has_menu :main_menu do | |
has_menu_option :file do | |
has_menu_option :exit, {:action => :exit } | |
end | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment