Gnm.Command¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
cmd_descriptor |
r |
||
parent |
r |
||
sheet |
r |
||
size |
r |
||
state_before_do |
r |
Class Details¶
- class Gnm.Command(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod finalize(obj)¶
- Parameters:
obj (
GObject.Object
) –
- classmethod list_release(cmds)¶
- Parameters:
cmds ([
GObject.Object
]) – the set of commands to free.
Gnm.Command.list_release
: utility routine to free the resources associated with a list of commands.NOTE : remember to
None
the list when you are done.
- classmethod push_undo(wbc, obj)¶
- Parameters:
wbc (
Gnm.WorkbookControl
) – TheGOffice.workbook
control that issued the command.obj (
GObject.Object
) – The new command to add.
- Returns:
- Return type:
An internal utility to tack a new command onto the undo list.
- classmethod redo(wbc)¶
- Parameters:
wbc (
Gnm.WorkbookControl
) – TheGOffice.workbook
control which issued the request.
Redo the last command that was undone. Any user level errors generated by redoing will be reported here.
- classmethod repeat(wbc)¶
- Parameters:
wbc (
Gnm.WorkbookControl
) – TheGOffice.workbook
control which issued the request.
Repeat the last command (if possible)
Any user level errors generated by redoing will be reported here.
- classmethod setup_combos(wbc)¶
- Parameters:
wbc (
Gnm.WorkbookControl
) –
Initialize the combos to correspond to the current undo/redo state.
- classmethod undo(wbc)¶
- Parameters:
wbc (
Gnm.WorkbookControl
) – TheGOffice.workbook
control which issued the request. Any user level errors generated by undoing will be reported here.
Undo the last command executed.
- do_redo_cmd(wbc) virtual¶
- Parameters:
wbc (
Gnm.WorkbookControl
) –- Return type:
- do_repeat_cmd(wbc) virtual¶
- Parameters:
wbc (
Gnm.WorkbookControl
) –
- do_undo_cmd(wbc) virtual¶
- Parameters:
wbc (
Gnm.WorkbookControl
) –- Return type: