From c65a4f358f20f3709d1ebc4e9d2f7931252a50e8 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 23 Feb 2015 13:08:33 -0500 Subject: Add an option in lumina-fm to enable/disable loading file thumbnails. NOTE: This option does not retroactively remove thumbnails that have already been loaded - it only prevents loading thumbnails in new directories. --- lumina-fm/MainUI.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lumina-fm/MainUI.h') diff --git a/lumina-fm/MainUI.h b/lumina-fm/MainUI.h index ccc85f72..d5775220 100644 --- a/lumina-fm/MainUI.h +++ b/lumina-fm/MainUI.h @@ -115,7 +115,8 @@ private: QString getCurrentDir(); void setCurrentDir(QString); QFileInfoList getSelectedItems(); - + //QModelIndexList getVisibleItems(); + private slots: void slotSingleInstance(QStringList in){ this->show(); @@ -141,6 +142,7 @@ private slots: void on_actionClose_triggered(); void on_actionView_Hidden_Files_triggered(); void on_actionShow_Action_Buttons_triggered(); + void on_actionShow_Thumbnails_triggered(); void goToBookmark(QAction*); void goToDevice(QAction*); void viewModeChanged(bool); -- cgit From dd2e7baadb28a60b8581c7cc61a04a7699a94cea Mon Sep 17 00:00:00 2001 From: william os4y Date: Sun, 22 Feb 2015 19:56:13 +0100 Subject: add "New file" on lumina-fm --- lumina-fm/MainUI.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lumina-fm/MainUI.h') diff --git a/lumina-fm/MainUI.h b/lumina-fm/MainUI.h index ccc85f72..ba390cb0 100644 --- a/lumina-fm/MainUI.h +++ b/lumina-fm/MainUI.h @@ -157,7 +157,8 @@ private slots: void reloadDirectory(); //Update the widget with the dir contents void currentDirectoryLoaded(); //The file system model re-loaded the directory void on_tool_addToDir_clicked(); - void tabChanged(int tab); + void on_tool_addNewFile_clicked(); + void tabChanged(int tab); void tabClosed(int tab = -1); void prevTab(); void nextTab(); -- cgit From bece1d27f3a650683aa1ee5efe27c0797193a19f Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 24 Feb 2015 12:32:00 -0500 Subject: Subclass the main QFileSystemModel to provide drag and drop support. This still appears to be able to "drop" items outside the window (for other applications) and has strange behavior in those cases (although non-critical - it does not change the filesystem in any way). --- lumina-fm/MainUI.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lumina-fm/MainUI.h') diff --git a/lumina-fm/MainUI.h b/lumina-fm/MainUI.h index 9b93b1d7..40ef25ff 100644 --- a/lumina-fm/MainUI.h +++ b/lumina-fm/MainUI.h @@ -53,6 +53,7 @@ #include "BMMDialog.h" //bookmark manager dialog #include "MimeIconProvider.h" //icon provider for the view widgets #include "BackgroundWorker.h" +#include "DDFileSystemModel.h" namespace Ui{ class MainUI; @@ -76,7 +77,8 @@ private: //Internal non-ui widgets QTabBar *tabBar; QLineEdit *currentDir; - QFileSystemModel *fsmod, *snapmod; + DDFileSystemModel *fsmod; + QFileSystemModel *snapmod; //QFileSystemWatcher *fswatcher; MimeIconProvider *iconProv; QMenu *contextMenu; -- cgit