1Widget_slider_item = class 2 Menuaction "_Slider" "make a new slider widget" { 3 icon = "nip-slider-16.png"; 4 action = Slider 0 255 128; 5} 6 7Widget_toggle_item = class 8 Menuaction "_Toggle" "make a new toggle widget" { 9 action = Toggle "untitled" false; 10} 11 12Widget_option_item = class 13 Menuaction "_Option" "make a new option widget" { 14 action = Option "untitled" ["option0", "option1"] 0; 15} 16 17Widget_string_item = class 18 Menuaction "St_ring" "make a new string widget" { 19 action = String "Enter a string" "sample text"; 20} 21 22Widget_number_item = class 23 Menuaction "_Number" "make a new number widget" { 24 action = Number "Enter a number" 42; 25} 26 27Widget_expression_item = class 28 Menuaction "_Expression" "make a new expression widget" { 29 action = Expression "Enter an expression" 42; 30} 31 32Widget_pathname_item = class 33 Menuaction "_File Chooser" "make a new file chooser widget" { 34 action = Pathname "Pick a file" 35 "$VIPSHOME/share/$PACKAGE/data/print_test_image.v"; 36} 37 38Widget_font_item = class 39 Menuaction "F_ont Chooser" "make a new font chooser widget" { 40 action = Fontname "Pick a font" Workspaces.Preferences.PAINTBOX_FONT; 41} 42