Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
cadabra::ActionSplitCell Class Reference

Description

Split a cell into two separate cells, at the point of the cursor.

#include <Actions.hh>

Inheritance diagram for cadabra::ActionSplitCell:
cadabra::ActionBase

Public Member Functions

 ActionSplitCell (DTree::iterator ref_)
 
 ~ActionSplitCell ()
 
virtual void execute (DocumentThread &, GUIBase &) override
 Perform the action. More...
 
virtual void revert (DocumentThread &, GUIBase &) override
 Revert the change to the DTree document and the GUI. More...
 
- Public Member Functions inherited from cadabra::ActionBase
virtual bool undoable () const
 Can this action be undone? More...
 

Private Attributes

DTree::iterator this_cell
 
DTree::iterator newref
 

Constructor & Destructor Documentation

ActionSplitCell::ActionSplitCell ( DTree::iterator  ref_)
ActionSplitCell::~ActionSplitCell ( )

Member Function Documentation

void ActionSplitCell::execute ( DocumentThread &  ,
GUIBase &   
)
overridevirtual

Perform the action.

This should update both the document tree data structure and the GUI. The latter is updated by calling relevant methods on the GUIBase object passed in.

Implements cadabra::ActionBase.

void ActionSplitCell::revert ( DocumentThread &  ,
GUIBase &   
)
overridevirtual

Revert the change to the DTree document and the GUI.

Implements cadabra::ActionBase.

Member Data Documentation

DTree::iterator cadabra::ActionSplitCell::newref
private
DTree::iterator cadabra::ActionSplitCell::this_cell
private

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