VPTissue Reference Manual
SimShell::Gui::PTreeModel::InsertRowsCommand Class Reference

Undo command that represents a single insertion operation of rows into a PTreeModel. More...

#include <PTreeUndoCommands.h>

Inheritance diagram for SimShell::Gui::PTreeModel::InsertRowsCommand:
Inheritance graph
Collaboration diagram for SimShell::Gui::PTreeModel::InsertRowsCommand:
Collaboration graph

Public Member Functions

 InsertRowsCommand (PTreeModel *m, Item *parent, QModelIndex const &parent_index, int row, int count)
 
 InsertRowsCommand (PTreeModel *m, Item *parent, QModelIndex const &parent_index, int row, boost::property_tree::ptree const &t)
 
virtual void redo ()
 See QUndoCommand documentation for details.
 
virtual void undo ()
 See QUndoCommand documentation for details.
 

Detailed Description

Undo command that represents a single insertion operation of rows into a PTreeModel.

See QUndoCommand documentation for details.

Definition at line 106 of file PTreeUndoCommands.h.

Constructor & Destructor Documentation

SimShell::Gui::PTreeModel::InsertRowsCommand::InsertRowsCommand ( PTreeModel m,
Item *  parent,
QModelIndex const &  parent_index,
int  row,
int  count 
)
Parameters
mModel in which the operation happened.
parentParent item into which rows were inserted.
parent_indexQModelIndex referring to parent item. (necessary to emit beginInsertRows() and endInsertRows() signals during undo() and redo())
rowIndex of row in parent before which rows were inserted.
countNumber of rows that were inserted.

Definition at line 75 of file PTreeUndoCommands.cpp.

SimShell::Gui::PTreeModel::InsertRowsCommand::InsertRowsCommand ( PTreeModel m,
Item *  parent,
QModelIndex const &  parent_index,
int  row,
boost::property_tree::ptree const &  t 
)
Parameters
mModel in which the operation happened.
parentParent item into which rows were inserted.
parent_indexQModelIndex referring to parent item. (necessary to emit beginInsertRows() and endInsertRows() signals during undo() and redo())
rowIndex of row in parent before which rows were inserted.
tptree object of which the children represent the rows that were inserted.

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