void RestoreOperation::undo()
{
	removePreviewPartition(targetDevice(), restorePartition());

	if (overwrittenPartition())
		insertPreviewPartition(targetDevice(), *overwrittenPartition());
}
示例#2
0
void NewOperation::preview()
{
    insertPreviewPartition(targetDevice(), newPartition());
}
示例#3
0
void DeleteOperation::undo()
{
    checkAdjustLogicalNumbers(deletedPartition(), true);
    insertPreviewPartition(targetDevice(), deletedPartition());
}
void RestoreOperation::preview()
{
	insertPreviewPartition(targetDevice(), restorePartition());
}