

!  ------------------- Preferences file for Conception  ---------------------

! This file contains settings in two categories:
! -- (1) Settings required for the runtime environments of all PLP applications (but
!        which are unwanted in the _development_ environments - if required for
!        both runtime and development environments of all apps then they 
!        should be in Shared_defaults.txt)
! -  (2) Settings distinctive to a Conception (but not IM) runtime session. 
 
! Recent changes: 
! 26.2.07 - alternative prompts for Argument map promptbox_shape nodes.
! 19.4.07 - colour for giant pointer.
! 26.4.07 - Ctrl-b now bound to toggle_bold_key
! 1.5.07  - added Titlebar icon for control_window class
! 12.5.07 - bindings for conception_node_key_recogniser
! 8.6.07  - help_message_balloons
 

! Format:
!	* Comment
!	Line-comment is started by the ! (exclamation mark)
!
!	* Default
!	<class>.<class-variable>: <value>
!
!	* Values
!	Values are in standard term-representation.  Chains may be written
!	as a Prolog list.  Values spanning multiple lines use \<NL> to continue
!	on the next line. Resist temptation to end with a period!

! Tom Conlon, PLP Ltd.  
 
! -----------------------------------------------------------------------------
! ----- (1) Runtime settings common to all PLP applications -------------------
! -----------------------------------------------------------------------------


! Binding for text_item objects. An editfield_item is such an object
! so these bindings affect the edit fields within all graphical windows
! and dialogs.
! Example: the key control-a sends a select_all message to the object
! (select_all is a native method of XPCE class text_item).
! Format: <key := command>. Change the key freely.

key_binding.text_item: 			\
	[                            	\
	'\C-a' := select_all      	\
     	]


! Font for accelerators ('Ctrl-n' etc) in menubar menus.
! The menu command labels use font(helvetica,roman,12). Maybe 
! font(helvetica,roman,10) is a nice choice for the accelerators.
! To conceal these menu items, delete this definition.

popup.accelerator_font: font(courier, roman, 10)


! Don't show accellerators (key shortcuts) in the popup used by argmaps, etc.

plp_popup_gesture_popup.accelerator_font: @nil



! ------------------------------------------------------------------------------------
! -------------------------- (2) Conception-specific settings follow -----------------
! ------------------------------------------------------------------------------------
 

! Set the size (width,height) of Conception windows created by File/New.
! The value may be a simple term e.g. size(700,500) or an
! expression that depends on the system's actual display (screen) size. 

conception_window.wsize: size(@display?width*2/3, @display?height*2/3)


! Binding for editor objects. A text_window contains such an object
! so these bindings affect all IM rule windows.
! Example: the key control-n sends a new_window_key message to the
! window containing the editor object. A method of this name  
! is defined by the top-level document_window class (ditto others).
! Format: <key := command>. Change the key freely (but menu labels
! may need to be updated).

key_binding.editor: 			\
	[ 				\
	'\C-n' := new_window_key, 	\
	'\C-o' := open_key,		\
	'\C-s' := save_key,		\
	'\C-w' := close_key,		\
	'\C-p' := print_key,		\
	'\C-q' := quit_key,		\
	'\C-z' := undo_key,		\
	'\C-c' := copy_key,		\
	'\C-x' := cut_key,		\
	'\C-v' := paste_key,		\
	'\C-a' := select_all_key,   	\
	backspace := backspace_key	\
	]


! Binding for the plp_graphics_key_recogniser. graphics_window attaches
! this recogniser to the picture pane so all graphic windows are affected
! by these bindings. 
! Example: the key control-n sends a new_window_key message to the
! graphics window. A method of this name  
! is defined by the top-level document_window class (ditto others).
! Format: <key := command>. Change the key freely  (but menu labels
! may need to be updated).

key_binding.plp_graphics_key_recogniser: \
	[ 				\
	'\C-n' := new_window_key, 	\
	'\C-o' := open_key,		\
	'\C-s' := save_key,		\
	'\C-w' := close_key,		\
	'\C-p' := print_key,		\
	'\C-q' := quit_key,		\
	'\C-z' := undo_key,		\
	'\C-c' := copy_key,		\
	'\C-x' := cut_key,		\
	'\C-v' := paste_key,		\
	'\C-a' := select_all_key,   	\
 	'\C-b' := toggle_bold_key,   	\
	backspace := clear_key,		\
	cursor_up := cursor_up_key,         \
	cursor_down := cursor_down_key,     \
	cursor_right := cursor_right_key,   \
	cursor_left := cursor_left_key      \
 	]


! Bindings for the conception_node_key_recogniser. 
! Note that this recogniser inherits all the bindings above for plp_graphics_key_recogniser,
! so any specified here are extra bindings that will respond to keypresses when the mouse
! is pointing at a node (whether it is selected or not).
! conception_node_key_recogniser forwards all messages (new_window_key, etc) to the host window
! (by default they would go to the host node).

conception_node_key_recogniser.node_key_bindings:  \
	[ 				           \
 	]

 
! Outsize pictures will be autoscaled to this size.
! The Picture Browser dialog won't accept slider settings that would exceed it.
! Set this to whatever you like.
! The value below allows a nice (25%) scaling of common 1024x768 jpeg landscape photos
! -- the user can always reduce the scale via the slider of course.

picture_shape.max_size: size(255,192)


! Disable the 'Save special/Styles/Create new stylesheet' radio option
! because of the risk that naive users will damage essential stylesheets.
! Users who know what they're doing can set to @on 

conception_window.enable_stylesheet_creation: @off


! Specify alternative prompts for categories of Argument map promptbox_shape nodes.
! Different argument map stylesheets may use alternative names for these
! categories -- add the alternatives to the lists below and 'List' menu commands
! should still work correctly. 
! Of course, each name should appear in no more than one list.
! Defaults just specify the existing stylesheet values: 'Main claim', 'Reason', 'Objection', 'G'.

argument_map.main_claim_prompts: ['Main claim']
argument_map.claims_for_prompts: ['Reason', 'Objection']
argument_map.claims_against_prompts: ['Reason!', 'Objection!']
argument_map.grounds_prompts: ['G']


! Colour for the 'Giant pointer'.
! Choose any X11 named colour, eg red, yellow, tan, pink, plum, purple, navy ....

conception_window.giant_pointer_colour: red


! Titlebar icon shows only in Windows, not Unix
! For Conception, replace the class variable's value

control_window.titlebar_icon: 'cpn_titlebar_icon.xpm'

! When a new window is created, determine whether help note balloons are
! displayed by default (@on) or not displayed (@off). 
! The setting can be changed for any window via Help/Balloon_notes. 

conception_window.help_message_balloons: @on

