]> git.lyx.org Git - features.git/commit
WIP: refactor Systemcall
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 28 Oct 2022 15:21:33 +0000 (17:21 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 28 Oct 2022 15:21:33 +0000 (17:21 +0200)
commitc8015878e1375f83574a8497faadd7e8c6aa8859
tree5cbc7f5967e92f4be87ea872e67ab9c4466f077f
parent22e5903bf30a711d7a43793a85000d26c11704c3
WIP: refactor Systemcall

**WARNING; only compilation has been ested; even that does not work**

The goal of this commit is to use the list-based API to
QProcess::start, to avoid annoying syntax issues (see issues with
pasting from LaTeX).

* Create a new latexEnvironment() in filetools.h that returns a
  map<string, string> containing the variables and their values.

* Rewrite parsecmd() so that it returns a QStringList of tokenized parameters.

* Use this in startProcess. This is the part is is not finished yet.

Obviously, this will not be possible to get right for 2.4.0.
src/support/Systemcall.cpp
src/support/SystemcallPrivate.h
src/support/filetools.cpp
src/support/filetools.h