#################################################################
#
#    Original copy: /usr/vue/config/sys.vuewmrc
#
#    The Resource Description File for the HP VUE Window Manager 
#
#    Hewlett-Packard Visual User Environment 3.0
#
#    Copyright (c) 1992 Hewlett-Packard Company
#
#    $HP Revision: 1.84 $
#    FM $Revision: 1.2 $
#
######################################################################

###
#
# For information on changing the front panel, consult the "HP VUE
# User's Guide" or select "Front Panel Help" from the Help subpanel.
#
###

###
#
#  Please make a COPY of this file before editing it.
#
#  Personalized copies typically exist as:
#
#       $HOME/.vue/vuewmrc
#
###

#################################################################
#
#  Start HP VUE Front Panel Descriptions
#
#  The front panel is a PANEL containing rows (BOXes).
#  The default front panel has two rows, named "Top" and "Bottom".
#
#  These panel descriptions are arranged into big elements (the top
#  and bottom rows), followed by the small elements (the control
#  descriptions).
#
#################################################################

#################################################################
#
#  Subpanel Descriptions
#
#  The subpanels are defined in files that are listed here.
#  If the file is empty or commented out, no subpanel arrow appears
#  on the control to which the subpanel is attached.
#
###
INCLUDE 
{

    "/usr/vue/config/panels/fp.clock"
    "/usr/vue/config/panels/fp.date"
    "/usr/vue/config/panels/fp.load"
    "/usr/vue/config/panels/fp.style"
    "/usr/vue/config/panels/fp.help"
    "/usr/vue/config/panels/fp.printer"
    "/usr/vue/config/panels/fp.mail"
    "/usr/vue/config/panels/fp.home"
    "/usr/vue/config/panels/fp.tool"
    "/usr/vue/config/panels/fp.terminal"
    "/usr/vue/config/panels/fp.toolbox"
    "/usr/vue/config/panels/fp.trash"
}

#################################################################
#
#  Start Front Panel Description: Regular Session
#
#################################################################
PANEL FrontPanel
{
  BOX             Top
  BOX             Bottom
}

#################################################################
#
#  Regular Session:  Top Row
#
#  The top row is a primary row, containing subpanels and large icons.
#
#  Controls are listed in order, from left to right, and are defined 
#  immediately after the "BOX Bottom" block.
#
###
BOX Top
{
  TYPE             primary
  CONTROL          Clock
  CONTROL          Date
  CONTROL          Load
  CONTROL          Style
  CONTROL          Help
  SWITCH           Switch
  CONTROL          Printer
  CONTROL          Mail
  CONTROL          Home
  CONTROL          Toolboxes
  CONTROL          Trash
  HELP_TOPIC       FPTop
}

#################################################################
#
#  Regular Session:  Bottom Row
#
#  The bottom row is a secondary row.
#
###
BOX Bottom
{
  TYPE             secondary
  CONTROL          Logo
  CONTROL          Lock
  CONTROL          Rename
  CONTROL          Terminal
  CONTROL          TextEdit
  CONTROL          FrameMaker
  CONTROL          Busy
  HELP_TOPIC       FPBottom
}

#################################################################
#
#  Regular Session:  Top Row Controls
#
###

# Control description:  Clock
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
CONTROL Clock
{
  TYPE             clock
  SUBPANEL         ClockSubpanel
  HELP_TOPIC       FPClock
}

# Control description:  Date
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
CONTROL Date
{
  TYPE             date
  SUBPANEL         DateSubpanel
  HELP_TOPIC       FPDate
}

# Control description:  Load
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
CONTROL Load
{
  TYPE             client
  SUBPANEL         LoadSubpanel
  CLIENT_NAME      vueload
  PUSH_ACTION      f.exec "xload -name vueload -nolabel"
  PUSH_RECALL      true
  HELP_TOPIC       FPLoad
}

# Control description:  Style
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
CONTROL Style
{
  TYPE             button
  SUBPANEL         StyleSubpanel
  IMAGE            stylemg
  PUSH_ACTION      f.action OpenStyleMgr
  PUSH_RECALL      true
  CLIENT_NAME      vuestyle
  HELP_TOPIC       FPStyle
}

# Control description:  Help
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
CONTROL Help
{
  TYPE             button
  SUBPANEL         HelpSubpanel
  IMAGE            helpmgr
  PUSH_ACTION      f.action OpenHelpManager
  HELP_TOPIC       FPHelp
}

# Control description:  Switch
#
SWITCH           Switch
{
  TYPE             switch
  NUMBER_OF_ROWS   2
  HELP_TOPIC       FPSwitch
}

# Control description:  Printer
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
#   Find the ANIMATION block later in this file for the animation
#   sequence for this control.
#
CONTROL Printer
{
  TYPE             button
  SUBPANEL         PrinterSubpanel
  IMAGE            ljet
  TITLE            "Printer_Information"
  PUSH_ACTION      f.action PrintPush
  DROP_ACTION      f.action Print
  DROP_ANIMATION   PrinterDrop
  HELP_TOPIC       FPPrinter
}

# Control description:  Mail
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
CONTROL Mail
{
  TYPE             mail
  SUBPANEL         MailSubpanel
  IMAGE            mail
  TITLE            "Mail"
  ALTERNATE_IMAGE  mail02
  PUSH_ACTION      f.action MAILER
  DROP_ACTION      f.action MAIL_A_FILE
  PUSH_RECALL      true
  CLIENT_NAME      Mail
# MONITOR_FILE     /usr/mail/$LOGNAME
  HELP_TOPIC       FPMail
}

# Control description:  Home
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
CONTROL Home
{
  TYPE             button
  SUBPANEL         HomeSubpanel
  IMAGE            home
  PUSH_ACTION      f.action "OpenHomeDir"
  HELP_TOPIC       FPHome
}

# Control description:  Toolboxes
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
CONTROL Toolboxes
{
  TYPE             button
  SUBPANEL         ToolboxesSubpanel
  IMAGE            tools
  DROP_ACTION      f.action CopyToPToolbox
  PUSH_ACTION      f.action "OpenPersonalToolbox"
  HELP_TOPIC       FPToolboxes
}

# Control description:  Trash
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
#   Find the ANIMATION block later in this file for the animation
#   sequence for this control.
#
CONTROL Trash
{
  TYPE             monitor_file
  SUBPANEL         TrashSubpanel
  IMAGE            trash
  ALTERNATE_IMAGE  trashfl
  MONITOR_FILE     $HOME/.vue/.trashinfo
  PUSH_ACTION      f.action OpenTrash
  DROP_ACTION      f.action TrashFile
  DROP_ANIMATION   TrashDrop
  HELP_TOPIC       FPTrash
}

#################################################################
#
#  Regular Session:  Bottom Row Controls
#
###

# Control description:  Logo
#
CONTROL Logo
{
  TYPE             button
  IMAGE            logo
  PUSH_ACTION      f.version 
  HELP_TOPIC       FPLogo
}

# This puts an icon on the FrontPanel that starts up Frame.
# Change the f.action FrameMaker to FrameMaker+SGML or FrameViewer to start
# FrameMaker+SGML or FrameViewer respectively instead of FrameMaker.
CONTROL  FrameMaker
{
  IMAGE            frame_rib.bm
  PUSH_RECALL      True
  CLIENT_NAME      makerkit
  DROP_ACTION      f.action "Frame_OPEN"
  PUSH_ACTION      f.action "FrameMaker"
  HELP_STRING      "Adobe System Incorporated's products are well integrated in the VUE desktop environment. You can launch Frame products by clicking the Frame icon on the VUE menu bar or double-clicking a Frame document in the File Manager. If a Frame product is already running, clicking the Frame icon on the VUE menu bar will bring it to the top of the VUE workspace."

}

# This will place the Frame main window onto the FrontPanel instead of the
# Frame icon.  You will have to start the Frame product manually since there
# can be no f.action defined.  Also, DRAG-N-DROP functionality will be
# compromised slightly.
#CONTROL  FrameMaker
#{
#  TYPE		    client
#  CLIENT_NAME      makerkit
#  HELP_STRING      "Adobe Systems Incorporated's products are well integrated in the VUE desktop environment. You can launch Frame products by clicking the Frame icon on the VUE menu bar or double-clicking a Frame document in the File Manager. If a Frame product is already running, clicking the Frame icon on the VUE menu bar will bring it to the top of the VUE workspace."
#}

# Control description:  Lock
#
CONTROL Lock
{
  TYPE             button
  IMAGE            lock
  PUSH_ACTION      f.action LOCK_DISPLAY
  HELP_TOPIC       FPLock
}

# Control description:  Rename
#
CONTROL Rename
{
  TYPE             button
  IMAGE            wsrenam
  PUSH_ACTION      f.workspace_rename
  HELP_TOPIC       FPRename
}

# Control description:  Terminal
#
CONTROL Terminal
{
  TYPE             button
  IMAGE            term
  TITLE            "Terminal_Window"
  PUSH_ACTION      f.action TERMINAL
  HELP_TOPIC       FPTerminal
}

# Control description:  TextEdit
#
CONTROL TextEdit
{
  TYPE             button
  IMAGE            vuepad
  DROP_ACTION      f.action EditText
  PUSH_ACTION      f.action EditText
  HELP_TOPIC       FPTextEdit
}

# Control description:  Busy
#
CONTROL Busy
{
  TYPE             busy
  IMAGE            exit
  ALTERNATE_IMAGE  exit02
#  LABEL            "Exit"
  PUSH_ACTION      f.action EXIT_SESSION
  HELP_TOPIC       FPBusy
}
###########  End Front Panel Description: Regular Session #######

#################################################################
#
#  Start Front Panel Description: Lite Session
#
#  The HP VUE Lite front panel uses many of the controls defined above. 
#  Defined below are the additional controls used in HP VUE Lite.
#
#################################################################
PANEL LiteFrontPanel
{
    BOX           LiteTop
    BOX           LiteBottom
}

#################################################################
#
#  Lite Session:  Top Row
#
#  The top row is a primary row, containing subpanels and large icons.
#
###
BOX LiteTop
{
  TYPE             primary
  CONTROL          Clock
  CONTROL          Date
  CONTROL          Style
  CONTROL          Help
  SWITCH           Switch
  CONTROL          Mail
  CONTROL          Blank
  CONTROL          Tools
  CONTROL          Blank
  CONTROL          Terminals
  HELP_TOPIC       FPLiteTop
}

#################################################################
#
#  Lite Session:  Bottom Row
#
#  The bottom row is a secondary row.
#
###
BOX LiteBottom
{
  TYPE             secondary
  CONTROL          Logo
  CONTROL          LiteLock
  CONTROL          LiteRename
  CONTROL          TextEdit
  CONTROL          Busy
  HELP_TOPIC       FPLiteBottom
}

#################################################################
#
#  Lite Session:  Unique Top Row Controls
#
###

# Control description:  Tools
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
CONTROL Tools
{
  TYPE             button
  SUBPANEL         ToolsSubpanel
  IMAGE            tools
  PUSH_ACTION      f.action MainTool
  HELP_TOPIC       FPTools
}

# Control description:  Terminals
#
#   Please find the INCLUDE block at the beginning of this file 
#   for the subpanel for this control.
#
CONTROL Terminals
{
  TYPE             button
  SUBPANEL         TerminalSubpanel
  IMAGE            termina
  TITLE            "Terminal_Window"
  PUSH_ACTION      f.action TERMINAL
  HELP_TOPIC       FPTerminals
}

#################################################################
#
#  Lite Session:  Unique Bottom Row Controls
#
###

# Control description:  LiteLock
#
CONTROL LiteLock
{
  TYPE             button
  IMAGE            lock
  PUSH_ACTION      f.action LiteLock
  HELP_TOPIC       FPLiteLock
}

# Control description:  LiteRename
#
CONTROL LiteRename
{
  TYPE             button
  IMAGE            wsren
  PUSH_ACTION      f.workspace_rename
  HELP_TOPIC       FPLiteRename
}

###########     End Front Panel Description: Lite Session   #############

##############  End HP VUE Front Panel Descriptions   ###################

###
#
#  Animation Descriptions:
#
#  Each description consists of a list of picture files:
#
#  - The first parameter is the name of the image file.
#
#  - The second (optional) parameter is for duration of the exposure,
#    in milliseconds.  If none is specified, the previous duration
#    will apply.
#
###

ANIMATION TrashDrop
{
        trash02   200
        trash03   100
        trash04
        trash05   800
        trash06   200
        trash07
}

ANIMATION PrinterDrop
{
        ljet02     200
        ljet03     100
        ljet04
        ljet05
        ljet06
        ljet07
        ljet08
        ljet09     800
        ljet10     200
        ljet11
}
#################### End of Animation Descriptions  ################

###
#
# Root Menu Description
#
###

Menu VueRootMenu
{
    "Workspace Menu"               f.title
    "Shuffle Up"	           f.circle_up
    "Shuffle Down"	           f.circle_down
    "Refresh"		           f.refresh
    "Minimize/Restore Front Panel" f.toggle_frontpanel
     no-label		           f.separator
    "Restart Workspace Manager..." f.restart
     no-label		           f.separator
    "Log out..."                   f.action EXIT_SESSION
}

###
#
# Sample Window Menu Description--works fine for HP VUE LITE as well.
# This menu description exists as a sample only.
# The normal window manager menu is built in.
#
###

Menu SampleWindowMenu
{
    "Restore"               _R                   f.normalize
    "Move"                  _M                   f.move
    "Size"                  _S                   f.resize
    "Minimize"              _n                   f.minimize
    "Maximize"              _x                   f.maximize
    "Lower"                 _L                   f.lower
     no-label                                    f.separator
    "Occupy Workspace..."   _O                   f.workspace_presence
    "Occupy All Workspaces" _A                   f.occupy_all
    "Unoccupy Workspace"    _U                   f.remove
     no-label                                    f.separator
    "Close"                 _C   Alt<Key>F4      f.kill
}

###
#
# Alternate Window Menu Description without accelerators
#
###

Menu NoAcceleratorWindowMenu
{
    "Restore"               _R         f.normalize
    "Move"                  _M         f.move
    "Size"                  _S         f.resize
    "Minimize"              _n         f.minimize
    "Maximize"              _x         f.maximize
    "Lower"                 _L         f.lower
     no-label                          f.separator
    "Occupy Workspace..."   _O         f.workspace_presence
    "Occupy All Workspaces" _A         f.occupy_all
    "Unoccupy Workspace"    _U         f.remove
     no-label                          f.separator
    "Close"                 _C         f.kill
}

###
#
# Key Bindings Description
#
###

Keys VueKeyBindings
{


#   Meta<Key>Menu               root|icon|window        f.toggle_frontpanel

    Shift<Key>Escape            icon|window             f.post_wmenu
    Meta<Key>space              icon|window             f.post_wmenu
    Meta<Key>Tab                root|icon|window        f.next_key
    Meta Shift<Key>Tab		root|icon|window        f.prev_key
    Meta<Key>Escape             root|icon|window        f.next_key
    Meta Shift<Key>Escape       root|icon|window        f.prev_key
    Meta<Key>Down               root|icon|window        f.circle_down
    Meta<Key>Up                 root|icon|window        f.circle_up
    Meta Ctrl Shift<Key>exclam	root|icon|window        f.set_behavior
    Meta<Key>F6			window			f.next_key transient
}

###
#
# Mouse Button Bindings Description
#
###

Buttons VueButtonBindings
{
    <Btn1Down>          root                    f.menu  VueRootMenu
    <Btn3Down>          root                    f.menu  VueRootMenu
    <Btn1Down>          frame|icon              f.raise
    <Btn3Down>          frame|icon              f.post_wmenu
    Meta<Btn1Down>	icon|window             f.move
    Meta<Btn3Down>	window                  f.minimize
}


###
#
# Defaults:   Window menus, key bindings, and mouse button bindings
#
###

Menu DefaultWindowMenu
{
    "Restore"	_R	Alt<Key>F5	f.normalize
    "Move"	_M	Alt<Key>F7	f.move
    "Size"	_S	Alt<Key>F8	f.resize
    "Minimize"	_n	Alt<Key>F9	f.minimize
    "Maximize"	_x	Alt<Key>F10	f.maximize
    "Lower"	_L	Alt<Key>F3	f.lower
    no-label				f.separator
    "Close"	_C	Alt<Key>F4	f.kill
}

Keys DefaultKeyBindings
{
    Shift<Key>Escape            icon|window             f.post_wmenu
    Meta<Key>space              icon|window             f.post_wmenu
    Meta<Key>Tab                root|icon|window        f.next_key
    Meta Shift<Key>Tab		root|icon|window        f.prev_key
    Meta<Key>Escape             root|icon|window        f.next_key
    Meta Shift<Key>Escape       root|icon|window        f.prev_key
    Meta Ctrl Shift<Key>exclam	root|icon|window        f.set_behavior
    Meta<Key>F6			window			f.next_key transient
}

Buttons DefaultButtonBindings
{
    <Btn1Down>          frame|icon      f.raise
    <Btn3Down>          icon            f.post_wmenu
}

#################  End of the vuewmrc file   #####################
