diff options
author | Ken Moore <ken@pcbsd.org> | 2015-04-27 11:11:30 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-04-27 11:11:30 -0400 |
commit | b02e80a6ae083734c8406a91d06a5c7131d239fc (patch) | |
tree | b722f5813233b16b1fe7f7484435dd4ea0193c7d | |
parent | Merge branch 'master' of github.com:pcbsd/lumina (diff) | |
download | lumina-b02e80a6ae083734c8406a91d06a5c7131d239fc.tar.gz lumina-b02e80a6ae083734c8406a91d06a5c7131d239fc.tar.bz2 lumina-b02e80a6ae083734c8406a91d06a5c7131d239fc.zip |
Add support for launching lumina-search on the currently-viewed directory from within lumina-fm
-rw-r--r-- | lumina-fm/MainUI.cpp | 4 | ||||
-rw-r--r-- | lumina-fm/MainUI.h | 1 | ||||
-rw-r--r-- | lumina-fm/MainUI.ui | 9 |
3 files changed, 14 insertions, 0 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index 7f1e5fcc..dc35efa0 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -679,6 +679,10 @@ void MainUI::on_actionNew_Tab_triggered(){ tabBar->setCurrentIndex(tabBar->count()-1); } +void MainUI::on_actionSearch_triggered(){ + QProcess::startDetached("lumina-search -dir \""+getCurrentDir()+"\""); +} + void MainUI::on_actionClose_triggered(){ if(tabBar->count() > 1){ if(QMessageBox::Yes != QMessageBox::question(this, tr("Verify Quit"), tr("You have multiple tabs open. Are you sure you want to quit?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes ) ){ diff --git a/lumina-fm/MainUI.h b/lumina-fm/MainUI.h index b18d25a5..345e2dd4 100644 --- a/lumina-fm/MainUI.h +++ b/lumina-fm/MainUI.h @@ -140,6 +140,7 @@ private slots: //Menu Actions void on_actionNew_Tab_triggered(); + void on_actionSearch_triggered(); void on_actionClose_triggered(); void on_actionView_Hidden_Files_triggered(); void on_actionShow_Action_Buttons_triggered(); diff --git a/lumina-fm/MainUI.ui b/lumina-fm/MainUI.ui index 4b2156c2..9ef367d7 100644 --- a/lumina-fm/MainUI.ui +++ b/lumina-fm/MainUI.ui @@ -1113,6 +1113,7 @@ <string>File</string> </property> <addaction name="actionNew_Tab"/> + <addaction name="actionSearch"/> <addaction name="separator"/> <addaction name="actionClose"/> </widget> @@ -1297,6 +1298,14 @@ <string>Load Thumbnails</string> </property> </action> + <action name="actionSearch"> + <property name="text"> + <string>Search Directory</string> + </property> + <property name="shortcut"> + <string>Ctrl+F</string> + </property> + </action> </widget> <resources/> <connections/> |