Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
259
Issues
259
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Multimedia
Kdenlive
Commits
f74787ed
Commit
f74787ed
authored
Nov 19, 2020
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Select subtitle item when moving between subtitles from the widget
parent
299cd9e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
src/core.cpp
src/core.cpp
+7
-0
src/core.h
src/core.h
+2
-0
src/dialogs/subtitleedit.cpp
src/dialogs/subtitleedit.cpp
+2
-2
No files found.
src/core.cpp
View file @
f74787ed
...
...
@@ -270,6 +270,13 @@ void Core::selectBinClip(const QString &clipId, int frame, const QPoint &zone)
m_binWidget
->
selectClipById
(
clipId
,
frame
,
zone
);
}
void
Core
::
selectTimelineItem
(
int
id
)
{
if
(
m_guiConstructed
&&
m_mainWindow
->
getCurrentTimeline
()
->
controller
()
->
getModel
())
{
m_mainWindow
->
getCurrentTimeline
()
->
controller
()
->
getModel
()
->
requestAddToSelection
(
id
,
true
);
}
}
std
::
shared_ptr
<
JobManager
>
Core
::
jobManager
()
{
return
m_jobManager
;
...
...
src/core.h
View file @
f74787ed
...
...
@@ -109,6 +109,8 @@ public:
Bin
*
bin
();
/** @brief Select a clip in the Bin from its id. */
void
selectBinClip
(
const
QString
&
id
,
int
frame
=
-
1
,
const
QPoint
&
zone
=
QPoint
());
/** @brief Selects an item in the current timeline (clip, composition, subtitle). */
void
selectTimelineItem
(
int
id
);
/** @brief Returns a pointer to the model of the project bin. */
std
::
shared_ptr
<
ProjectItemModel
>
projectItemModel
();
/** @brief Returns a pointer to the job manager. Please do not store it. */
...
...
src/dialogs/subtitleedit.cpp
View file @
f74787ed
...
...
@@ -122,7 +122,7 @@ void SubtitleEdit::goToPrevious()
}
GenTime
prev
=
m_model
->
getStartPosForId
(
id
);
pCore
->
getMonitor
(
Kdenlive
::
ProjectMonitor
)
->
requestSeek
(
prev
.
frames
(
pCore
->
getCurrentFps
()));
setActiveSubtitle
(
id
);
pCore
->
selectTimelineItem
(
id
);
}
}
}
...
...
@@ -137,7 +137,7 @@ void SubtitleEdit::goToNext()
}
GenTime
prev
=
m_model
->
getStartPosForId
(
id
);
pCore
->
getMonitor
(
Kdenlive
::
ProjectMonitor
)
->
requestSeek
(
prev
.
frames
(
pCore
->
getCurrentFps
()));
setActiveSubtitle
(
id
);
pCore
->
selectTimelineItem
(
id
);
}
}
}
Write
Preview
Markdown
is supported
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