[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9140 - trunk/gnue-forms/src/input/displayHandlers
From: |
reinhard |
Subject: |
[gnue] r9140 - trunk/gnue-forms/src/input/displayHandlers |
Date: |
Tue, 12 Dec 2006 08:55:35 -0600 (CST) |
Author: reinhard
Date: 2006-12-12 08:55:34 -0600 (Tue, 12 Dec 2006)
New Revision: 9140
Removed:
trunk/gnue-forms/src/input/displayHandlers/Base.py
Modified:
trunk/gnue-forms/src/input/displayHandlers/Cursor.py
Log:
Some cleanup.
Deleted: trunk/gnue-forms/src/input/displayHandlers/Base.py
===================================================================
--- trunk/gnue-forms/src/input/displayHandlers/Base.py 2006-12-12 14:32:12 UTC
(rev 9139)
+++ trunk/gnue-forms/src/input/displayHandlers/Base.py 2006-12-12 14:55:34 UTC
(rev 9140)
@@ -1,191 +0,0 @@
-
-# This file is part of GNU Enterprise.
-#
-# GNU Enterprise is free software; you can redistribute it
-# and/or modify it under the terms of the GNU General Public
-# License as published by the Free Software Foundation; either
-# version 2, or (at your option) any later version.
-#
-# GNU Enterprise is distributed in the hope that it will be
-# useful, but WITHOUT ANY WARRANTY; without even the implied
-# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-# PURPOSE. See the GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public
-# License along with program; see the file COPYING. If not,
-# write to the Free Software Foundation, Inc., 59 Temple Place
-# - Suite 330, Boston, MA 02111-1307, USA.
-#
-# Copyright 2002-2006 Free Software Foundation
-#
-# FILE:
-# GFDisplayHandler.py
-#
-# $Id$
-"""
-DisplayHandler classes for Forms input validation
-"""
-__revision__ = "$Id$"
-
-from gnue.common import events
-
-class Base(events.EventAware):
- """
- The base display handler.
-
- This display handler is not to be used directly. Other
- display handlers inherit from this one. At this point
- Base is completely empty and all classes inherit from
- BaseCursor. Functions will be moved from BaseCursor to
- Base at some point
- """
-
- # ===========================================================================
- # Cursor movement functions
- # ===========================================================================
-
- def _moveCursor(self, event, selecting=False):
- """
- Moves the cursor to the specified position optionally selecting the text.
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: _moveCursor not supported." % self.entry.name
)
- return
-
- def _moveCursorLeft(self, event, selecting=False):
- """
- Moves the cursor to the left optionally selecting the text.
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: _moveCursorLeft not supported." %
self.entry.name )
- return
-
- def _moveCursorRight(self, event, selecting=False):
- """
- Moves the cursor to the right optionally selecting the text.
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: _moveCursorRight not supported." %
self.entry.name )
- return
-
- def _moveCursorToEnd(self, event, selecting=False):
- """
- Moves the cursor to the end optionally selecting the text.
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: _moveCursorToEnd not supported." %
self.entry.name )
- return
-
- def _moveCursorToBegin(self, event, selecting=False):
- """
- Moves the cursor to the beginning optionally selecting the text.
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: _moveCursosToBegin not supported." %
self.entry.name )
- return
-
- def backspace(self, event):
- """
- Delete backward one character
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: backspace not supported." % self.entry.name )
- return
-
- # Delete forward one character
- def delete(self, event):
- """
- Delete forward one character
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: delete not supported." % self.entry.name )
- return
-
- # ---------------------------------------------------------------------------
- # Selection Support
- # ---------------------------------------------------------------------------
-
- def setSelectionArea(self, cursor1, cursor2):
- """
- Set the selection area
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: setSelectionArea not supported." %
self.entry.name )
- return
-
-
- def getSelectionArea(self):
- """
- Return the selected area as a tuple (or None if no selection)
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: getSelectionArea not supported." %
self.entry.name )
- return
-
-
- def selectAll(self, event):
- """
- Select the entire text of the entry and move the cursor to the end
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: selectAll not supported." % self.entry.name )
- return
-
- def selectLeft(self, event):
- """
- Move the selection cursor to the left one unit
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: selectLeft not supported." % self.entry.name )
- return
-
-
- def selectRight(self, event):
- """
- Move the selection cursor to the right one unit
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: selectRight not supported." % self.entry.name
)
- return
-
-
- def selectToBegin(self, event):
- """
- Select to the beginning of the entry
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: selectToBegin not supported." %
self.entry.name )
- return
-
-
- def selectToEnd(self, event):
- """
- Select to the beginning of the entry
-
- Not supported by base. Use BaseCursor.
- """
- assert gDebug (5, "Entry %s: selectToEnd not supported." % self.entry.name
)
- return
-
-
- def updateFieldValue (self):
- """
- Update the associated field with the current value of the display handler
- """
-
- assert gDebug (5, "Entry %s: updateFieldValue not supported." %
- self.entry.name)
- pass
Modified: trunk/gnue-forms/src/input/displayHandlers/Cursor.py
===================================================================
--- trunk/gnue-forms/src/input/displayHandlers/Cursor.py 2006-12-12
14:32:12 UTC (rev 9139)
+++ trunk/gnue-forms/src/input/displayHandlers/Cursor.py 2006-12-12
14:55:34 UTC (rev 9140)
@@ -35,12 +35,9 @@
__revision__ = "$Id$"
import sys
-#from gnue.forms.input.displayHandlers import Base
from gnue.common import events
-from gnue.common.apps import errors
-# TODO: When Base is used inherit from that instead
class BaseCursor(events.EventAware):
"""
The base display handler for entries that deal with cursor based
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9140 - trunk/gnue-forms/src/input/displayHandlers,
reinhard <=