home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Enlightenment / enl14.tgz / enl14.tar / enl14 / conf < prev    next >
Text File  |  1997-11-21  |  9KB  |  284 lines

  1. begin images
  2.   begin class
  3.     name          BUTTON1
  4.     unloadable    yes
  5.     image normal   gfx/rot1.ppm  border 2 2 2 2
  6.     image hilited  gfx/rot2.ppm  border 2 2 2 2
  7.     image clicked  gfx/rot3.ppm  border 2 2 2 2
  8.     image disabled gfx/rot4.ppm  border 2 2 2 2
  9.   end
  10.   begin class
  11.     name          BUTTON2
  12.     unloadable    yes
  13.     image normal   gfx/x1.ppm  shape 255 0 255
  14.     image hilited  gfx/x2.ppm  shape 255 0 255
  15.     image clicked  gfx/x3.ppm  shape 255 0 255
  16.   end
  17.   begin class
  18.     name          BUTTON3
  19.     unloadable    yes
  20.     image normal   gfx/b1.ppm  shape 255 0 255  border 0 0 0 0
  21.     image hilited  gfx/b2.ppm  shape 255 0 255  border 0 0 0 0
  22.     image clicked  gfx/b3.ppm  shape 255 0 255  border 0 0 0 0
  23.     image disabled gfx/b4.ppm  shape 255 0 255  border 0 0 0 0
  24.   end
  25.   begin class
  26.     name          DEFAULT_OK
  27.     unloadable    yes
  28.     image normal   gfx/ok1.ppm  shape 255 0 255  border 4 4 4 4
  29.     image hilited  gfx/ok2.ppm  shape 255 0 255  border 4 4 4 4
  30.     image clicked  gfx/ok3.ppm  shape 255 0 255  border 4 4 4 4
  31.     image disabled gfx/ok4.ppm  shape 255 0 255  border 4 4 4 4
  32.   end
  33.   begin class
  34.     name          SLIDER_H_BASE
  35.     unloadable    yes
  36.     image normal   gfx/base2.ppm  shape 255 0 255  border 6 6 11 11
  37.   end
  38.   begin class
  39.     name          SLIDER_V_BASE
  40.     unloadable    yes
  41.     image normal   gfx/base1.ppm  shape 255 0 255  border 11 11 6 6
  42.   end
  43.   begin class
  44.     name          SLIDER_H_KNOB
  45.     unloadable    yes
  46.     image normal   gfx/slider1b.ppm  shape 255 0 255  border 0 0 0 0
  47.     image hilited  gfx/slider2b.ppm  shape 255 0 255  border 0 0 0 0
  48.     image clicked  gfx/slider3b.ppm  shape 255 0 255  border 0 0 0 0
  49.   end
  50.   begin class
  51.     name          SLIDER_V_KNOB
  52.     unloadable    yes
  53.     image normal   gfx/slider1.ppm  shape 255 0 255  border 0 0 0 0
  54.     image hilited  gfx/slider2.ppm  shape 255 0 255  border 0 0 0 0
  55.     image clicked  gfx/slider3.ppm  shape 255 0 255  border 0 0 0 0
  56.   end
  57.   begin class
  58.     name          ROTATE1
  59.     unloadable    yes
  60.     image normal   gfx/r1.ppm  shape 255 0 255
  61.     image hilited  gfx/r2.ppm  shape 255 0 255
  62.     image clicked  gfx/r3.ppm  shape 255 0 255
  63.     image disabled gfx/r4.ppm  shape 255 0 255
  64.   end
  65.   begin class
  66.     name          MOVE1
  67.     unloadable    yes
  68.     image normal   gfx/m1.ppm  shape 255 0 255
  69.     image hilited  gfx/m2.ppm  shape 255 0 255
  70.     image clicked  gfx/m3.ppm  shape 255 0 255
  71.     image disabled gfx/m4.ppm  shape 255 0 255
  72.   end
  73.   begin class
  74.     name          JUSTIFY1
  75.     unloadable    yes
  76.     image normal   gfx/j1.ppm  shape 255 0 255
  77.     image hilited  gfx/j2.ppm  shape 255 0 255
  78.     image clicked  gfx/j3.ppm  shape 255 0 255
  79.     image disabled gfx/j4.ppm  shape 255 0 255
  80.   end
  81.   begin class
  82.     name          FLIP1
  83.     unloadable    yes
  84.     image normal   gfx/f1.ppm  shape 255 0 255
  85.     image hilited  gfx/f2.ppm  shape 255 0 255
  86.     image clicked  gfx/f3.ppm  shape 255 0 255
  87.     image disabled gfx/f4.ppm  shape 255 0 255
  88.   end
  89.   begin class
  90.     name          LOCK1
  91.     unloadable    yes
  92.     image normal   gfx/l1.ppm  shape 255 0 255
  93.     image hilited  gfx/l2.ppm  shape 255 0 255
  94.     image clicked  gfx/l3.ppm  shape 255 0 255
  95.   end
  96. end
  97.  
  98. begin sliders
  99.   begin class
  100.     name SLIDER_CLASS1
  101.     begin horizontal
  102.       base   image_class SLIDER_H_BASE
  103.       base   thickness   24
  104.       insets 14 14
  105.       knob   image_class SLIDER_H_KNOB
  106.       knob   location -12 -12 size 24 24
  107.     end
  108.     begin vertical
  109.       base   image_class SLIDER_V_BASE
  110.       base   thickness   24
  111.       insets 14 14
  112.       knob   image_class SLIDER_V_KNOB
  113.       knob   location -12 -12 size 24 24
  114.     end
  115.   end
  116. end
  117.  
  118. begin buttons
  119.   begin strip
  120.     name          STRIP_1
  121.     orientation   vertical
  122. #    orientation   horizontal
  123.     justification  0%
  124.     location      handle   bottomleft from bottomleft at -0 -0
  125.   end
  126.   begin strip
  127.     name          STRIP_2
  128.     orientation   horizontal
  129.     justification 0%
  130.     strip         STRIP_1 start
  131.   end
  132.   begin button
  133.     name        B1
  134.     image_class BUTTON1
  135.     begin geometry
  136. # there are a few formats, depending on how you class buttons. there are
  137. # standalone buttons that are independant of any others and will stay where
  138. # they are put, and others can be collected into groups, whihc "auto-format"
  139. # themselves.
  140. # format for a geometry entry:
  141. # size is optional. if not specified original image size is used. size can
  142. # always be specifed, but is optional.
  143.       size     32 32
  144. #     size     32@1152 32@864
  145. #     size     32@1152 64
  146. # location has 2 formats, this one which is for "standalone" buttons, which
  147. # can be placed onscreen at absolute or scalable (the x@X notation) placings.
  148. # there are also macros (topleft,topright,...,middle, etc.) that determine
  149. # which point on the button is to be placed, then from what point onscreen the
  150. # location co-ordinates are to be measured from, and then finally simple
  151. # integer figures for the location from that point.
  152. #      location handle 31@32 31@32 from 1151@1152 863@864 at -2 -2  
  153. #     location handle bottomleft  from 0@1152 0@864      at 0 0  
  154. #     location handle bottomright from topleft           at 30 10 
  155. #     location handle topleft     from bottomright       at 10 100
  156. #     location handle topright    from 200@1152 100@864  at 200 200
  157. #     location handle middle      from 200@1152 100@864  at 200 200
  158. # the other format here allows you to arrange buttons into strips or bars
  159. # of 1 button width. you can move an entire strip around and change the
  160. # orientation ( horizontal or vertical ), but this strip must be defined frist
  161. # before it can have buttons put into it. See above for strip stuff.
  162. # you can add the button to the named strip, either at its start or end.
  163. # adding to the start puts it on the left or top, shuffling all other buttons
  164. # (if any) down, adding to the end just tags it to the right or bottom end.
  165.      strip STRIP_1 end
  166. #      strip STRIP_1 start
  167. # the constraints are always allowed... but are optional
  168.       constrain width  min 8  max 64
  169.       constrain height min 8  max 64
  170.     end
  171.     begin actions
  172. # if the button is within a strip it can be used to control that strip...
  173. # just like a window.
  174.       mouse down  alt      any locate_strip location handle bottomright from topleft           at 30 10
  175.       mouse down  none       1 move_strip
  176.       mouse up    none       2 rotate_strip
  177.       mouse down  ctrl       2 alert Control + Button 2\n
  178.       mouse down  any        3 alert You have Pressed mouse button 3.\n
  179. # even better.. this will save all buttons, and strip info in this strip in
  180. # your user config files. ooh don't u just love  it that E can save its own
  181. # stuff now ? :)
  182.       mouse down  shift      1 save_strip
  183.       mouse down  ctrl+alt   1 exec xterm
  184.       mouse up    shift      any alert Any Button lifted with shift.\nYes you can do that\n
  185.       key   up    shift      r exec Eterm
  186.       key   up    none       q alert q key was just lifted\n
  187.       mouse enter shift     any alert Mouse Enetered\nWith Shift held down\n
  188.       mouse leave ctrl      any alert Mouse left with ctrl down\n1234567890\n
  189.     end
  190.   end
  191.   begin button
  192.     name B2
  193.     image_class BUTTON2
  194.     begin geometry
  195.       strip STRIP_1 end
  196.     end
  197.     begin actions
  198.       mouse up none 1 disable_button B1
  199.       mouse up none 2 enable_button B1
  200.       mouse up none 3 disable_button_toggle B1
  201.     end
  202.   end
  203.   begin button
  204.     name B3
  205.     image_class BUTTON3
  206.     begin geometry
  207.       strip STRIP_1 end
  208.     end
  209.     begin actions
  210.       mouse up none 1 justify_strip
  211.       mouse up none 2 exec Eterm &
  212.       mouse up none 3 exec xv &
  213.       mouse up shift 2 exec Eterm &
  214.       mouse up shift 2 exec xterm &
  215.       mouse up shift 2 exec rxvt &
  216.     end
  217.   end
  218.   begin button
  219.     name B4
  220.     image_class BUTTON3
  221.     begin geometry
  222.       location handle topleft     from topleft       at 5 5
  223.     end
  224.     begin actions
  225.       mouse down none 1 move_button
  226.     end
  227.   end
  228.   begin button
  229.     name ROTATE01
  230.     image_class ROTATE1
  231.     begin geometry
  232.       strip STRIP_2 end
  233.     end
  234.     begin actions
  235.       mouse up   none 1 rotate_strip STRIP_1
  236.       mouse up   none 3 rotate_strip
  237.     end
  238.   end
  239.   begin button
  240.     name MOVE01
  241.     image_class MOVE1
  242.     begin geometry
  243.       strip STRIP_2 end
  244.     end
  245.     begin actions
  246.       mouse down none 1 move_strip
  247.     end
  248.   end
  249.   begin button
  250.     name JUSTIFY01
  251.     image_class JUSTIFY1
  252.     begin geometry
  253.       strip STRIP_2 end
  254.     end
  255.     begin actions
  256.       mouse up none 1 justify_strip STRIP_1
  257.     end
  258.   end
  259.   begin button
  260.     name FLIP01
  261.     image_class FLIP1
  262.     begin geometry
  263.       strip STRIP_2 end
  264.     end
  265.     begin actions
  266.       mouse up none 1 flip_strip STRIP_1
  267.       mouse up none 3 flip_strip
  268.     end
  269.   end
  270.   begin button
  271.     name LOCK01
  272.     image_class LOCK1
  273.     begin geometry
  274.       strip STRIP_2 end
  275.     end
  276.     begin actions
  277.       mouse up none 1 disable_button_toggle ROTATE01
  278.       mouse up none 1 disable_button_toggle MOVE01
  279.       mouse up none 1 disable_button_toggle JUSTIFY01
  280.       mouse up none 1 disable_button_toggle FLIP01
  281.     end
  282.   end
  283. end
  284.