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
253
Issues
253
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
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
3af87af2
Commit
3af87af2
authored
Mar 17, 2019
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add keyboard shortcuts to set track active/inactive
parent
79762b5d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
3 deletions
+21
-3
src/kdenlivesettings.kcfg
src/kdenlivesettings.kcfg
+4
-0
src/kdenliveui.rc
src/kdenliveui.rc
+2
-1
src/mainwindow.cpp
src/mainwindow.cpp
+2
-1
src/project/projectmanager.cpp
src/project/projectmanager.cpp
+5
-0
src/project/projectmanager.h
src/project/projectmanager.h
+4
-0
src/timeline2/view/timelinecontroller.cpp
src/timeline2/view/timelinecontroller.cpp
+3
-0
src/timeline2/view/timelinecontroller.h
src/timeline2/view/timelinecontroller.h
+1
-1
No files found.
src/kdenlivesettings.kcfg
View file @
3af87af2
...
...
@@ -988,5 +988,9 @@
<label>
color titler guides.
</label>
<default>
#ff0000
</default>
</entry>
<entry
name=
"titlerbg"
type=
"Int"
>
<label>
Default background for titler.
</label>
<default>
0
</default>
</entry>
</group>
</kcfg>
src/kdenliveui.rc
View file @
3af87af2
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui
name=
"kdenlive"
version=
"15
8
"
translationDomain=
"kdenlive"
>
<kpartgui
name=
"kdenlive"
version=
"15
9
"
translationDomain=
"kdenlive"
>
<MenuBar>
<Menu
name=
"file"
>
<Action
name=
"dvd_wizard"
/>
...
...
@@ -135,6 +135,7 @@
<Action
name=
"switch_track_lock"
/>
<Action
name=
"switch_all_track_lock"
/>
<Action
name=
"switch_track_target"
/>
<Action
name=
"switch_active_target"
/>
</Menu>
<Separator
/>
<Menu
name=
"video_effects_menu"
><text>
Add Effect
</text>
...
...
src/mainwindow.cpp
View file @
3af87af2
...
...
@@ -1474,7 +1474,8 @@ void MainWindow::setupActions()
Qt
::
CTRL
+
Qt
::
SHIFT
+
Qt
::
Key_L
);
addAction
(
QStringLiteral
(
"switch_track_target"
),
i18n
(
"Toggle Track Target"
),
pCore
->
projectManager
(),
SLOT
(
slotSwitchTrackTarget
()),
QIcon
(),
Qt
::
SHIFT
+
Qt
::
Key_T
);
addAction
(
QStringLiteral
(
"switch_active_target"
),
i18n
(
"Toggle Track Active"
),
pCore
->
projectManager
(),
SLOT
(
slotSwitchTrackActive
()),
QIcon
(),
Qt
::
Key_A
);
addAction
(
QStringLiteral
(
"add_project_note"
),
i18n
(
"Add Project Note"
),
pCore
->
projectManager
(),
SLOT
(
slotAddProjectNote
()),
QIcon
::
fromTheme
(
QStringLiteral
(
"bookmark"
)));
...
...
src/project/projectmanager.cpp
View file @
3af87af2
...
...
@@ -752,6 +752,11 @@ void ProjectManager::slotSwitchTrackLock()
pCore
->
window
()
->
getMainTimeline
()
->
controller
()
->
switchTrackLock
();
}
void
ProjectManager
::
slotSwitchTrackActive
()
{
pCore
->
window
()
->
getMainTimeline
()
->
controller
()
->
switchTrackActive
();
}
void
ProjectManager
::
slotSwitchAllTrackLock
()
{
pCore
->
window
()
->
getMainTimeline
()
->
controller
()
->
switchTrackLock
(
true
);
...
...
src/project/projectmanager.h
View file @
3af87af2
...
...
@@ -136,6 +136,10 @@ public slots:
/** @brief Un/Lock current timeline track */
void
slotSwitchTrackLock
();
void
slotSwitchAllTrackLock
();
/** @brief Make current timeline track active/inactive*/
void
slotSwitchTrackActive
();
/** @brief Un/Set current track as target */
void
slotSwitchTrackTarget
();
...
...
src/timeline2/view/timelinecontroller.cpp
View file @
3af87af2
...
...
@@ -1517,6 +1517,9 @@ void TimelineController::alignAudio(int clipId)
void
TimelineController
::
switchTrackActive
(
int
trackId
)
{
if
(
trackId
==
-
1
)
{
trackId
=
m_activeTrack
;
}
bool
active
=
m_model
->
getTrackById_const
(
trackId
)
->
isTimelineActive
();
m_model
->
setTrackProperty
(
trackId
,
QStringLiteral
(
"kdenlive:timeline_active"
),
active
?
QStringLiteral
(
"0"
)
:
QStringLiteral
(
"1"
));
}
...
...
src/timeline2/view/timelinecontroller.h
View file @
3af87af2
...
...
@@ -314,7 +314,7 @@ public:
Q_INVOKABLE
void
removeEffectKeyframe
(
int
cid
,
int
frame
);
Q_INVOKABLE
void
updateEffectKeyframe
(
int
cid
,
int
oldFrame
,
int
newFrame
,
const
QVariant
&
normalizedValue
=
QVariant
());
Q_INVOKABLE
void
switchTrackActive
(
int
trackId
);
Q_INVOKABLE
void
switchTrackActive
(
int
trackId
=
-
1
);
void
switchTrackLock
(
bool
applyToAll
=
false
);
void
switchTargetTrack
();
...
...
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