add olaf's neophyte update, add binfolder apply btn
[goodguy/history.git] / cinelerra-5.1 / cinelerra / binfolder.C
index f8d7943ad31c75014b78213be9674c6a37e17587..200f31062cb767ad2b151d2b9988b88e2f024b1e 100644 (file)
@@ -1621,6 +1621,23 @@ int BinFolderDelFilter::handle_event()
        return 1;
 }
 
+BinFolderApplyFilter::BinFolderApplyFilter(BinFolderList *folder_list, int x, int y)
+ : BC_GenericButton(x, y, _("Apply"))
+{
+       this->folder_list = folder_list;
+}
+BinFolderApplyFilter::~BinFolderApplyFilter()
+{
+}
+
+int BinFolderApplyFilter::handle_event()
+{
+       ModifyFolderThread *thread = folder_list->window->thread;
+       thread->original->copy_from(thread->folder);
+       thread->agui->async_update_assets();
+       return 1;
+}
+
 
 NewFolderGUI::NewFolderGUI(NewFolderThread *thread, int x, int y, int w, int h)
  : BC_Window(_(PROGRAM_NAME ": New folder"),
@@ -1736,6 +1753,8 @@ void ModifyFolderGUI::create_objects()
        add_subwindow(add_filter = new BinFolderAddFilter(folder_list, x1, y1));
        y1 += add_filter->get_h() + 10;
        add_subwindow(del_filter = new BinFolderDelFilter(folder_list, x1, y1));
+       y1 += del_filter->get_h() + 10;
+       add_subwindow(apply_filter = new BinFolderApplyFilter(folder_list, x1, y1));
        add_subwindow(ok_button = new BC_OKButton(this));
        add_subwindow(cancel_button = new BC_CancelButton(this));
        show_window();