add clip folders, icon margins, fix safe regions, update neophyte, fix folder edl...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / folderlistmenu.C
index 8f788272b99a7bfecd688228727f810d91c423de..51150a71494be5811872f68110673bf5b3268522 100644 (file)
@@ -48,7 +48,8 @@ void FolderListMenu::create_objects()
        add_item(new FolderListSort(mwindow, this));
        add_item(menu_item = new BC_MenuItem(_("Folder...")));
        menu_item->add_submenu(submenu = new BC_SubMenu());
-       submenu->add_submenuitem(new FolderListNew(mwindow, this));
+       submenu->add_submenuitem(new FolderListNew(mwindow, this, _("New Media"), 0));
+       submenu->add_submenuitem(new FolderListNew(mwindow, this, _("New Clips"), 1));
        submenu->add_submenuitem(new FolderListModify(mwindow, this));
        submenu->add_submenuitem(new FolderListDelete(mwindow, this));
        update_titles();
@@ -100,11 +101,13 @@ int FolderListSort::handle_event()
        return 1;
 }
 
-FolderListNew::FolderListNew(MWindow *mwindow, FolderListMenu *menu)
- : BC_MenuItem(_("New folder"))
+FolderListNew::FolderListNew(MWindow *mwindow, FolderListMenu *menu,
+               const char *text, int is_clips)
+ : BC_MenuItem(text)
 {
        this->mwindow = mwindow;
        this->menu = menu;
+       this->is_clips = is_clips;
 }
 
 int FolderListNew::handle_event()
@@ -113,7 +116,7 @@ int FolderListNew::handle_event()
        menu->gui->get_abs_cursor(cx, cy);
        if( (cx-=cw/2) < 50 ) cx = 50;
        if( (cy-=ch/2) < 50 ) cy = 50;
-       menu->gui->new_folder_thread->start(cx, cy, cw, ch);
+       menu->gui->new_folder_thread->start(cx, cy, cw, ch, is_clips);
        return 1;
 }