Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/idesk/idesk.control.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2571 by niro, Thu Sep 17 10:09:32 2015 UTC revision 2572 by niro, Thu Sep 17 10:33:31 2015 UTC
# Line 2  Line 2 
2    
3  push_config idesk_icon  push_config idesk_icon
4    
 # control_input_keymap $serial  
 control_input_keymap()  
 {  
  local serial="${CLASS_ARGV[0]}"  
  push_config_input_keymap "${serial}"  
 }  
   
 push_config_input_keymap()  
 {  
  local serial="$1"  
  local value  
   
  value=$(mysqldo "select keymap from cfg_input where serial='${serial}'")  
  control_client "${serial}" set input.keymap "${value}"  
 }  
   
5  help_idesk_icon()  help_idesk_icon()
6  {  {
7   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
8   control_client "${serial}" help idesk.icon   control_client "${serial}" help idesk.icon
   
  mecho "get idesk.icon"  
  mecho " Shows all configured icons."  
  mecho  
  mecho "set idesk.icon [action] [name] [command] [icon] [filename] [x,y] [width,height] [default-icon]"  
  mecho " Adds or deletes an desktop icon."  
  mecho " [actions]:"  
  mecho "   add         - adds an icon"  
  mecho "   del         - deletes an icon"  
  mecho "                 if no [name] given, all desktop icons will be deleted"  
  mecho  
  mecho "   name         - Name of the icon"  
  mecho "   command      - command which will be run"  
  mecho "   icon         - icon pixmap [optional]"  
  mecho "   filename     - filename of the icon [optional]"  
  mecho "   x,y          - x,y position of the icon on the desktop [optional]"  
  mecho "   width,height - width and height of the icon [optional]"  
  mecho "   default-icon - default icon which will be selected if the icon pixmap was not found [optional]"  
9  }  }
10    
11  set_idesk_icon()  set_idesk_icon()

Legend:
Removed from v.2571  
changed lines
  Added in v.2572