Re: Why do we add converters in frontends GuiPrefs.cpp?

2022-02-01 Thread José Abílio Matos
On Sunday, 2 January 2022 21.19.14 WET Pavel Sanda wrote:
> Most likely my doing.
> These are just suggestions in drop-down menu you can use or edit in
> your settings. I do not see much merit in moving it to configure
> (they are not automagically used).
> 
> Pavel

That makes sense. Thank you.
-- 
José Abílio-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Why do we add converters in frontends GuiPrefs.cpp?

2022-01-02 Thread Pavel Sanda
On Sat, Jan 01, 2022 at 02:05:03PM +0100, Jean-Marc Lasgouttes wrote:
> >Does any one knows why we are injecting these calls manually there?
> 
> These are forward search commands. These could probably be done in configure
> script instead.

Most likely my doing.
These are just suggestions in drop-down menu you can use or edit in
your settings. I do not see much merit in moving it to configure
(they are not automagically used).

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Why do we add converters in frontends GuiPrefs.cpp?

2022-01-01 Thread Jean-Marc Lasgouttes

Le 28/12/2021 à 14:07, José Abílio Matos a écrit :

Hi all,

   while searching in order to solve the python issues, I searched for 
all the occurrences of "$$o" in src/



$ grep -r '$$o' src/*


The only case where I was surprised were the case of frontends GuiPrefs.cpp:

[...]


Does any one knows why we are injecting these calls manually there?


Hi José,

These are forward search commands. These could probably be done in 
configure script instead.


JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Why do we add converters in frontends GuiPrefs.cpp?

2021-12-28 Thread José Abílio Matos
On Tuesday, 28 December 2021 13.07.19 WET José Abílio Matos wrote:
> Does any one knows why we are injecting these calls manually there?

Actually the title is wrong we are adding viewers and not converters, but the 
same question applies since they are already present in configure...

-- 
José Abílio-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Why do we add converters in frontends GuiPrefs.cpp?

2021-12-28 Thread José Abílio Matos
Hi all,
  while searching in order to solve the python issues, I searched for all the 
occurrences of "$$o" in src/

$ grep -r '$$o' src/*

The only case where I was surprised were the case of frontends GuiPrefs.cpp:

$ grep '$$o' src/frontends/qt/GuiPrefs.cpp
dviCB->addItem("xdvi -sourceposition '$$n:\\ $$t' $$o");
dviCB->addItem("yap -1 -s \"$$n $$t\" $$o");
dviCB->addItem("okular --unique \"$$o#src:$$n $$f\"");
dviCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"evince -i %
{page+1} $$o\"");
pdfCB->addItem("CMCDDE SUMATRA control [ForwardSearch(\\\"$$o\\\",\\
\"$$t\\\",$$n,0,0,1)]");
pdfCB->addItem("SumatraPDF -reuse-instance \"$$o\" -forward-search \"$
$t\" $$n");
pdfCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"xpdf -raise -
remote $$t.tmp $$o %{page+1}\"");
pdfCB->addItem("okular --unique \"$$o#src:$$n $$f\"");
pdfCB->addItem("qpdfview --unique \"$$o#src:$$f:$$n:0\"");
pdfCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"evince -i %
{page+1} $$o\"");
pdfCB->addItem("/Applications/Skim.app/Contents/SharedSupport/
displayline $$n $$o $$t");

Does any one knows why we are injecting these calls manually there?

Best regards,
-- 
José Abílio-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel