Commits

Victor Kotseruba committed ba06791

open / edit / transcode / stabilize / render removed

Comments (0)

Files changed (4)

src/kdenliveui.rc

 
   <MenuBar>
     <Menu name="file" >
-      <Action name="dvd_wizard" />
-      <Action name="transcode_clip" />
     </Menu>
   
     <Menu name="edit" >
     </Menu>
     
     <Menu name="project" ><text>Project</text>
-      <Action name="add_clip" />
-      <Action name="add_color_clip" />
-      <Action name="add_slide_clip" />
       <Action name="add_text_clip" />
-      <Action name="add_text_template_clip" />
-      <Action name="add_folder" /> 
-      <Action name="download_resource" /> 
       <Menu name="extract_audio" ><text>Extract Audio</text>
       </Menu>
       <Menu name="clip_actions" ><text>Clip Jobs</text>
       </Menu>
-      <Menu name="transcoders" ><text>Transcode</text>
-      </Menu>
-      <Menu name="generators" ><text>Generators</text>
-      </Menu>
       <Menu name="track_menu" ><text>Tracks</text>
 	<Action name="insert_track" />
 	<Action name="delete_track" />
 	<Action name="select_all_tracks" />
       </Menu>
       <Separator />
-      <Action name="stopmotion" />
-      <Separator />
       <Action name="reload_clip" />
       <Action name="proxy_clip" />
       <Menu name="clip_in_timeline"><text>Clip in Timeline</text>
       </Menu>
       <Action name="clip_properties" />
       <Action name="edit_clip" />
-      <Action name="delete_clip" />
       <Separator />
       <Action name="project_clean" />
-      <Action name="project_render" />
       <Action name="project_adjust_profile" />
       <Action name="project_settings" />
       <Action name="open_backup" />
-      <Action name="archive_project" />
     </Menu>
 
     <Menu name="tool" ><text>Tool</text>
     </Menu>
     <Menu name="settings" >
       <Action name="manage_profiles" />
-      <Action name="get_new_lumas" />
-      <Action name="get_new_profiles" />
-      <Action name="get_new_mlt_profiles" />
-      <Action name="get_new_titles" />
-      <Action name="run_wizard" />
       <Menu name="themes_menu" ><text>Themes</text>
     </Menu>
 </Menu>

src/mainwindow.cpp

 #endif
     setCentralWidget(m_timelineArea);
 
-    m_fileOpenRecent = KStandardAction::openRecent(this, SLOT(openFile(const KUrl &)), actionCollection());
+    // m_fileOpenRecent = KStandardAction::openRecent(this, SLOT(openFile(const KUrl &)), actionCollection());
     readOptions();
     m_fileRevert = KStandardAction::revert(this, SLOT(slotRevert()), actionCollection());
     m_fileRevert->setEnabled(false);
     loadLayouts();
 
     loadPlugins();
-    loadTranscoders();
-    loadClipActions();
+    // loadTranscoders();
+    // loadClipActions();
 
     m_projectMonitor->setupMenu(static_cast<QMenu*>(factory()->container("monitor_go", this)), m_playZone, m_loopZone, NULL, m_loopClip);
     m_clipMonitor->setupMenu(static_cast<QMenu*>(factory()->container("monitor_go", this)), m_playZone, m_loopZone, static_cast<QMenu*>(factory()->container("marker_menu", this)));
     QHash<QString,QMenu*> menus;
     menus.insert("addMenu",static_cast<QMenu*>(factory()->container("generators", this)));
     menus.insert("extractAudioMenu",static_cast<QMenu*>(factory()->container("extract_audio", this)));
-    menus.insert("transcodeMenu",static_cast<QMenu*>(factory()->container("transcoders", this)));
-    menus.insert("clipActionsMenu",static_cast<QMenu*>(factory()->container("clip_actions", this)));
+    // menus.insert("transcodeMenu",static_cast<QMenu*>(factory()->container("transcoders", this)));
+    // menus.insert("clipActionsMenu",static_cast<QMenu*>(factory()->container("clip_actions", this)));
     menus.insert("inTimelineMenu",clipInTimeline);
     m_projectList->setupGeneratorMenu(menus);
 
         QAction *action = new QAction(text, plugin);
         action->setData(text);
         connect(action, SIGNAL(triggered()), this, member);
