remove old header line code
@@ -252,29 +252,6 @@ class Window(StaticWindow):
self.controller.unfocus()
-class HeaderLine(StaticWindow):
- def __init__(self, host):
- StaticWindow.__init__(self, host)
- self.host = host
- self.textLine = None
-
- def refresh(self):
- textLine = self.host.textBuffer.fullPath
- if self.textLine == textLine:
- return
- self.textLine = textLine
- self.blank()
- self.addStr(0, 0, textLine, self.color)
- self.cursorWindow.refresh()
-
-
-class FileListPanel(Window):
- def __init__(self, parent):
- Window.__init__(self, parent)
- self.color = curses.color_pair(18)
- self.colorSelected = curses.color_pair(3)
-
-
class LabeledLine(Window):
"""A single line with a label. This is akin to a line prompt or gui modal
dialog. It's used for things like 'find' and 'goto line'."""
@@ -538,7 +515,6 @@ class InputWindow(Window):
assert(prg)
Window.__init__(self, prg)
self.prg = prg
- self.showHeader = False
self.showFooter = True
self.useInteractiveFind = True
self.showLineNumbers = True
@@ -551,13 +527,6 @@ class InputWindow(Window):
self.controller.add(app.cu_editor.CuaPlusEdit(prg, self))
# What does the user appear to want: edit, quit, or something else?
self.userIntent = 'edit'
- if 1:
- self.headerLine = HeaderLine(self)
- self.headerLine.color = curses.color_pair(168)
- self.headerLine.colorSelected = curses.color_pair(47)
- self.headerLine.setParent(self, 0)
- if not self.showHeader:
- self.headerLine.hide()
if 1:
self.confirmClose = LabeledLine(self,
"Save changes? (yes, no, or cancel): ")
@@ -644,10 +613,6 @@ class InputWindow(Window):
lineNumbersCols = 7
bottomRows = 1 # Not including status line.
- if self.showHeader:
- self.headerLine.reshape(1, cols, top, left)
- rows -= 1
- top += 1
if self.showTopInfo:
self.topInfo.reshape(0, cols-lineNumbersCols, top,
left+lineNumbersCols)
@@ -737,7 +702,6 @@ class InputWindow(Window):
def setTextBuffer(self, textBuffer):
app.log.info('setTextBuffer')
- #self.headerLine.controller.setFileName(textBuffer.fullPath)
textBuffer.lineLimitIndicator = 80
self.controller.setTextBuffer(textBuffer)
Window.setTextBuffer(self, textBuffer)
