aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/widgets/DirWidget.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-09-25 12:21:44 -0400
committerKen Moore <moorekou@gmail.com>2015-09-25 12:21:44 -0400
commit5b955b00cba003c8cf8aeb2d44295c0a63be9c06 (patch)
treec7e339792ae21eba697d91c96ae4eaa0fe6ea00e /lumina-fm/widgets/DirWidget.h
parentFix up the active browser detection routine, ensure the browser gets updated ... (diff)
downloadlumina-5b955b00cba003c8cf8aeb2d44295c0a63be9c06.tar.gz
lumina-5b955b00cba003c8cf8aeb2d44295c0a63be9c06.tar.bz2
lumina-5b955b00cba003c8cf8aeb2d44295c0a63be9c06.zip
Change how the thumbnails are loaded in lumina-fm. Now it loads the entire directory up front with placeholder icons for image files - then kicks off a background thumbnail process afterwards to gradually convert the placeholders into thumbnails. This allows the user to instantly start to browse/use the directory while the thumbnails are still being loaded (if on a slow system or have tons of large image files to read).
Diffstat (limited to 'lumina-fm/widgets/DirWidget.h')
-rw-r--r--lumina-fm/widgets/DirWidget.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lumina-fm/widgets/DirWidget.h b/lumina-fm/widgets/DirWidget.h
index be6252ae..5452edf1 100644
--- a/lumina-fm/widgets/DirWidget.h
+++ b/lumina-fm/widgets/DirWidget.h
@@ -76,8 +76,8 @@ private:
Ui::DirWidget *ui;
QString ID, CDIR; //unique ID assigned by the parent and the current dir path
LFileInfoList CLIST; //current item list (snap or not)
- QString normalbasedir, snapbasedir, snaprelpath; //for maintaining direcoty context while moving between snapshots
- QStringList snapshots;
+ QString normalbasedir, snapbasedir, snaprelpath; //for maintaining directory context while moving between snapshots
+ QStringList snapshots, needThumbs;
bool showDetails, showThumbs, canmodify, stopload; //which widget to use for showing items
QList<DETAILTYPES> listDetails;
QMenu *contextMenu;
@@ -101,6 +101,9 @@ private:
QStringList date_format;
private slots:
+ //Internal loading of thumbnails
+ void startLoadThumbs();
+
//UI BUTTONS/Actions
// -- Left Action Buttons
void on_tool_act_copy_clicked();
@@ -137,7 +140,7 @@ private slots:
//Browser Functions
void OpenContextMenu();
void SelectionChanged();
- void startSync(const QString &file); //used internally to collect/pause before updating the dir
+ void startSync(const QString &file); //used internally to collect/pause before updating the dir
signals:
//Directory loading/finding signals
bgstack15