Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / flipbook.C
blob36eeef01ac3701645f45d5e775655a92868cd200
1 #include "flipbook.h"
2 #include "mwindow.h"
4 #include <libintl.h>
5 #define _(String) gettext(String)
6 #define gettext_noop(String) String
7 #define N_(String) gettext_noop (String)
10 FlipBook::FlipBook(MWindow *mwindow)
11  : BC_MenuItem(_("Flipbook..."))
13         this->mwindow = mwindow;
14         thread = new FlipBookThread(mwindow);
17 FlipBook::~FlipBook()
19         delete thread;
22 FlipBook::handle_event()
24         thread->start();
31 FlipBookThread::FlipBookThread(MWindow *mwindow)
32  : Thread()
34         this->mwindow = mwindow;
37 FlipBookThread::~FlipBookThread()
41 void FlipBookThread::::run()
43         
44         ArrayList<FlipBookItem*> flipbooklist;
45         FlipBookGUI gui(this, mwindow);
46         
47         int result = gui.run_window();
54 FlipBookGUI::FlipBookGUI(FlipBookThread *thread, MWindow *mwindow)
55  : BC_Window()
57         this->thread = thread;
58         this->mwindow = mwindow;
61 FlipBookGUI::~FlipBookGUI()
65 //      Local Variables:
66 //      mode: C++
67 //      c-file-style: "linux"
68 //      End: