Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
d393fcff
Commit
d393fcff
authored
Nov 05, 2020
by
Jean-Baptiste Mardelle
Browse files
Add subtitle actions in Project menu
parent
234b8fdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kdenliveui.rc
View file @
d393fcff
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui
name=
"kdenlive"
version=
"19
4
"
translationDomain=
"kdenlive"
>
<kpartgui
name=
"kdenlive"
version=
"19
5
"
translationDomain=
"kdenlive"
>
<MenuBar>
<Menu
name=
"file"
>
<Action
name=
"file_save"
/>
...
...
@@ -27,6 +27,10 @@
<Action
name=
"download_resource"
/>
<Menu
name=
"generators"
><text>
Generators
</text>
</Menu>
<Menu
name=
"subtitles"
><text>
Subtitles
</text>
<Action
name=
"subtitle_tool"
/>
<Action
name=
"add_subtitle"
/>
</Menu>
<Separator
/>
<Action
name=
"bin_view_mode"
/>
<Action
name=
"stopmotion"
/>
...
...
src/mainwindow.cpp
View file @
d393fcff
...
...
@@ -4182,6 +4182,9 @@ void MainWindow::slotEditSubtitle()
void
MainWindow
::
slotAddSubtitle
()
{
if
(
pCore
->
currentDoc
()
->
getSubtitleModel
()
==
nullptr
)
{
slotEditSubtitle
();
}
getCurrentTimeline
()
->
controller
()
->
addSubtitle
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment