File indexing completed on 2024-05-12 16:23:31
0001 /*************************************************************************** 0002 * Copyright (C) 2014 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 #include "editobserver.h" 0022 #include "src/domain/domainfacade.h" 0023 0024 #include <QFileSystemWatcher> 0025 0026 EditObserver::EditObserver(QFileSystemWatcher* watcher) : fsw(watcher) { 0027 } 0028 0029 EditObserver::~EditObserver() { 0030 } 0031 0032 void EditObserver::updateAdd(int, int, int) { 0033 } 0034 0035 void EditObserver::updateRemove(int, int, int) { 0036 } 0037 0038 void EditObserver::updateMove(int, int, int, int, int) { 0039 } 0040 0041 void EditObserver::updateClear() { 0042 } 0043 0044 void EditObserver::updateNewScene(int) { 0045 } 0046 0047 void EditObserver::updateRemoveScene(int) { 0048 } 0049 0050 void EditObserver::updateMoveScene(int, int) { 0051 } 0052 0053 void EditObserver::updateAnimationChanged(int sceneNumber, int frameNumber) { 0054 const char *path = DomainFacade::getFacade()->getImagePath(sceneNumber, 0055 frameNumber); 0056 if (path && fsw) { 0057 fsw->addPath(path); 0058 } 0059 } 0060 0061 void EditObserver::updateSoundChanged(int, int) { 0062 } 0063 0064 void EditObserver::resync() { 0065 }