-        menu->addAction(action);
+        if (menu) {
+            menu->addAction(action);
+        }
 
         if (actionGroup) {
             action->setCheckable(true);
     collection.addAction("manage_profiles", profilesAction);
     connect(profilesAction, SIGNAL(triggered(bool)), this, SLOT(slotEditProfiles()));
 
-    KNS3::standardAction(i18n("Download New Wipes..."),            this, SLOT(slotGetNewLumaStuff()),       actionCollection(), "get_new_lumas");
-    KNS3::standardAction(i18n("Download New Render Profiles..."),  this, SLOT(slotGetNewRenderStuff()),     actionCollection(), "get_new_profiles");
-    KNS3::standardAction(i18n("Download New Project Profiles..."), this, SLOT(slotGetNewMltProfileStuff()), actionCollection(), "get_new_mlt_profiles");
-    KNS3::standardAction(i18n("Download New Title Templates..."),  this, SLOT(slotGetNewTitleStuff()),      actionCollection(), "get_new_titles");
+    // KNS3::standardAction(i18n("Download New Wipes..."),            this, SLOT(slotGetNewLumaStuff()),       actionCollection(), "get_new_lumas");
+    // KNS3::standardAction(i18n("Download New Render Profiles..."),  this, SLOT(slotGetNewRenderStuff()),     actionCollection(), "get_new_profiles");
+    // KNS3::standardAction(i18n("Download New Project Profiles..."), this, SLOT(slotGetNewMltProfileStuff()), actionCollection(), "get_new_mlt_profiles");
+    // KNS3::standardAction(i18n("Download New Title Templates..."),  this, SLOT(slotGetNewTitleStuff()),      actionCollection(), "get_new_titles");
 
-    KAction* wizAction = new KAction(KIcon("configure"), i18n("Run Config Wizard"), this);
-    collection.addAction("run_wizard", wizAction);
-    connect(wizAction, SIGNAL(triggered(bool)), this, SLOT(slotRunWizard()));
+    // KAction* wizAction = new KAction(KIcon("configure"), i18n("Run Config Wizard"), this);
+    // collection.addAction("run_wizard", wizAction);
+    // connect(wizAction, SIGNAL(triggered(bool)), this, SLOT(slotRunWizard()));
 
-    KAction* projectAction = new KAction(KIcon("configure"), i18n("Project Settings"), this);
-    collection.addAction("project_settings", projectAction);
-    connect(projectAction, SIGNAL(triggered(bool)), this, SLOT(slotEditProjectSettings()));
+    // KAction* projectAction = new KAction(KIcon("configure"), i18n("Project Settings"), this);
+    // collection.addAction("project_settings", projectAction);
+    // connect(projectAction, SIGNAL(triggered(bool)), this, SLOT(slotEditProjectSettings()));
 
-    KAction* backupAction = new KAction(KIcon("edit-undo"), i18n("Open Backup File"), this);
-    collection.addAction("open_backup", backupAction);
-    connect(backupAction, SIGNAL(triggered(bool)), this, SLOT(slotOpenBackupDialog()));
+    // KAction* backupAction = new KAction(KIcon("edit-undo"), i18n("Open Backup File"), this);
+    // collection.addAction("open_backup", backupAction);
+    // connect(backupAction, SIGNAL(triggered(bool)), this, SLOT(slotOpenBackupDialog()));
 
-    KAction* projectRender = new KAction(KIcon("media-record"), i18n("Render"), this);
-    collection.addAction("project_render", projectRender);
-    projectRender->setShortcut(Qt::CTRL + Qt::Key_Return);
-    connect(projectRender, SIGNAL(triggered(bool)), this, SLOT(slotRenderProject()));
+    // KAction* projectRender = new KAction(KIcon("media-record"), i18n("Render"), this);
+    // collection.addAction("project_render", projectRender);
+    // projectRender->setShortcut(Qt::CTRL + Qt::Key_Return);
+    // connect(projectRender, SIGNAL(triggered(bool)), this, SLOT(slotRenderProject()));
 
-    KAction* projectClean = new KAction(KIcon("edit-clear"), i18n("Clean Project"), this);
-    collection.addAction("project_clean", projectClean);
-    connect(projectClean, SIGNAL(triggered(bool)), this, SLOT(slotCleanProject()));
+    // KAction* projectClean = new KAction(KIcon("edit-clear"), i18n("Clean Project"), this);
+    // collection.addAction("project_clean", projectClean);
+    // connect(projectClean, SIGNAL(triggered(bool)), this, SLOT(slotCleanProject()));
 
-    KAction* projectAdjust = new KAction(KIcon(), i18n("Adjust Profile to Current Clip"), this);
-    collection.addAction("project_adjust_profile", projectAdjust);
-    connect(projectAdjust, SIGNAL(triggered(bool)), m_projectList, SLOT(adjustProjectProfileToItem()));
+    // KAction* projectAdjust = new KAction(KIcon(), i18n("Adjust Profile to Current Clip"), this);
+    // collection.addAction("project_adjust_profile", projectAdjust);
+    // connect(projectAdjust, SIGNAL(triggered(bool)), m_projectList, SLOT(adjustProjectProfileToItem()));
 
     KAction* monitorPlay = new KAction(KIcon("media-playback-start"), i18n("Play"), this);
     monitorPlay->setShortcut(Qt::Key_Space);
     collection.addAction("monitor_loop_clip", m_loopClip);
     connect(m_loopClip, SIGNAL(triggered(bool)), m_projectMonitor, SLOT(slotLoopClip()));
 
-    KAction *dvdWizard =  new KAction(KIcon("media-optical"), i18n("DVD Wizard"), this);
-    collection.addAction("dvd_wizard", dvdWizard);
-    connect(dvdWizard, SIGNAL(triggered(bool)), this, SLOT(slotDvdWizard()));
+    // KAction *dvdWizard =  new KAction(KIcon("media-optical"), i18n("DVD Wizard"), this);
+    // collection.addAction("dvd_wizard", dvdWizard);
+    // connect(dvdWizard, SIGNAL(triggered(bool)), this, SLOT(slotDvdWizard()));
 
-    KAction *transcodeClip =  new KAction(KIcon("edit-copy"), i18n("Transcode Clips"), this);
-    collection.addAction("transcode_clip", transcodeClip);
-    connect(transcodeClip, SIGNAL(triggered(bool)), this, SLOT(slotTranscodeClip()));
+    // KAction *transcodeClip =  new KAction(KIcon("edit-copy"), i18n("Transcode Clips"), this);
+    // collection.addAction("transcode_clip", transcodeClip);
+    // connect(transcodeClip, SIGNAL(triggered(bool)), this, SLOT(slotTranscodeClip()));
 
-    KAction *archiveProject =  new KAction(KIcon("file-save"), i18n("Archive Project"), this);
-    collection.addAction("archive_project", archiveProject);
-    connect(archiveProject, SIGNAL(triggered(bool)), this, SLOT(slotArchiveProject()));
+    // KAction *archiveProject =  new KAction(KIcon("file-save"), i18n("Archive Project"), this);
+    // collection.addAction("archive_project", archiveProject);
+    // connect(archiveProject, SIGNAL(triggered(bool)), this, SLOT(slotArchiveProject()));
 
 
     KAction *markIn = collection.addAction("mark_in");
 
     m_closeAction = KStandardAction::close(this,  SLOT(closeCurrentDocument()),   collection);
     KStandardAction::quit(this,                   SLOT(close()),                  collection);
-    KStandardAction::open(this,                   SLOT(openFile()),               collection);
+    // KStandardAction::open(this,                   SLOT(openFile()),               collection);
     m_saveAction = KStandardAction::save(this,    SLOT(saveFile()),               collection);
-    KStandardAction::saveAs(this,                 SLOT(saveFileAs()),             collection);
-    KStandardAction::openNew(this,                SLOT(newFile()),                collection);
+    // KStandardAction::saveAs(this,                 SLOT(saveFileAs()),             collection);
+    // KStandardAction::openNew(this,                SLOT(newFile()),                collection);
     // TODO: make the following connection to slotEditKeys work
     //KStandardAction::keyBindings(this,            SLOT(slotEditKeys()),           collection);
     KStandardAction::preferences(this,            SLOT(slotPreferences()),        collection);
             this, SLOT(slotDisplayActionMessage(QAction*)));*/
 
 
-    QAction *addClip = new KAction(KIcon("kdenlive-add-clip"), i18n("Add Clip"), this);
-    collection.addAction("add_clip", addClip);
-    connect(addClip , SIGNAL(triggered()), m_projectList, SLOT(slotAddClip()));
+    // QAction *addClip = new KAction(KIcon("kdenlive-add-clip"), i18n("Add Clip"), this);
+    // collection.addAction("add_clip", addClip);
+    // connect(addClip , SIGNAL(triggered()), m_projectList, SLOT(slotAddClip()));
 
-    QAction *addColorClip = new KAction(KIcon("kdenlive-add-color-clip"), i18n("Add Color Clip"), this);
-    collection.addAction("add_color_clip", addColorClip);
-    connect(addColorClip , SIGNAL(triggered()), m_projectList, SLOT(slotAddColorClip()));
+    // QAction *addColorClip = new KAction(KIcon("kdenlive-add-color-clip"), i18n("Add Color Clip"), this);
+    // collection.addAction("add_color_clip", addColorClip);
+    // connect(addColorClip , SIGNAL(triggered()), m_projectList, SLOT(slotAddColorClip()));
 
-    QAction *addSlideClip = new KAction(KIcon("kdenlive-add-slide-clip"), i18n("Add Slideshow Clip"), this);
-    collection.addAction("add_slide_clip", addSlideClip);
-    connect(addSlideClip , SIGNAL(triggered()), m_projectList, SLOT(slotAddSlideshowClip()));
+    // QAction *addSlideClip = new KAction(KIcon("kdenlive-add-slide-clip"), i18n("Add Slideshow Clip"), this);
+    // collection.addAction("add_slide_clip", addSlideClip);
+    // connect(addSlideClip , SIGNAL(triggered()), m_projectList, SLOT(slotAddSlideshowClip()));
 
     QAction *addTitleClip = new KAction(KIcon("kdenlive-add-text-clip"), i18n("Add Title Clip"), this);
     collection.addAction("add_text_clip", addTitleClip);
     connect(addTitleClip , SIGNAL(triggered()), m_projectList, SLOT(slotAddTitleClip()));
 
