TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
HistoryWindow.h
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 #ifndef TINKERCELL_HISTORYSTACK_H
00012 #define TINKERCELL_HISTORYSTACK_H
00013 
00014 #include <QtGui>
00015 #include <QMdiArea>
00016 #include <QMdiSubWindow>
00017 #include <QString>
00018 #include <QFileDialog>
00019 #include <QtDebug>
00020 #include <QGraphicsItem>
00021 #include <QGraphicsScene>
00022 #include <QGraphicsView>
00023 #include <QAction>
00024 #include <QMenu>
00025 #include <QMdiArea>
00026 #include <QThread>
00027 #include <QFile>
00028 #include <QHBoxLayout>
00029 #include <QMainWindow>
00030 #include <QHash>
00031 #include <QUndoCommand>
00032 #include <QUndoStack>
00033 #include <QUndoView>
00034 
00035 #ifndef TINKERCELLCOREEXPORT
00036 #ifdef Q_WS_WIN
00037 #   if defined(TC_EXPORTS) || defined(TinkerCellCore_EXPORTS)
00038 #       define TINKERCELLCOREEXPORT __declspec(dllexport)
00039 #   else
00040 #       define TINKERCELLCOREEXPORT __declspec(dllimport)
00041 #   endif
00042 #else
00043 #    define TINKERCELLCOREEXPORT
00044 #endif
00045 #endif
00046 
00047 namespace Tinkercell
00048 {
00049 
00053         class TINKERCELLCOREEXPORT HistoryWindow : public QUndoView
00054         {
00055                 Q_OBJECT
00056 
00057         public slots:
00058                 void undo();
00059                 void redo();
00060                 void push(QUndoCommand * command);
00061                 
00062         };
00063 
00064 }
00065 
00066 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines