add asset select used to proxy list menu
authorGood Guy <good1.2guy@gmail.com>
Tue, 27 Nov 2018 17:29:54 +0000 (10:29 -0700)
committerGood Guy <good1.2guy@gmail.com>
Tue, 27 Nov 2018 17:29:54 +0000 (10:29 -0700)
cinelerra-5.1/cinelerra/proxypopup.C
cinelerra-5.1/cinelerra/proxypopup.h

index 04a1bdae736bb02678d912d5730ca5499e7241f9..db42404e17a1df4867f878b9a78141232c4d073e 100644 (file)
@@ -308,6 +308,13 @@ ProxyListMenu::~ProxyListMenu()
 void ProxyListMenu::create_objects()
 {
        add_item(format = new AWindowListFormat(mwindow, gui));
+       add_item(select_used = new AssetSelectUsed(mwindow, gui));
+       BC_SubMenu *submenu;
+       select_used->add_submenu(submenu = new BC_SubMenu());
+       submenu->add_submenuitem(new AssetSelectUsedItem(select_used, _("All"), SELECT_ALL));
+       submenu->add_submenuitem(new AssetSelectUsedItem(select_used, _("Used"), SELECT_USED));
+       submenu->add_submenuitem(new AssetSelectUsedItem(select_used, _("Unused"), SELECT_UNUSED));
+       submenu->add_submenuitem(new AssetSelectUsedItem(select_used, _("None"), SELECT_NONE));
        add_item(new AWindowListSort(mwindow, gui));
        update();
 }
index 5f03a7933b5f78a704311cdeecfa3d57f469233e..49907e93e3425b038fbe19bd20dc536ad6ea196d 100644 (file)
@@ -159,6 +159,7 @@ public:
        void create_objects();
        void update();
        AWindowListFormat *format;
+       AssetSelectUsed *select_used;
        MWindow *mwindow;
        AWindowGUI *gui;
 };