Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / levelwindow.C
blob6c0ce1caddad185a3807f0e0146d25511bb8f9ac
1 #include "levelwindow.h"
2 #include "levelwindowgui.h"
3 #include "mainmenu.h"
4 #include "mwindow.h"
6 LevelWindow::LevelWindow(MWindow *mwindow)
7  : Thread()
9         this->mwindow = mwindow;
10         Thread::set_synchronous(1);
13 LevelWindow::~LevelWindow()
15         if(gui) 
16         {
17                 gui->set_done(0);
18                 join();
19         }
20         if(gui) delete gui;
23 int LevelWindow::create_objects()
25         gui = new LevelWindowGUI(mwindow, this);
26         gui->create_objects();
27         return 0;
31 void LevelWindow::run()
33         if(gui) gui->run_window();
36 //      Local Variables:
37 //      mode: C++
38 //      c-file-style: "linux"
39 //      End: