add waveform audio icons, clear vwdw on change_source
[goodguy/history.git] / cinelerra-5.1 / cinelerra / folderlistmenu.C
index 0eb39c2a77a1a766108fe3871f655851c4175a83..823c9f3105df2c85e5a53e40f161c6ac887642de 100644 (file)
@@ -42,10 +42,10 @@ FolderListMenu::~FolderListMenu()
 void FolderListMenu::create_objects()
 {
        add_item(format = new FolderListFormat(mwindow, this));
+       add_item(new FolderListSort(mwindow, this));
        update_titles();
 }
 
-
 void FolderListMenu::update_titles()
 {
        format->set_text(mwindow->edl->session->folderlist_format == FOLDERS_TEXT ?
@@ -53,7 +53,6 @@ void FolderListMenu::update_titles()
 }
 
 
-
 FolderListFormat::FolderListFormat(MWindow *mwindow, FolderListMenu *menu)
  : BC_MenuItem("")
 {
@@ -79,3 +78,17 @@ int FolderListFormat::handle_event()
        return 1;
 }
 
+
+FolderListSort::FolderListSort(MWindow *mwindow, FolderListMenu *menu)
+ : BC_MenuItem(_("Sort items"))
+{
+       this->mwindow = mwindow;
+       this->menu = menu;
+}
+
+int FolderListSort::handle_event()
+{
+       mwindow->awindow->gui->sort_folders();
+       return 1;
+}
+