Changeset 1481
- Timestamp:
- 07/10/08 18:14:38 (2 months ago)
- Location:
- trunk/peppy
- Files:
-
- 5 modified
-
fundamental.py (modified) (1 diff)
-
mainmenu.py (modified) (1 diff)
-
major.py (modified) (1 diff)
-
plugins/bash_mode.py (modified) (1 diff)
-
plugins/python_mode.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/peppy/fundamental.py
r1462 r1481 77 77 78 78 class FundamentalMode(FoldExplorerMixin, EditraSTCMixin, 79 PeppySTC, MajorMode ):79 PeppySTC, MajorMode, JobControlMixin): 80 80 """Major mode for editing generic text files. 81 81 -
trunk/peppy/mainmenu.py
r1471 r1481 512 512 513 513 def action(self, index=-1, multiplier=1): 514 if self.name in self.mode.class_storage: 515 last = self.mode.class_storage[self.name] 516 else: 517 last = '' 514 518 minibuffer = TextMinibuffer(self.mode, self, label="Command line:", 515 initial = self.mode.getScriptArgs())519 initial = last) 516 520 self.mode.setMinibuffer(minibuffer) 517 521 self.mode.setStatusText("Enter command line, %s will be replaced by full path to file") 518 522 519 523 def processMinibuffer(self, minibuffer, mode, text): 524 self.mode.class_storage[self.name] = text 520 525 self.mode.startCommandLine(text, expand=True) 521 526 -
trunk/peppy/major.py
r1478 r1481 410 410 # of a superclass. This is a dict based on the class name. 411 411 localkeymaps = {} 412 412 413 # Generic storage for all instances of this class 414 class_storage = {} 415 413 416 def __init__(self, parent, wrapper, buffer, frame): 414 417 # set up the view-local versions of classprefs -
trunk/peppy/plugins/bash_mode.py
r1401 r1481 17 17 from peppy.fundamental import FundamentalMode 18 18 19 class BashMode( JobControlMixin,SimpleFoldFunctionMatchMixin, FundamentalMode):19 class BashMode(SimpleFoldFunctionMatchMixin, FundamentalMode): 20 20 """Major mode for editing Bash/KSH/Bourne shell scripts. 21 21 """ -
trunk/peppy/plugins/python_mode.py
r1478 r1481 222 222 223 223 224 class PythonMode(JobControlMixin, SimpleFoldFunctionMatchMixin, 225 FundamentalMode): 224 class PythonMode(SimpleFoldFunctionMatchMixin, FundamentalMode): 226 225 keyword='Python' 227 226 icon='icons/py.png'
