home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
p2demo21.exe
/
PEL
/
CONFIG.PEL
< prev
next >
Wrap
Text File
|
1995-04-10
|
4KB
|
110 lines
# $Header: P:\source\wmacros\config.pev 1.31 10 Apr 1995 10:19:08 PFHJXM0 $
##############################################################################
#
# Compuware Corporation
# 31440 Northwestern Highway
# Farmington Hills, Michigan 48334-2564
#
# This source code listing contains information that is
# proprietary to Compuware Corporation and may not be copied
# duplicated, translated, transmitted, stored, retrieved
# or in any manner or by any method conveyed or disclosed
# to a third party or parties without express written
# permission from Compuware Corporation.
#
#
##############################################################################
local settings_data[]
local settings_index = 1
global function settings_config()
{
local new_array
# start with fresh info
delete settings_data
settings_data[ settings_index++ ] = sprintf( "# Settings Information\n" )
settings_data[ settings_index++ ] = sprintf( "%s\n", toupper(emulation_mode) )
settings_data[ settings_index++ ] = sprintf( "DEF_TABS \"%s\", %d, %d\n",
default_buffer_tabs,
default_wp_right_margin,
default_wp_left_margin );
settings_data[ settings_index++ ] = sprintf( "WORD_DELIM \"%s\"\n", word_delimiter);
gsub("\\n", "\\n", search_pattern);
gsub("\\n", "\\n", replace_pattern);
settings_data[ settings_index++ ] = sprintf( "SRCH_REPL %d, \"%s\", \"%s\"\n",
search_flags,
search_pattern,
replace_pattern )
settings_data[ settings_index++ ] = sprintf( "BACKUP %d, \"%s\"\n",
backup_files_enabled,
backup_directory )
settings_data[ settings_index++ ] =
sprintf( "DEF_COLS %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d\n",
color_help_bg,
color_help_fg,
color_message_bg,
color_message_fg,
color_notify_bg,
color_notify_fg,
color_warning_bg,
color_warning_fg,
color_error_bg,
color_error_fg,
color_bookmark_bg,
color_bookmark_fg )
settings_data[ settings_index++ ] =
sprintf( "CURSORS 0x%x, 0x%x, 0x%x, 0x%x\n",
cursor_normal,
cursor_overtype,
cursor_virtual,
cursor_virtual_overtype)
settings_data[ settings_index++ ] = sprintf( "STAT 0x%x, %d\n",
status_bar_flags,
!!status_bar_flags )
store_default_font("default", "Fonts")
settings_data[ settings_index++ ] = sprintf("load_default_font \"default\" \"Fonts\"\n")
settings_data[settings_index++] =
sprintf("set_file_access %d \"%s\" %d \"%s\" %d \"%s\"\n",
lock_lan_files_on_mod, copy_lan_files_on_action,
lock_local_files_on_mod, copy_local_files_on_action,
lock_floppy_files_on_mod, copy_floppy_files_on_action )
new_array = optional_function( "pvcs_settings", settings_index );
settings_data = merge_arrays( settings_data, new_array.array );
new_array = optional_function( "tags_settings" , new_array.index );
settings_data = merge_arrays( settings_data, new_array.array );
new_array = optional_function( "toolbar_settings" , new_array.index );
settings_data = merge_arrays( settings_data, new_array.array );
new_array = optional_function( "autosave_settings", new_array.index );
settings_data = merge_arrays( settings_data, new_array.array );
new_array = optional_function( "mdi_settings" , new_array.index );
settings_data = merge_arrays( settings_data, new_array.array );
settings_data[ new_array.index++ ] = "\n"
# update window settings here because MDI/SDI modes can change defaults
# without calling the notebook
optional_function( "window_settings1_config" )
return settings_data
}