1 #ifndef PTREE_UNDO_COMMANDS_H_INCLUDED
2 #define PTREE_UNDO_COMMANDS_H_INCLUDED
23 #include <QUndoCommand>
45 QVariant
const & old_value, QVariant
const & new_value);
61 QPersistentModelIndex index;
81 QVariant
const & old_value, QVariant
const & new_value);
97 QPersistentModelIndex index;
119 QModelIndex
const & parent_index,
int row,
int count);
131 QModelIndex
const & parent_index,
int row, boost::property_tree::ptree
const& t);
147 QPersistentModelIndex parent_index;
186 QPersistentModelIndex parent_index;
213 Item* new_parent, QModelIndex
const& new_parent_index,
int new_row,
int count);
230 QPersistentModelIndex old_parent_index;
231 QPersistentModelIndex new_parent_index;
241 #endif // end_of_inclde_guard
InsertRowsCommand(PTreeModel *m, Item *parent, QModelIndex const &parent_index, int row, int count)
Undo command that represents a single edit operation for a data value of PTreeModel.
RemoveRowsCommand(PTreeModel *m, Item *parent, QModelIndex const &parent_index, int row, int count)
virtual void undo()
See QUndoCommand documentation for details.
EditKeyCommand(PTreeModel *m, Item *i, QModelIndex const &x, QVariant const &old_value, QVariant const &new_value)
Undo command that represents a single move operation of rows inside a PTreeModel. ...
virtual void redo()
See QUndoCommand documentation for details.
Qt model reflecting hierarchical structure of a ptree.
virtual void undo()
See QUndoCommand documentation for details.
virtual void redo()
See QUndoCommand documentation for details.
virtual void redo()
See QUndoCommand documentation for details.
virtual void undo()
See QUndoCommand documentation for details.
see the online Qt documentation
virtual void redo()
See QUndoCommand documentation for details.
Undo command that represents a single insertion operation of rows into a PTreeModel.
virtual void undo()
See QUndoCommand documentation for details.
MoveRowsCommand(PTreeModel *m, Item *old_parent, QModelIndex const &old_parent_index, int old_row, Item *new_parent, QModelIndex const &new_parent_index, int new_row, int count)
Interface for PTreeModel.
EditDataCommand(PTreeModel *m, Item *i, QModelIndex const &x, QVariant const &old_value, QVariant const &new_value)
virtual void undo()
See QUndoCommand documentation for details.
Undo command that represents a single edit operation for a key value of PTreeModel.
Namespace for generic graphical shell for simulators.
Undo command that represents a single removal operation of rows from a PTreeModel.
virtual void redo()
See QUndoCommand documentation for details.