Gnm.Command

g GObject.Object GObject.Object Gnm.Command Gnm.Command GObject.Object->Gnm.Command

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

finalize (obj)

class

list_release (cmds)

class

push_undo (wbc, obj)

class

redo (wbc)

class

repeat (wbc)

class

setup_combos (wbc)

class

undo (wbc)

Virtual Methods

Inherited:

GObject.Object (7)

do_redo_cmd (wbc)

do_repeat_cmd (wbc)

do_undo_cmd (wbc)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

cmd_descriptor

str

r

parent

GObject.Object

r

sheet

Gnm.Sheet

r

size

int

r

state_before_do

int

r

Class Details

class Gnm.Command(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gnm.CommandClass

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:
Returns:

True if there was a problem, False otherwise.

Return type:

bool

An internal utility to tack a new command onto the undo list.

classmethod redo(wbc)
Parameters:

wbc (Gnm.WorkbookControl) – The GOffice.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) – The GOffice.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) – The GOffice.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:

bool

do_repeat_cmd(wbc) virtual
Parameters:

wbc (Gnm.WorkbookControl) –

do_undo_cmd(wbc) virtual
Parameters:

wbc (Gnm.WorkbookControl) –

Return type:

bool