!
! Resources for Editres, XawPlus version
!
Editres.Geometry:		620x400

! The rest of this file are either button names, or important for
! functionality, modifying these values may cause strange program
! behavior.

*flash.BorderWidth:		0
*MenuButton.leftBitmap:		menu12.xpm
*Tree.Toggle.highlightThickness:0

! Menu Button Names

*MenuButton.translations:	<EnterWindow>:		highlight()\n\
				<LeaveWindow>:  	reset()\n\
				<BtnDown>:  		set() PopupMenu()

*Box*commands.label:		Commands
*Box*treeCommands.label:	Tree

*porthole.tree.width:		500
*porthole.tree.height:		500

! Universal Menu Entry Names
*sendTree.label:		Get Tree
*quit.label:			Quit

*selectAll.label:		Select All
*unselectAll.label:		Unselect All
*invertAll.label:		Invert All
*selectChildren.label:		Select Children
*selectParent.label:		Select Parent
*selectDescendants.label:	Select Descendants
*selectAncestors.label:		Select Ancestors

! Xt Menu Entry Names

*xt*refreshTree.label:		Refresh Current Widget Tree
*xt*dumpTreeToFile.label:	Dump Widget Tree to a File
*xt*getResourceList.label:	Show Resource Box
*xt*setValues.label:		Set Resource

*xt*showClientWidget.label:	Select Widget in Client
*xt*showWidgetNames.label:	Show Widget Names
*xt*showClassNames.label:	Show Class Names
*xt*showWidgetIDs.label:	Show Widget IDs
*xt*showWidgetWindows.label:	Show Widget Windows
*xt*flashActiveWidgets.label:	Flash Active Widgets

! InterViews Menu Entry Names

*iv*refreshTree.label:		Refresh Current Style Tree
*iv*dumpTreeToFile.label:	Dump Style Tree to a File
*iv*getResourceList.label:	Show Attribute Box
*iv*setValues.label:		Set Attribute

*iv*showClientWidget.label:	Select Style in Client
*iv*showWidgetNames.label:	Show Style Names
*iv*showClassNames.label:	Show Class Names
*iv*showWidgetIDs.label:	Show Style IDs
*iv*showWidgetWindows.label:	Show Style Windows
*iv*flashActiveWidgets.label:	Flash Active Styles

! Universal Toolkit Messages

