diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2017-06-16 09:55:20 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2017-06-16 09:55:20 -0400 |
commit | e6ee4bc612c79fc35f68e8e5324a9c9c23e720c1 (patch) | |
tree | 1c3e9d3a233877d499a920f1d7dda3a81891b98d /src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.h | |
parent | Updated syntax files (diff) | |
parent | add prototype for autoextract menu entry (diff) | |
download | lumina-e6ee4bc612c79fc35f68e8e5324a9c9c23e720c1.tar.gz lumina-e6ee4bc612c79fc35f68e8e5324a9c9c23e720c1.tar.bz2 lumina-e6ee4bc612c79fc35f68e8e5324a9c9c23e720c1.zip |
Merge branch 'master' of https://github.com/trueos/lumina
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.h b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.h index aca4f0fe..c586e3e9 100644 --- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.h +++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.h @@ -45,6 +45,7 @@ public: QString id(); QString currentDir(); QFileSystemModel *dirtreeModel; + QStringList PREFAPPS; //View Settings void setShowDetails(bool show); @@ -55,6 +56,8 @@ public: void showDirTreePane(bool show); bool showingDirTreePane(); + + public slots: //void LoadDir(QString dir, LFileInfoList list); void LoadSnaps(QString basedir, QStringList snaps); @@ -80,11 +83,11 @@ private: QLineEdit *line_dir; //The context menu and associated items - QMenu *contextMenu, *cNewMenu, *cOpenMenu, *cFModMenu, *cFViewMenu; + QMenu *contextMenu, *cNewMenu, *cOpenMenu, *cFModMenu, *cFViewMenu, *cOpenWithMenu; //The keyboard shortcuts for context menu items - QShortcut *kZoomIn, *kZoomOut, *kNewFile, *kNewDir, *kNewXDG, *kCut, *kCopy, *kPaste, *kRename, \ - *kFav, *kDel, *kOpSS, *kOpMM, *kOpTerm; + QShortcut *kZoomIn, *kZoomOut, *kNewFile, *kNewDir, *kNewXDG, *kCut, *kCopy, *kPaste, *kRename, \ + *kFav, *kDel, *kOpSS, *kOpMM, *kOpTerm, *kExtract; //Functions for internal use void createShortcuts(); //on init only @@ -93,6 +96,14 @@ private: BrowserWidget* currentBrowser(); QStringList currentDirFiles(); //all the "files" available within the current dir/browser + QProcess *pExtract; + + //OpenWithMenu + QString fileEXT, filePath; + QStringList mimetypes, keys, files; + //QStringList getPreferredApplications(); + + private slots: //UI BUTTONS/Actions @@ -126,7 +137,8 @@ private slots: void UpdateContextMenu(); void currentDirectoryChanged(bool widgetonly = false); void dirStatusChanged(QString); - void setCurrentBrowser(QString); + void setCurrentBrowser(QString); +// void on_folderViewPane_clicked(); //Context Menu Functions // - DIRECTORY operations @@ -145,10 +157,12 @@ private slots: void runFiles(); void runWithFiles(); //void attachToNewEmail(); + void autoExtractFiles(); // - Context-specific operations void openInSlideshow(); - void openMultimedia(); + void openMultimedia(); + signals: //Directory loading/finding signals |