Abdelrazak Younes ha scritto:
I hope to come back to this before the end of the year but I committed your patch nevertheless.
Thanks.

Also, please, find attached another patch fixing a crash when trying to use the regexp selection box -- guess something that was forgotten while merging into
trunk:
- adds the LyXAction "regexp-mode", which is used by the search advanced
 dialog when choosing one of the available options);
- also, the regexp-mode may be entered by typing C-S-r, that's why cua.bind
 is affected as well.

Bye, and happy new year to everybody.

   t.

Index: src/LyXAction.cpp
===================================================================
--- src/LyXAction.cpp	(revisione 27976)
+++ src/LyXAction.cpp	(copia locale)
@@ -1520,6 +1520,17 @@
  */
 		{ LFUN_MATH_MODE, "math-mode", Noop, Math },
 /*!
+ * \var lyx::FuncCode lyx::LFUN_REGEXP_MODE
+ * \li Action: Enters regexp mode (i.e., puts regexp insets on the current
+               cursor position).
+ * \li Notion: If there is any selected text, then it is moved inside the created regexp inset.
+ * \li Syntax: regexp-mode [<ARG>]
+ * \li Params: <ARG>: eventual argument (regular expression).
+ * \li Origin: Tommaso, 4 Ott 2008
+ * \endvar
+ */
+		{ LFUN_REGEXP_MODE, "regexp-mode", Noop, Math },
+/*!
  * \var lyx::FuncCode lyx::LFUN_MATH_NUMBER_LINE_TOGGLE
  * \li Action: Toggles numbering of the current formula line.
  * \li Notion: Must be in display formula mode.

Proprietà modificate su: src/frontends/qt4
___________________________________________________________________
Modified: svn:ignore
   - Makefile
Makefile.in
libqt4.la
.deps
.libs
*_moc.cpp
*.lo
pch.h.gch.dep
pch.h.gch

   + Makefile
Makefile.in
libqt4.la
.deps
.libs
*_moc.cpp
*.lo
pch.h.gch.dep
pch.h.gch

moc_*.cpp

ui_*Ui.h

Resources.qrc

Resources.cpp

stRfMFBn



Proprietà modificate su: src/support
___________________________________________________________________
Modified: svn:ignore
   - Makefile.in
Makefile
*.deps
*.lo
libsupport.la
.libs
path_defines.C
pch.h.gch
pch.h.gch.dep
package.C
   + Makefile.in
Makefile
*.deps
*.lo
libsupport.la
.libs
path_defines.C
pch.h.gch
pch.h.gch.dep
package.C
moc_*.cpp


Index: lib/bind/cua.bind
===================================================================
--- lib/bind/cua.bind	(revisione 27976)
+++ lib/bind/cua.bind	(copia locale)
@@ -65,6 +65,7 @@
 
 \bind "C-m"			"math-mode"
 \bind "C-S-M"			"math-display"
+\bind "C-S-r"			"regexp-mode"
 \bind "C-M-n"			"command-sequence math-display; math-number-toggle;"
 
 \bind "C-f"			"dialog-show findreplace"

Reply via email to