GUI Commands 2.0 has arrived! Find out what's new and improved.
Conditional Configuration

GUI Commands supports conditional configuration for Macs.  This allows you to specify different text, icons, accelerators and groups when running on the Mac.  This is particularly useful in the following cases.

  • Excluding the exit item from the file menu.
  • Changing accelerators when certain keys don't exist on the Mac.
  • Altering icons to fit with the Mac look and feel guidelines.

Controlling Group Membership

It is now easy to conditionally specify group and face configurations for the Mac.  A typical example would be where you don't want the exit command to be included within the file menu on the Mac.  The following demonstrates.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE commands SYSTEM "commands.dtd">
<commands version="1.1.0">
   <group id="menu.file">
      <face>
         <text>_File</text>
      </face>
      <members>  
         <member command-id="file-open"/>
         <member command-id="file-save"/>
         <member command-id="file-save-as"/>
         <separator include-if="!mac"/>
         <member command-id="exit" include-if="!mac"/>
      </members>  
   </group>
</commands>

Controlling Face Configuration

The same mechanism can be used to control the appearance of faces on the Mac. Typical examples would include providing more appropriate icons and providing alternate accelerators on the Mac.

<face>
   <!-- the mac doesn't have an insert key --> 
   <accelerator key="insert" include-if="!mac"/>
   <accelerator key="enter" include-if="mac">
      <modifier value="control"/>
   </accelerator>
</face>