Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

modelhandler.h

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Bjoern Erik Nilsen & Fredrik Berg Kjoelstad     *
00003  *   bjoern_erik_nilsen@hotmail.com & fredrikbk@hotmail.com                *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef MODELHANDLER_H
00021 #define MODELHANDLER_H
00022 
00023 #include "src/config.h"
00024 
00025 #include "src/presentation/frontends/qtfrontend/framebar/framebar.h"
00026 #include "src/application/externalchangemonitor.h"
00027 
00028 #include <qstatusbar.h>
00029 #include <qfiledialog.h>
00030 #include <qpushbutton.h>
00031 
00032 
00039 class ModelHandler : public QObject
00040 {
00041         Q_OBJECT
00042 public:
00051         ModelHandler( QObject *parent = 0, QStatusBar *sb = 0, FrameBar *frameBar = 0, 
00052                         ExternalChangeMonitor *changeMonitor = 0, char *lastVisitedDir = 0, 
00053                         const char *name = 0 );
00054         
00058         ~ModelHandler();
00059         
00066         void setRemoveFramesButton(QPushButton *removeFramesButton);
00067         
00068 public slots:
00072         void chooseFrame();
00073         
00079     void addFrame( const QString &fileName );
00080         
00084         void removeFrames();
00085         
00090         void addFrames(const QStringList & fileNames);
00091         
00092         
00096         void newScene();
00097         
00101         void removeScene();
00102         
00103 private:
00104         FrameBar *frameBar;
00105         QStatusBar *statusBar;
00106         QPushButton *removeFramesButton;
00107         QFileDialog* fileDialog;
00108         char *lastVisitedDir;
00109         ExternalChangeMonitor *changeMonitor;
00110         
00111 signals:
00115         void modelChanged();
00116 };
00117 
00118 #endif

Generated on Thu May 19 01:51:20 2005 for stopmotion.kdevelop by  doxygen 1.4.2