add binfolder path relative filters, fix gbrp color model, vwdw timebar tweaks, title...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / featheredits.C
index bfd530f69021e1f7a554ebaf4ff29f6e065e57b8..6c0c67dffdc9c4f7cd90e207813fd859d850205a 100644 (file)
@@ -2,21 +2,21 @@
 /*
  * CINELERRA
  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- * 
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- * 
+ *
  */
 
 #include "featheredits.h"
 
 FeatherEdits::FeatherEdits(MWindow *mwindow, int audio, int video)
  : BC_MenuItem(_("Feather Edits...")), Thread()
-{ 
-       this->mwindow = mwindow; 
-       this->audio = audio; 
-       this->video = video; 
+{
+       this->mwindow = mwindow;
+       this->audio = audio;
+       this->video = video;
 }
 
 int FeatherEdits::handle_event()
@@ -65,7 +65,7 @@ void FeatherEdits::run()
        {
                mwindow->gui->lock_window();
 //             mwindow->undo->update_undo_edits(_("Feather"), 0);
-               
+
                mwindow->feather_edits(feather_samples, audio, video);
 
 //             mwindow->undo->update_undo_edits();
@@ -75,10 +75,10 @@ void FeatherEdits::run()
 
 
 FeatherEditsWindow::FeatherEditsWindow(MWindow *mwindow, long feather_samples)
- : BC_Window(_(PROGRAM_NAME ": Feather Edits"), 
-       mwindow->gui->get_abs_cursor_x(), 
-       mwindow->gui->get_abs_cursor_y(), 
-       340, 
+ : BC_Window(_(PROGRAM_NAME ": Feather Edits"),
+       mwindow->gui->get_abs_cursor_x(),
+       mwindow->gui->get_abs_cursor_y(),
+       340,
        140)
 {
        this->feather_samples = feather_samples;
@@ -91,6 +91,7 @@ FeatherEditsWindow::~FeatherEditsWindow()
 
 int FeatherEditsWindow::create_objects(int audio, int video)
 {
+       lock_window("FeatherEditsWindow::create_objects");
        int x = 10;
        int y = 10;
        this->audio = audio;
@@ -110,6 +111,7 @@ int FeatherEditsWindow::create_objects(int audio, int video)
        add_subwindow(new BC_OKButton(x, y));
        add_subwindow(new BC_CancelButton(x, y));
        return 0;
+       unlock_window();
 }
 
 FeatherEditsTextBox::FeatherEditsTextBox(FeatherEditsWindow *window, char *text, int x, int y)