Re: How to create a patch with git gui

2016-07-11 Thread Daniel

Thanks. I think it worked (patch and screenshot of gitk attached).

On 12.07.2016 00:10, Richard Heck wrote:

[...] Then right-click on the commit for which you want to
make the patch.
You will have the option "Make patch". Choose that and then choose where
to save it.


Should I try to commit the patch before making the patch?

Also, playing around with LFUNs I did to kinds of changes in the patch

1) a LFUN for locking the position of toolbars
2) a LFUN for setting custom icon sizes

Since they are unrelated, I guess it would be good to keep them in 
patches apart, right?


But I can't find where to tell gitk to add only parts of the "local" 
changes.


Daniel
diff --git a/src/FuncCode.h b/src/FuncCode.h
index 40ec9d3..3404a0c 100644
--- a/src/FuncCode.h
+++ b/src/FuncCode.h
@@ -362,6 +362,8 @@ enum FuncCode
LFUN_LISTING_INSERT,// Herbert 2000, bpeng 20070502
// 275
LFUN_TOOLBAR_TOGGLE,// Edwin 20070521
+   LFUN_TOOLBAR_MOVABLE,   // 20160711
+   LFUN_ICON_SIZE,     // 20160711
LFUN_BUFFER_WRITE_ALL,  // rgh, gpothier 200707XX
LFUN_PARAGRAPH_PARAMS,
LFUN_LAYOUT_MODULES_CLEAR,
diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp
index 3702810..9594699 100644
--- a/src/LyXAction.cpp
+++ b/src/LyXAction.cpp
@@ -2728,6 +2728,26 @@ void LyXAction::init()
  */
{ LFUN_TOOLBAR_TOGGLE, "toolbar-toggle", NoBuffer, Buffer },
 /*!
+* \var lyx::FuncCode lyx::LFUN_TOOLBAR_MOVABLE
+* \li Action: Toggles movability of a given toolbar between true/false.
+* \li Syntax: toolbar-toggle 
+* \li Params: : standard|extra|table|math|mathmacrotemplate|\n
+minibuffer|review|view/update|math_panels|vcs|
+view-others|update-others
+* \li Origin: 11 July 2016
+* \endvar
+*/
+   { LFUN_TOOLBAR_MOVABLE, "toolbar-movable", NoBuffer, Buffer },
+/*!
+* \var lyx::FuncCode lyx::LFUN_ICON_SIZE
+* \li Action: Sets icon size of toolbars.
+* \li Syntax: icon-size 
+* \li Params: : int
+* \li Origin: 11 July 2016
+* \endvar
+*/
+   { LFUN_ICON_SIZE, "icon-size", NoBuffer, Buffer },
+/*!
  * \var lyx::FuncCode lyx::LFUN_MENU_OPEN
  * \li Action: Opens the menu given by its name.
  * \li Syntax: menu-open 
diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp
index 77471c9..f9c8167 100644
--- a/src/frontends/qt4/GuiToolbar.cpp
+++ b/src/frontends/qt4/GuiToolbar.cpp
@@ -409,6 +409,16 @@ void GuiToolbar::toggle()
qstring_to_ucs4(windowTitle()), state));
 }
 
+void GuiToolbar::movable()
+{
+   setMovable(!isMovable());
+
+   docstring state = _("test");
+
+   owner_.message(bformat(_("Toolbar \"%1$s\" state set to %2$s"),
+   qstring_to_ucs4(windowTitle()), state));
+}
+
 } // namespace frontend
 } // namespace lyx
 
diff --git a/src/frontends/qt4/GuiToolbar.h b/src/frontends/qt4/GuiToolbar.h
index caad355..ded027a 100644
--- a/src/frontends/qt4/GuiToolbar.h
+++ b/src/frontends/qt4/GuiToolbar.h
@@ -98,6 +98,9 @@ public:
void toggle();
 
///
+   void movable();
+
+   ///
GuiCommandBuffer * commandBuffer() { return command_buffer_; }
 
///
diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp
index b94625b..3504b7e 100644
--- a/src/frontends/qt4/GuiView.cpp
+++ b/src/frontends/qt4/GuiView.cpp
@@ -731,14 +731,14 @@ bool GuiView::restoreLayout()
//code below is skipped when when ~/.config/LyX is (re)created
QSize icon_size = settings.value(icon_key).toSize();
// Check whether session size changed.
-   if (icon_size.width() != int(d.smallIconSize) &&
+   /*if (icon_size.width() != int(d.smallIconSize) &&
icon_size.width() != int(d.normalIconSize) &&
icon_size.width() != int(d.bigIconSize) &&
icon_size.width() != int(d.hugeIconSize) &&
icon_size.width() != int(d.giantIconSize)) {
icon_size.setWidth(d.normalIconSize);
icon_size.setHeight(d.normalIconSize);
-   }
+   }*/
setIconSize(icon_size);
 
 #if defined(Q_WS_X11) || defined(QPA_XCB)
@@ -1096,7 +1096,6 @@ void GuiView::updateStatusBarMessage(QString const & str)
d.statusbar_timer_.start(3000);
 }
 
-
 void GuiView::smallSizedIcons()
 {
setIconSize(QSize(d.smallIconSize, d.smallIconSize));
@@ -1892,6 +1891,23 @@ bool GuiView::getStatus(FuncRequest const & cmd, 
FuncStatus & flag)
break;
}
 
+   case LFUN_TOOLBAR_MOVABLE: {
+   string const name = cmd.getArg(0);
+   if (GuiToolbar * t = toolbar(name))
+   flag.setOnOff(t->isMovable());
+   else {
+   enable = false;
+   docstring co

Re: Compiling with Microsoft Visual C++

2016-07-11 Thread Daniel

On 12.07.2016 00:16, Richard Heck wrote:

OK. Try opening the messages pane: View> Messages Pane. Then reconfigure.


Okay. Here is the full log:

Error: Document class not found

The layout file:
article
could not be found. A default textclass with default
layouts will be used. LyX will not be able to produce
correct output.
Warning: Module not available

The module basic has been requested by
this document but has not been found in the list of
available modules. If you recently installed it, you
probably need to reconfigure LyX.

23:55:40.303: (buffer-new: Ctrl+N)
23:57:47.908: (icon-size 10)
23:58:06.276: (icon-size 100)Warning: Module not available

The module basic has been requested by
this document but has not been found in the list of
available modules. If you recently installed it, you
probably need to reconfigure LyX.

07:31:21.772: Automatic save done.
07:31:31.012: (icon-size 20)
07:31:38.464: (icon-size 100)Warning: Module not available

The module basic has been requested by
this document but has not been found in the list of
available modules. If you recently installed it, you
probably need to reconfigure LyX.

07:50:26.694: Automatic save done.
07:53:14.166: (dialog-toggle progress)
07:53:18.990: Running configure...
07:53:19.039: The process failed to start. Either the invoked program is 
missing, or you may have insufficient permissions to invoke the program.

07:53:19.076: Reloading configuration...LyX: reconfiguring user directory
C:\LyX\lyx-23\src\support\Systemcall.cpp (260): Systemcall: 'python -tt 
"C:/LyX/lyx-23/lib/configure.py" 
--binary-dir="C:/LyX/lyx-23-build/LYX_INSTALLED/bin/"' did not start!
C:\LyX\lyx-23\src\support\Systemcall.cpp (261): error The process failed 
to start. Either the invoked program is missing, or you may have 
insufficient permissions to invoke the program.

LyX: Done!
07:53:22.356: (reconfigure)


Re: Compiling with Microsoft Visual C++

2016-07-11 Thread Richard Heck
On 07/11/2016 05:31 PM, Daniel wrote:
> On 11.07.2016 23:05, Richard Heck wrote:
>> On 07/11/2016 02:49 PM, Daniel wrote:
>>> On 11.07.2016 19:53, Richard Heck wrote:
 On 07/11/2016 12:18 PM, racoon wrote:
>
> Now LyX is actually running!!! But it complains about missing
> "textclasses" and reconfigure does not work properly (screenshots
> attached).

 If you're running LyX from a terminal, you should get some output
 explaining why reconfiguration is failing.
>>>
>>> Unfortunately not. I just ran LyX.exe in the terminal (on Windows
>>> cmd.exe) but it was silent when the "errors" happened. Or is there a
>>> "verbose" option?
>>
>> Was there any output at all when you tried to reconfigure?
>
> None.

OK. Try opening the messages pane: View> Messages Pane. Then reconfigure.

Richard



Re: How to create a patch with git gui

2016-07-11 Thread Richard Heck
On 07/11/2016 05:31 PM, Daniel wrote:
> On 11.07.2016 23:04, Richard Heck wrote:
>> On 07/11/2016 03:57 PM, racoon wrote:
>>> Does anyone know how to output a patch with the standard git gui?
>>
>> What is the standard git gui? gitk?
>
> Don't know. It came with git and is called git-gui.exe (screen capture
> attached).

I had not seen that program before---I use the command line most of the
time---
but I've investigated

To format patches, etc, you need to use gitk, which also comes with git
(or use the
command-line). You can access gitk from the git-gui menu at Repsitory>
Visualize
master's history (if you are on the master branch, otherwise it'll say
that branch).
You will then get a new window that shows you the history of whatever
branch you
are dealing with. All the various commits will be listed.

