r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / flipbook.C
blob5e680886ca1a62cf92be3733c19870ba1b1c89fd
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()