Switch to unified view

a/src/qtgui/restable.cpp b/src/qtgui/restable.cpp
...
...
743
    QMenu *popup = new QMenu(this);
743
    QMenu *popup = new QMenu(this);
744
    popup->addAction(tr("&Preview"), this, SLOT(menuPreview()));
744
    popup->addAction(tr("&Preview"), this, SLOT(menuPreview()));
745
    popup->addAction(tr("&Open"), this, SLOT(menuEdit()));
745
    popup->addAction(tr("&Open"), this, SLOT(menuEdit()));
746
    popup->addAction(tr("Copy &File Name"), this, SLOT(menuCopyFN()));
746
    popup->addAction(tr("Copy &File Name"), this, SLOT(menuCopyFN()));
747
    popup->addAction(tr("Copy &URL"), this, SLOT(menuCopyURL()));
747
    popup->addAction(tr("Copy &URL"), this, SLOT(menuCopyURL()));
748
748
    if (m_detaildoc.ipath.empty())
749
    if (m_detaildoc.ipath.empty())
749
    popup->addAction(tr("&Write to File"), this, SLOT(menuSaveToFile()));
750
    popup->addAction(tr("&Write to File"), this, SLOT(menuSaveToFile()));
751
750
    popup->addAction(tr("Find &similar documents"), this, SLOT(menuExpand()));
752
    popup->addAction(tr("Find &similar documents"), this, SLOT(menuExpand()));
753
754
    RefCntr<DocSequence> source = m_model->getDocSource();
755
    Rcl::Doc pdoc;
756
    if (source.isNotNull() && source->getEnclosing(m_detaildoc, pdoc))
751
    popup->addAction(tr("Preview P&arent document/folder"), 
757
  popup->addAction(tr("Preview P&arent document/folder"), 
752
              this, SLOT(menuPreviewParent()));
758
           this, SLOT(menuPreviewParent()));
759
753
    popup->addAction(tr("&Open Parent document/folder"), 
760
    popup->addAction(tr("&Open Parent document/folder"), 
754
              this, SLOT(menuOpenParent()));
761
              this, SLOT(menuOpenParent()));
755
    popup->popup(mapToGlobal(pos));
762
    popup->popup(mapToGlobal(pos));
756
}
763
}
757
764
...
...
782
    emit previewRequested(pdoc);
789
    emit previewRequested(pdoc);
783
    } else {
790
    } else {
784
    // No parent doc: show enclosing folder with app configured for
791
    // No parent doc: show enclosing folder with app configured for
785
    // directories
792
    // directories
786
    pdoc.url = path_getfather(doc.url);
793
    pdoc.url = path_getfather(doc.url);
794
  pdoc.meta[Rcl::Doc::keychildurl] = doc.url;
795
  pdoc.meta[Rcl::Doc::keyapptg] = "parentopen";
787
    pdoc.mimetype = "application/x-fsdirectory";
796
    pdoc.mimetype = "application/x-fsdirectory";
788
    emit editRequested(pdoc);
797
    emit editRequested(pdoc);
789
    }
798
    }
790
}
799
}
791
800
...
...
802
    emit editRequested(pdoc);
811
    emit editRequested(pdoc);
803
    } else {
812
    } else {
804
    // No parent doc: show enclosing folder with app configured for
813
    // No parent doc: show enclosing folder with app configured for
805
    // directories
814
    // directories
806
    pdoc.url = path_getfather(doc.url);
815
    pdoc.url = path_getfather(doc.url);
816
  pdoc.meta[Rcl::Doc::keychildurl] = doc.url;
817
  pdoc.meta[Rcl::Doc::keyapptg] = "parentopen";
807
    pdoc.mimetype = "application/x-fsdirectory";
818
    pdoc.mimetype = "application/x-fsdirectory";
808
    emit editRequested(pdoc);
819
    emit editRequested(pdoc);
809
    }
820
    }
810
}
821
}
811
822