Class: Fox::FXCommand
- Inherits:
-
Object
- Object
- Fox::FXCommand
- Defined in:
- lib/fox16/undolist.rb
Overview
FXCommand is an “abstract” base class for your application’s commands. At a minimum, your concrete subclasses of FXCommand should implement the #undo, #redo, #undoName, and #redoName methods.
Instance Method Summary collapse
-
#redo ⇒ Object
Redo this command; this should save enough information for a subsequent undo.
-
#redoName ⇒ Object
Name of the redo command to be shown on a button or menu command; for example, “Redo Delete”.
-
#size ⇒ Object
Returns the size of the information in the undo record, i.e.
-
#undo ⇒ Object
Undo this command; this should save enough information for a subsequent redo.
-
#undoName ⇒ Object
Name of the undo command to be shown on a button or menu command; for example, “Undo Delete”.
Instance Method Details
#redo ⇒ Object
Redo this command; this should save enough information for a subsequent undo.
425 426 427 |
# File 'lib/fox16/undolist.rb', line 425 def redo raise NotImpError end |
#redoName ⇒ Object
Name of the redo command to be shown on a button or menu command; for example, “Redo Delete”.
441 442 443 |
# File 'lib/fox16/undolist.rb', line 441 def redoName raise NotImpError end |
#size ⇒ Object
Returns the size of the information in the undo record, i.e. the number of bytes required to store it in memory. This is only used by the FXUndoList#trimSize method, which can be called to reduce the memory use of the undo list to a certain size.
451 452 453 |
# File 'lib/fox16/undolist.rb', line 451 def size 0 end |
#undo ⇒ Object
Undo this command; this should save enough information for a subsequent redo.
417 418 419 |
# File 'lib/fox16/undolist.rb', line 417 def undo raise NotImpError end |
#undoName ⇒ Object
Name of the undo command to be shown on a button or menu command; for example, “Undo Delete”.
433 434 435 |
# File 'lib/fox16/undolist.rb', line 433 def undoName raise NotImpError end |