Commit e4c2afe6 authored by Ivan Ilin's avatar Ivan Ilin

UBAbstractUndoCommand now in .pri

parent 26e1f11a
...@@ -25,17 +25,17 @@ class UBAbstractUndoCommand : public QUndoCommand ...@@ -25,17 +25,17 @@ class UBAbstractUndoCommand : public QUndoCommand
UBAbstractUndoCommand(); UBAbstractUndoCommand();
~UBAbstractUndoCommand(); ~UBAbstractUndoCommand();
enum UndoType : int enum UndoType
{ {
undotype_UNKNOWN = 0, undotype_UNKNOWN = 0,
undotype_DOCUMENT = 1, undotype_DOCUMENT = 1,
undotype_GRAPHICITEMTRANSFORM = 2, undotype_GRAPHICITEMTRANSFORM = 2,
undotype_GRAPHICITEM = 3, undotype_GRAPHICITEM = 3,
undotype_GRAPHICTEXTITEM = 4, undotype_GRAPHICTEXTITEM = 4,
undotype_PAGESIZE = 5, undotype_PAGESIZE = 5
}; };
virtual UndoType getType() { return undotype_UNKNOWN; }; virtual UndoType getType() { return undotype_UNKNOWN; }
protected: protected:
virtual void undo(); virtual void undo();
......
...@@ -21,7 +21,8 @@ HEADERS += src/domain/UBGraphicsScene.h \ ...@@ -21,7 +21,8 @@ HEADERS += src/domain/UBGraphicsScene.h \
src/domain/UBGraphicsStroke.h \ src/domain/UBGraphicsStroke.h \
src/domain/UBGraphicsMediaItem.h \ src/domain/UBGraphicsMediaItem.h \
src/domain/UBGraphicsAudioItem.h \ src/domain/UBGraphicsAudioItem.h \
src/domain/UBGraphicsAudioItemDelegate.h src/domain/UBGraphicsAudioItemDelegate.h \
src/domain/UBAbstractUndoCommand.h
HEADERS += src/domain/UBGraphicsItemDelegate.h \ HEADERS += src/domain/UBGraphicsItemDelegate.h \
src/domain/UBGraphicsVideoItemDelegate.h \ src/domain/UBGraphicsVideoItemDelegate.h \
...@@ -52,7 +53,8 @@ SOURCES += src/domain/UBGraphicsScene.cpp \ ...@@ -52,7 +53,8 @@ SOURCES += src/domain/UBGraphicsScene.cpp \
src/domain/UBGraphicsStroke.cpp \ src/domain/UBGraphicsStroke.cpp \
src/domain/UBGraphicsMediaItem.cpp \ src/domain/UBGraphicsMediaItem.cpp \
src/domain/UBGraphicsAudioItem.cpp \ src/domain/UBGraphicsAudioItem.cpp \
src/domain/UBGraphicsAudioItemDelegate.cpp src/domain/UBGraphicsAudioItemDelegate.cpp \
src/domain/UBAbstractUndoCommand.cpp
SOURCES += src/domain/UBGraphicsItemDelegate.cpp \ SOURCES += src/domain/UBGraphicsItemDelegate.cpp \
src/domain/UBGraphicsVideoItemDelegate.cpp \ src/domain/UBGraphicsVideoItemDelegate.cpp \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment