Logo Search packages:      
Sourcecode: kdenlive version File versions

void Gui::KdenliveApp::initActions (  )  [protected]

initializes the KActions of the application

Definition at line 465 of file kdenlive.cpp.

References openDocumentFile(), slotClearAllSnapMarkers(), slotClearSnapMarkersFromSelected(), slotConfigureProject(), slotConfKeys(), slotConfToolbars(), slotDefineClipThumb(), slotDeleteSelected(), slotDeleteTransition(), slotEditCopy(), slotEditCut(), slotEditPaste(), slotExternalEditor(), slotFileNew(), slotFileOpen(), slotFileQuit(), slotFileSave(), slotFileSaveAs(), slotFitToWidth(), slotGotoStart(), slotLastFrame(), slotLastSecond(), slotLoopPlay(), slotNextFrame(), slotNextSecond(), slotNextSnap(), slotOptionsPreferences(), slotPlay(), slotPreviousSnap(), slotProjectAddClips(), slotProjectAddColorClip(), slotProjectClean(), slotProjectDeleteClips(), slotRazorAllClips(), slotRazorSelectedClips(), slotRemoveSpace(), slotRenderExportTimeline(), slotRestoreZoom(), slotSaveZone(), slotSetInpoint(), slotSetOutpoint(), slotShowVirtualZone(), slotTimelineMarkerTool(), slotTimelineMoveTool(), slotTimelineRazorTool(), slotTimelineRollTool(), slotTimelineSelectTool(), slotTimelineSnapToBorder(), slotTimelineSnapToFrame(), slotTimelineSnapToMarker(), slotTimelineSpacerTool(), slotToggleBackwards(), slotToggleForwards(), slotTogglePlaySelected(), slotToggleSnapMarker(), and slotVirtualZone().

Referenced by KdenliveApp().

                                  {

      setStandardToolBarMenuEnabled(true);
      createStandardStatusBarAction();
      actionCollection()->setHighlightingEnabled(true);

      connect(actionCollection(), SIGNAL( actionStatusText( const QString & ) ),
           this, SLOT( slotTemporaryStatusMsg( const QString & ) ) );
      connect(actionCollection(), SIGNAL( clearStatusText() ),
           statusBar(), SLOT( clear() ) );

      fileNew =
          KStdAction::openNew(this, SLOT(slotFileNew()),
          actionCollection());
      fileOpen =
          KStdAction::open(this, SLOT(slotFileOpen()),
          actionCollection());
      fileOpenRecent =
          KStdAction::openRecent(this,
          SLOT(openDocumentFile(const KURL &)), actionCollection());
      fileSave =
          KStdAction::save(this, SLOT(slotFileSave()),
          actionCollection());
      fileSaveAs =
          KStdAction::saveAs(this, SLOT(slotFileSaveAs()),
          actionCollection());
      //fileClose = KStdAction::close(this, SLOT(slotFileClose()), actionCollection());
      //  filePrint = KStdAction::print(this, SLOT(slotFilePrint()), actionCollection());
      fileQuit =
          KStdAction::quit(this, SLOT(slotFileQuit()),
          actionCollection());
      editCut =
          KStdAction::cut(this, SLOT(slotEditCut()), actionCollection());
      editCopy =
          KStdAction::copy(this, SLOT(slotEditCopy()),
          actionCollection());

      editPaste = KStdAction::paste(this, SLOT(slotEditPaste()),
          actionCollection());

      actionPasteEffects =
          new KAction(i18n("Paste Effects"),
          0, this, SLOT(slotPasteEffects()),
          actionCollection(), "paste_effects");

      actionPasteTransitions =
          new KAction(i18n("Paste Transitions"),
          0, this, SLOT(slotPasteTransitions()),
          actionCollection(), "paste_transitions");

      fullScreen = KStdAction::fullScreen(this, SLOT(slotFullScreen()),
          actionCollection(), this);

      optionsPreferences =
          KStdAction::preferences(this, SLOT(slotOptionsPreferences()),
          actionCollection());
      KStdAction::keyBindings(this, SLOT(slotConfKeys()),
          actionCollection());
      KStdAction::configureNotifications(this, SLOT(slotConfNotifications()),
          actionCollection());
      configureToolbars =
          KStdAction::configureToolbars(this, SLOT(slotConfToolbars()),
          actionCollection());
      fitToWidth =
          KStdAction::fitToWidth(this, SLOT(slotFitToWidth()),
          actionCollection());
      fitToWidth->setToolTip(i18n("Zoom to display the whole project"));

      KAction *zoomIn = KStdAction::zoomIn(this, SLOT(slotZoomIn()),
          actionCollection());
      zoomIn->setToolTip(i18n("Zoom in"));

      KAction *zoomOut = KStdAction::zoomOut(this, SLOT(slotZoomOut()),
          actionCollection());
      zoomOut->setToolTip(i18n("Zoom out"));

        KAction *zoomRestore = new KAction(i18n("Restore Last Zoom Level"), 0, this,
        SLOT(slotRestoreZoom()), actionCollection(),
        "restore_zoom");
      zoomRestore->setToolTip(i18n("Restoring previous zoom level"));

      (void) new KAction(i18n("List View"), "view_detailed.png",0, this,
        SLOT(slotProjectListView()), actionCollection(), "project_list_view");

      (void) new KAction(i18n("Icon View"), "view_icon.png", 0, this,
        SLOT(slotProjectIconView()), actionCollection(), "project_icon_view");

      timelineMoveTool =
          new KRadioAction(i18n("Move/Resize Tool"), "moveresize.png",
          KShortcut(Qt::Key_Q), this, SLOT(slotTimelineMoveTool()),
          actionCollection(), "timeline_move_tool");
      timelineRazorTool =
          new KRadioAction(i18n("Razor Tool"), "razor.png",
          KShortcut(Qt::Key_W), this, SLOT(slotTimelineRazorTool()),
          actionCollection(), "timeline_razor_tool");
      timelineSpacerTool =
          new KRadioAction(i18n("Spacing Tool"), "spacer.png",
          KShortcut(Qt::Key_E), this, SLOT(slotTimelineSpacerTool()),
          actionCollection(), "timeline_spacer_tool");
      timelineMarkerTool =
          new KRadioAction(i18n("Marker Tool"), "kdenlive_add_marker.png",
          KShortcut(Qt::Key_M), this, SLOT(slotTimelineMarkerTool()),
          actionCollection(), "timeline_marker_tool");
      timelineRollTool =
          new KRadioAction(i18n("Roll Tool"), "kdenlive_roll.png",
          KShortcut(Qt::Key_R), this, SLOT(slotTimelineRollTool()),
          actionCollection(), "timeline_roll_tool");

      timelineSelectTool =
          new KRadioAction(i18n("Multiselect Tool"), "kdenlive_select.png",
          KShortcut(Qt::Key_S), this, SLOT(slotTimelineSelectTool()),
          actionCollection(), "timeline_select_tool");

      timelineSnapToFrame =
          new KToggleAction(i18n("Snap To Frames"), "snaptoframe.png", 0,
          this, SLOT(slotTimelineSnapToFrame()), actionCollection(),
          "timeline_snap_frame");
      timelineSnapToBorder =
          new KToggleAction(i18n("Snap To Border"), "snaptoborder.png",
          0, this, SLOT(slotTimelineSnapToBorder()), actionCollection(),
          "timeline_snap_border");
      timelineSnapToMarker =
          new KToggleAction(i18n("Snap To Marker"), "snaptomarker.png",
          0, this, SLOT(slotTimelineSnapToMarker()), actionCollection(),
          "timeline_snap_marker");

      onScreenDisplay =
          new KToggleAction(i18n("Display Timecode"), 0, 0,
          this, SLOT(slotOnScreenDisplay()), actionCollection(),
          "toggle_osd");

      multiTrackView =
          new KToggleAction(i18n("Multi Track View"), 0, 0,
          this, SLOT(slotMultiTrackView()), actionCollection(),
          "multi_cam");

      previewLowQuality =
          new KToggleAction(i18n("Low Quality"), 0, 0,
          this, SLOT(slotAdjustPreviewQuality()), actionCollection(),
          "low_quality");

      previewMidQuality =
          new KToggleAction(i18n("Medium Quality"), 0, 0,
          this, SLOT(slotAdjustPreviewQuality()), actionCollection(),
          "medium_quality");

      previewBestQuality =
          new KToggleAction(i18n("Best Quality"), 0, 0,
          this, SLOT(slotAdjustPreviewQuality()), actionCollection(),
          "best_quality");

      previewLowQuality->setExclusiveGroup("previewQuality");
      previewMidQuality->setExclusiveGroup("previewQuality");
      previewBestQuality->setExclusiveGroup("previewQuality");

      if (KdenliveSettings::previewquality() == "nearest") previewLowQuality->setChecked(true);
      else if (KdenliveSettings::previewquality() == "bilinear") previewMidQuality->setChecked(true);
      else previewBestQuality->setChecked(true);

      showAllMarkers =
          new KToggleAction(i18n("Show all markers"), 0, 0,
          this, SLOT(slotShowAllMarkers()), actionCollection(),
          "show_markers");

      showAllMarkers->setChecked(KdenliveSettings::showallmarkers());

      KAction *defineThumb = new KAction(i18n("Define Clip Thumbnail"), 0, this, SLOT(slotDefineClipThumb()), actionCollection(), "define_thumb");
      defineThumb->setToolTip(i18n("Define thumbnail for the current clip"));

      KAction *gotoStart = new KAction(i18n("Go To Beginning"), KStdAccel::home(), this, SLOT(slotGotoStart()), actionCollection(), "timeline_go_start");
      gotoStart->setToolTip(i18n("Beginning of project"));

      KAction *gotoEnd = new KAction(i18n("Go To End"), KStdAccel::end(), this, SLOT(slotGotoEnd()), actionCollection(), "timeline_go_end");
      gotoEnd->setToolTip(i18n("End of project"));

      projectAddClips =
          new KAction(i18n("Add Clips"), "kdenlive_add_clip", 0, this,
          SLOT(slotProjectAddClips()), actionCollection(),
          "project_add_clip");

      projectAddColorClip =
          new KAction(i18n("Create Color Clip"), "kdenlive_create_color", 0, this,
          SLOT(slotProjectAddColorClip()), actionCollection(),
          "project_add_color_clip");

      projectAddImageClip =
          new KAction(i18n("Create Image Clip"), "kdenlive_create_image", 0, this,
          SLOT(slotProjectAddImageClip()), actionCollection(),
          "project_add_image_clip");

      (void) new KAction(i18n("Create Slideshow Clip"), "kdenlive_create_slide", 0, this,
          SLOT(slotProjectAddSlideshowClip()), actionCollection(),
          "project_add_slideshow_clip");

      projectAddTextClip =
          new KAction(i18n("Create Text Clip"), "kdenlive_create_text", 0, this,
          SLOT(slotProjectAddTextClip()), actionCollection(),
          "project_add_text_clip");

      (void) new KAction(i18n("Duplicate Text Clip"), "addclips.png", 0, this,
          SLOT(slotProjectDuplicateTextClip()), actionCollection(),
          "project_duplicate_text_clip");
      

      projectDeleteClips =
          new KAction(i18n("Delete Clip"), "kdenlive_delclip.png", 0, this,
          SLOT(slotProjectDeleteClips()), actionCollection(),
          "project_delete_clip");
      projectClean =
          new KAction(i18n("Clean Project"), "cleanproject.png", 0, this,
          SLOT(slotProjectClean()), actionCollection(), "project_clean");
/*    projectClipProperties =
          new KAction(i18n("Clip properties"), "clipproperties.png", 0,
          this, SLOT(slotProjectClipProperties()), actionCollection(),
          "project_clip_properties");*/
        

      renderExportTimeline =
          new KAction(i18n("&Export Timeline"), "exportvideo.png", 0,
          this, SLOT(slotRenderExportTimeline()), actionCollection(),
          "render_export_timeline");

      KAction *renderDvd = new KAction(i18n("Export to DVD"), "dvd_unmount.png", 0, this,
          SLOT(slotRenderDvd()), actionCollection(), "render_dvd");
      renderDvd->setToolTip(i18n("Generating DVD files"));

      configureProject =
          new KAction(i18n("&Configure Project"), "configureproject.png",
          0, this, SLOT(slotConfigureProject()), actionCollection(),
          "configure_project");

      actionTogglePlay =
          new KAction(i18n("Play/Pause"), KShortcut(Qt::Key_Space), this,
          SLOT(slotPlay()), actionCollection(), "toggle_play");

      actionStopPlay =
          new KAction(i18n("Stop"), 0, this,
          SLOT(slotStop()), actionCollection(), "stop_clip");
      actionStopPlay->setToolTip(i18n("Stop playing"));

      actionTogglePlaySelected =
          new KAction(i18n("Play Selection"),
          KShortcut(Qt::Key_Space | Qt::CTRL), this,
          SLOT(slotTogglePlaySelected()), actionCollection(),
          "toggle_play_selection");
      actionTogglePlaySelected->setToolTip(i18n("Play selection"));

      KAction *playPause = new KAction(i18n("Play/Pause"), KShortcut(Qt::Key_K), this,
          SLOT(slotPlay()), actionCollection(), "play_clip");
      playPause->setToolTip(i18n("Play or pause"));

      KAction *playFwd = new KAction(i18n("Play forward"), KShortcut(Qt::Key_L), this,
          SLOT(slotToggleForwards()), actionCollection(), "toggle_forwards");
      playFwd->setToolTip(i18n("Fast forwards playing (click several times for faster playing)"));

      KAction *playBack = new KAction(i18n("Play backward"), KShortcut(Qt::Key_J), this,
          SLOT(slotToggleBackwards()), actionCollection(), "toggle_backwards");
      playBack->setToolTip(i18n("Fast backwards playing (click several times for faster playing)"));

      KAction *playLoop = new KAction(i18n("Loop selected zone"), 0, this,
          SLOT(slotLoopPlay()), actionCollection(), "play_loop");
      playLoop->setToolTip(i18n("Play selected zone in loop"));

      KAction *splitAudio = new KAction(i18n("Split Audio From Selected Clip"), 0, this,
          SLOT(slotSplitAudio()), actionCollection(), "split_audio");
      splitAudio->setToolTip(i18n("Split Audio From Selected Clip"));

      KAction *extractAudio = new KAction(i18n("Extract Clip Audio"), 0, this,
          SLOT(slotExtractAudio()), actionCollection(), "extract_audio");
      extractAudio->setToolTip(i18n("Extract Audio From Selected Clip"));

      KAction *projectExtractAudio = new KAction(i18n("Extract Clip Audio"), 0, this,
          SLOT(slotProjectExtractAudio()), actionCollection(), "project_extract_audio");
      projectExtractAudio->setToolTip(i18n("Extract Audio From Clip"));

      actionNextFrame =
          new KAction(i18n("Forward one frame"),
          KShortcut(Qt::Key_Right), this, SLOT(slotNextFrame()),
          actionCollection(), "forward_frame");
      actionLastFrame =
          new KAction(i18n("Back one frame"), KShortcut(Qt::Key_Left),
          this, SLOT(slotLastFrame()), actionCollection(),
          "backward_frame");
        actionNextSecond =
                new KAction(i18n("Forward one second"),
                            KShortcut(Qt::CTRL | Qt::Key_Right), this, SLOT(slotNextSecond()),
                            actionCollection(), "forward_second");
      actionNextSecond->setToolTip(i18n("Move cursor forward one second"));
        actionLastSecond =
                new KAction(i18n("Back one second"), KShortcut(Qt::CTRL | Qt::Key_Left),
                            this, SLOT(slotLastSecond()), actionCollection(),
                            "backward_second");
      actionLastSecond->setToolTip(i18n("Move cursor backwards one second"));

        KAction *nextSnap = new KAction(i18n("Forward to next snap point"),
                            KShortcut(Qt::ALT | Qt::Key_Right), this, SLOT(slotNextSnap()),
                            actionCollection(), "forward_snap");
      nextSnap->setToolTip(i18n("Move cursor to next snap point"));

        KAction *prevSnap = new KAction(i18n("Rewind to previous snap point"),
                            KShortcut(Qt::ALT | Qt::Key_Left), this, SLOT(slotPreviousSnap()),
                            actionCollection(), "backward_snap");
      prevSnap->setToolTip(i18n("Move cursor to previous snap point"));

        KAction *removeSpace = new KAction(i18n("Remove empty space"),
                            0, this, SLOT(slotRemoveSpace()),
                            actionCollection(), "delete_space");
      removeSpace->setToolTip(i18n("Remove space between two clips"));

        KAction *getNewLuma = new KAction(i18n("Get new luma transition"),
                            "network.png", 0, this, SLOT(slotGetNewLuma()),
                            actionCollection(), "get_luma");
      getNewLuma->setToolTip(i18n("Download new Luma file transition"));

      actionSetInpoint =
          new KAction(i18n("Set Inpoint"), KShortcut(Qt::Key_I), this,
          SLOT(slotSetInpoint()), actionCollection(), "set_inpoint");
      actionSetOutpoint =
          new KAction(i18n("Set Outpoint"), KShortcut(Qt::Key_O), this,
          SLOT(slotSetOutpoint()), actionCollection(), "set_outpoint");
      actionDeleteSelected =
          new KAction(i18n("Delete Clip"),
          KShortcut(Qt::Key_Delete), this, SLOT(slotDeleteSelected()),
          actionCollection(), "delete_selected_clips");

      actionToggleSnapMarker =
          new KAction(i18n("Toggle Marker"),
          KShortcut(Qt::Key_Period), this, SLOT(slotToggleSnapMarker()),
          actionCollection(), "toggle_snap_marker");
      actionClearAllSnapMarkers =
          new KAction(i18n("Clear All Markers"), KShortcut(), this,
          SLOT(slotClearAllSnapMarkers()), actionCollection(),
          "clear_all_snap_markers");
      actionClearSnapMarkersFromSelected =
          new KAction(i18n("Clear Markers From Selected"),
          KShortcut(), this, SLOT(slotClearSnapMarkersFromSelected()),
          actionCollection(), "clear_snap_markers_from_selected");

      actionLoadLayout1 =
          new KAction(i18n("Load Layout &1"), "loadlayout1.png",
          KShortcut(Qt::Key_F9), this, SLOT(loadLayout1()),
          actionCollection(), "load_layout_1");
      actionLoadLayout2 =
          new KAction(i18n("Load Layout &2"), "loadlayout2.png",
          KShortcut(Qt::Key_F10), this, SLOT(loadLayout2()),
          actionCollection(), "load_layout_2");
      actionLoadLayout3 =
          new KAction(i18n("Load Layout &3"), "loadlayout3.png",
          KShortcut(Qt::Key_F11), this, SLOT(loadLayout3()),
          actionCollection(), "load_layout_3");
      actionLoadLayout4 =
          new KAction(i18n("Load Layout &4"), "loadlayout4.png",
          KShortcut(Qt::Key_F12), this, SLOT(loadLayout4()),
          actionCollection(), "load_layout_4");
      actionSaveLayout1 =
          new KAction(i18n("Save Layout &1"),
          KShortcut(Qt::Key_F9 | Qt::CTRL | Qt::SHIFT), this,
          SLOT(saveLayout1()), actionCollection(), "save_layout_1");
      actionSaveLayout2 =
          new KAction(i18n("Save Layout &2"),
          KShortcut(Qt::Key_F10 | Qt::CTRL | Qt::SHIFT), this,
          SLOT(saveLayout2()), actionCollection(), "save_layout_2");
      actionSaveLayout3 =
          new KAction(i18n("Save Layout &3"),
          KShortcut(Qt::Key_F11 | Qt::CTRL | Qt::SHIFT), this,
          SLOT(saveLayout3()), actionCollection(), "save_layout_3");
      actionSaveLayout4 =
          new KAction(i18n("Save Layout &4"),
          KShortcut(Qt::Key_F12 | Qt::CTRL | Qt::SHIFT), this,
          SLOT(saveLayout4()), actionCollection(), "save_layout_4");

      timelineRazorAllClips =
          new KAction(i18n("Razor All Clips"),
          KShortcut(Qt::Key_W | Qt::CTRL | Qt::SHIFT), this,
          SLOT(slotRazorAllClips()), actionCollection(),
          "razor_all_clips");
      timelineRazorSelectedClips =
          new KAction(i18n("Razor Clip"),
          KShortcut(Qt::Key_W | Qt::SHIFT), this,
          SLOT(slotRazorSelectedClips()), actionCollection(),
          "razor_selected_clips");

      KAction *addFolder = new KAction(i18n("Create Folder"), "folder_new.png", 0, this,
          SLOT(slotProjectAddFolder()), actionCollection(),
          "create_folder");
      addFolder->setToolTip(i18n("Add folder"));

      KAction *renameFolder = new KAction(i18n("Rename Folder"), 0, this,
          SLOT(slotProjectRenameFolder()), actionCollection(),
          "rename_folder");
      renameFolder->setToolTip(i18n("Rename folder"));

      KAction *deleteFolder = new KAction(i18n("Delete Folder"), "editdelete.png", 0, this,
          SLOT(slotProjectDeleteFolder()), actionCollection(),
          "delete_folder");
      deleteFolder->setToolTip(i18n("Delete folder"));

        KAction *deleteTransition = new KAction(i18n("Delete Transition"), 0, this,
        SLOT(slotDeleteTransition()), actionCollection(),
        "del_transition");
      deleteTransition->setToolTip(i18n("Delete transition from selected clip"));

        KAction *editTransition = new KAction(i18n("Edit Transition"), 0, this,
        SLOT(slotEditCurrentTransition()), actionCollection(),
        "edit_transition");
      editTransition->setToolTip(i18n("Edit transition from selected clip"));

        KAction *addTrack = new KAction(i18n("Add Track"), 0, this,
        SLOT(slotAddTrack()), actionCollection(),
        "timeline_add_track");
      addTrack->setToolTip(i18n("Add track"));

      KAction *deleteTrack = new KAction(i18n("Delete Track"), 0, this,
        SLOT(slotDeleteTrack()), actionCollection(),
        "timeline_delete_track");
      deleteTrack->setToolTip(i18n("Delete track"));

      KAction *externalAudio = new KAction(i18n("Open Clip In External Editor"), 0, this,
        SLOT(slotExternalEditor()), actionCollection(),
        "external_audio");
      externalAudio->setToolTip(i18n("Open clip in an external editor"));

      KAction *saveZone = new KAction(i18n("Save Selected Zone"), 0, this,
        SLOT(slotSaveZone()), actionCollection(),
        "save_zone");
      saveZone->setToolTip(i18n("Save selected zone as playlist for future use"));

      KAction *saveSubClip = new KAction(i18n("Save Subclip"), 0, this,
        SLOT(slotSaveSubClip()), actionCollection(),
        "save_subclip");
      saveSubClip->setToolTip(i18n("Save selected clip as playlist for future use"));


      KAction *renderZone = new KAction(i18n("Render Selected Zone"), 0, this,
        SLOT(slotRenderZone()), actionCollection(),
        "render_zone");
      renderZone->setToolTip(i18n("Render selected zone for future use"));

      KAction *renderAudioZone = new KAction(i18n("Render Selected Zone Audio"), 0, this,
        SLOT(slotRenderAudioZone()), actionCollection(),
        "render_audio_zone");
      renderAudioZone->setToolTip(i18n("Render selected zone audio for future use"));

      KAction *virtualZone = new KAction(i18n("Create Virtual Clip"), 0, this,
        SLOT(slotVirtualZone()), actionCollection(),
        "virtual_zone");
      virtualZone->setToolTip(i18n("Create virtual clip from selected zone"));

      KAction *showVirtualZone = new KAction(i18n("Go To Virtual Zone"), 0, this,
        SLOT(slotShowVirtualZone()), actionCollection(),
        "show_virtual_zone");
      showVirtualZone->setToolTip(i18n("Go to selected clip's virtual zone"));

      KAction *addGuide = new KAction(i18n("Add Guide"), 0, this,
        SLOT(slotAddGuide()), actionCollection(),
        "timeline_add_guide");
      addGuide->setToolTip(i18n("Add guide at cursor position"));

      KAction *addMarker = new KAction(i18n("Add Marker"), 0, this,
        SLOT(addMarkerUnderCursor()), actionCollection(),
        "add_marker");
      addMarker->setToolTip(i18n("Add marker at cursor position"));

      KAction *editMarker = new KAction(i18n("Edit Marker"), 0, this,
        SLOT(editMarkerUnderCursor()), actionCollection(),
        "edit_marker");
      editMarker->setToolTip(i18n("Edit marker at cursor position"));

      KAction *deleteMarker = new KAction(i18n("Delete Marker"), 0, this,
        SLOT(deleteMarkerUnderCursor()), actionCollection(),
        "delete_marker");
      deleteMarker->setToolTip(i18n("Delete marker at cursor position"));

      KAction *deleteGuide = new KAction(i18n("Delete Guide"), 0, this,
        SLOT(slotDeleteGuide()), actionCollection(),
        "timeline_delete_guide");
      deleteGuide->setToolTip(i18n("Delete guide at cursor position"));

      KAction *editGuide = new KAction(i18n("Edit Guide"), 0, this,
        SLOT(slotEditGuide()), actionCollection(),
        "timeline_edit_guide");
      editGuide->setToolTip(i18n("Edit guide at cursor position"));

        showClipMonitor = new KToggleAction(i18n("Clip Monitor"), 0, this,
          SLOT(slotToggleClipMonitor()), actionCollection(),
          "toggle_clip_monitor");
      showWorkspaceMonitor = new KToggleAction(i18n("Timeline Monitor"), 0, this,
          SLOT(slotToggleWorkspaceMonitor()), actionCollection(),
          "toggle_workspace_monitor");
      showCaptureMonitor = new KToggleAction(i18n("Capture Monitor"), 0, this,
          SLOT(slotToggleCaptureMonitor()), actionCollection(),
          "toggle_capture_monitor");
        showEffectList = new KToggleAction(i18n("Effect List"), 0, this,
          SLOT(slotToggleEffectList()), actionCollection(),
          "toggle_effect_list");
        showEffectStack = new KToggleAction(i18n("Effect Stack"), 0, this,
          SLOT(slotToggleEffectStack()), actionCollection(),
          "toggle_effect_stack");
        showProjectList = new KToggleAction(i18n("Project Tree"), 0, this,
          SLOT(slotToggleProjectList()), actionCollection(),
          "toggle_project_list");
        showTransitions = new KToggleAction(i18n("Transitions"), 0, this,
        SLOT(slotToggleTransitions()), actionCollection(),
        "toggle_transitions");

        (void) new KAction(i18n("Focus Clip Monitor"), 0, this,
          SLOT(slotFocusClipMonitor()), actionCollection(),
          "focus_clip_monitor");
      (void) new KAction(i18n("Focus Timeline Monitor"), 0, this,
          SLOT(slotFocusWorkspaceMonitor()), actionCollection(),
          "focus_workspace_monitor");
      (void) new KAction(i18n("Focus Capture Monitor"), 0, this,
          SLOT(slotFocusCaptureMonitor()), actionCollection(),
          "focus_capture_monitor");
        (void) new KAction(i18n("Focus Effect List"), 0, this,
          SLOT(slotFocusEffectList()), actionCollection(),
          "focus_effect_list");
        (void) new KAction(i18n("Focus Effect Stack"), 0, this,
          SLOT(slotFocusEffectStack()), actionCollection(),
          "focus_effect_stack");
        (void) new KAction(i18n("Focus Project Tree"), 0, this,
          SLOT(slotFocusProjectList()), actionCollection(),
          "focus_project_list");

        (void) new KAction(i18n("Focus Transitions"), 0, this,
        SLOT(slotFocusTransitions()), actionCollection(),
        "focus_transitions");

        (void) new KAction(i18n("Move Clip To Cursor"), KShortcut(Qt::SHIFT | Qt::Key_Return), this,
        SLOT(slotMoveClipToCurrentTime()), actionCollection(),
        "move_current");

        (void) new KAction(i18n("Move Clip Up"), KShortcut(Qt::SHIFT | Qt::Key_Up), this,
        SLOT(slotMoveClipUp()), actionCollection(),
        "move_up");

        (void) new KAction(i18n("Move Clip Down"), KShortcut(Qt::SHIFT | Qt::Key_Down), this,
        SLOT(slotMoveClipDown()), actionCollection(),
        "move_down");

        (void) new KAction(i18n("Resize Clip Start To Current Time"), KShortcut(Qt::SHIFT | Qt::Key_Left), this,
        SLOT(slotResizeClipStart()), actionCollection(),
        "resize_start");

        (void) new KAction(i18n("Resize Clip End To Current Time"), KShortcut(Qt::SHIFT | Qt::Key_Right), this,
        SLOT(slotResizeClipEnd()), actionCollection(),
        "resize_end");

        (void) new KAction(i18n("Select Next Track"), KShortcut(Qt::Key_Down), this,
        SLOT(slotSelectNextTrack()), actionCollection(),
        "next_track");

        (void) new KAction(i18n("Select Previous Track"), KShortcut(Qt::Key_Up), this,
        SLOT(slotSelectPreviousTrack()), actionCollection(),
        "prev_track");

        (void) new KAction(i18n("Select Clip Under Cursor"), 0, this,
        SLOT(selectClipUnderCursor()), actionCollection(),
        "select_current");

      clipAutoSelect = new KToggleAction(i18n("Clip Auto Selection"), 0, 0,
          this, SLOT(slotTimelineSnapToFrame()), actionCollection(),
          "clip_auto_select");

        KAction *editClip = new KAction(i18n("Edit Clip Properties"), 0, this,
        SLOT(slotProjectEditClip()), actionCollection(),
        "edit_clip");
      editClip->setToolTip(i18n("Edit Clip Properties"));
        
        KAction *editParentClip = new KAction(i18n("Clip Properties"), 0, this,
        SLOT(slotProjectEditParentClip()), actionCollection(),
        "project_edit_clip");
      editParentClip->setToolTip(i18n("Edit clip properties"));

        KAction *setClipDuration = new KAction(i18n("Edit Duration"), 0, this,
        SLOT(slotSetClipDuration()), actionCollection(),
        "clip_set_duration");
      setClipDuration->setToolTip(i18n("Set current clip duration"));
        
        KAction *exportCurrentFrame = new KAction(i18n("Export Current Frame"), 0, this,
        SLOT(slotExportCurrentFrame()), actionCollection(),
        "export_current_frame");
      exportCurrentFrame->setToolTip(i18n("Save current frame as image file"));

        KAction *mergeProject = new KAction(i18n("Merge Project..."), 0, this,
        SLOT(slotMergeProject()), actionCollection(),"merge_project");
      mergeProject->setToolTip(i18n("Merge current project with another one"));

        KAction *viewSelectedClip = new KAction(i18n("Play Clip"), 0, this,
        SLOT(slotViewSelectedClip()), actionCollection(),
        "view_selected_clip");
        viewSelectedClip->setToolTip(i18n("Play clip in clip monitor"));
        

      timelineMoveTool->setExclusiveGroup("timeline_tools");
      timelineRazorTool->setExclusiveGroup("timeline_tools");
      timelineSpacerTool->setExclusiveGroup("timeline_tools");
      timelineMarkerTool->setExclusiveGroup("timeline_tools");
      timelineRollTool->setExclusiveGroup("timeline_tools");
      timelineSelectTool->setExclusiveGroup("timeline_tools");

      fileNew->setToolTip(i18n("Create a new project"));
      fileOpen->setToolTip(i18n("Open a project"));
      fileOpenRecent->setToolTip(i18n("Open a recent file"));
      fileSave->setToolTip(i18n("Save project"));
      fileSaveAs->setToolTip(i18n("Save project as..."));
      //  fileClose->setToolTip(i18n("Close document"));
      //  filePrint ->setToolTip(i18n("Print document"));
      fileQuit->setToolTip(i18n("Exit application"));
      editCut->
          setToolTip(i18n
          ("Cut and move selected zone to clipboard"));
      editCopy->
          setToolTip(i18n
          ("Copy clip to clipboard"));
      editPaste->
          setToolTip(i18n
          ("Paste clipboard contents to cursor position"));
      timelineMoveTool->
          setToolTip(i18n("Move and resize clips"));
      timelineRazorTool->
          setToolTip(i18n("Split Clip"));
      timelineSpacerTool->
          setToolTip(i18n("Shift all clips to the right of mouse. Ctrl + click to move only clips on current track."));
      timelineMarkerTool->
          setToolTip(i18n
          ("Insert commented snap markers on clips (Ctrl + click to remove a marker)"));
      timelineRollTool->
          setToolTip(i18n
          ("Move edit point between two selected clips"));
      timelineSelectTool->
          setToolTip(i18n
          ("Select multiple clips"));
      timelineSnapToFrame->
          setToolTip(i18n("Align clips on nearest frame"));
      timelineSnapToBorder->
          setToolTip(i18n
          ("Align clips on nearest clip borders"));
      timelineSnapToMarker->
          setToolTip(i18n
          ("Align clips on snap markers"));
      projectAddClips->setToolTip(i18n("Add clips"));
      projectDeleteClips->
          setToolTip(i18n("Remove clip"));
      projectClean->
          setToolTip(i18n("Remove unused clips"));
      //projectClipProperties->setToolTip( i18n( "View the properties of the selected clip" ) );
      actionTogglePlay->setToolTip(i18n("Start or stop playback"));
      actionTogglePlay->
          setToolTip(i18n
          ("Start or stop playback of inpoint/outpoint selection"));
      actionNextFrame->
          setToolTip(i18n
          ("Move forwards one frame"));
      actionLastFrame->
          setToolTip(i18n
          ("Move backwards one frame"));
      actionSetInpoint->
          setToolTip(i18n("Set inpoint"));
      actionSetOutpoint->
          setToolTip(i18n
          ("Set outpoint"));
      actionDeleteSelected->
          setToolTip(i18n("Delete clip"));

      actionToggleSnapMarker->
          setToolTip(i18n
          ("Toggle a snap marker at the current monitor position"));
      actionClearAllSnapMarkers->
          setToolTip(i18n
          ("Remove all snap markers from project"));
      actionClearSnapMarkersFromSelected->
          setToolTip(i18n
          ("Remove snap markers from selected clips"));

      renderExportTimeline->
          setToolTip(i18n("Render timeline to a file"));
      configureProject->
          setToolTip(i18n("Configure project"));

      timelineRazorAllClips->
          setToolTip(i18n
          ("Razor all clips at cursor position"));
      timelineRazorSelectedClips->
          setToolTip(i18n
          ("Razor clip at cursor position"));

      // use the absolute path to your kdenliveui.rc file for testing purpose in createGUI();
      createGUI("kdenliveui.rc");

      timelineMoveTool->setChecked(true);
      timelineSnapToBorder->setChecked(true);
      timelineSnapToFrame->setChecked(true);
      timelineSnapToMarker->setChecked(true);
      onScreenDisplay->setChecked(KdenliveSettings::osdtimecode());
    }


Generated by  Doxygen 1.6.0   Back to index