-    QAction *addTitleTemplateClip = new KAction(KIcon("kdenlive-add-text-clip"), i18n("Add Template Title"), this);
-    collection.addAction("add_text_template_clip", addTitleTemplateClip);
-    connect(addTitleTemplateClip , SIGNAL(triggered()), m_projectList, SLOT(slotAddTitleTemplateClip()));
+    // QAction *addTitleTemplateClip = new KAction(KIcon("kdenlive-add-text-clip"), i18n("Add Template Title"), this);
+    // collection.addAction("add_text_template_clip", addTitleTemplateClip);
+    // connect(addTitleTemplateClip , SIGNAL(triggered()), m_projectList, SLOT(slotAddTitleTemplateClip()));
 
-    QAction *addFolderButton = new KAction(KIcon("folder-new"), i18n("Create Folder"), this);
-    collection.addAction("add_folder", addFolderButton);
-    connect(addFolderButton , SIGNAL(triggered()), m_projectList, SLOT(slotAddFolder()));
+    // QAction *addFolderButton = new KAction(KIcon("folder-new"), i18n("Create Folder"), this);
+    // collection.addAction("add_folder", addFolderButton);
+    // connect(addFolderButton , SIGNAL(triggered()), m_projectList, SLOT(slotAddFolder()));
 
-    QAction *downloadResources = new KAction(KIcon("download"), i18n("Online Resources"), this);
-    collection.addAction("download_resource", downloadResources);
-    connect(downloadResources , SIGNAL(triggered()), this, SLOT(slotDownloadResources()));
+    // QAction *downloadResources = new KAction(KIcon("download"), i18n("Online Resources"), this);
+    // collection.addAction("download_resource", downloadResources);
+    // connect(downloadResources , SIGNAL(triggered()), this, SLOT(slotDownloadResources()));
 
     QAction *clipProperties = new KAction(KIcon("document-edit"), i18n("Clip Properties"), this);
     collection.addAction("clip_properties", clipProperties);
     connect(clipProperties , SIGNAL(triggered()), m_projectList, SLOT(slotEditClip()));
     clipProperties->setEnabled(false);
 
-    QAction *openClip = new KAction(KIcon("document-open"), i18n("Edit Clip"), this);
-    collection.addAction("edit_clip", openClip);
-    openClip->setData("edit_clip");
-    connect(openClip , SIGNAL(triggered()), m_projectList, SLOT(slotOpenClip()));
-    openClip->setEnabled(false);
+    // QAction *openClip = new KAction(KIcon("document-open"), i18n("Edit Clip"), this);
+    // collection.addAction("edit_clip", openClip);
+    // openClip->setData("edit_clip");
+    // connect(openClip , SIGNAL(triggered()), m_projectList, SLOT(slotOpenClip()));
+    // openClip->setEnabled(false);
 
-    QAction *deleteClip = new KAction(KIcon("edit-delete"), i18n("Delete Clip"), this);
-    collection.addAction("delete_clip", deleteClip);
-    deleteClip->setData("delete_clip");
-    connect(deleteClip , SIGNAL(triggered()), m_projectList, SLOT(slotRemoveClip()));
-    deleteClip->setEnabled(false);
+    // QAction *deleteClip = new KAction(KIcon("edit-delete"), i18n("Delete Clip"), this);
+    // collection.addAction("delete_clip", deleteClip);
+    // deleteClip->setData("delete_clip");
+    // connect(deleteClip , SIGNAL(triggered()), m_projectList, SLOT(slotRemoveClip()));
+    // deleteClip->setEnabled(false);
 
     QAction *reloadClip = new KAction(KIcon("view-refresh"), i18n("Reload Clip"), this);
     collection.addAction("reload_clip", reloadClip);
     proxyClip->setChecked(false);
     connect(proxyClip, SIGNAL(toggled(bool)), m_projectList, SLOT(slotProxyCurrentItem(bool)));
 
-    QAction *stopMotion = new KAction(KIcon("image-x-generic"), i18n("Stop Motion Capture"), this);
-    collection.addAction("stopmotion", stopMotion);
-    connect(stopMotion , SIGNAL(triggered()), this, SLOT(slotOpenStopmotion()));
+    // QAction *stopMotion = new KAction(KIcon("image-x-generic"), i18n("Stop Motion Capture"), this);
+    // collection.addAction("stopmotion", stopMotion);
+    // connect(stopMotion , SIGNAL(triggered()), this, SLOT(slotOpenStopmotion()));
 
     QMenu *addClips = new QMenu();
-    addClips->addAction(addClip);
-    addClips->addAction(addColorClip);
-    addClips->addAction(addSlideClip);
+    // addClips->addAction(addClip);
+    // addClips->addAction(addColorClip);
+    // addClips->addAction(addSlideClip);
     addClips->addAction(addTitleClip);
-    addClips->addAction(addTitleTemplateClip);
-    addClips->addAction(addFolderButton);
-    addClips->addAction(downloadResources);
+    // addClips->addAction(addTitleTemplateClip);
+    // addClips->addAction(addFolderButton);
+    // addClips->addAction(downloadResources);
 
     addClips->addAction(reloadClip);
     addClips->addAction(proxyClip);
     addClips->addAction(clipProperties);
-    addClips->addAction(openClip);
-    addClips->addAction(deleteClip);
-    m_projectList->setupMenu(addClips, addClip);
+    // addClips->addAction(openClip);
+    // addClips->addAction(deleteClip);
+    m_projectList->setupMenu(addClips, addTitleClip);
 
     // Setup effects and transitions actions.
     m_effectsActionCollection = new KActionCollection(this, KGlobal::mainComponent());
 {
     KdenliveSettings::self()->writeConfig();
     KSharedConfigPtr config = KGlobal::config();
-    m_fileOpenRecent->saveEntries(KConfigGroup(config, "Recent Files"));
+    // m_fileOpenRecent->saveEntries(KConfigGroup(config, "Recent Files"));
     KConfigGroup treecolumns(config, "Project Tree");
     treecolumns.writeEntry("columns", m_projectList->headerInfo());
     config->sync();
     m_timelineArea->setTabText(m_timelineArea->currentIndex(), m_activeDocument->description());
     m_timelineArea->setTabToolTip(m_timelineArea->currentIndex(), m_activeDocument->url().path());
     m_activeDocument->setModified(false);
-    m_fileOpenRecent->addUrl(KUrl(outputFileName));
+    // m_fileOpenRecent->addUrl(KUrl(outputFileName));
     m_fileRevert->setEnabled(true);
     m_undoView->stack()->setClean();
     return true;
     }
     KUrl url = KFileDialog::getOpenUrl(KUrl("kfiledialog:///projectfolder"), getMimeType());
     if (url.isEmpty()) return;
-    m_fileOpenRecent->addUrl(url);
+    // m_fileOpenRecent->addUrl(url);
     openFile(url);
 }
 
 void MainWindow::openLastFile()
 {
-    if (m_fileOpenRecent->selectableActionGroup()->actions().isEmpty()) {
-        // No files in history
-        newFile(false);
-        return;
-    }
-    QAction *firstUrlAction = m_fileOpenRecent->selectableActionGroup()->actions().last();
-    if (firstUrlAction) firstUrlAction->trigger();
-    else newFile(false);
+    // if (m_fileOpenRecent->selectableActionGroup()->actions().isEmpty()) {
+    //     // No files in history
+    //     newFile(false);
+    //     return;
+    // }
+    // QAction *firstUrlAction = m_fileOpenRecent->selectableActionGroup()->actions().last();
+    // if (firstUrlAction) firstUrlAction->trigger();
+    // else newFile(false);
 }
 
 void MainWindow::openFile(const KUrl &url)
     JogShuttleAction* m_jogShuttle;
 #endif
 
-    KRecentFilesAction *m_fileOpenRecent;
+    // KRecentFilesAction *m_fileOpenRecent;
     KAction *m_fileRevert;
     KAction *m_projectSearch;
     KAction *m_projectSearchNext;

src/projectlist.cpp

     m_editButton->setIconSize(iconSize);
     box->addWidget(m_editButton);
 
-    m_deleteButton = new QToolButton;
-    m_deleteButton->setAutoRaise(true);
-    m_deleteButton->setIconSize(iconSize);
-    box->addWidget(m_deleteButton);
+    // m_deleteButton = new QToolButton;
+    // m_deleteButton->setAutoRaise(true);
+    // m_deleteButton->setIconSize(iconSize);
+    // box->addWidget(m_deleteButton);
     frame->setLayout(box);
     layout->addWidget(frame);
 
 		m_menu->addMenu(extractAudioMenu);
                 m_extractAudioAction = extractAudioMenu;
 	}
