Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
a5c19ed8
Commit
a5c19ed8
authored
Jun 12, 2020
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve management of cached data, allow cleaning cache data older than x months
parent
546d6b46
Pipeline
#23306
passed with stage
in 15 minutes and 23 seconds
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
362 additions
and
47 deletions
+362
-47
src/kdenlivesettings.kcfg
src/kdenlivesettings.kcfg
+7
-3
src/kdenliveui.rc
src/kdenliveui.rc
+2
-1
src/project/dialogs/temporarydata.cpp
src/project/dialogs/temporarydata.cpp
+340
-42
src/project/dialogs/temporarydata.h
src/project/dialogs/temporarydata.h
+13
-1
No files found.
src/kdenlivesettings.kcfg
View file @
a5c19ed8
...
...
@@ -28,6 +28,10 @@
</group>
<group
name=
"misc"
>
<entry
name=
"cleanCacheMonths"
type=
"Int"
>
<label>
Number of months to discard cache data.
</label>
<default>
6
</default>
</entry>
<entry
name=
"openlastproject"
type=
"Bool"
>
<label>
Open last project on startup.
</label>
<default>
false
</default>
...
...
@@ -961,7 +965,7 @@
<label>
Show additional controls in the c0rners on-monitor widget.
</label>
<default>
false
</default>
</entry>
<entry
name=
"projectloading_avformatnovalidate"
type=
"Bool"
>
<label>
Do not validate the video files when loading a project for the sake of speed.
</label>
<default>
false
</default>
...
...
@@ -971,12 +975,12 @@
<label>
Display audio levels.
</label>
<default>
true
</default>
</entry>
<entry
name=
"enable_recording_preview"
type=
"Bool"
>
<label>
Should we display video frames while capturing.
</label>
<default>
true
</default>
</entry>
<entry
name=
"add_new_clip"
type=
"Bool"
>
<label>
Add cut clips to project after transcoding.
</label>
<default>
true
</default>
...
...
src/kdenliveui.rc
View file @
a5c19ed8
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui
name=
"kdenlive"
version=
"18
4
"
translationDomain=
"kdenlive"
>
<kpartgui
name=
"kdenlive"
version=
"18
5
"
translationDomain=
"kdenlive"
>
<MenuBar>
<Menu
name=
"file"
>
<Action
name=
"file_save"
/>
...
...
@@ -242,6 +242,7 @@
<ActionList
name=
"dock_actions"
/>
</Menu>
<Menu
name=
"settings"
>
<Action
name=
"manage_cache"
/>
<Action
name=
"run_wizard"
/>
<Menu
name=
"qt_opengl"
><text>
OpenGL Backend
</text>
<Action
name=
"opengl_auto"
/>
...
...
src/project/dialogs/temporarydata.cpp
View file @
a5c19ed8
This diff is collapsed.
Click to expand it.
src/project/dialogs/temporarydata.h
View file @
a5c19ed8
...
...
@@ -34,6 +34,7 @@ class QLabel;
class
QGridLayout
;
class
QTreeWidget
;
class
QPushButton
;
class
QToolButton
;
/**
* @class ChartWidget
...
...
@@ -101,11 +102,13 @@ private:
ChartWidget
*
m_globalPie
;
QLabel
*
m_previewSize
;
QLabel
*
m_proxySize
;
QLabel
*
m_totalProxySize
;
QLabel
*
m_audioSize
;
QLabel
*
m_thumbSize
;
QLabel
*
m_currentSize
;
QLabel
*
m_globalSize
;
QLabel
*
m_selectedSize
;
QLabel
*
m_backupSize
;
QWidget
*
m_currentPage
;
QWidget
*
m_globalPage
;
QTreeWidget
*
m_listWidget
;
...
...
@@ -117,12 +120,14 @@ private:
QString
m_processingDirectory
;
QDir
m_globalDir
;
QStringList
m_proxies
;
Q
Push
Button
*
m_globalDelete
;
Q
Tool
Button
*
m_globalDelete
;
void
updateDataInfo
();
void
updateGlobalInfo
();
void
updateTotal
();
void
buildGlobalCacheDialog
(
int
minHeight
);
void
processglobalDirectories
();
void
processBackupDirectories
();
void
processProxyDirectory
();
private
slots
:
void
gotPreviewSize
(
KJob
*
job
);
...
...
@@ -130,14 +135,21 @@ private slots:
void
gotAudioSize
(
KJob
*
job
);
void
gotThumbSize
(
KJob
*
job
);
void
gotFolderSize
(
KJob
*
job
);
void
gotBackupSize
(
KJob
*
job
);
void
gotProjectProxySize
(
KJob
*
job
);
void
refreshGlobalPie
();
void
deletePreview
();
void
deleteProjectProxy
();
void
deleteProxy
();
void
deleteAudio
();
void
deleteThumbs
();
void
deleteCurrentCacheData
();
void
deleteBackup
();
void
cleanBackup
();
void
openCacheFolder
();
void
deleteSelected
();
void
cleanCache
();
void
cleanProxy
();
signals:
void
disableProxies
();
...
...
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