diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-18 22:59:34 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-18 22:59:34 +0900 | 
| commit | 588b1440b578cff0a4614a52946b978039ee6f7c (patch) | |
| tree | 0d4377364809a2aff1b92ad6f99387a58eab8338 /tdefilereplace/tdefilereplacepart.cpp | |
| parent | 75fedf7ef28b7f62c19f39a2229d6cc1ec9376e3 (diff) | |
| download | tdeutils-588b1440.tar.gz tdeutils-588b1440.zip | |
tdefilereplace:
1) fixed delete button logic
2) added remove entry functionality
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdefilereplace/tdefilereplacepart.cpp')
| -rw-r--r-- | tdefilereplace/tdefilereplacepart.cpp | 13 | 
1 files changed, 11 insertions, 2 deletions
| diff --git a/tdefilereplace/tdefilereplacepart.cpp b/tdefilereplace/tdefilereplacepart.cpp index 455b69c..7d0da75 100644 --- a/tdefilereplace/tdefilereplacepart.cpp +++ b/tdefilereplace/tdefilereplacepart.cpp @@ -501,9 +501,13 @@ void TDEFileReplacePart::resetActions()    // Results    actionCollection()->action("results_infos")->setEnabled(hasItems);    actionCollection()->action("results_openfile")->setEnabled(hasItems); +  actionCollection()->action("results_openfilewith")->setEnabled(hasItems);    if (actionCollection()->action("results_editfile")) +  {        actionCollection()->action("results_editfile")->setEnabled(hasItems); +  }    actionCollection()->action("results_opendir")->setEnabled(hasItems); +  actionCollection()->action("results_removeentry")->setEnabled(hasItems);    actionCollection()->action("results_delete")->setEnabled(hasItems);    actionCollection()->action("results_treeexpand")->setEnabled(hasItems);    actionCollection()->action("results_treereduce")->setEnabled(hasItems); @@ -606,13 +610,15 @@ void TDEFileReplacePart::initGUI()    // Results    (void)new TDEAction(i18n("&Properties"), "informations", 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultProperties()), actionCollection(), "results_infos"); -  (void)new TDEAction(i18n("&Open"), "document-new", 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultOpen()), actionCollection(), "results_openfile"); +  (void)new TDEAction(i18n("&Open"), "document-open", 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultOpen()), actionCollection(), "results_openfile"); +  (void)new TDEAction(i18n("Open &With..."), "document-open", 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultOpen()), actionCollection(), "results_openfilewith");    if(quantaFound)      {        (void)new TDEAction(i18n("&Edit in Quanta"), "quanta", 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultEdit()), actionCollection(), "results_editfile");      } -  (void)new TDEAction(i18n("Open Parent &Folder"), "document-open", 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultDirOpen()), actionCollection(), "results_opendir"); +  (void)new TDEAction(i18n("Open Parent &Folder"), "go-up", 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultDirOpen()), actionCollection(), "results_opendir"); +  (void)new TDEAction(i18n("Remove &Entry"), "edit-clear", 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultRemoveEntry()), actionCollection(), "results_removeentry");    (void)new TDEAction(i18n("&Delete"), "edit-delete", 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultDelete()), actionCollection(), "results_delete");    (void)new TDEAction(i18n("E&xpand Tree"), 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultTreeExpand()), actionCollection(), "results_treeexpand");    (void)new TDEAction(i18n("&Reduce Tree"), 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultTreeReduce()), actionCollection(), "results_treereduce"); @@ -659,8 +665,11 @@ void TDEFileReplacePart::freezeActions()    actionCollection()->action("results_infos")->setEnabled(false);    actionCollection()->action("results_openfile")->setEnabled(false);    if (actionCollection()->action("results_editfile")) +  {        actionCollection()->action("results_editfile")->setEnabled(false); +  }    actionCollection()->action("results_opendir")->setEnabled(false); +  actionCollection()->action("results_removeentry")->setEnabled(false);    actionCollection()->action("results_delete")->setEnabled(false);    actionCollection()->action("results_treeexpand")->setEnabled(false);    actionCollection()->action("results_treereduce")->setEnabled(false); | 
