Class: Gnm::Command

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Class Method Summary collapse

Class Method Details

.finalize(obj) ⇒ nil

Parameters:

  • obj (GObject::Object)

Returns:

  • (nil)

.list_release(cmds) ⇒ nil

command_list_release : utility routine to free the resources associated with a list of commands.

NOTE : remember to NULL the list when you are done.

Parameters:

  • cmds (GLib::SList<GObject::Object>)

    the set of commands to free.

Returns:

  • (nil)

.push_undo(wbc, obj) ⇒ Boolean

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

Parameters:

  • wbc (Gnm::WorkbookControl)

    The workbook control that issued the command.

  • obj (GObject::Object)

    The new command to add.

Returns:

  • (Boolean)

    true if there was a problem, false otherwise.

.redo(wbc) ⇒ nil

Redo the last command that was undone. Any user level errors generated by redoing will be reported here.

Parameters:

Returns:

  • (nil)

.repeat(wbc) ⇒ nil

Repeat the last command (if possible)

   Any user level errors generated by redoing will be reported
   here.

Parameters:

Returns:

  • (nil)

.setup_combos(wbc) ⇒ nil

Initialize the combos to correspond to the current undo/redo state.

Parameters:

Returns:

  • (nil)

.undo(wbc) ⇒ nil

Undo the last command executed.

Parameters:

  • wbc (Gnm::WorkbookControl)

    The workbook control which issued the request. Any user level errors generated by undoing will be reported here.

Returns:

  • (nil)