home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Enlightenment
/
enl14.tgz
/
enl14.tar
/
enl14
/
conf
< prev
next >
Wrap
Text File
|
1997-11-21
|
9KB
|
284 lines
begin images
begin class
name BUTTON1
unloadable yes
image normal gfx/rot1.ppm border 2 2 2 2
image hilited gfx/rot2.ppm border 2 2 2 2
image clicked gfx/rot3.ppm border 2 2 2 2
image disabled gfx/rot4.ppm border 2 2 2 2
end
begin class
name BUTTON2
unloadable yes
image normal gfx/x1.ppm shape 255 0 255
image hilited gfx/x2.ppm shape 255 0 255
image clicked gfx/x3.ppm shape 255 0 255
end
begin class
name BUTTON3
unloadable yes
image normal gfx/b1.ppm shape 255 0 255 border 0 0 0 0
image hilited gfx/b2.ppm shape 255 0 255 border 0 0 0 0
image clicked gfx/b3.ppm shape 255 0 255 border 0 0 0 0
image disabled gfx/b4.ppm shape 255 0 255 border 0 0 0 0
end
begin class
name DEFAULT_OK
unloadable yes
image normal gfx/ok1.ppm shape 255 0 255 border 4 4 4 4
image hilited gfx/ok2.ppm shape 255 0 255 border 4 4 4 4
image clicked gfx/ok3.ppm shape 255 0 255 border 4 4 4 4
image disabled gfx/ok4.ppm shape 255 0 255 border 4 4 4 4
end
begin class
name SLIDER_H_BASE
unloadable yes
image normal gfx/base2.ppm shape 255 0 255 border 6 6 11 11
end
begin class
name SLIDER_V_BASE
unloadable yes
image normal gfx/base1.ppm shape 255 0 255 border 11 11 6 6
end
begin class
name SLIDER_H_KNOB
unloadable yes
image normal gfx/slider1b.ppm shape 255 0 255 border 0 0 0 0
image hilited gfx/slider2b.ppm shape 255 0 255 border 0 0 0 0
image clicked gfx/slider3b.ppm shape 255 0 255 border 0 0 0 0
end
begin class
name SLIDER_V_KNOB
unloadable yes
image normal gfx/slider1.ppm shape 255 0 255 border 0 0 0 0
image hilited gfx/slider2.ppm shape 255 0 255 border 0 0 0 0
image clicked gfx/slider3.ppm shape 255 0 255 border 0 0 0 0
end
begin class
name ROTATE1
unloadable yes
image normal gfx/r1.ppm shape 255 0 255
image hilited gfx/r2.ppm shape 255 0 255
image clicked gfx/r3.ppm shape 255 0 255
image disabled gfx/r4.ppm shape 255 0 255
end
begin class
name MOVE1
unloadable yes
image normal gfx/m1.ppm shape 255 0 255
image hilited gfx/m2.ppm shape 255 0 255
image clicked gfx/m3.ppm shape 255 0 255
image disabled gfx/m4.ppm shape 255 0 255
end
begin class
name JUSTIFY1
unloadable yes
image normal gfx/j1.ppm shape 255 0 255
image hilited gfx/j2.ppm shape 255 0 255
image clicked gfx/j3.ppm shape 255 0 255
image disabled gfx/j4.ppm shape 255 0 255
end
begin class
name FLIP1
unloadable yes
image normal gfx/f1.ppm shape 255 0 255
image hilited gfx/f2.ppm shape 255 0 255
image clicked gfx/f3.ppm shape 255 0 255
image disabled gfx/f4.ppm shape 255 0 255
end
begin class
name LOCK1
unloadable yes
image normal gfx/l1.ppm shape 255 0 255
image hilited gfx/l2.ppm shape 255 0 255
image clicked gfx/l3.ppm shape 255 0 255
end
end
begin sliders
begin class
name SLIDER_CLASS1
begin horizontal
base image_class SLIDER_H_BASE
base thickness 24
insets 14 14
knob image_class SLIDER_H_KNOB
knob location -12 -12 size 24 24
end
begin vertical
base image_class SLIDER_V_BASE
base thickness 24
insets 14 14
knob image_class SLIDER_V_KNOB
knob location -12 -12 size 24 24
end
end
end
begin buttons
begin strip
name STRIP_1
orientation vertical
# orientation horizontal
justification 0%
location handle bottomleft from bottomleft at -0 -0
end
begin strip
name STRIP_2
orientation horizontal
justification 0%
strip STRIP_1 start
end
begin button
name B1
image_class BUTTON1
begin geometry
# there are a few formats, depending on how you class buttons. there are
# standalone buttons that are independant of any others and will stay where
# they are put, and others can be collected into groups, whihc "auto-format"
# themselves.
# format for a geometry entry:
# size is optional. if not specified original image size is used. size can
# always be specifed, but is optional.
size 32 32
# size 32@1152 32@864
# size 32@1152 64
# location has 2 formats, this one which is for "standalone" buttons, which
# can be placed onscreen at absolute or scalable (the x@X notation) placings.
# there are also macros (topleft,topright,...,middle, etc.) that determine
# which point on the button is to be placed, then from what point onscreen the
# location co-ordinates are to be measured from, and then finally simple
# integer figures for the location from that point.
# location handle 31@32 31@32 from 1151@1152 863@864 at -2 -2
# location handle bottomleft from 0@1152 0@864 at 0 0
# location handle bottomright from topleft at 30 10
# location handle topleft from bottomright at 10 100
# location handle topright from 200@1152 100@864 at 200 200
# location handle middle from 200@1152 100@864 at 200 200
# the other format here allows you to arrange buttons into strips or bars
# of 1 button width. you can move an entire strip around and change the
# orientation ( horizontal or vertical ), but this strip must be defined frist
# before it can have buttons put into it. See above for strip stuff.
# you can add the button to the named strip, either at its start or end.
# adding to the start puts it on the left or top, shuffling all other buttons
# (if any) down, adding to the end just tags it to the right or bottom end.
strip STRIP_1 end
# strip STRIP_1 start
# the constraints are always allowed... but are optional
constrain width min 8 max 64
constrain height min 8 max 64
end
begin actions
# if the button is within a strip it can be used to control that strip...
# just like a window.
mouse down alt any locate_strip location handle bottomright from topleft at 30 10
mouse down none 1 move_strip
mouse up none 2 rotate_strip
mouse down ctrl 2 alert Control + Button 2\n
mouse down any 3 alert You have Pressed mouse button 3.\n
# even better.. this will save all buttons, and strip info in this strip in
# your user config files. ooh don't u just love it that E can save its own
# stuff now ? :)
mouse down shift 1 save_strip
mouse down ctrl+alt 1 exec xterm
mouse up shift any alert Any Button lifted with shift.\nYes you can do that\n
key up shift r exec Eterm
key up none q alert q key was just lifted\n
mouse enter shift any alert Mouse Enetered\nWith Shift held down\n
mouse leave ctrl any alert Mouse left with ctrl down\n1234567890\n
end
end
begin button
name B2
image_class BUTTON2
begin geometry
strip STRIP_1 end
end
begin actions
mouse up none 1 disable_button B1
mouse up none 2 enable_button B1
mouse up none 3 disable_button_toggle B1
end
end
begin button
name B3
image_class BUTTON3
begin geometry
strip STRIP_1 end
end
begin actions
mouse up none 1 justify_strip
mouse up none 2 exec Eterm &
mouse up none 3 exec xv &
mouse up shift 2 exec Eterm &
mouse up shift 2 exec xterm &
mouse up shift 2 exec rxvt &
end
end
begin button
name B4
image_class BUTTON3
begin geometry
location handle topleft from topleft at 5 5
end
begin actions
mouse down none 1 move_button
end
end
begin button
name ROTATE01
image_class ROTATE1
begin geometry
strip STRIP_2 end
end
begin actions
mouse up none 1 rotate_strip STRIP_1
mouse up none 3 rotate_strip
end
end
begin button
name MOVE01
image_class MOVE1
begin geometry
strip STRIP_2 end
end
begin actions
mouse down none 1 move_strip
end
end
begin button
name JUSTIFY01
image_class JUSTIFY1
begin geometry
strip STRIP_2 end
end
begin actions
mouse up none 1 justify_strip STRIP_1
end
end
begin button
name FLIP01
image_class FLIP1
begin geometry
strip STRIP_2 end
end
begin actions
mouse up none 1 flip_strip STRIP_1
mouse up none 3 flip_strip
end
end
begin button
name LOCK01
image_class LOCK1
begin geometry
strip STRIP_2 end
end
begin actions
mouse up none 1 disable_button_toggle ROTATE01
mouse up none 1 disable_button_toggle MOVE01
mouse up none 1 disable_button_toggle JUSTIFY01
mouse up none 1 disable_button_toggle FLIP01
end
end
end