From c89e94b735ed4f371296935096fcd1cc2754adc9 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 17 Oct 2001 09:53:07 +0000 Subject: [PATCH] iconbar code :) SVN revision: 5506 --- data/images/hline.png | Bin 0 -> 156 bytes data/images/ib_title.png | Bin 0 -> 348 bytes data/images/vline.png | Bin 0 -> 159 bytes data/scripts/build_iconbar_db.sh | 83 +++++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 data/images/hline.png create mode 100644 data/images/ib_title.png create mode 100644 data/images/vline.png create mode 100755 data/scripts/build_iconbar_db.sh diff --git a/data/images/hline.png b/data/images/hline.png new file mode 100644 index 0000000000000000000000000000000000000000..844cfacb00495a394b6e0ff1e517ffe5cdabb91a GIT binary patch literal 156 zcmeAS@N?(olHy`uVBq!ia0vp^l0eMJ!3HF?b6BSWDVB6cUq=Rpjs4tz5?O(Kwj^(N z7l!{JxM1({$v_d#0*}aI1_o|H5N51TiJu4*WH0gbb!ETE#ltA2`|ttZDxi?0r;B4q t#hm1nganSH1N_$593pD=XgyF7gQu&X%Q~loCICGzCiwsW literal 0 HcmV?d00001 diff --git a/data/images/ib_title.png b/data/images/ib_title.png new file mode 100644 index 0000000000000000000000000000000000000000..8bba4a6cf28b2898cd5eab22083034219ce4a7a5 GIT binary patch literal 348 zcmeAS@N?(olHy`uVBq!ia0vp^(LgN9!3HEXQzo?nDVB6cUq=Rpjs4tz5?O(Kwj^(N z7l!{JxM1({$v_d#0*}aI1_o{+5N5n|x9$&6kiEpy*OmPur;xCuEXxIl1kk}vsmqc`z4UD+C3ug2hTQ%d0D9gZmJU3?5n&u#ra z>G>MN_c^wI?_WLmt-tZ5_*> zsD{rztSou*`H{7eD_dP^CT`JBO08y@rg8Aq_m%S5akFOeNo6cKHLv%XyK1Z0!?iKz z_N&#cf0+MlzKZ80l}@4SkMG6LEIY?{#zZk?^W>E}+mGsoPiVd4CMLwBtCEx`SZowL pOIxU3ps903tBdHNO+MLQSeyPWQGZKHs-{an^LB{Ts57WpTS literal 0 HcmV?d00001 diff --git a/data/scripts/build_iconbar_db.sh b/data/scripts/build_iconbar_db.sh new file mode 100755 index 000000000..1cbadbf23 --- /dev/null +++ b/data/scripts/build_iconbar_db.sh @@ -0,0 +1,83 @@ +#!/bin/sh + +# db to create +DB="./.e_iconbar.db" + +# replace ICONDIR with where you keep icons, or just use full paths below +setup () +{ + NUM=0 + ICONDIR="/usr/share/pixmaps" + E_PREFIX="/usr/local" + rm -f $DB +} + +finish () +{ + edb_ed $DB add "/ib/num" int $NUM +} + +# usage: icon 'image_path' 'exec' +icon () +{ + edb_ed $DB add "/ib/"$NUM"/icon" str "$1" + edb_ed $DB add "/ib/"$NUM"/exec" str "$2" + NUM=$[ $NUM + 1 ]; +} + +config () +{ + edb_ed $DB add "/ib/"$1 int $2 +} + +str () +{ + edb_ed $DB add "/ib/"$1 str $2 +} +################################################# +## +## Define Icons here +## + +setup + +# title is put at top or left of bar, this may be removed in future +# vline/hline are the images that are repeated as borders for the bar / scroll region (for vert / horiz. bars). + +str 'image/title' $E_PREFIX'/share/enlightenment/data/images/ib_title.png' +str 'image/vline' $E_PREFIX'/share/enlightenment/data/images/vline.png' +str 'image/hline' $E_PREFIX'/share/enlightenment/data/images/hline.png' + +# 0 width / height makes it equal view's width / height, negative values for left/top go from bottowm right corner. scroll_w is used for both horizontal and vertical bars (i guess it should be renamed scroll_thikness or something). + +config 'geom/w' 0 +config 'geom/h' 75 +config 'geom/top' -75 +config 'geom/left' 0 +config 'geom/scroll_w' 16 +config 'geom/horizontal' 1 +config 'scroll_when_less' 0 + +# change icondir above, or replace with full pathname + +icon $ICONDIR'/gnome-term.png' 'Eterm' +icon $ICONDIR'/gnome-ccdesktop.png' 'sylpheed' +icon $ICONDIR'/netscape.png' 'netscape' +icon $ICONDIR'/gnome-irc.png' 'xchat' + +icon $ICONDIR'/gnome-gimp.png' 'gimp' +icon $ICONDIR'/mc/gnome-audio.png' 'xmms' +icon $ICONDIR'/home/raster/stuff/icons/star_office.png' '/home/raster/.desktop/Office' + +#icon $ICONDIR'/write.png' 'abiword' +#icon $ICONDIR'/spreadsheet.png' 'gnumeric' + +#icon $ICONDIR'/synth.png' 'SpiralSynth' +#icon $ICONDIR'/modsynth.png' 'SpiralSynthModular' +#icon $ICONDIR'/loops.png' 'SpiralLoops' +#icon $ICONDIR'/drakconf.png' 'gnomecc' +#icon $ICONDIR'/floppy.png' 'NULL' +#icon $ICONDIR'/trash.png' 'NULL' + +finish +