Logo Search packages:      
Sourcecode: mandelbulber version File versions  Download package

timeline.hpp

/*
 * timeline.hpp
 *
 *  Created on: 2010-09-20
 *      Author: krzysztof
 */

#ifndef TIMELINE_HPP_
#define TIMELINE_HPP_

#include "database.hpp"
#include "cimage.hpp"
#include "smartptr.h"


gboolean thumbnail_expose(GtkWidget *widget, GdkEventExpose *event, gpointer user_data);
void PressedKeyframeThumbnail(GtkWidget *widget, GdkEventButton *event);


00020 struct sTimelineRecord
{
      int index;
      sRGB8 thumbnail[128*128];
};

00026 class cTimeline
{
public:
      cTimeline();
      ~cTimeline();
      bool IsCreated(void) {return isCreated;}
      int Initialize(const char *keyframesPath); //returns number of keyframes
      bool GetImage(int index, sRGB8 *image);
      void DisplayInDrawingArea(int index, GtkWidget *darea);
      int CheckNumberOfKeyframes(const char *keyframesPath);
      void CreateInterface(int numberOfKeyframes);
      void RebulidTimelineWindow(void);
      void RecordKeyframe(int index, const char *keyframeFile, bool modeInsert);
      void DeleteKeyframe(int index, const char *keyframesPath);
      void Resize(int newsize);
      void Reset(void);
      void Refresh(void);
      bool isOpened;

private:
      smart_ptr<cDatabase> database;
      int keyframeCount;
      bool isCreated;
};

extern smart_ptr<cTimeline> timeline;



#endif /* TIMELINE_HPP_ */

Generated by  Doxygen 1.6.0   Back to index