-	if (menus.contains("transcodeMenu") && menus.value("transcodeMenu") ){
-                QMenu* transcodeMenu = menus.value("transcodeMenu");
-                m_menu->addMenu(transcodeMenu);
-                if (transcodeMenu->isEmpty())
-                        transcodeMenu->setEnabled(false);
-                m_transcodeAction = transcodeMenu;
-        }
-	if (menus.contains("clipActionsMenu") && menus.value("clipActionsMenu") ){
-		QMenu* stabilizeMenu=menus.value("clipActionsMenu");
-		m_menu->addMenu(stabilizeMenu);
-		if (stabilizeMenu->isEmpty())
-			stabilizeMenu->setEnabled(false);
-		m_clipsActionsMenu = stabilizeMenu;
-
-	}
+	// if (menus.contains("transcodeMenu") && menus.value("transcodeMenu") ){
+    //             QMenu* transcodeMenu = menus.value("transcodeMenu");
+    //             m_menu->addMenu(transcodeMenu);
+    //             if (transcodeMenu->isEmpty())
+    //                     transcodeMenu->setEnabled(false);
+    //             m_transcodeAction = transcodeMenu;
+    //     }
+	// if (menus.contains("clipActionsMenu") && menus.value("clipActionsMenu") ){
+	// 	QMenu* stabilizeMenu=menus.value("clipActionsMenu");
+	// 	m_menu->addMenu(stabilizeMenu);
+	// 	if (stabilizeMenu->isEmpty())
+	// 		stabilizeMenu->setEnabled(false);
+	// 	m_clipsActionsMenu = stabilizeMenu;
+    // 
+	// }
     if (m_reloadAction) m_menu->addAction(m_reloadAction);
     if (m_proxyAction) m_menu->addAction(m_proxyAction);
 	if (menus.contains("inTimelineMenu") && menus.value("inTimelineMenu")){
 		inTimelineMenu->setEnabled(false);
 	}
     m_menu->addAction(m_editButton->defaultAction());
