Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Visual User Environment 3.0 User's Guide > Chapter 23 Customizing HP VUE Lite

Adding Applications and Utilities to HP VUE Lite

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The Tools control in the HP VUE Lite Front Panel provides easy access to applications and utilities. You can:

  • Configure the HP VUE Lite Tools control in the top row of the Front Panel to start an application.

  • Add applications to the Tools subpanel.

  • Create your own actions, which can then be added to the Front Panel.

See Also. 

To assign an application to the HP VUE Lite Tools control

You can configure the Tools control (1) to start the application of your choice.

  • Choose Create Action in the Tools subpanel to display the Create Action dialog box.

  • Fill in the required fields. Name the action MainTool

  • If desired, fill in the optional fields.

  • Choose Apply to save the action, then Close.

  • Choose Restart Workspace Manager from the Workspace Menu.

The action name MainTool attaches the new action to the Tools control on the top row.

See Also. 

Example: Assigning an application to the HP VUE Lite Tools control

You frequently use the application IslandPaint™ and want to be able to start it by choosing the Tools control. The command to start the application is

   IslandPaint filename

Define the action. 

  1. Choose Create Action in the Tools subpanel to open the Create Action dialog box.

  2. Supply these values to the fields:

       Name:            MainTool
    
       Command Line:    IslandPaint
    
       Window Type:     X Windows
    
       Filename Prompt: IslandPaint data file:
    

    If IslandPaint is not located along the PATH search path, you must use the absolute path to the executable file.

  3. Choose Apply, then Close.

  4. Choose Restart Workspace Manager from the Workspace Menu.

To add an application to the Tools subpanel

  1. If the change is personal rather than system wide, create a personal fp.tool file (see “To create a personal Tools subpanel file”).

    If the change is system-wide, use the system file /etc/vue/config/panels/fp.tool (you must be superuser).

  2. Open fp.tool and add a control to the subpanel box.

       BOX ToolsSubpanel
    
       {
    
          TYPE     subpanel
    
            .
    
            .
    
            .
    
          CONTROL  new_control_name
    
       }
    

  3. Add the definition for the new control to the file.

  4. Save the file.

  5. Create the action for the application.

  6. Choose Restart Workspace Manager from the Workspace menu.

See Also. 

To create a personal Tools subpanel file

  • Copy the /etc/vue/config/panels/fp.tool to the /HomeDirectory/.vue directory. Give the new file write permission.

  • Edit the new file to add or remove controls.

  • Double-click EditVuewmrc in the System_Admin subdirectory of the General Toolbox. This opens your personal Workspace Manager configuration file (/HomeDirectory/.vue/vuewmrc) for editing.

  • Edit vuewmrc to include the new file by replacing the line that includes the system subpanel file with a line that includes the new file.

       INCLUDE
    
       {
    
          /HomeDirectory/.vue/fp.tool
    
       }
    

Example: Adding an Action to the Tools subpanel

The action ChangePassword is built into HP VUE. You want to add it to the Tools subpanel. Assume your home directory is /home/tim.

Create a personal `fp.tool' file. 

  1. Copy /etc/vue/config/panels/fp.tool to /home/tim/.vue/fp.tool. Give the new file write permission.

  2. If /home/tim/.vue/vuewmrc doesn't already exist, create it by copying /etc/vue/config/sys.vuewmrc and giving the new file write permission.

  3. In vuewmrc edit the line that includes fp.tool:

       INCLUDE
    
       {  
    
           .
    
           .
    
           .
    
         "/etc/vue/config/panels/fp.tool"  
    

    to include the personal file instead. Save the file.

    Add the control to `fp.tool'. 

  4. Open /home/tim/.vue/fp.tool and add the new control to the subpanel box:

       BOX ToolsSubpanel
    
          {
    
         TYPE     subpanel
    
           .
    
           .
    
           .
    
         CONTROL  Password
    
       }
    

  5. Add the control to the bottom of the file.

       CONTROL Password
    
       {
    
          TYPE         button
    
          LABEL        "Change Password"
    
          PUSH_ACTION  f.action ChangePassword
    
          HELP_STRING  "This control runs the utility for changing your password."
    
       }  
    

  6. Save fp.tool.

    Restart the workspace manager. 

  7. Choose Restart Workspace Manager from the Workspace menu.

To use Create Action in HP VUE Lite

Start Create Action. 

  1. Choose Create Action in the Tools subpanel.

    Supply the required information. 

  2. In the Name field, type a unique name for the action.

  3. In the Command Line field, type the command to start the application. Type the command exactly the way you would type it in a command line, except that, where you would type a file name, substitute $n, where n is an integer. Here are some example command lines:

       emacs
    
       bitmap $1
    
       diff $1 $2
    
       lp -oraw $1
    

  4. Use the Window Type options menu to select how the action's output will be displayed:

    X Windows

    The application creates its own window.

    No Output

    The command has no display output.

    Terminal

    The application runs in a terminal emulator window. You want to keep the terminal emulator running until you explicitly close it.

    Terminal (auto-close)

    The application runs in a terminal emulator window. You want the terminal emulator window to close when you exit the application.

    Supply a prompt for data. 

  5. If the command takes a data file (the Command Line contains $1), type the text of the prompt into the Filename Prompt field. Leave this field empty if the command does not take a data file.

    Supply optional information. 

  6. In the Description field, type the item help for the action icon. Press Enter to wrap text to the next line in the text box. The newline characters will be ignored.

  7. If the action is to be used only in HP VUE Lite, leave the Large Icon and Small Icon fields empty.

    Store the action. 

  8. Choose Apply. A dialog box appears telling you the name of the database file created for the new action, and the system is busy momentarily as the database is reread.

  9. If the action has been successfully created, choose Close.

    Make the new action available. 

  10. If the action is used in the Front Panel, choose Restart Workspace Manager from the Workspace menu.

A new action definition takes effect:

  • When the application that uses it (for example, the Workspace Manager) is restarted.

  • Or, when the user logs out and back in.

You can use Create Action to create actions that execute local applications. More complex actions are created manually in a database configuration file.

See Also. 

To make a system-wide action in HP VUE Lite with Create Action

  1. Create the action using the Create Action utility. When you apply the action, make note of the file to which the definition is saved.

  2. Log in as root.

  3. Copy the definition file to /etc/vue/config/types.

The action can now be used in a system-wide Front Panel control.

See Also. 

To run an action from the command line

  • In a Terminal Emulator window, execute:

       vueaction action_name
    

The vueaction utility lets you run an action without adding it to the Tools subpanel.

Example.  You can use the built-in EditResources action to change resources:

  1. Execute:

       vueaction EditResources &
    

    Your resources will be displayed using your chosen editor. (If your editor users its own window, two windows will be opened—one for your editor, and a Terminal Emulator window. You can ignore the terminal window.)

  2. Edit your resources and save the file.

  3. Close the window containing the editor. Your resources will automatically be written to your resource database.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© © 1989, 1990, 1991, 1992, 1995 Hewlett-Packard Development Company, L.P.