TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
HistoryWindow.cpp
Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003 Copyright (c) 2008 Deepak Chandran
00004 Contact: Deepak Chandran (dchandran1@gmail.com)
00005 See COPYRIGHT.TXT
00006 
00007 This is the history stack class that is used to store the undo/redo commands.
00008 
00009 ****************************************************************************/
00010 
00011 #include "HistoryWindow.h"
00012 
00013 namespace Tinkercell
00014 {
00015 
00016         void HistoryWindow::undo() 
00017         { 
00018                 if (stack()) stack()->undo();
00019         }
00020 
00021         void HistoryWindow::redo() 
00022         { 
00023                 if (stack()) stack()->redo();
00024         }
00025 
00026         void HistoryWindow::push(QUndoCommand * command) 
00027         { 
00028                 if (stack()) stack()->push(command);
00029         }
00030 
00031 }
00032 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines