virtual void selectionChanged(const ListSelectionEventUnrecPtr e)
    {
		if(!UndoRedoList->getSelectionModel()->isSelectionEmpty())
        {
			Int32 ListSelectedIndex(UndoRedoList->getSelectionModel()->getAnchorSelectionIndex());


			TheUndoManager->undoOrRedoTo(ListSelectedIndex);
        }
    }
void handleUndoRedoListSelectionChanged(ListSelectionEventDetails* const details,
                                        UndoManagerPtr TheUndoManager)
{
	if(!dynamic_cast<ListSelectionModel*>(details->getSource())->isSelectionEmpty())
    {
		Int32 ListSelectedIndex(dynamic_cast<ListSelectionModel*>(details->getSource())->getAnchorSelectionIndex());

		TheUndoManager->undoOrRedoTo(ListSelectedIndex);
    }
}
Esempio n. 3
0
void handleUndoRedoListSelectionChanged(ListSelectionEventDetails* const details,
                                        List* const UndoRedoList,
                                        UndoManagerPtr TheUndoManager)
{
    if(!UndoRedoList->getSelectionModel()->isSelectionEmpty())
    {
        Int32 ListSelectedIndex(UndoRedoList->getSelectionModel()->getAnchorSelectionIndex());

        TheUndoManager->undoOrRedoTo(ListSelectedIndex);
    }
}