slitaz-dev-tools rev 66

tazyad: tiny edits
author Paul Issott <paul@slitaz.org>
date Wed Apr 06 17:23:48 2011 +0100 (2011-04-06)
parents 1bad02cad0b4
children cb635b5b55a4
files tazyad/README tazyad/TODO tazyad/tazyad
line diff
     1.1 --- a/tazyad/README	Wed Apr 06 17:08:13 2011 +0100
     1.2 +++ b/tazyad/README	Wed Apr 06 17:23:48 2011 +0100
     1.3 @@ -2,12 +2,12 @@
     1.4  ================================================================================
     1.5  
     1.6  
     1.7 -Yad is the new prefered way to create GUI boxes for SliTaz desktop. We use
     1.8 +Yad is the new prefered way to create GUI boxes for the SliTaz desktop. We use
     1.9  Yad GTK boxes for all user and administrator interfaces that can't be handled
    1.10  by TazPanel (admin panel) or TazDE (desktop environment). Both are powered
    1.11 -by CGI scripts and use xHTML 5 and CSS 3 for the UI. Yad is a powerfull tool
    1.12 -witch support latest GTK actions and goodies. With our original GTKdialog
    1.13 -scripts some nice features was missing like for example --notification or
    1.14 +by CGI scripts and use xHTML 5 and CSS 3 for the UI. Yad is a powerful tool
    1.15 +which supports the latest GTK actions and goodies. With our original GTKdialog
    1.16 +scripts some nice features were missing like for example --notification or
    1.17  ENTER for event (with gtkdialog one must press a button).
    1.18  
    1.19  If you motivated to code, please have a look at the TODO file and continue
    1.20 @@ -16,8 +16,8 @@
    1.21  
    1.22  Coding guidlines
    1.23  ----------------
    1.24 -Use a function and a function_main for main= variable to keep datas,
    1.25 -that way we can have yad boxes commands separated from shell script.
    1.26 +Use a function and a function_main for main= variable to keep data,
    1.27 +that way we can have yad boxes commands separated from shell scripts.
    1.28  Here is a structure example:
    1.29  
    1.30  # function_main
    1.31 @@ -25,23 +25,23 @@
    1.32  # function
    1.33  
    1.34  Use gettext to have a translated application and forget echo. Use 'case'
    1.35 -as most as possible, it is the faster way to handle or parse commands
    1.36 +as much as possible, it is the faster way to handle or parse commands
    1.37  and options. Use fgrep when possible.
    1.38  
    1.39  To start you will find a template script called tazyad, copy it and start
    1.40 -coding from that :-). Tazyad is commented to help you getting started.
    1.41 -You can also have a look to tazpkg-notify who was the first official Yad
    1.42 +coding from that :-). Tazyad is commented to help you get started.
    1.43 +You can also have a look to tazpkg-notify which was the first official Yad
    1.44  script for SliTaz.
    1.45  
    1.46  
    1.47  Missing stuff
    1.48  -------------
    1.49 -I'm member og Yad Google group and will mail them about SliTaz using Yad
    1.50 -and these missing features. Yad is a small projetc but the maintainer seems
    1.51 -a very nice guy who listen th his users :-)
    1.52 +I'm a member of Yad Google group and will mail them about SliTaz using Yad
    1.53 +and these missing features. Yad is a small project but the maintainer seems
    1.54 +a very nice guy who listens to his users :-)
    1.55  
    1.56  	* It would be nice to have an --exit or --kill option for notification
    1.57 -	* Not way to have a custom icon for custom button
    1.58 +	* No way to have a custom icon for custom button
    1.59  
    1.60  
    1.61  ================================================================================
     2.1 --- a/tazyad/TODO	Wed Apr 06 17:08:13 2011 +0100
     2.2 +++ b/tazyad/TODO	Wed Apr 06 17:23:48 2011 +0100
     2.3 @@ -1,10 +1,10 @@
     2.4  
     2.5  
     2.6 -	* desktopbox will be splitted into TazDE (planned for 5.0) for autostart
     2.7 -	  and Yad for logoutbox to replace 'desktopbox --logout' other function
     2.8 -	  are no more needed since user can add icon on desktop via LXpanel menu.
     2.9 +	* desktopbox will be split into TazDE (planned for 5.0) for autostart
    2.10 +	  and Yad for logoutbox to replace 'desktopbox --logout'. Other functions
    2.11 +	  are no longer needed since users can add icons on the desktop via LXpanel menu.
    2.12  	  
    2.13 -	* subox to repplace existing GTKdialog subox
    2.14 +	* subox to replace existing GTKdialog subox
    2.15  
    2.16  	* Improve tazpkg-notify
    2.17  	
     3.1 --- a/tazyad/tazyad	Wed Apr 06 17:08:13 2011 +0100
     3.2 +++ b/tazyad/tazyad	Wed Apr 06 17:23:48 2011 +0100
     3.3 @@ -20,8 +20,8 @@
     3.4  		--entry-text="install" "remove" "list" "upgrade"
     3.5  }
     3.6  
     3.7 -# This is a function, usually the same name than the command if script
     3.8 -# have multiple commands an options.
     3.9 +# This is a function, usually the same name as the command if scripts
    3.10 +# have multiple commands and options.
    3.11  skel() {
    3.12  	# Store box results
    3.13  	main=`skel_main`
    3.14 @@ -29,7 +29,7 @@
    3.15  	# Deal with --button values
    3.16  	case $ret in
    3.17  		1) exit 0 ;;
    3.18 -		2) echo "Additonal button action" && exit 0 ;;
    3.19 +		2) echo "Additional button action" && exit 0 ;;
    3.20  		*) continue ;;
    3.21  	esac
    3.22  	# Deal with $main values