-    m_menu->addAction(m_openAction);
-    m_menu->addAction(m_deleteButton->defaultAction());
-    m_menu->insertSeparator(m_deleteButton->defaultAction());
+    // m_menu->addAction(m_openAction);
+    // m_menu->addAction(m_deleteButton->defaultAction());
+    // m_menu->insertSeparator(m_deleteButton->defaultAction());
 }
 
 void ProjectList::clearSelection()
         if (item->type() == PROJECTFOLDERTYPE) {
             emit clipSelected(NULL);
             m_editButton->defaultAction()->setEnabled(item->childCount() > 0);
-            m_deleteButton->defaultAction()->setEnabled(true);
-            m_openAction->setEnabled(false);
+            // m_deleteButton->defaultAction()->setEnabled(true);
+            // m_openAction->setEnabled(false);
             m_reloadAction->setEnabled(false);
             m_extractAudioAction->setEnabled(false);
-            m_transcodeAction->setEnabled(false);
-            m_clipsActionsMenu->setEnabled(false);
+            // m_transcodeAction->setEnabled(false);
+            // m_clipsActionsMenu->setEnabled(false);
         } else {
             if (item->type() == PROJECTSUBCLIPTYPE) {
                 // this is a sub item, use base clip
-                m_deleteButton->defaultAction()->setEnabled(true);
+                // m_deleteButton->defaultAction()->setEnabled(true);
                 clip = static_cast <ProjectItem*>(item->parent());
                 if (clip == NULL) {
 		    kDebug() << "-----------ERROR";
 		if (clip->referencedClip()->getProducer() == NULL) m_render->getFileProperties(clip->referencedClip()->toXML(), clip->clipId(), m_listView->iconSize().height(), true);
                 emit clipSelected(clip->referencedClip(), sub->zone());
                 m_extractAudioAction->setEnabled(false);
-                m_transcodeAction->setEnabled(false);
-                m_clipsActionsMenu->setEnabled(false);
+                // m_transcodeAction->setEnabled(false);
+                // m_clipsActionsMenu->setEnabled(false);
                 m_reloadAction->setEnabled(false);
                 adjustProxyActions(clip);
                 return;
                 emit clipSelected(clip->referencedClip());
 	    if (clip->referencedClip()->getProducer() == NULL) m_render->getFileProperties(clip->referencedClip()->toXML(), clip->clipId(), m_listView->iconSize().height(), true);
             m_editButton->defaultAction()->setEnabled(true);
-            m_deleteButton->defaultAction()->setEnabled(true);
+            // m_deleteButton->defaultAction()->setEnabled(true);
             m_reloadAction->setEnabled(true);
             m_extractAudioAction->setEnabled(true);
-            m_transcodeAction->setEnabled(true);
-            m_clipsActionsMenu->setEnabled(true);
-            if (clip && clip->clipType() == IMAGE && !KdenliveSettings::defaultimageapp().isEmpty()) {
-                m_openAction->setIcon(KIcon(KdenliveSettings::defaultimageapp()));
-                m_openAction->setEnabled(true);
-            } else if (clip && clip->clipType() == AUDIO && !KdenliveSettings::defaultaudioapp().isEmpty()) {
-                m_openAction->setIcon(KIcon(KdenliveSettings::defaultaudioapp()));
-                m_openAction->setEnabled(true);
-            } else {
-                m_openAction->setEnabled(false);
-            }
+            // m_transcodeAction->setEnabled(true);
+            // m_clipsActionsMenu->setEnabled(true);
+            // if (clip && clip->clipType() == IMAGE && !KdenliveSettings::defaultimageapp().isEmpty()) {
+            //     m_openAction->setIcon(KIcon(KdenliveSettings::defaultimageapp()));
+            //     m_openAction->setEnabled(true);
+            // } else if (clip && clip->clipType() == AUDIO && !KdenliveSettings::defaultaudioapp().isEmpty()) {
+            //     m_openAction->setIcon(KIcon(KdenliveSettings::defaultaudioapp()));
+            //     m_openAction->setEnabled(true);
+            // } else {
+            //     m_openAction->setEnabled(false);
+            // }
             // Display relevant transcoding actions only
-            adjustTranscodeActions(clip);
-            adjustStabilizeActions(clip);
+            // adjustTranscodeActions(clip);
+            // adjustStabilizeActions(clip);
             // Display uses in timeline
             emit findInTimeline(clip->clipId());
         }
     } else {
         emit clipSelected(NULL);
         m_editButton->defaultAction()->setEnabled(false);
-        m_deleteButton->defaultAction()->setEnabled(false);
-        m_openAction->setEnabled(false);
+        // m_deleteButton->defaultAction()->setEnabled(false);
+        // m_openAction->setEnabled(false);
         m_reloadAction->setEnabled(false);
         m_extractAudioAction->setEnabled(true);
-        m_transcodeAction->setEnabled(false);
-        m_clipsActionsMenu->setEnabled(false);
+        // m_transcodeAction->setEnabled(false);
+        // m_clipsActionsMenu->setEnabled(false);
     }
     adjustProxyActions(clip);
 }
     }
     bool enable = item ? true : false;
     m_editButton->defaultAction()->setEnabled(enable);
-    m_deleteButton->defaultAction()->setEnabled(enable);
+    // m_deleteButton->defaultAction()->setEnabled(enable);
     m_reloadAction->setEnabled(enable);
     m_extractAudioAction->setEnabled(enable);