To create a patch, left-click on the commit where you want the patch to
start, thus
highlighting it. Often, this would be the commit BEFORE the one for
which you want
to make a patch. Then right-click on the commit for which you want to
make the patch.
You will have the option "Make patch". Choose that and then choose where
to save it.

There are other gui clients listed here:
https://git-scm.com/download/gui/linux
that you could also try.

Richard



Re: Compiling with Microsoft Visual C++

2016-07-11 Thread Daniel

On 11.07.2016 23:05, Richard Heck wrote:

On 07/11/2016 02:49 PM, Daniel wrote:

On 11.07.2016 19:53, Richard Heck wrote:

On 07/11/2016 12:18 PM, racoon wrote:


Now LyX is actually running!!! But it complains about missing
"textclasses" and reconfigure does not work properly (screenshots
attached).


If you're running LyX from a terminal, you should get some output
explaining why reconfiguration is failing.


Unfortunately not. I just ran LyX.exe in the terminal (on Windows
cmd.exe) but it was silent when the "errors" happened. Or is there a
"verbose" option?


Was there any output at all when you tried to reconfigure?


None.

Daniel


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus



Re: How to create a patch with git gui

2016-07-11 Thread Daniel

On 11.07.2016 23:04, Richard Heck wrote:

On 07/11/2016 03:57 PM, racoon wrote:

Does anyone know how to output a patch with the standard git gui?


What is the standard git gui? gitk?


Don't know. It came with git and is called git-gui.exe (screen capture
attached).

Daniel


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


Re: Compiling with Microsoft Visual C++

2016-07-11 Thread Richard Heck
On 07/11/2016 02:49 PM, Daniel wrote:
> On 11.07.2016 19:53, Richard Heck wrote:
>> On 07/11/2016 12:18 PM, racoon wrote:
>>>
>>> Now LyX is actually running!!! But it complains about missing
>>> "textclasses" and reconfigure does not work properly (screenshots
>>> attached).
>>
>> If you're running LyX from a terminal, you should get some output
>> explaining why reconfiguration is failing.
>
> Unfortunately not. I just ran LyX.exe in the terminal (on Windows
> cmd.exe) but it was silent when the "errors" happened. Or is there a
> "verbose" option?

