aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/widgets
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-02-02 08:34:05 -0500
committerKen Moore <moorekou@gmail.com>2016-02-02 08:34:05 -0500
commit4e0e167d6761362f398a752fa1927136c3ae6adc (patch)
tree6639fb8c0b24d905bf72faf920c87f729b7d9b07 /lumina-fm/widgets
parentKen changed theming to be more specific for Lumina on my system so I can begi... (diff)
parentAdded menu items for various functionality that was already available (diff)
downloadlumina-4e0e167d6761362f398a752fa1927136c3ae6adc.tar.gz
lumina-4e0e167d6761362f398a752fa1927136c3ae6adc.tar.bz2
lumina-4e0e167d6761362f398a752fa1927136c3ae6adc.zip
Merge pull request #177 from codersean/master
Work on the lumina-fm application menu
Diffstat (limited to 'lumina-fm/widgets')
-rw-r--r--lumina-fm/widgets/DirWidget.cpp10
-rw-r--r--lumina-fm/widgets/DirWidget.h1
2 files changed, 8 insertions, 3 deletions
diff --git a/lumina-fm/widgets/DirWidget.cpp b/lumina-fm/widgets/DirWidget.cpp
index 46aa2cf3..f7ade48c 100644
--- a/lumina-fm/widgets/DirWidget.cpp
+++ b/lumina-fm/widgets/DirWidget.cpp
@@ -557,6 +557,10 @@ void DirWidget::UpdateButtons(){
}
//Keyboard Shortcuts triggered
+void DirWidget::TryRenameSelection(){
+ on_tool_act_rename_clicked();
+}
+
void DirWidget::TryCutSelection(){
on_tool_act_cut_clicked();
}
@@ -955,8 +959,8 @@ void DirWidget::OpenContextMenu(){
contextMenu->addAction(LXDG::findIcon("run-build-file",""), tr("Open"), this, SLOT(on_tool_act_run_clicked()) );
contextMenu->addAction(LXDG::findIcon("run-build-configure",""), tr("Open With..."), this, SLOT(on_tool_act_runwith_clicked()) );
- contextMenu->addAction(LXDG::findIcon("edit-rename",""), tr("Rename"), this, SLOT(on_tool_act_rename_clicked()) )->setEnabled(canmodify);
- contextMenu->addAction(LXDG::findIcon("document-encrypted",""), tr("View Checksums"), this, SLOT(fileCheckSums()) );
+ contextMenu->addAction(LXDG::findIcon("edit-rename",""), tr("Rename..."), this, SLOT(on_tool_act_rename_clicked()) )->setEnabled(canmodify);
+ contextMenu->addAction(LXDG::findIcon("document-encrypted",""), tr("View Checksums..."), this, SLOT(fileCheckSums()) );
contextMenu->addSeparator();
}
//Now add the general selection options
@@ -967,7 +971,7 @@ void DirWidget::OpenContextMenu(){
contextMenu->addAction(LXDG::findIcon("edit-delete",""), tr("Delete Selection"), this, SLOT(on_tool_act_rm_clicked()) )->setEnabled(canmodify&&!sel.isEmpty());
if(LUtils::isValidBinary("lumina-fileinfo")){
contextMenu->addSeparator();
- contextMenu->addAction(LXDG::findIcon("edit-find-replace",""), tr("File Properties"), this, SLOT(fileProperties()) )->setEnabled(!sel.isEmpty());
+ contextMenu->addAction(LXDG::findIcon("edit-find-replace",""), tr("File Properties..."), this, SLOT(fileProperties()) )->setEnabled(!sel.isEmpty());
}
contextMenu->addSeparator();
contextMenu->addAction(LXDG::findIcon("system-search",""), tr("Open Terminal here"), this, SLOT(openTerminal()));
diff --git a/lumina-fm/widgets/DirWidget.h b/lumina-fm/widgets/DirWidget.h
index 70936b97..75003681 100644
--- a/lumina-fm/widgets/DirWidget.h
+++ b/lumina-fm/widgets/DirWidget.h
@@ -72,6 +72,7 @@ public slots:
void UpdateButtons();
//Keyboard Shortcuts triggered
+ void TryRenameSelection();
void TryCutSelection();
void TryCopySelection();
void TryPasteSelection();
bgstack15