Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
idlelib.UndoDelegator.Command Class Reference
Inheritance diagram for idlelib.UndoDelegator.Command:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def __repr__
def do
def redo
def undo
def merge
def save_marks
def set_marks

Public Attributes

 marks_before
 marks_after
 index1
 index2
 chars

Static Public Attributes

 tags = None

Detailed Description

Definition at line 160 of file UndoDelegator.py.


Constructor & Destructor Documentation

def idlelib.UndoDelegator.Command.__init__ (   self,
  index1,
  index2,
  chars,
  tags = None 
)

Definition at line 166 of file UndoDelegator.py.

00166 
00167     def __init__(self, index1, index2, chars, tags=None):
00168         self.marks_before = {}
00169         self.marks_after = {}
00170         self.index1 = index1
00171         self.index2 = index2
00172         self.chars = chars
00173         if tags:
00174             self.tags = tags

Here is the caller graph for this function:


Member Function Documentation

Reimplemented in idlelib.UndoDelegator.CommandSequence.

Definition at line 175 of file UndoDelegator.py.

00175 
00176     def __repr__(self):
00177         s = self.__class__.__name__
00178         t = (self.index1, self.index2, self.chars, self.tags)
00179         if self.tags is None:
00180             t = t[:-1]
00181         return s + repr(t)

def idlelib.UndoDelegator.Command.do (   self,
  text 
)

Reimplemented in idlelib.UndoDelegator.DeleteCommand, and idlelib.UndoDelegator.InsertCommand.

Definition at line 182 of file UndoDelegator.py.

00182 
00183     def do(self, text):
00184         pass

def idlelib.UndoDelegator.Command.merge (   self,
  cmd 
)

Reimplemented in idlelib.UndoDelegator.InsertCommand.

Definition at line 191 of file UndoDelegator.py.

00191 
00192     def merge(self, cmd):
00193         return 0

def idlelib.UndoDelegator.Command.redo (   self,
  text 
)

Reimplemented in idlelib.UndoDelegator.CommandSequence, idlelib.UndoDelegator.DeleteCommand, and idlelib.UndoDelegator.InsertCommand.

Definition at line 185 of file UndoDelegator.py.

00185 
00186     def redo(self, text):
00187         pass

def idlelib.UndoDelegator.Command.save_marks (   self,
  text 
)

Definition at line 194 of file UndoDelegator.py.

00194 
00195     def save_marks(self, text):
00196         marks = {}
00197         for name in text.mark_names():
00198             if name != "insert" and name != "current":
00199                 marks[name] = text.index(name)
00200         return marks

def idlelib.UndoDelegator.Command.set_marks (   self,
  text,
  marks 
)

Definition at line 201 of file UndoDelegator.py.

00201 
00202     def set_marks(self, text, marks):
00203         for name, index in marks.items():
00204             text.mark_set(name, index)
00205 

Here is the caller graph for this function:

def idlelib.UndoDelegator.Command.undo (   self,
  text 
)

Reimplemented in idlelib.UndoDelegator.CommandSequence, idlelib.UndoDelegator.DeleteCommand, and idlelib.UndoDelegator.InsertCommand.

Definition at line 188 of file UndoDelegator.py.

00188 
00189     def undo(self, text):
00190         pass


Member Data Documentation

Definition at line 164 of file UndoDelegator.py.


The documentation for this class was generated from the following file: