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

framethumbview.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 FRAMETHUMBVIEW_H
00021 #define FRAMETHUMBVIEW_H
00022 
00023 #include "thumbview.h"
00024 
00025 
00031 class FrameThumbView : public ThumbView {
00032 public:
00039         FrameThumbView(FrameBar *frameBar, QWidget *parent = 0, int number = 0, const char * name = 0);
00040         
00044         ~FrameThumbView();
00045         
00050         void mousePressEvent( QMouseEvent * e );
00051         
00056         void mouseReleaseEvent( QMouseEvent * e );
00057         
00062         void mouseMoveEvent(QMouseEvent *me);
00063         
00070         void mouseDoubleClickEvent ( QMouseEvent * e );
00071         
00076         void setNumber(int number);
00077         
00082         void setHasSounds( bool hasSounds );
00083         
00088         void setSelected(bool selected);
00089         
00094         virtual void contentsDropped(QDropEvent * event);
00095         
00100         virtual void resizeThumb(int height);
00101         
00102 protected:
00106         virtual void paintEvent ( QPaintEvent * );
00107         
00108 private:
00109         
00111         void startDrag();
00112         
00114         int textWidth;
00115         
00117         bool hasSounds;
00118         
00120         bool selected;
00121 };
00122 
00123 #endif

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