Was there any output at all when you tried to reconfigure?

Richard



Re: How to create a patch with git gui

2016-07-11 Thread Richard Heck
On 07/11/2016 03:57 PM, racoon wrote:
> Does anyone know how to output a patch with the standard git gui?

What is the standard git gui? gitk?

Richard



How to create a patch with git gui

2016-07-11 Thread racoon

Does anyone know how to output a patch with the standard git gui?

Daniel

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus




Re: Icons in menus

2016-07-11 Thread Guillaume Munch

Le 11/07/2016 09:17, racoon a écrit :

On 15.06.2016 09:45, racoon wrote:

Hi,

I could not find a discussion on icons in menus. I tend to believe that
they help locating entries when scanning over a menu entry. But maybe
that's bogus. I think icons in menus are less popular on macOS [sic]
than on Windows and Linux. I am just throwing this in.


That would be a good idea.



There seems to be Qt support for icons in menus. I guess one could add
those icons that are already available from the toolbar (depending on
the choice of toolbar icons) and leave others blank. That could already
increase the speed in the location of entries.

Maybe there could be an option to disable icons in menus for those who
don't like them?


No additional option.



Since LyX has no static menus I guess the icon should be attached to the
LFUN?


It is indeed determined by the LFUN, see iconName() in
src/frontends/qt4/GuiApplication.cpp

The icon in the menus appears to be determined in Menu::Impl::populate
(see the empty QIcon()) in Menus.cpp.



Re: Translations for LyX 2.2.1

2016-07-11 Thread Guillaume Munch

Hi, my patch at http://mid.gmane.org/nlokdq$96p$1...@ger.gmane.org includes
new translatable strings, still to be reviewed, in case you are ready to
accept it for 2.2.1 (probably).

Le 11/07/2016 19:15, Richard Heck a écrit :


Although 2.2.0 was only released at the beginning of June, the long
freeze before the release means that we have already collected a large
number of bug-fixes, some of them quite important. After some discussion
on the development list, I have therefore decided to release LyX 2.2.1
shortly. Please prepare translations by no later than next Wednesday,
the 20th.

Sorry for the shorter deadline than usual, but Uwe, who prepares our
Windows binaries, will be moving at the end of the month and may be
off-line for a while. So we need to help him out.

Best,
Richard Heck
Stable Branch Maintainer






Re: Compiling with Microsoft Visual C++

2016-07-11 Thread Daniel

On 11.07.2016 19:53, Richard Heck wrote:

On 07/11/2016 12:18 PM, racoon wrote:


Now LyX is actually running!!! But it complains about missing
"textclasses" and reconfigure does not work properly (screenshots
attached).


If you're running LyX from a terminal, you should get some output
explaining why reconfiguration is failing.


Unfortunately not. I just ran LyX.exe in the terminal (on Windows
cmd.exe) but it was silent when the "errors" happened. Or is there a
"verbose" option?

Daniel


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus



Translations for LyX 2.2.1

2016-07-11 Thread Richard Heck

Although 2.2.0 was only released at the beginning of June, the long
freeze before the release means that we have already collected a large
number of bug-fixes, some of them quite important. After some discussion
on the development list, I have therefore decided to release LyX 2.2.1
shortly. Please prepare translations by no later than next Wednesday,
the 20th.

Sorry for the shorter deadline than usual, but Uwe, who prepares our
Windows binaries, will be moving at the end of the month and may be
off-line for a while. So we need to help him out.

Best,
Richard Heck
Stable Branch Maintainer



Re: Compiling with Microsoft Visual C++

2016-07-11 Thread Richard Heck
On 07/11/2016 12:18 PM, racoon wrote:
>
> Now LyX is actually running!!! But it complains about missing
> "textclasses" and reconfigure does not work properly (screenshots
> attached).

If you're running LyX from a terminal, you should get some output
explaining why reconfiguration is failing.

Richard



