Commits

Anonymous committed be9a97d

New preference storage defaults

Comments (0)

Files changed (4)

+#----------------------------------------------------------------------
+# Name:        PrefsGTK.py
+# Purpose:     wxGTK specific preferences
+#
+# Author:      Riaan Booysen
+#
+# Created:     2000/01/07
+# RCS-ID:      $Id$
+# Copyright:   (c) 1999, 2000 Riaan Booysen
+# Licence:     GPL
+#----------------------------------------------------------------------
+
+
+
+# Height of the Palette window. Adjust if you use big fonts
+paletteHeights = {'tabs': 100, 'menu': 56}
+
+# Window manager dependent values useful for mostly for GTK
+windowManagerTop = 16
+windowManagerBottom = 7
+windowManagerSide = 5
+
+# Fudge values for placing the progressbar in the editor
+editorProgressFudgePosX = -8
+# Fudge values for placing the progressbar in the editor
+editorProgressFudgeSizeY = 2
+
+# Try to use transparent bitmaps for palette
+transparentPaletteBitmaps = 0
+
+# Match braces in code
+braceHighLight = 0
+
+# Minimize the IDE while running applications
+minimizeOnRun = 0
+
+# Draw grid in designer
+drawDesignerGrid = 0
+# Also draw grid for child container controls in the frame
+drawDesignerGridForSubWindows = 1
+# Grid draw method: 'lines', 'dots', 'grid', NYI: 'bitmap'
+drawGridMethod = 'grid'
+
+# Grayout (blueout actually) source while designer is open
+grayoutSource = 0
+
+# These settings may be specific to Red Hat, change them if the help
+# complains about missing files.
+# Note: If you want to use different versions of the help, see Scripts/HelpScrpt.py
+# Python documentation path
+pythonDocsPath = '/usr/doc/python-docs-1.5.2/Doc'
+# wxWindows documentation path
+wxWinDocsPath = '/usr/doc/wxPython-2.2.5'
+
+# Font size of the text in the Inspector's statusbar
+inspStatBarFontSize = 13
+
+explorerFileSysRootDefault = ('/', '/')
+
+# Scintilla/wxStyledTextCtrl font definitions
+faces = { 'times'  : 'Times',
+          'mono'   : 'Courier',
+          'helv'   : 'Helvetica',
+          'other'  : 'new century schoolbook',
+          'size'   : 9,
+          'lnsize' : 8,
+          'backcol': '#FFFFFF',}
+
+exportedProperties2 = ['logFontSize', 'srchCtrlOffset', 'paletteHeights',
+ 'windowManagerTop', 'windowManagerBottom', 'windowManagerSide',
+ 'editorProgressFudgePosX', 'editorProgressFudgeSizeY',
+ 'transparentPaletteBitmaps', 'braceHighLight', 'minimizeOnRun',
+ 'drawDesignerGrid', 'grayoutSource', 'inspStatBarFontSize',
+ 'pythonDocsPath', 'wxWinDocsPath']
+# Height of the Palette window. Adjust if you use big fonts
+paletteHeights = {'tabs': 118, 'menu': 72}
+
+# Window manager dependent values useful for mostly for GTK
+windowManagerTop = 0
+windowManagerBottom = 0
+windowManagerSide = 0
+
+# Fudge values for placing the progressbar in the editor
+editorProgressFudgePosX = 0
+# Fudge values for placing the progressbar in the editor
+editorProgressFudgeSizeY = 0
+
+# Try to use transparent bitmaps for palette
+transparentPaletteBitmaps = 1
+
+# Match braces in code
+braceHighLight = 1
+
+# Minimize the IDE while running applications
+minimizeOnRun = 1
+
+# Draw grid in designer
+drawDesignerGrid = 1
+# Also draw grid for child container controls in the frame
+drawDesignerGridForSubWindows = 1
+# Grid draw method: 'lines', 'dots', 'grid', NYI: 'bitmap'
+drawGridMethod = 'grid'
+
+# Grayout (blueout actually) source while designer is open
+grayoutSource = 1
+
+# Font size of the text in the Inspector's statusbar
+inspStatBarFontSize = 9
+
+explorerFileSysRootDefault = ('DRIVE:\\', 'C:\\')
+
+# Scintilla/wxStyledTextCtrl font definitions
+
+faces = { 'times'  : 'Times New Roman',
+          'mono'   : 'Courier New',
+          'helv'   : 'Lucida Console',
+          'lucd'   : 'Lucida Console',
+          'other'  : 'Comic Sans MS',
+          'size'   : 8,
+          'lnsize' : 6,
+          'backcol': '#FFFFFF',}
+
+#----Editable preferences-------------------------------------------------------
+exportedProperties2 = ['logFontSize', 'srchCtrlOffset', 'paletteHeights',
+ 'windowManagerTop', 'windowManagerBottom', 'windowManagerSide',
+ 'editorProgressFudgePosX', 'editorProgressFudgeSizeY',
+ 'transparentPaletteBitmaps', 'braceHighLight', 'minimizeOnRun',
+ 'drawDesignerGrid', 'drawDesignerGridForSubWindows', 'drawGridMethod',
+ 'grayoutSource', 'inspStatBarFontSize']
+from wxPython.wx import *
+
+print 'Setting user preferences'
+
+#-Miscellaneous-----------------------------------------------------------------
+
+# Should toolbars have flat buttons
+flatTools = wxTB_FLAT
+# Frame style for child windows of the main frame
+# E.g. to prevent child windows from appearing on the taskbar set
+# childFrameStyle = wx.wxCLIP_CHILDREN | wxFRAME_TOOL_WINDOW
+childFrameStyle = wxCLIP_CHILDREN
+# Should the palette be a menubar ('menu') or a notebook ('tabs')
+paletteStyle = 'tabs'
+
+# Alternating background colours used in ListCtrls (pastel blue and yellow)
+pastels = 1
+pastelMedium = wxColour(235, 246, 255)
+pastelLight = wxColour(255, 255, 240)
+## White and lightgray
+##pastelMedium = wx.wxColour(234, 234, 234)
+##pastelLight = wx.wxColour(255, 255, 255)
+
+# Replace the standard file dialog with Boa's own dialog
+useBoaFileDlg = 1
+
+# Colour used to display uninitialised window space.
+# A control must be placed in this space before valid code can be generated
+undefinedWindowCol = wxColour(128, 0, 0)
+
+# Info that will be filled into the comment block. (Edit->Add module info)
+# Also used by setup.py
+staticInfoPrefs = { 'Purpose':   '',
+                    'Author':    '<Your name>',
+                    'Copyright': '(c) <Your copyright>',
+                    'Licence':   '<Your licence>',
+                    'Email':     '<Your email>',
+                  }
+
+# Should modules be added to the application if it is the active Model when
+# a module is created from the palette
+autoAddToApplication = 1
+
+# Load images from a singe file Image.archive (zip of Image directory)
+useImageArchive = 0
+# Only load image 1st time it is requested then cache it
+# Turn this off to conserve resources on win9x
+useImageCache = 1
+
+# Flag for turning on special checking for european keyboard characters by
+# checking for certain codes while ctrl alt is held.
+handleSpecialEuropeanKeys = 0
+# Country code for keyboards, options: 'euro', 'france', 'swiss-german' 
+euroKeysCountry = 'euro'
+
+# Auto correct indentation and EOL characters on load, save and refresh
+# This only works for Python 2.0 and up
+autoReindent = 0
+
+# Redirect stderrout to logmessages
+logStdStreams = 1
+recordModuleCallPoint = 1
+
+# Safety net so COM support has to be explicitly turned on
+# Will stay here until the win9x crashes has been sorted out
+blockCOM = 1
+
+# Debugger to use, options: 'old', 'new'
+useDebugger = 'old'
+
+# Syntax checking
+# Underlines possible syntax errors with a red squigly line
+# Syntax is checked whwn the cursor moves off a line that was modified
+checkSyntax = 1
+# Only do syntax checking if cursor moves off line that was modified
+onlyCheckIfLineModified = 1
+
+# Path to an alternative Python Interpreter. By default (blank string) Boa
+# will use the same interpreter it is running on
+pythonInterpreterPath = ''
+#pythonInterpreterPath = 'd:/progra~1/zope/2-3-1/bin/python.exe'
+
+# Should the files open when closing Boa be reloaded at next startup?
+rememberOpenFiles = 1
+rememberOpenApps = 0
+
+#-Inspector---------------------------------------------------------------------
+
+# Display properties for which source will be generated in Bold
+showModifiedProps = 1
+# Colour of property value static text ctrls
+propValueColour = wxColour(0, 0, 100)
+# Inspector row height
+oiLineHeight = 18
+# Default Inspector Names (1st coloumn) width
+oiNamesWidth = 100
+# Inspector notebook style flags
+# 16 (FxdWdth), 32 (lft), 64 (rght), 128 (btm)
+inspNotebookFlags = 0 
+# Should the stderr and stdout notebook be hosted in the inspector?
+showErrOutInInspector = 1
+##inspPageNames = {'Constr': 'Constructor',
+##                 'Props': 'Properties',
+##                 'Evts': 'Events',
+##                 'Objs': 'Objects'}
+#Smaller version if you don't have have high enough res
+inspPageNames = {'Constr': 'Constr',
+                 'Props': 'Props',
+                 'Evts': 'Evts',
+                 'Objs': 'Objs'}
+
+# Shell prompt (must be 3 chars with trailing space)'
+ps1 = '>>> '
+# Shell prompt, continued line (must be 3 chars with trailing space)'
+ps2 = '... '
+# Shell debug prompt (must be 3 chars with trailing space)'
+#ps3 = '>-> '
+# Shell prompt, standard input request (must be 3 chars with trailing space)
+ps4 = '<<< '
+
+# Try to update the wxPython.libs directory with the newest run time libs (Component files)
+installBCRTL = 1
+
+#----Editable preferences-------------------------------------------------------
+exportedProperties = ['flatTools', 'childFrameStyle', 'paletteStyle',
+  'pastels', 'pastelMedium', 'pastelLight', 
+  'useBoaFileDlg', 'undefinedWindowCol', 'autoAddToApplication',
+  'useImageArchive',  'handleSpecialEuropeanKeys', 'euroKeysCountry', 
+  'autoReindent', 'logStdStreams', 'recordModuleCallPoint', 'blockCOM', 
+  'useDebugger',
+  'checkSyntax', 'onlyCheckIfLineModified', 'pythonInterpreterPath', 
+  'rememberOpenFiles', 'showModifiedProps', 'propValueColour', 
+  'oiLineHeight', 'oiNamesWidth', 'inspNotebookFlags', 'showErrOutInInspector', 
+  'ps1', 'ps2', 'ps4']
+#-----------------------------------------------------------------------------
+# Name:        prefskeys.rc.py
+# Purpose:     Keyboard definitions
+#
+# Author:      Riaan Booysen
+#
+# Created:     2000/05/12
+# RCS-ID:      $Id$
+# Copyright:   (c) 1999 - 2001 Riaan Booysen
+# Licence:     GPL
+#-----------------------------------------------------------------------------
+
+from wxPython.wx import *
+
+# Keycodes (press F1 ;)
+
+keyDefs = {
+  'ContextHelp' : (wxACCEL_NORMAL, WXK_F1, 'F1'),
+  'CheckSource' : (wxACCEL_NORMAL, WXK_F2, 'F2'),
+  'FindAgain'   : (wxACCEL_NORMAL, WXK_F3, 'F3'),
+  'Debug'       : (wxACCEL_NORMAL, WXK_F4, 'F4'),
+  'ToggleBrk'   : (wxACCEL_NORMAL, WXK_F5, 'F5'),
+  'DebugOut'    : (wxACCEL_NORMAL, WXK_F6, 'F6'),
+  'DebugStep'   : (wxACCEL_NORMAL, WXK_F7, 'F7'),
+  'DebugOver'   : (wxACCEL_NORMAL, WXK_F8, 'F8'),
+  'RunApp'      : (wxACCEL_NORMAL, WXK_F9, 'F9'),
+  'RunMod'      : (wxACCEL_NORMAL, WXK_F10, 'F10'),
+  'Inspector'   : (wxACCEL_NORMAL, WXK_F11, 'F11'),
+  'Designer'    : (wxACCEL_NORMAL, WXK_F12, 'F12'),
+  'Editor'      : (wxACCEL_NORMAL, WXK_F12, 'F12'),
+  'Find'        : (wxACCEL_CTRL, ord('F'), 'Ctrl-F'),
+  'Open'        : (wxACCEL_CTRL, ord('O'), 'Ctrl-O'),
+  'Close'       : (wxACCEL_CTRL, ord('Q'), 'Ctrl-Q'),
+  'Save'        : (wxACCEL_CTRL, ord('S'), 'Ctrl-S'),
+  'Indent'      : (wxACCEL_CTRL, ord('I'), 'Ctrl-I'), 
+  'Dedent'      : (wxACCEL_CTRL, ord('U'), 'Ctrl-U'),
+  'DashLine'    : (wxACCEL_CTRL, ord('B'), 'Ctrl-B'),
+  'Refresh'     : (wxACCEL_CTRL, ord('R'), 'Ctrl-R'),
+  'Insert'      : (wxACCEL_NORMAL, WXK_INSERT, 'Ins'),
+  'Delete'      : (wxACCEL_NORMAL, WXK_DELETE, 'Del'),
+  'Escape'      : (wxACCEL_NORMAL, WXK_ESCAPE, 'Esc'),
+  'NextPage'    : (wxACCEL_CTRL, ord('K'), 'Ctrl-K'),
+  'PrevPage'    : (wxACCEL_CTRL, ord('J'), 'Ctrl-J'),
+  'Cut'         : (wxACCEL_SHIFT, WXK_DELETE, 'Shft-Del'),
+  'Copy'        : (wxACCEL_CTRL, WXK_INSERT, 'Ctrl-Ins'),
+  'Paste'       : (wxACCEL_SHIFT, WXK_INSERT, 'Shft-Ins'),
+  'MoveLeft'    : (wxACCEL_CTRL, WXK_LEFT, 'Ctrl-Left'),
+  'MoveRight'   : (wxACCEL_CTRL, WXK_RIGHT, 'Ctrl-Right'),
+  'MoveUp'      : (wxACCEL_CTRL, WXK_UP, 'Ctrl-Up'),
+  'MoveDown'    : (wxACCEL_CTRL, WXK_DOWN, 'Ctrl-Down'),
+  'WidthDec'    : (wxACCEL_SHIFT, WXK_LEFT, 'Shft-Left'),
+  'WidthInc'    : (wxACCEL_SHIFT, WXK_RIGHT, 'Shft-Right'),
+  'HeightInc'   : (wxACCEL_SHIFT, WXK_DOWN, 'Shft-Down'),
+  'HeightDec'   : (wxACCEL_SHIFT, WXK_UP, 'Shft-Up'),
+  'MarkPlace'   : (wxACCEL_CTRL, ord('M'), 'Ctrl-M'),
+  'HistoryUp'   : (wxACCEL_CTRL, WXK_UP, 'Ctrl-Up'),
+  'HistoryDown' : (wxACCEL_CTRL, WXK_DOWN, 'Ctrl-Down'),
+  'CodeComplete': (wxACCEL_CTRL, WXK_SPACE, 'Ctrl-Space'),
+  'CallTips'    : (wxACCEL_SHIFT|wxACCEL_CTRL, WXK_SPACE, 'Ctrl-Shft-Space'),
+  'GotoLine'    : (wxACCEL_CTRL, ord('G'), 'Ctrl-G'),
+  'HelpFind'    : (wxACCEL_CTRL, ord('H'), 'Ctrl-H'),
+  'GotoExplorer': (wxACCEL_CTRL, ord('E'), 'Ctrl-E'),
+  'GotoShell'   : (wxACCEL_CTRL, ord('P'), 'Ctrl-P'),
+}
+
+# Delphi's indent
+##  'Indent'      : (wxACCEL_SHIFT|wxACCEL_CTRL, ord('I'), 'Ctrl-Shft-I'),
+##  'Dedent'      : (wxACCEL_SHIFT|wxACCEL_CTRL, ord('U'), 'Ctrl-Shft-U'),
+# VS's indent
+##  'Indent'      : (wxACCEL_NORMAL, WXK_TAB, 'Tab'),
+##  'Dedent'      : (wxACCEL_SHIFT, WXK_TAB, 'Shft-Tab'),
+
+if wxPlatform == '__WXMSW__':
+    keyDefs.update({'SaveAs'      : (wxACCEL_ALT, ord('S'), 'Alt-S'),
+                    'Comment'     : (wxACCEL_ALT, ord('3'), 'Alt-3'),
+                    'Uncomment'   : (wxACCEL_ALT, ord('4'), 'Alt-4'),
+                    'SwitchToApp' : (wxACCEL_ALT, ord('A'), 'Alt-A'),
+                    'CodeXform'   : (wxACCEL_ALT, ord('C'), 'Alt-C'),
+                  })
+elif wxPlatform == '__WXGTK__':
+    keyDefs.update({'SaveAs'      : (wxACCEL_CTRL, ord('1'), 'Ctrl-1'),
+                    'Comment'     : (wxACCEL_CTRL, ord('3'), 'Ctrl-3'),
+                    'Uncomment'   : (wxACCEL_CTRL, ord('4'), 'Ctrl-4'),
+                    'SwitchToApp' : (wxACCEL_CTRL, ord('5'), 'Ctrl-5'),
+                    'CodeXform'   : (wxACCEL_CTRL, ord('E'), 'Ctrl-E'),
+                  })
+
+# Not used yet, defined for compleness
+stcDefs = {'Cut'        : 'Shft-Del',
+           'Copy'       : 'Ctrl-Ins',
+           'Paste'      : 'Shft-Ins',
+           'SelectAll'  : 'Ctrl-A',
+           'Undo'       : 'Ctrl-Z',
+           'Redo'       : 'Ctrl-Y',
+           'DeleteLine' : 'Ctrl-L'}