00001 /* 00002 * storyboard.h Storyboard view object 00003 * Copyright (C) 2003-2007 Dan Dennedy <dan@dennedy.org> 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 Free Software Foundation, 00017 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef STORYBOARD_H 00021 #define STORYBOARD_H 00022 00023 #include <gtk/gtk.h> 00024 #include "kino_common.h" 00025 #include "smiltime.h" 00026 00027 class Storyboard 00028 { 00029 00030 public: 00031 Storyboard( KinoCommon *common ); 00032 ~Storyboard(); 00033 void redraw(); 00034 void select( int scene ); 00035 void setSensitive( bool sensitive ); 00036 void moveScene( unsigned int destScene ); 00037 00038 GtkTreeView *getView() 00039 { 00040 return this->view; 00041 } 00042 GtkTreeStore *getModel() 00043 { 00044 return this->model; 00045 } 00046 bool getSkipSelect() 00047 { 00048 return this->skipSelect; 00049 } 00050 void reset() 00051 { 00052 this->selection = -1; 00053 } 00054 bool getSkip() 00055 { 00056 return this->skip; 00057 } 00058 void setSkip() 00059 { 00060 this->skip = true; 00061 } 00062 void clearSkip() 00063 { 00064 this->skip = false; 00065 } 00066 SMIL::MediaClippingTime& getTime() 00067 { 00068 return m_time; 00069 } 00070 00071 private: 00072 GtkTreeView* view; 00073 GtkTreeStore* model; 00074 KinoCommon* common; 00075 int selection; 00076 bool skipSelect; 00077 bool skip; 00078 SMIL::MediaClippingTime m_time; 00079 }; 00080 00081 extern Storyboard *GetStoryboard( ); 00082 00083 #endif
1.4.2