Re: Compiling with Microsoft Visual C++

2016-07-11 Thread racoon

On 11.07.2016 17:43, racoon wrote:

On 10.07.2016 20:35, Georg Baum wrote:

Only LYX_USE_QT, LYX_DEPENDENCIES_DOWNLOAD and LYX_INSTALL should be
needed.
CMAKE_PREFIX_PATH does probably have no effect, it should be
C:/Qt/Qt5.6.1/5.6/msvc2015/bin unless C:/Qt/Qt5.6.1/5.6/msvc2015/bin is
already in the system path.


If I provide just those CMake gives me an error:

---

Make Error at CMakeLists.txt:601 (find_package):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project
has
  asked CMake to find a package configuration file provided by
"Qt5Core", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Core" with
any
  of the following names:

Qt5CoreConfig.cmake
qt5core-config.cmake

  Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
  "Qt5Core_DIR" to a directory containing one of the above files.  If
  "Qt5Core" provides a separate development package or SDK, be sure it has
  been installed.

---

Only after adding the CMAKE_PREFIX_PATH

C:/Qt/Qt5.6.1/5.6/msvc2015/

I get rid of the error. (Maybe I it is because Qt is missing in my PATH
variable?)

It still gives me some other. But maybe I don't need to worry about these?

---

Function magic_file not found
Function magic_open not found
Function magic_load not found
Function magic_close not found
Function magic_error not found
Could NOT find Magic (missing:  Magic_INCLUDE_DIR Magic_LIBRARY
HAS_MAGIC_FUNCTIONS)
  * Hunspell:
 - include: C:/LyX/lyx-23/3rdparty/hunspell/1.3.3/src
 - library: hunspell
Could NOT find ASPELL (missing:  ASPELL_LIBRARY ASPELL_INCLUDE_DIR)
ASPELL not found, building without ASPELL support
Could NOT find ENCHANT (missing:  ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR)
ENCHANT not found, building without Enchant support
Building with USE_HUNSPELL

---


Okay, after compiling INSTALL I copied the dependencies and Qt dlls. In
addition to the ones mentioned in the INSTALL.Win32 I had to copy

Qt5Widgets(d).dll
Qt5WinExtras(d).dll

Now LyX is actually running!!! But it complains about missing
"textclasses" and reconfigure does not work properly (screenshots
attached).

Daniel


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


Re: Compiling with Microsoft Visual C++

2016-07-11 Thread racoon

On 10.07.2016 20:35, Georg Baum wrote:

Only LYX_USE_QT, LYX_DEPENDENCIES_DOWNLOAD and LYX_INSTALL should be needed.
CMAKE_PREFIX_PATH does probably have no effect, it should be
C:/Qt/Qt5.6.1/5.6/msvc2015/bin unless C:/Qt/Qt5.6.1/5.6/msvc2015/bin is
already in the system path.


If I provide just those CMake gives me an error:

---

Make Error at CMakeLists.txt:601 (find_package):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this
project has
  asked CMake to find a package configuration file provided by
"Qt5Core", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Core"
with any
  of the following names:

Qt5CoreConfig.cmake
qt5core-config.cmake

  Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
  "Qt5Core_DIR" to a directory containing one of the above files.  If
  "Qt5Core" provides a separate development package or SDK, be sure it has
  been installed.

---

Only after adding the CMAKE_PREFIX_PATH

C:/Qt/Qt5.6.1/5.6/msvc2015/

I get rid of the error. (Maybe I it is because Qt is missing in my PATH
variable?)

It still gives me some other. But maybe I don't need to worry about these?

---

Function magic_file not found
Function magic_open not found
Function magic_load not found
Function magic_close not found
Function magic_error not found
Could NOT find Magic (missing:  Magic_INCLUDE_DIR Magic_LIBRARY
HAS_MAGIC_FUNCTIONS)
  * Hunspell:
 - include: C:/LyX/lyx-23/3rdparty/hunspell/1.3.3/src
 - library: hunspell