-    m_transcodeAction->setEnabled(enable);
-    m_clipsActionsMenu->setEnabled(enable);
+    // m_transcodeAction->setEnabled(enable);
+    // m_clipsActionsMenu->setEnabled(enable);
     if (enable) {
         ProjectItem *clip = NULL;
         if (m_listView->currentItem()->type() == PROJECTSUBCLIPTYPE) {
             clip = static_cast <ProjectItem*>(item->parent());
             m_extractAudioAction->setEnabled(false);
-            m_transcodeAction->setEnabled(false);
-            m_clipsActionsMenu->setEnabled(false);
+            // m_transcodeAction->setEnabled(false);
+            // m_clipsActionsMenu->setEnabled(false);
             adjustProxyActions(clip);
         } else if (m_listView->currentItem()->type() == PROJECTCLIPTYPE) {
             clip = static_cast <ProjectItem*>(item);
             // Display relevant transcoding actions only
-            adjustTranscodeActions(clip);
-            adjustStabilizeActions(clip);
+            // adjustTranscodeActions(clip);
+            // adjustStabilizeActions(clip);
             adjustProxyActions(clip);
             // Display uses in timeline
             emit findInTimeline(clip->clipId());
         } else {
             m_extractAudioAction->setEnabled(false);
-            m_transcodeAction->setEnabled(false);
-            m_clipsActionsMenu->setEnabled(false);
-        }
-        if (clip && clip->clipType() == IMAGE && !KdenliveSettings::defaultimageapp().isEmpty()) {
-            m_openAction->setIcon(KIcon(KdenliveSettings::defaultimageapp()));
-            m_openAction->setEnabled(true);
-        } else if (clip && clip->clipType() == AUDIO && !KdenliveSettings::defaultaudioapp().isEmpty()) {
-            m_openAction->setIcon(KIcon(KdenliveSettings::defaultaudioapp()));
-            m_openAction->setEnabled(true);
-        } else {
-            m_openAction->setEnabled(false);
-        }
+            // m_transcodeAction->setEnabled(false);
+            // m_clipsActionsMenu->setEnabled(false);
+        }
+        // if (clip && clip->clipType() == IMAGE && !KdenliveSettings::defaultimageapp().isEmpty()) {
+        //     m_openAction->setIcon(KIcon(KdenliveSettings::defaultimageapp()));
+        //     m_openAction->setEnabled(true);
+        // } else if (clip && clip->clipType() == AUDIO && !KdenliveSettings::defaultaudioapp().isEmpty()) {
+        //     m_openAction->setIcon(KIcon(KdenliveSettings::defaultaudioapp()));
+        //     m_openAction->setEnabled(true);
+        // } else {
+        //     m_openAction->setEnabled(false);
+        // }
 
     } else {
-        m_openAction->setEnabled(false);
+        // m_openAction->setEnabled(false);
     }
     m_menu->popup(pos);
 }
 void ProjectList::updateButtons() const
 {
     if (m_listView->topLevelItemCount() == 0) {
-        m_deleteButton->defaultAction()->setEnabled(false);
+        // m_deleteButton->defaultAction()->setEnabled(false);
         m_editButton->defaultAction()->setEnabled(false);
     } else {
-        m_deleteButton->defaultAction()->setEnabled(true);
+        // m_deleteButton->defaultAction()->setEnabled(true);
         if (!m_listView->currentItem())
             m_listView->setCurrentItem(m_listView->topLevelItem(0));
         QTreeWidgetItem *item = m_listView->currentItem();
         if (item && item->type() == PROJECTCLIPTYPE) {
             m_editButton->defaultAction()->setEnabled(true);
-            m_openAction->setEnabled(true);
+            // m_openAction->setEnabled(true);
             m_reloadAction->setEnabled(true);
-            m_transcodeAction->setEnabled(true);
-            m_clipsActionsMenu->setEnabled(true);
+            // m_transcodeAction->setEnabled(true);
+            // m_clipsActionsMenu->setEnabled(true);
             return;
         }
         else if (item && item->type() == PROJECTFOLDERTYPE && item->childCount() > 0) {
         }
         else m_editButton->defaultAction()->setEnabled(false);
     }
-    m_openAction->setEnabled(false);
+    // m_openAction->setEnabled(false);
     if (m_reloadAction) m_reloadAction->setEnabled(false);
-    m_transcodeAction->setEnabled(false);
-    m_clipsActionsMenu->setEnabled(false);
+    // m_transcodeAction->setEnabled(false);
+    // m_clipsActionsMenu->setEnabled(false);
     if (m_proxyAction) m_proxyAction->setEnabled(false);
 }
 
         m_listView->setCurrentItem(clip);
         m_listView->scrollToItem(clip);
         m_editButton->defaultAction()->setEnabled(true);
-        m_deleteButton->defaultAction()->setEnabled(true);
+        // m_deleteButton->defaultAction()->setEnabled(true);
         m_reloadAction->setEnabled(true);
         m_extractAudioAction->setEnabled(true);
-        m_transcodeAction->setEnabled(true);
-        m_clipsActionsMenu->setEnabled(true);
-        if (clip->clipType() == IMAGE && !KdenliveSettings::defaultimageapp().isEmpty()) {
-            m_openAction->setIcon(KIcon(KdenliveSettings::defaultimageapp()));
-            m_openAction->setEnabled(true);
-        } else if (clip->clipType() == AUDIO && !KdenliveSettings::defaultaudioapp().isEmpty()) {
-            m_openAction->setIcon(KIcon(KdenliveSettings::defaultaudioapp()));
-            m_openAction->setEnabled(true);
-        } else {
-            m_openAction->setEnabled(false);
-        }
+        // m_transcodeAction->setEnabled(true);
+        // m_clipsActionsMenu->setEnabled(true);
+        // if (clip->clipType() == IMAGE && !KdenliveSettings::defaultimageapp().isEmpty()) {
+        //     m_openAction->setIcon(KIcon(KdenliveSettings::defaultimageapp()));
+        //     m_openAction->setEnabled(true);
+        // } else if (clip->clipType() == AUDIO && !KdenliveSettings::defaultaudioapp().isEmpty()) {
+        //     m_openAction->setIcon(KIcon(KdenliveSettings::defaultaudioapp()));
+        //     m_openAction->setEnabled(true);
+        // } else {
+        //     m_openAction->setEnabled(false);
+        // }
     }
 }