Commit a5c19ed8 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

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
......@@ -28,6 +28,10 @@
<group name="misc">
<entry name="cleanCacheMonths" type="Int">
<label>Number of months to discard cache data.</label>
<entry name="openlastproject" type="Bool">
<label>Open last project on startup.</label>
......@@ -961,7 +965,7 @@
<label>Show additional controls in the c0rners on-monitor widget.</label>
<entry name="projectloading_avformatnovalidate" type="Bool">
<label>Do not validate the video files when loading a project for the sake of speed.</label>
......@@ -971,12 +975,12 @@
<label>Display audio levels.</label>
<entry name="enable_recording_preview" type="Bool">
<label>Should we display video frames while capturing.</label>
<entry name="add_new_clip" type="Bool">
<label>Add cut clips to project after transcoding.</label>
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="kdenlive" version="184" translationDomain="kdenlive">
<kpartgui name="kdenlive" version="185" translationDomain="kdenlive">
<Menu name="file" >
<Action name="file_save"/>
......@@ -242,6 +242,7 @@
<ActionList name="dock_actions" />
<Menu name="settings" >
<Action name="manage_cache" />
<Action name="run_wizard" />
<Menu name="qt_opengl" ><text>OpenGL Backend</text>
<Action name="opengl_auto" />
This diff is collapsed.
......@@ -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;
QPushButton *m_globalDelete;
QToolButton *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();
void disableProxies();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment