File indexing completed on 2024-04-28 16:08:41

0001 /***************************************************************************
0002  *   Copyright (C) 2013 by Linuxstopmotion contributors;                   *
0003  *   see the AUTHORS file for details.                                     *
0004  *                                                                         *
0005  *   This program is free software; you can redistribute it and/or modify  *
0006  *   it under the terms of the GNU General Public License as published by  *
0007  *   the Free Software Foundation; either version 2 of the License, or     *
0008  *   (at your option) any later version.                                   *
0009  *                                                                         *
0010  *   This program is distributed in the hope that it will be useful,       *
0011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
0012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
0013  *   GNU General Public License for more details.                          *
0014  *                                                                         *
0015  *   You should have received a copy of the GNU General Public License     *
0016  *   along with this program; if not, write to the                         *
0017  *   Free Software Foundation, Inc.,                                       *
0018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
0019  ***************************************************************************/
0020 
0021 #ifndef TSTOPMOTIONUNDO_H_
0022 #define TSTOPMOTIONUNDO_H_
0023 
0024 #include <QObject>
0025 
0026 class Animation;
0027 class Executor;
0028 class SceneVector;
0029 class RealOggEmptyJpg;
0030 class TestHome;
0031 class AnimTester;
0032 class MockFrontend;
0033 
0034 class TestStopmotionUndo : public QObject {
0035     Q_OBJECT
0036     Animation* anim;
0037     MockFrontend* mockFrontend;
0038     SceneVector* sv;
0039     Executor* ex;
0040     RealOggEmptyJpg* mfs;
0041     TestHome* testEnvFs;
0042     AnimTester* animTester;
0043     void setUpAnim();
0044 public:
0045     TestStopmotionUndo();
0046     ~TestStopmotionUndo();
0047 private slots:
0048     void newScene();
0049     void removeScene();
0050     void moveScene();
0051     void addFrames();
0052     void removeFrames();
0053     void moveFrames();
0054     void setImagePath();
0055     void duplicateImage();
0056     void addSound();
0057     void removeSound();
0058     void setSoundName();
0059     void stopmotionCommandsInvertCorrectly();
0060 };
0061 
0062 #endif /* TSTOPMOTIONUNDO_H_ */