*label0: Action `%s' must have the Editres Protocol.
*label1: Action %s's argument must be either `cancel' or `okay'.
*label2: Action `%s' must have exactly one argument.
*label3: Unknown parameter to action `%s' must be one of:\n
*label4: It appears that this client does not understand\nthe Editres Protocol.
*label5: Can't grab the mouse.\n
*label6: Click the mouse pointer on any toolkit client.
*label8: Message sent to client%s.
*label9: Incorrectly formatted message from client.
*label10: Unable to own the Resource Editor Command Selection
*label11: Unknown Error code %d
*label13: Welcome to the X Resource Editor version 1.1
*label15: That window does not appear to be\nin the currently displayed client.
*label16: Editres Internal Error: Unable to FindNode.\n
*label18: There are no active nodes.
*label20: ApplyResource: found no matches.
*label21: Error: SVActiveEntry Action must have exactly one argument.
*label22: Error: SVActiveEntry Action's first Argument must be either 'Resource' or 'Value'.
*label24: Unable to open the file `%s' for writing.
*label25: Error while trying to save Context\nAborting file dialog popup.
*label26: Error while trying to find Context\nAborting...
*label28: Loop in tree: node %s's parent (%s) has not been created yet\n
*label30: There are no active nodes.
*label31: Internal Error: Unknown select type.
*label32: Internal Error: Unknown label type.
*label33: Internal Error: Unknown activate type.
*label34: Only one Resource Box can be active at a time.
*label35: Unable to unpack protocol request.
*label36: This version of editres uses protocol version %s,\nbut the client speaks version %s.

! Xt Messages

*xt*label7: Unable to own the Resource Selection
*xt*label12: Widget Tree for client %s(%s).
*xt*label14: Click on any widget in the client.\nEditres will select that widget in the tree display.
*xt*label17: No widget Tree is avaliable.
*xt*label19: This function requires exactly one (1) widget to be selected.
*xt*label23: There are no currently active widgets.
*xt*label27: There is no widget tree to display.
*xt*label29: XSaveContext failed on widget %s.

! InterViews Messages

*iv*label7: Unable to own the Attribute Selection
*iv*label12: Style Tree for client %s(%s).
*iv*label14: Click on any style in the client.\nEditres will select that style in the tree display.
*iv*label17: No style Tree is avaliable.
*iv*label19: This function requires exactly one (1) style to be selected.
*iv*label23: There are no currently active styles.
*iv*label27: There is no style tree to display.
*iv*label29: XSaveContext failed on style %s.

! For the Top Area

*hPane.orientation:			horizontal
*hPane.preferredPaneSize:		100
*hPane.Panner.width:			100
*hPane.Panner.height:			100
*hPane.Panner.preferredPaneSize:	100
*Paned.Panner.showGrip:			False
*Paned.box.showGrip:			False
*Paned.hPane.showGrip:			True

! For the Filename popup dialog.

*fileDialog*value:		
*fileDialog*allowShellResize:		True
*fileDialog*Text.baseTranslations:	#override \n\
	<Key>Return:			PopdownFileDialog(okay)


! Universal Resources for the Resource Box.

*allowShellResize:			True
*resourceLabel.allowResize:		True
*List.verticalList:			True
*namesAndClasses*BorderWidth:		0
*star.label:				*
*dot.label:				.
*valueLabel.BorderWidth:		0
*valueForm*preferredPaneSize:		100
*valueText*editType:			edit
*valueText.Scroll:			WhenNeeded
*valueText.width:			300
*setFile.label:				Set Save File
*setFile.helpText:			Set filename to save your resources
*save.label:				Save
*save.helpText:				Save resource into the resource file
*apply.label:				Apply
*apply.helpText:			Set resource into application
*saveAndApply.label:			Save and Apply
*saveAndApply.helpText:			\
Set resource into application\n\
and save into resource file
*commandBox.show.label:		        Show

! InterViews Resources for the Resource Box.

*iv*single.label:			Any Style
*iv*any.label:				Any Style Chain
*iv*namesLabel.label:			Normal Attributes
*iv*constraintLabel.label:		Constraint Attributes
*iv*valueLabel.label:			Attribute Value:
*iv*commandBox.cancel.label:		Popdown Attribute Box

! Xt Resources for the Resource Box.

*xt*single.label:                       Any Widget
*xt*any.label:                          Any Widget Chain
*xt*namesLabel.label:                   Normal Resources
*xt*constraintLabel.label:              Constraint Resources
*xt*valueLabel.label:                   Resource Value:
*xt*commandBox.cancel.label:            Popdown Resource Box
*commandBox.cancel.helpText:		Close this box without any changes

! This gives us an exactly one of many toggle, if toggle is
! not set in each group the application will probabally core dump.

*namesAndClasses*Toggle.baseTranslations: #override \n\
	<Btn1Down>,<Btn1Up>:	set() notify()
    
*commandBox.skipAdjust:		True

! Get resource values action binding.

*List.baseTranslations: 	#override \n\
	<Btn2Down>,<Btn2Up>:	Set() EnableGetVal() Notify()

*MenuButton.baseTranslations:	#replace \n\
	<EnterWindow>:		highlight() \n\
	<LeaveWindow>:		unhighlight() \n\
	<Btn1Down>:		set() PopupMenu() reset()

! Keyboard Actions for Tree and children of the Tree.

*Tree.baseTranslations:		#override \n\
	:<Key>space:		Select(nothing) \n\
	:<Key>w:		Select(widget) \n\
	:<Key>s:		Select(all) \n\
	:<Key>i:		Select(invert) \n\
	:<Key>c:		Select(children) \n\
	:<Key>d:		Select(descendants) \n\
	:<Key>p:		Select(parent) \n\
	:<Key>a:		Select(ancestors) \n\
	:<Key>N:		Relabel(name) \n\
	:<Key>C:		Relabel(class) \n\
	:<Key>I:		Relabel(id) \n\
	:<Key>W:		Relabel(window) 

*Tree.Toggle.baseTranslations:	#override \n\
	:<Key>space:		Select(nothing) \n\
	:<Key>w:		Select(widget) \n\
	:<Key>s:		Select(all) \n\
	:<Key>i:		Select(invert) \n\
	:<Key>c:		Select(children) \n\
	:<Key>d:		Select(descendants) \n\
	:<Key>p:		Select(parent) \n\
	:<Key>a:		Select(ancestors) \n\
	:<Key>N:		Relabel(name) \n\
	:<Key>C:		Relabel(class) \n\
	:<Key>I:		Relabel(id) \n\
	:<Key>W:		Relabel(window) \n\
	<Btn2Down>,<Btn2Up>:	Select(nothing) toggle() notify() \n\
	<Btn3Down>,<Btn3Up>:	Relabel(toggle)

! For the SetValues popup

*setValuesPopup*resizable:		True
*setValuesPopup*left:			ChainLeft
*setValuesPopup*right:			ChainLeft

*setValuesPopup*label*label:		Use <Tab> to Change Fields.
*setValuesPopup*Label*BorderWidth:	0

*setValuesPopup*resourceLabel.label:	Resource Name :
*setValuesPopup*valueLabel.label:	Value:
*setValuesPopup*valueString*editType:	edit
*setValuesPopup*setValues.label:	Apply
*setValuesPopup*setValues.helpText:	Set resource into the application
*setValuesPopup*cancel.label:		Cancel
*setValuesPopup*cancel.helpText:	Cancel without any changes

*setValuesPopup*Text*EditType:		Edit
*setValuesPopup*Text*resize:		Width

*setValuesPopup*resourceText.baseTranslations: #override \
  <Key>Return:     	   no-op(RingBell) \n\
   Ctrl<Key>q,<Key>Tab:    insert-char()    \n\
   <Btn1Down>:             select-start() SVActiveEntry(Resource) \n\
   <Key>Tab:               SVActiveEntry(Value)

*setValuesPopup*valueString.baseTranslations: #override \
   <Key>Return:     	   no-op(RingBell) \n\
   Ctrl<Key>q,<Key>Tab:    insert-char()     \n\
   <Btn1Down>:             select-start() SVActiveEntry(Value)\n\
   <Key>Tab:               SVActiveEntry(Resource)