Could NOT find ASPELL (missing:  ASPELL_LIBRARY ASPELL_INCLUDE_DIR)
ASPELL not found, building without ASPELL support
Could NOT find ENCHANT (missing:  ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR)
ENCHANT not found, building without Enchant support
Building with USE_HUNSPELL

---

Daniel


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus




Re: Compiling with Microsoft Visual C++

2016-07-11 Thread racoon

On 11.07.2016 16:05, racoon wrote:

On 10.07.2016 20:57, Georg Baum wrote:

If you want to help with 1), please do the following: Instead of
compiling
the INSTALL project, compile the LyX project that should be available
in the
solution as well. Then try to run LyX by pressing F5. Does that start
LyX?
Does the debugger show any errors? If it starts LyX, does LyX find
configure.py (it should be executaed automatically on he first start,
or if
you run it manually from the Tools menu). If configure.py is found,
are all
the usual document classes and modules available?


Did click on "Build" (is that the same as compile?) from the context
menu of "LyX" in the Solution Explorer. And it compiled with no errors.

Pressed F5, got a message about outdated files. Choose "Yes" to build
them. Got an error message (attached).


I guess I have to set LyX as my startup project (in the Solution
Explorer from the context menu of "LyX" choose "Set as StartUp
Project"). Before "ALL_BUILD" was the startup project.

Okay. After pressing F5 I get an error message for a missing Qt library
(attached) and LyX won't run...

Daniel



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


Re: [LyX/master] Simplify BufferParams::bufferFormat()

2016-07-11 Thread Jürgen Spitzmüller
Am Montag, den 11.07.2016, 10:01 -0400 schrieb Richard Heck:
> On 07/11/2016 05:30 AM, Jürgen Spitzmüller wrote:
> > Am Montag, den 11.07.2016, 11:21 +0200 schrieb Juergen
> > Spitzmueller:  
> > > Furthermore, polyglossia-exclusive languages now also work
> > > with
> > > LuaTeX, since we support LuaTeX + polyglossia.
> > This part also needs to go to stable. Patch attached.
> 
> OK.

Thanks. Done.

Jürgen

> 
> Richard
> 

signature.asc
Description: This is a digitally signed message part


Re: Compiling with Microsoft Visual C++

2016-07-11 Thread racoon

On 10.07.2016 20:57, Georg Baum wrote:

If you want to help with 1), please do the following: Instead of compiling
the INSTALL project, compile the LyX project that should be available in the
solution as well. Then try to run LyX by pressing F5. Does that start LyX?
Does the debugger show any errors? If it starts LyX, does LyX find
configure.py (it should be executaed automatically on he first start, or if
you run it manually from the Tools menu). If configure.py is found, are all
the usual document classes and modules available?


Did click on "Build" (is that the same as compile?) from the context
menu of "LyX" in the Solution Explorer. And it compiled with no errors.

Pressed F5, got a message about outdated files. Choose "Yes" to build
them. Got an error message (attached).

Daniel



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


Re: [LyX/master] Simplify BufferParams::bufferFormat()

2016-07-11 Thread Richard Heck
On 07/11/2016 05:30 AM, Jürgen Spitzmüller wrote:
> Am Montag, den 11.07.2016, 11:21 +0200 schrieb Juergen Spitzmueller:  
>> Furthermore, polyglossia-exclusive languages now also work with
>> LuaTeX, since we support LuaTeX + polyglossia.
> This part also needs to go to stable. Patch attached.

OK.

Richard



Re: toolbars Lock menu

2016-07-11 Thread racoon

On 11.07.2016 09:23, racoon wrote:

I have proposed the new feature here:

#10283 (and #10282)


Outside of trac these numbers don't work that nicely as links.

http://www.lyx.org/trac/ticket/10283

http://www.lyx.org/trac/ticket/10282


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus




Delay when closing LyX

2016-07-11 Thread Jean-Pierre Chrétien

Hello,

Since 2.2.0, I get this message in the calling command window when I close LyX

QClipboard: Unable to receive an event from the clipboard manager in a 
reasonable time


It takes about 10 seconds to get the message and regain control in the command 
window if LyX des not run in background.


Debian Jessie, Qt 4.8

--
Jean-Pierre


Re: [LyX/master] Simplify BufferParams::bufferFormat()

2016-07-11 Thread Jürgen Spitzmüller
Am Montag, den 11.07.2016, 11:21 +0200 schrieb Juergen Spitzmueller:  
> Furthermore, polyglossia-exclusive languages now also work with
> LuaTeX, since we support LuaTeX + polyglossia.

This part also needs to go to stable. Patch attached.

Jürgendiff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index d4ce087..a8c0a49 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -2418,11 +2418,8 @@ vector BufferParams::backends() const
 		v.push_back("xetex");
 	} else if (buffmt == "xetex") {
 		v.push_back("xetex");
-		// FIXME: need to test all languages (bug 8205)
-		if (!language || !language->isPolyglossiaExclusive()) {
-			v.push_back("luatex");
-			v.push_back("dviluatex");
-		}
+		v.push_back("luatex");
+		v.push_back("dviluatex");
 	} else
 		v.push_back(buffmt);
 


signature.asc
Description: This is a digitally signed message part


Re: [LyX/master] Fix thinko in Buffer::preview. It is possible for this routine to be called when we do not have a cloned Buffer, namely, if we do not have EXPORT_in_THREAD defined.

2016-07-11 Thread Andrew Parsloe


On 11/07/2016 2:00 a.m., Guillaume Munch wrote:

Le 10/07/2016 14:56, Richard Heck a écrit :

On 07/10/2016 09:53 AM, Guillaume Munch wrote:

Le 10/07/2016 14:48, Richard Heck a écrit :

On 07/10/2016 05:26 AM, Andrew Parsloe wrote:


I ask in near total ignorance, but "my ears pricked up" when I read
"EXPORT_in_THREAD" and "It's set in the code, but can be manually
unset by people who don't want the risks of background export,
threading, etc." Is this a way to tackle
http://www.lyx.org/trac/ticket/8346 on the problems threaded export
poses for command-sequences?


Not really, unless you just want to disable background export entirely.
The switch has to be set compile time.


This is not essential, it is trivial to make it run-time (but is it
really worth an interface?).


Check the bug Andrew mentioned for one reason it would be good to have
this.
Basically, if you do something like:

 command-sequence buffer-export someformat; buffer-reload

in an attempt to process something externally, it fails, because the
reload happens
before the export completes. I.e., it happens almost instantly.



A global switch does not strike me as an ideal solution for this problem.

Not ideal maybe, but command-sequences by their very nature seem 
somewhat hackish. Being able to attach a shortcut key to something like


command-sequence turn-off-threaded-export; buffer-export; buffer-reload; 
turn-on-threaded-export


would be an advance on the present situation and no more hackish to my 
mind than any number of other command-sequences that I currently use 
(including command-sequence buffer-zoom-in; buffer-zoom-out suggested on 
the user's list not so long ago to regenerate previews).


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Icons in menus

2016-07-11 Thread racoon

On 15.06.2016 09:45, racoon wrote:

Hi,

I could not find a discussion on icons in menus. I tend to believe that
they help locating entries when scanning over a menu entry. But maybe
that's bogus. I think icons in menus are less popular on macOS [sic]
than on Windows and Linux. I am just throwing this in.

There seems to be Qt support for icons in menus. I guess one could add
those icons that are already available from the toolbar (depending on
the choice of toolbar icons) and leave others blank. That could already
increase the speed in the location of entries.

Maybe there could be an option to disable icons in menus for those who
don't like them?


Since LyX has no static menus I guess the icon should be attached to the
LFUN?

Daniel


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus




Re: Compiling with Microsoft Visual C++

2016-07-11 Thread racoon

On 11.07.2016 00:00, Kornel Benko wrote:

Am Sonntag, 10. Juli 2016 um 23:08:53, schrieb racoon 

I can't run LyX.exe in C:\LyX\lyx-23-build\LYX_INSTALLED\bin. It
complains about a mssing Qt5Svgd.dll.

Daniel



The target 'install' should put the .dll files into the same directory as 
LyX.exe.

Here, cross-compiled on linux, this directory shows:

iconengines  libwinpthread-1.dll  Qt5Concurrent.dll  
Qt5OpenGL.dllQt5WinExtras.dll
imageformats LyX.exe  Qt5Core.dll
Qt5PrintSupport.dll  tex2lyx.exe
libgcc_s_sjlj-1.dll  platformsQt5Gui.dll Qt5Svg.dll
libstdc++-6.dll  printsupport Qt5Network.dll 
Qt5Widgets.dll

Where are the .dll files on your system?


After choosing "Build" from the context menu of "INSTALL" (Solution
'LyX' > CMakeTargets) I get

LyX.exe
tex2lyx.exe

Daniel


---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus




Re: toolbars Lock menu

2016-07-11 Thread racoon

On 10.07.2016 04:42, Scott Kostyshak wrote:

On Sat, Jul 09, 2016 at 03:19:51PM +0100, José Abílio Matos wrote:

On Saturday, July 9, 2016 2:42:11 PM WEST racoon wrote:

By the way, since I have never worked on a project like LyX, if anyone
has tips on how to work effectively, I am pleased to know. I guess using
git is one.


The first step is to read:
http://www.lyx.org/Development

where there are documents like:
http://www.lyx.org/DevFAQ

There are places that can help but those are a good first step.


Thanks, I read them before. Though maybe not patient enough.


In addition to José's advice, my advice is the following:

before you spend time doing any work, first check in with lyx-devel and
make a proposal. Because you are proposing a feature (as opposed to a
feature), the most important part is motivation: why do you want to lock
the toolbar? Why would a significant amount of users want to lock the
toolbar? A good way to improve your argument (but by no means
sufficient) for why your feature would be a good idea is to make
parallels to other programs that are similar to LyX. Does Libre Office
have such a feature?


I have proposed the new feature here:

#10283 (and #10282)


After you have motivated the general idea, describe your feature as
detailed as possible. The most important aspect of this is actually the
interface (not the implementation). How will users use this feature?
e.g. will it be in the context menu (the right-click menu)? Will it be
in the menus at the top (File, Edit, ...)?


Check.


Then, and this is more optional, you can ask for comments on a basic
outline of implementation.


I have already checked with others on stackoverflow for details on the 
general implementation and have a small working toy example.



Then, eventually post a patch. You will get bonus points if you mention
that if your patch is given a preliminary "thumbs up", you'd be happy to
work on documentation for the feature, and you even have an idea for the
exact place in the manuals where the documentation would go. Note that
in your particular feature proposal, I don't know if we usually document
such features, but this paragraph is meant to be more general.


Have to fix the compilation of LyX first.


The above steps are not just for beginners. Even experienced developers
go through them. But I think that newcommers do not realize that often
the first step is not a patch.


I see.


And yes, get familiar with git. You should view this as a long-term
investment so spend the time to learn it well. Many software projects
are moving to Git. You will likely use Git for your own individual
programming projects, and even for non-programming projects (I use it to
organize my teaching notes). After a year or so, you will start to
criticize your friends who rely on the old backup mechanism of copying
the folder MyProject to MyProject10234 (but please try to be nice to
them, they don't know any better).


I'll make myself familiar. And it is an interesting idea to use it for 
teaching notes as well. I guess the main feature of git is that one can 
keep track of the "progress" then.


Daniel

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus