From e49d6213ad129284a45d53c3fcdc03249e84efe2 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 3 Sep 2015 14:20:19 -0300 Subject: Move qt-ui to desktop-widgets Since we have now destkop and mobile versions, 'qt-ui' was a very poor name choice for a folder that contains only destkop-enabled widgets. Also, move the graphicsview-common.h/cpp to subsurface-core because it doesn't depend on qgraphicsview, it merely implements all the colors that we use throughout Subsurface, and we will use colors on both desktop and mobile versions Same thing applies for metrics.h/cpp Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/undocommands.h | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 qt-ui/undocommands.h (limited to 'qt-ui/undocommands.h') diff --git a/qt-ui/undocommands.h b/qt-ui/undocommands.h deleted file mode 100644 index 8e359db51..000000000 --- a/qt-ui/undocommands.h +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef UNDOCOMMANDS_H -#define UNDOCOMMANDS_H - -#include -#include -#include "dive.h" - -class UndoDeleteDive : public QUndoCommand { -public: - UndoDeleteDive(QList deletedDives); - virtual void undo(); - virtual void redo(); - -private: - QList diveList; - QList tripList; -}; - -class UndoShiftTime : public QUndoCommand { -public: - UndoShiftTime(QList changedDives, int amount); - virtual void undo(); - virtual void redo(); - -private: - QList diveList; - int timeChanged; -}; - -class UndoRenumberDives : public QUndoCommand { -public: - UndoRenumberDives(QMap > originalNumbers); - virtual void undo(); - virtual void redo(); - -private: - QMap > oldNumbers; -}; - -class UndoRemoveDivesFromTrip : public QUndoCommand { -public: - UndoRemoveDivesFromTrip(QMap removedDives); - virtual void undo(); - virtual void redo(); - -private: - QMap divesToUndo; -}; - -#endif // UNDOCOMMANDS_H -- cgit v1.2.3-70-g09d2