|
|
@ -501,9 +501,13 @@ void TDEFileReplacePart::resetActions()
|
|
|
|
// Results
|
|
|
|
// Results
|
|
|
|
actionCollection()->action("results_infos")->setEnabled(hasItems);
|
|
|
|
actionCollection()->action("results_infos")->setEnabled(hasItems);
|
|
|
|
actionCollection()->action("results_openfile")->setEnabled(hasItems);
|
|
|
|
actionCollection()->action("results_openfile")->setEnabled(hasItems);
|
|
|
|
|
|
|
|
actionCollection()->action("results_openfilewith")->setEnabled(hasItems);
|
|
|
|
if (actionCollection()->action("results_editfile"))
|
|
|
|
if (actionCollection()->action("results_editfile"))
|
|
|
|
|
|
|
|
{
|
|
|
|
actionCollection()->action("results_editfile")->setEnabled(hasItems);
|
|
|
|
actionCollection()->action("results_editfile")->setEnabled(hasItems);
|
|
|
|
|
|
|
|
}
|
|
|
|
actionCollection()->action("results_opendir")->setEnabled(hasItems);
|
|
|
|
actionCollection()->action("results_opendir")->setEnabled(hasItems);
|
|
|
|
|
|
|
|
actionCollection()->action("results_removeentry")->setEnabled(hasItems);
|
|
|
|
actionCollection()->action("results_delete")->setEnabled(hasItems);
|
|
|
|
actionCollection()->action("results_delete")->setEnabled(hasItems);
|
|
|
|
actionCollection()->action("results_treeexpand")->setEnabled(hasItems);
|
|
|
|
actionCollection()->action("results_treeexpand")->setEnabled(hasItems);
|
|
|
|
actionCollection()->action("results_treereduce")->setEnabled(hasItems);
|
|
|
|
actionCollection()->action("results_treereduce")->setEnabled(hasItems);
|
|
|
@ -606,13 +610,15 @@ void TDEFileReplacePart::initGUI()
|
|
|
|
|
|
|
|
|
|
|
|
// Results
|
|
|
|
// Results
|
|
|
|
(void)new TDEAction(i18n("&Properties"), "informations", 0, TQT_TQOBJECT(m_view), TQT_SLOT(slotResultProperties()), actionCollection(), "results_infos");
|
|
|
|
(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)
|
|
|
|
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("&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("&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("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");
|
|
|
|
(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_infos")->setEnabled(false);
|
|
|
|
actionCollection()->action("results_openfile")->setEnabled(false);
|
|
|
|
actionCollection()->action("results_openfile")->setEnabled(false);
|
|
|
|
if (actionCollection()->action("results_editfile"))
|
|
|
|
if (actionCollection()->action("results_editfile"))
|
|
|
|
|
|
|
|
{
|
|
|
|
actionCollection()->action("results_editfile")->setEnabled(false);
|
|
|
|
actionCollection()->action("results_editfile")->setEnabled(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
actionCollection()->action("results_opendir")->setEnabled(false);
|
|
|
|
actionCollection()->action("results_opendir")->setEnabled(false);
|
|
|
|
|
|
|
|
actionCollection()->action("results_removeentry")->setEnabled(false);
|
|
|
|
actionCollection()->action("results_delete")->setEnabled(false);
|
|
|
|
actionCollection()->action("results_delete")->setEnabled(false);
|
|
|
|
actionCollection()->action("results_treeexpand")->setEnabled(false);
|
|
|
|
actionCollection()->action("results_treeexpand")->setEnabled(false);
|
|
|
|
actionCollection()->action("results_treereduce")->setEnabled(false);
|
|
|
|
actionCollection()->action("results_treereduce")->setEnabled(false);
|
|
|
|