| 1 |
% |
| 2 |
% anyremote configuration file for kview management. |
| 3 |
% |
| 4 |
% Needs $PHOTO_DIR environment variable |
| 5 |
% |
| 6 |
|
| 7 |
% STATUS good |
| 8 |
% XTEST yes |
| 9 |
% SOUND no |
| 10 |
% ENV yes |
| 11 |
|
| 12 |
GuiAppName=Kview |
| 13 |
GuiAppBinary=kview |
| 14 |
GuiAppRun=echo 'A=`dcop 2> /dev/null|grep kview`; if [ "x$A" == "x" ]; then echo NOK; else echo OK; fi'|bash -f -s |
| 15 |
GuiAppIcon=kview.png |
| 16 |
GuiAppType=Application |
| 17 |
GuiAppProtocols=AT |
| 18 |
GuiAppDesc=KView is an image viewer program for the KDE (a part of the KDE Graphics package) |
| 19 |
GuiAppVersion=echo 'V=`kview -v|grep KDE|tr -d " "|cut -f 2 -d ":"|cut -f 1 -d "."`; if [ "x$V" == "x3" ]; then echo OK; else echo NOK; fi'|bash -f -s |
| 20 |
|
| 21 |
[Protocol]=AT |
| 22 |
|
| 23 |
(Init)=Include($(CfgDir)/Utils/aliases-at.cfg);\ |
| 24 |
Make(var,TwoWayComm,by_value,false);\ |
| 25 |
Make(var,Device,by_value,/dev/rfcomm0);\ |
| 26 |
Exec(echo 'if [ "x$PHOTO_DIR" == "x" ]; then $(CfgDir)/Utils/message.sh "ERROR: PHOTO_DIR environment variable is not set !"; fi'|bash -f -s);\ |
| 27 |
Exec(echo 'V=`amarok -v|grep KDE|tr -d " "|cut -f 2 -d ":"|cut -f 1 -d "."`; if [ "x$V" == "x4" ]; then $(CfgDir)/Utils/message.sh "ERROR: this configuration file is for KDE3"; fi'|bash -f -s); |
| 28 |
|
| 29 |
% aliased keys |
| 30 |
Answer=Make(disconnect); |
| 31 |
Cancel=Exec(echo 'KVIEW=`dcop|grep kview`;dcop $KVIEW MainApplication-Interface quit'|bash -f -s); |
| 32 |
|
| 33 |
(Connect)=Exec(echo 'PIX=`ls -1 $PHOTO_DIR|head -1`;kview $PHOTO_DIR/$PIX --nocrashhandler &'|bash -f -s) |
| 34 |
|
| 35 |
|
| 36 |
1=Exec(echo 'PIX=`ls -1 $PHOTO_DIR|head -1`;kview $PHOTO_DIR/$PIX --nocrashhandler &'|bash -f -s) |
| 37 |
|
| 38 |
4=Emulate(keydown,Shift_L,key,Left,keyup,Shift_L) |
| 39 |
%5=Exec(echo 'K=`dcop|grep kview`;dcop $K KView maximize'|bash -f -s) |
| 40 |
5=Exec(echo 'K=`dcop|grep kview`;dcop $K KView activateAction fullscreen'|bash -f -s) |
| 41 |
6=Emulate(keydown,Shift_L,key,Right,keyup,Shift_L) |
| 42 |
|
| 43 |
7=Emulate(keydown,Control_L,key,minus,keyup,Control_L) |
| 44 |
%8=Exec(echo 'K=`dcop|grep kview`;dcop $K KView setGeometry 300 150 800 600'|bash -f -s) |
| 45 |
9=Emulate(keydown,Control_L,key,KP_Add,keyup,Control_L) |
| 46 |
|
| 47 |
* *=Exec(echo 'F="$HOME/.anyRemote/anyrem.hlp";echo "1 - Run kview " > $F;echo "4 - Previous 5 - Toggle Full Screen 6 - Next " >> $F;echo "7 - Size - 9 - Size +" >> $F;echo "* * - Help # - Quit" >> $F; kdialog -passivepopup "`cat $F`" 7' |bash -f -s) |
| 48 |
#=Exec(echo 'K=`dcop|grep kview`;dcop $K MainApplication-Interface quit'|bash -f -s) |
| 49 |
[End] |