]> git.lyx.org Git - lyx.git/log
lyx.git
18 years agoSimple optimisation: reuse current QPainter if no there's no change in settings.
Abdelrazak Younes [Sun, 11 Jun 2006 21:22:36 +0000 (21:22 +0000)]
Simple optimisation: reuse current QPainter if no there's no change in settings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14078 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agomore cleanup: some formatting and handle mouse events in their event handlers (and...
Edwin Leuven [Sun, 11 Jun 2006 14:28:10 +0000 (14:28 +0000)]
more cleanup: some formatting and handle mouse events in their event handlers (and not in event())

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14072 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoInitial cmake support.
Peter Kümmel [Sun, 11 Jun 2006 11:57:25 +0000 (11:57 +0000)]
Initial cmake support.

trunk/development/cmake/README.cmake:

Building LyX with CMake

CMake 2.4.2 or CVS version from www.cmake.org

Building Visual C++ 2005 project files:

- install Visual C++ 2005
- install Platform SDK 2005, "Core" and "Web Workshop"
- add include and library paths of the SDK to the IDE search paths,
  menu: Tools->Options->VC++ directories->Library files + Include files
- install zlib (www.zlib.net) into %ProgramFiles%/GnuWin32/include+lib
  or %ProgramFiles%/zlib/include+lib
- create a build directory, e.g. .../trunk/../build
- call in the build directory cmake ..\trunk\development\cmake
- start lyx.sln

To generate other build files call "cmake"
which shows a list of possibilities.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14071 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: fix typos and minor bugs
Bo Peng [Sun, 11 Jun 2006 04:48:22 +0000 (04:48 +0000)]
Scons: fix typos and minor bugs

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14070 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: Better MSVS Projects support (now with debug)
Bo Peng [Sat, 10 Jun 2006 21:02:11 +0000 (21:02 +0000)]
Scons: Better MSVS Projects support (now with debug)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14069 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agofix crash on startup under windows by avoiding the call
Peter Kümmel [Sat, 10 Jun 2006 07:05:21 +0000 (07:05 +0000)]
fix crash on startup under windows by avoiding the call

setlocale(LC_MESSAGES, ...

scons tests on LC_MESSAGES there is also an m4 file for LC_MESSAGES
so I think all build systems handle HAVE_LC_MESSAGES.

Index: src/messages.C
===================================================================
--- src/messages.C      (revision 14066)
+++ src/messages.C      (working copy)
@@ -90,7 +90,10 @@
                : lang_(l)
        {
                if ( lang_.empty() ) {
-                       char const * lc_msgs = setlocale(LC_MESSAGES, NULL);
+                       char const * lc_msgs = 0;
+#ifdef HAVE_LC_MESSAGES
+                       lc_msgs = setlocale(LC_MESSAGES, NULL);
+#endif
                        lang_ = lc_msgs ? lc_msgs : "";
                }
                // strip off any encoding suffix, i.e., assume 8-bit po files
@@ -117,8 +120,9 @@
                                        lang = "C";
                        }
                }
-
+#ifdef HAVE_LC_MESSAGES
                char const * lc_msgs = setlocale(LC_MESSAGES, lang_.c_str());
+#endif
                // setlocale fails (returns NULL) if the corresponding locale
                // is not installed.
                // On windows (mingw) it always returns NULL.
@@ -164,7 +168,9 @@
                boost::smatch sub;
                if (regex_match(translated, sub, reg))
                        translated = sub.str(1);
+#ifdef HAVE_LC_MESSAGES
                setlocale(LC_MESSAGES, lang.c_str());
+#endif
                setlocale(LC_CTYPE, oldCTYPE.c_str());
                return translated;
        }

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14067 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: ICONV_CONST bug fix, and some code clean-up
Bo Peng [Sat, 10 Jun 2006 02:21:28 +0000 (02:21 +0000)]
Scons: ICONV_CONST bug fix, and some code clean-up

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14066 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: version_suffix windows fix
Bo Peng [Fri, 9 Jun 2006 18:44:28 +0000 (18:44 +0000)]
Scons: version_suffix windows fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14063 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: version_suffix bug fix and improvement
Bo Peng [Fri, 9 Jun 2006 17:11:15 +0000 (17:11 +0000)]
Scons: version_suffix bug fix and improvement

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14062 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: link to libiconv if available
Bo Peng [Fri, 9 Jun 2006 15:57:13 +0000 (15:57 +0000)]
Scons: link to libiconv if available

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14061 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * insetbox.h: add noFontChange() == true to prevent LaTeX error for
Martin Vermeer [Fri, 9 Jun 2006 12:10:49 +0000 (12:10 +0000)]
* insetbox.h: add noFontChange() == true to prevent LaTeX error for
multi-paragraph box insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14056 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFix Windows crash on exit with "static LQApplication"
Abdelrazak Younes [Fri, 9 Jun 2006 09:37:51 +0000 (09:37 +0000)]
Fix Windows crash on exit with "static LQApplication"

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14055 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoDistribute INSTALL.scons and development/scons with autotools
Bo Peng [Thu, 8 Jun 2006 16:36:38 +0000 (16:36 +0000)]
Distribute INSTALL.scons and development/scons with autotools
* development/Makefile.am: distribute development/scons directory
* Makefile.am: distribute INSTALL.scons

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14051 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoAdd INSTALL.scons, and a small adjustment of target all.
Bo Peng [Thu, 8 Jun 2006 15:57:45 +0000 (15:57 +0000)]
Add INSTALL.scons, and a small adjustment of target all.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14049 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoremove second QT_NO_STL, it was already there
Peter Kümmel [Thu, 8 Jun 2006 15:26:51 +0000 (15:26 +0000)]
remove second QT_NO_STL, it was already there

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14048 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago- remove usage of qt3 support functions.
Peter Kümmel [Thu, 8 Jun 2006 14:27:44 +0000 (14:27 +0000)]
- remove usage of qt3 support functions.
- undef QT3_SUPPORT until the QT3_SUPPORT-logic will be inverted.
- QLocale::system().name() returns e.g de_DE but the Qt file name is
  qt_de.

Index: frontends/qt4/lyx_gui.C
===================================================================
--- frontends/qt4/lyx_gui.C     (revision 14043)
+++ frontends/qt4/lyx_gui.C     (working copy)
@@ -9,6 +9,8 @@
  * Full author contact details are available in file CREDITS.
  */

+#undef QT3_SUPPORT
+
 #include <config.h>

 #include "lyx_gui.h"
@@ -55,6 +57,8 @@
 #include <QEventLoop>
 #include <QTranslator>
 #include <QTextCodec>
+#include <QLocale>
+#include <QLibraryInfo>

 using lyx::support::ltrim;
 using lyx::support::package;
@@ -167,19 +171,22 @@

        // install translation file for Qt built-in dialogs
        // These are only installed since Qt 3.2.x
-       QTranslator qt_trans(0);
-       if (qt_trans.load(QString("qt_") + QTextCodec::locale(),
-                         qInstallPathTranslations())) {
+       QTranslator qt_trans;
+       QString language_name = QString("qt_") + QLocale::system().name();
+       language_name.truncate(5);
+       if (qt_trans.load(language_name,
+               QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
+       {
                qApp->installTranslator(&qt_trans);
                // even if the language calls for RtL, don't do that
-               qApp->setReverseLayout(false);
+               qApp->setLayoutDirection(Qt::LeftToRight);
                lyxerr[Debug::GUI]
                        << "Successfully installed Qt translations for locale "
-                       << QTextCodec::locale() << std::endl;
+                       << fromqstr(language_name) << std::endl;
        } else
                lyxerr[Debug::GUI]
                        << "Could not find  Qt translations for locale "
-                       << QTextCodec::locale() << std::endl;
+                       << fromqstr(language_name) << std::endl;

 /*#ifdef Q_WS_MACX
        // These translations are meant to break Qt/Mac menu merging
@@ -260,9 +267,7 @@
        // During screen update/ redraw, this method is disabled to
        // prevent keyboard events being handed to the LyX core, where
        // they could cause re-entrant calls to screen update.
-#if QT_VERSION >= 0x030100
-       qApp->processEvents(QEventLoop::ExcludeUserInput);
-#endif
+       qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
 }

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14046 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago$ svn diff
Peter Kümmel [Thu, 8 Jun 2006 14:20:56 +0000 (14:20 +0000)]
$ svn diff
Index: SConscript
===================================================================
--- SConscript  (revision 14044)
+++ SConscript  (working copy)
@@ -390,7 +390,7 @@
     '-DQT_GENUINE_STR',
     '-DQT_NO_STL',
     '-DQT3_SUPPORT',
-    '-DQT_NO_STL'
+    '-DQT_NO_STL',
     ]
   )

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14045 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agodisable stl support functions of Qt4
Peter Kümmel [Thu, 8 Jun 2006 14:19:44 +0000 (14:19 +0000)]
disable stl support functions of Qt4

$ svn diff
Index: SConscript
===================================================================
--- SConscript  (revision 14039)
+++ SConscript  (working copy)
@@ -390,6 +390,7 @@
     '-DQT_GENUINE_STR',
     '-DQT_NO_STL',
     '-DQT3_SUPPORT',
+    '-DQT_NO_STL'
     ]
   )

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14044 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoapp -> qApp, forgot this with the last patch
Georg Baum [Thu, 8 Jun 2006 06:53:11 +0000 (06:53 +0000)]
app -> qApp, forgot this with the last patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14038 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFix crash on exit (bug 2549) by correct usage of QApplication
Georg Baum [Wed, 7 Jun 2006 20:08:37 +0000 (20:08 +0000)]
Fix crash on exit (bug 2549) by correct usage of QApplication
* src/lyx_cb.C
(quitLyX): lyx_gui::exit takes now an argument

* src/frontends/{gtk,xforms}/lyx_gui.C
(lyx_gui::parse_init): rename to lyx_gui::exec and call LyX::exec2
(void lyx_gui::exit): add exit status argument

* src/frontends/qt{3,4}/lyx_gui.C
(cleanup): new function for pointer cleanup
(lyx_gui::parse_init): rename to lyx_gui::exec and call LyX::exec2,
turn static variables into automatic variables
(void lyx_gui::exit): add exit status argument
(start): Use cleanup()
(exit): ditto

* src/frontends/lyx_gui.h
(parse_init): remove
(exec): new
(exit): Take exist status argument

* src/lyx_main.[Ch]
(LyX::priv_exec): split into LyX::priv_exec and LyX::exec2

* src/lyx_main.C
(lyx_exit): New, choose the right exit function
(showFileError): call lyx_exit
(LyX::queryUserLyXDir): ditto
(LyX::init): ditto
(LyX::priv_exec): ditto
(LyX::priv_exec): Replace want_gui by lyx_gui::use_gui
(LyX::priv_exec): replace lyx_gui::parse_init by lyx_gui::exec and
exec2
(LyX::init): Replace gui argument by lyx_gui::use_gui

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14036 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/bufferparams.h: make author_map use an unsigned index, to avoid
Jean-Marc Lasgouttes [Wed, 7 Jun 2006 17:05:25 +0000 (17:05 +0000)]
* src/bufferparams.h: make author_map use an unsigned index, to avoid
a warning.

* src/text.C (readParToken): handle \change_inserted and
\change_deleted tokens with wrong author index (bug 2614).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14028 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoAdd Peter Kümmel to our list of contributers.
Angus Leeming [Wed, 7 Jun 2006 14:14:38 +0000 (14:14 +0000)]
Add Peter Kümmel to our list of contributers.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14024 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoText encoding hack and removal of cited-keys searching
John Spray [Tue, 6 Jun 2006 17:47:28 +0000 (17:47 +0000)]
Text encoding hack and removal of cited-keys searching

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14023 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoescape special characters in strings passed to gtk as markup
John Spray [Tue, 6 Jun 2006 16:49:23 +0000 (16:49 +0000)]
escape special characters in strings passed to gtk as markup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14022 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agocompile fix for OS X
Georg Baum [Tue, 6 Jun 2006 10:10:11 +0000 (10:10 +0000)]
compile fix for OS X
* src/frontends/qt4/QRef.C: s/ControlRef/lyx::frontend::ControlRef/

* src/frontends/qt4/QRef.h: ditto

* src/frontends/qt4/Dialogs.C:
(Dialogs::build): ditto

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14020 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoAdd Joost to our list of contributers.
Angus Leeming [Tue, 6 Jun 2006 08:05:05 +0000 (08:05 +0000)]
Add Joost to our list of contributers.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14016 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * lib/lyx2lyx/Makefile.am: Add missing file lyx_1_5.py
Georg Baum [Mon, 5 Jun 2006 19:24:18 +0000 (19:24 +0000)]
* lib/lyx2lyx/Makefile.am: Add missing file lyx_1_5.py

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14013 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/frontends/qt4/QCitation.h: Fix compiler warning about /*
Georg Baum [Mon, 5 Jun 2006 16:09:56 +0000 (16:09 +0000)]
* src/frontends/qt4/QCitation.h: Fix compiler warning about /*
inside a comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14009 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoremove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net)
Abdelrazak Younes [Sun, 4 Jun 2006 21:15:33 +0000 (21:15 +0000)]
remove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14001 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoremove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net)
Abdelrazak Younes [Sun, 4 Jun 2006 20:50:41 +0000 (20:50 +0000)]
remove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14000 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoremove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net)
Abdelrazak Younes [Sun, 4 Jun 2006 20:49:09 +0000 (20:49 +0000)]
remove QT3_SUPPORT macro dependency by Peter Kummel (syntheticpp@gmx.net)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13999 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * lib/configure.py: Add tgif->png and tgif->ppm converters
Georg Baum [Sun, 4 Jun 2006 09:58:19 +0000 (09:58 +0000)]
* lib/configure.py: Add tgif->png and tgif->ppm converters

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13997 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: generate msvs porject files with target msvs_projects
Bo Peng [Sat, 3 Jun 2006 22:15:35 +0000 (22:15 +0000)]
Scons: generate msvs porject files with target msvs_projects

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13994 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago Add support for framed.sty
Martin Vermeer [Sat, 3 Jun 2006 16:46:27 +0000 (16:46 +0000)]
Add support for framed.sty

* src/LaTeXFeatures.C: add framed.sty

(const * simplefeatures[]: add framed.sty
(const LaTeXFeatures::getPackages): define shadecolor

* src/insets/insetnote.h

* src/insets/insetnote.C
(const init_notetranslator):
(InsetNote::setButtonLabel): add Framed and Shaded
(InsetNote::latex): add output
(InsetNote::validate): require framed.sty

* src/buffer.C
(BufferList bufferlist): new LyX version 246

* src/frontends/qt3/ui/QNoteDialogBase.ui: add

* src/frontends/qt3/QNoteDialog.C: add

* src/frontends/qt3/QNote.C
(QNote::update_contents): add framed, shaded
(QNote::apply): add framed, shaded

* src/LColor.[Ch]: add background colour for shaded

* lib/lyx2lyx/LyX.py: New version support

* lib/lyx2lyx/lyx_1_5.py: convert/revert

* lib/chkconfig.ltx: add framed.sty

* src/frontends/xforms/FormNote.C
(FormNote::build):
(FormNote::update): add FIXME

* src/frontends/gtk/GNote.C
(GNote::doBuild):
(GNote::update):
(GNote::apply): add FIXME

* development/FORMAT: document format increase

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13993 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/frontends/qt3/lyx_gui.C
Georg Baum [Sat, 3 Jun 2006 14:18:33 +0000 (14:18 +0000)]
* src/frontends/qt3/lyx_gui.C
(LQApplication): remove empty destructor

* src/frontends/qt4/lyx_gui.C
(LQApplication): remove empty destructor

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13992 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: msvc command line support.
Bo Peng [Fri, 2 Jun 2006 18:36:29 +0000 (18:36 +0000)]
Scons: msvc command line support.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13984 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoThis patch removes qscreen.[Ch] and simplify the cursor drawing on screen. Basically...
Abdelrazak Younes [Fri, 2 Jun 2006 12:01:28 +0000 (12:01 +0000)]
This patch removes qscreen.[Ch] and simplify the cursor drawing on screen. Basically, we paint now only if needed. So there's no need anymore to handle the "no cursor" pixmap saving.

SConscript: removed qscreen.C
frontends/qt4/Makefile.am: removed qscreen.C
frontends/screen.h: remove workarea() constness
frontends/qt3/qscreen.[Ch]: ditto
frontends/gtk/GScreen.[Ch]: ditto
frontends/xforms/xscreen.[Ch]: ditto
frontends/qt4/LyXScreenFactory.C: now return the QWorkarea directly
frontends/qt4/QWorkArea.[Ch]: inherits LyXScreen, handle the cursor painting
frontends/qt4/qscreen.[Ch]: removed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13981 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agosmall cleanup: we don't need to store the funcrequest
Edwin Leuven [Thu, 1 Jun 2006 20:34:22 +0000 (20:34 +0000)]
small cleanup: we don't need to store the funcrequest

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13980 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agodon't crash: apply values before closing
Edwin Leuven [Thu, 1 Jun 2006 20:33:37 +0000 (20:33 +0000)]
don't crash: apply values before closing

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13979 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago2006-06-01 Panayotis Papasotiriou <papasot@physics.upatras.gr>
Jean-Marc Lasgouttes [Thu, 1 Jun 2006 13:13:16 +0000 (13:13 +0000)]
2006-06-01  Panayotis Papasotiriou  <papasot@physics.upatras.gr>

* Makefile.am:
* templates/ijmpc.lyx:
* layouts/ijmpc.layout: new textclass for International Journal of
Modern Physics C.

* templates/ijmpd.lyx
* layouts/ijmpd.layout: update.

* LaTeXConfig.lyx.in:
* Extended.lyx: update for ijmpc/d textclasses.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13977 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoadd some missing files
Lars Gullik Bjønnes [Thu, 1 Jun 2006 07:23:46 +0000 (07:23 +0000)]
add some missing files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13976 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: two small bug fixes, and a bit more about msvc
Bo Peng [Thu, 1 Jun 2006 03:01:46 +0000 (03:01 +0000)]
Scons: two small bug fixes, and a bit more about msvc

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13975 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoreplace if/else with switch
Edwin Leuven [Wed, 31 May 2006 14:46:01 +0000 (14:46 +0000)]
replace if/else with switch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13974 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agomake sure we get the correct path in windows
Edwin Leuven [Wed, 31 May 2006 14:28:29 +0000 (14:28 +0000)]
make sure we get the correct path in windows

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13973 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoAdd new tableinsertwidget
Edwin Leuven [Wed, 31 May 2006 12:53:05 +0000 (12:53 +0000)]
Add new tableinsertwidget
+ Remove table widget from inserttable dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13972 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/intl.C (InitKeyMapper): reset kbmap file names if the files
Jean-Marc Lasgouttes [Wed, 31 May 2006 10:34:30 +0000 (10:34 +0000)]
* src/intl.C (InitKeyMapper): reset kbmap file names if the files
could not be read (bug 2604).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13971 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agosrc/MenuBackend.C (expandFormats): add default case to switch; handle
Jean-Marc Lasgouttes [Tue, 30 May 2006 13:48:27 +0000 (13:48 +0000)]
src/MenuBackend.C (expandFormats): add default case to switch; handle
UpdateFormat like the others cases.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13969 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agofix "posx, posx" typo.
Abdelrazak Younes [Tue, 30 May 2006 13:39:34 +0000 (13:39 +0000)]
fix "posx, posx" typo.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13968 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* src/frontends/*/lyx_gui.C:
Jean-Marc Lasgouttes [Tue, 30 May 2006 10:20:35 +0000 (10:20 +0000)]
* src/frontends/*/lyx_gui.C:
* src/frontends/lyx_gui.h: change width and height parameters to unsigned int.

* src/frontends/xforms/lyx_gui.C: compilation fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13967 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: initial msvc support, and separate fast_start and load_option options.
Bo Peng [Mon, 29 May 2006 16:58:14 +0000 (16:58 +0000)]
Scons: initial msvc support, and separate fast_start and load_option options.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13962 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/support/os_unix.C (canAutoOpenFile, autoOpenFile): add support for Mac
Jean-Marc Lasgouttes [Mon, 29 May 2006 16:41:51 +0000 (16:41 +0000)]
  * src/support/os_unix.C (canAutoOpenFile, autoOpenFile): add support for Mac
  OS X.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13961 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoadapt lyxrc.dist to autoopen patch
Jean-Marc Lasgouttes [Mon, 29 May 2006 16:31:21 +0000 (16:31 +0000)]
adapt lyxrc.dist to autoopen patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13957 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agorename preferences to lyxrc.dist
Jean-Marc Lasgouttes [Mon, 29 May 2006 16:30:31 +0000 (16:30 +0000)]
rename preferences to lyxrc.dist

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13956 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* src/LaTeX.C (run):
Jürgen Spitzmüller [Mon, 29 May 2006 15:51:12 +0000 (15:51 +0000)]
* src/LaTeX.C (run):
fix typo from r13950

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13954 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoMove window width/height/posx/posy from frontends to lyx_main.C, from Bo Peng (ben...
Bo Peng [Mon, 29 May 2006 15:11:19 +0000 (15:11 +0000)]
Move window width/height/posx/posy from frontends to lyx_main.C, from Bo Peng (ben.bob@gmail.com)
* src/frontends/ALLFRONTENDS/lyx_gui.C: use passed width/height/posx/posy in lyx_gui::start
* src/frontends/lyx_gui.h: prototype change for lyx_gui::start
* src/lyx_main.C: determine windows size and position from lyxrc or session.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13953 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: add option rebuild that rebuild only specified targets, regardless of environm...
Bo Peng [Mon, 29 May 2006 14:59:20 +0000 (14:59 +0000)]
Scons: add option rebuild that rebuild only specified targets, regardless of environment (e.g. CCFLAGS) changes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13952 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoSome MSVC2003/2005 compatibility fixes, from Bo Peng (ben.bob@gmail.com)
Bo Peng [Mon, 29 May 2006 14:56:08 +0000 (14:56 +0000)]
Some MSVC2003/2005 compatibility fixes, from Bo Peng (ben.bob@gmail.com)
* src/support/lyxsum.C: fix HAVE_DECL_ISTREAMBUF_ITERATOR
* src/support/mkdir.C: add direct.h for windows
* src/support/forkedcall.C: add cerrno under windows
* src/support/tempname.C: define S_IRUSR and S_IWUSR
* src/support/package.C.in: define PATH_MAX=256

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13951 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agofix bug 2623:
Jürgen Spitzmüller [Mon, 29 May 2006 14:49:08 +0000 (14:49 +0000)]
fix bug 2623:

* lib/layouts/memoir.layout:
add ProvidesMakeindex

* src/LaTeX.C (run):
rerun latex im idx file is empty (needed by memoir)
fix typo in comment
* src/LaTeXFeatures.C (getPackages):
whitespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13950 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoadditional comments related to rev 13948
Abdelrazak Younes [Mon, 29 May 2006 07:38:09 +0000 (07:38 +0000)]
additional comments related to rev 13948

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13949 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFix hang on exit under Windows.
Abdelrazak Younes [Sun, 28 May 2006 22:10:33 +0000 (22:10 +0000)]
Fix hang on exit under Windows.
TODO: reorganize this code. In particular make sure that this advise from Qt documentation is respected:

Since the QApplication object does so much initialization, it must be created before any other objects related to the user interface are created.

Right now this is not the case. For example, "FontLoader::initFontPath()" is called before the QApplication creation. Moreover, I suspect that a number of global variables contains Qt object that are initialized before the passage through parse_init(). This might also explain the message displayed by Qt that caused the hanging:

QObject::killTimer: timers cannot be stopped from another thread

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13948 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago Slight improvement to caption inset
Martin Vermeer [Sun, 28 May 2006 17:02:57 +0000 (17:02 +0000)]
Slight improvement to caption inset

* insetcaption.C
(InsetCaption::setLabel): added
(InsetCaption::metrics): modified
(InsetCaption::draw): modified

* insetcaption.h
(descendable): added
(setCount): added

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13946 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFix for Qt4 crash on exit under linux by Georg Baum and myself.
Abdelrazak Younes [Sat, 27 May 2006 19:58:02 +0000 (19:58 +0000)]
Fix for Qt4 crash on exit under linux by Georg Baum and myself.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13943 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/frontends/qt4/ui/pch.h: remove
Georg Baum [Sat, 27 May 2006 14:38:34 +0000 (14:38 +0000)]
* src/frontends/qt4/ui/pch.h: remove
* src/frontends/qt4/ui/Makefile.am: remove unused rules

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13942 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/lyxsocket.C
Georg Baum [Sat, 27 May 2006 13:39:11 +0000 (13:39 +0000)]
* src/lyxsocket.C
(LyXServerSocket::~LyXServerSocket): Don't try to unregister and
close fd_ if the socket is disabled (avoids crash on win, from Peter
KÃŒmmel)
(LyXServerSocket::~LyXServerSocket): Check the return value of close()
(LyXDataSocket::~LyXDataSocket): ditto

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13941 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * lib/configure.py: fix typo
Georg Baum [Sat, 27 May 2006 08:31:22 +0000 (08:31 +0000)]
* lib/configure.py: fix typo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13940 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* lib/configure.py:
Jürgen Spitzmüller [Sat, 27 May 2006 07:48:56 +0000 (07:48 +0000)]
* lib/configure.py:
use $$o flag where appropriate (still some cases pending).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13939 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoadd support for dvipdfmx converter
Jürgen Spitzmüller [Fri, 26 May 2006 15:13:51 +0000 (15:13 +0000)]
add support for dvipdfmx converter

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13934 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: add more libintl related function/type tests.
Bo Peng [Thu, 25 May 2006 23:33:39 +0000 (23:33 +0000)]
Scons: add more libintl related function/type tests.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13932 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoEnable Font width caching.
Abdelrazak Younes [Thu, 25 May 2006 22:37:01 +0000 (22:37 +0000)]
Enable Font width caching.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13931 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoChange the semantics of 'none' and 'auto' viewers/editors: 'none' means now
Georg Baum [Thu, 25 May 2006 11:57:22 +0000 (11:57 +0000)]
Change the semantics of 'none' and 'auto' viewers/editors: 'none' means now
"Don't view/edit this format", and 'auto' means "Use the default viewer/editor".
* src/format.C
(fixCommand): Change semantics: "none" is equal to "", and "auto"
is removed if canAutoOpenFile returns false.

* src/frontends/xforms/FormPreferences.C
(FormPreferences::SpellOptions::apply): "none" -> ""

* src/lyxrc.C
(LyXRC::read): "none" -> ""

* lib/doc/Customization.lyx: Document the autoopen feature

* lib/configure.py
(checkProg): add optional not_found argument, defaulting to 'none'
(checkViewer): new, equivalent to checkProg with not_found = 'auto'
(checkFormatEntries): call checkViewer instead of checkProg for
viewers and editors

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13929 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoqt3/qfont_loader.h: added comment about pointer reference.
Abdelrazak Younes [Thu, 25 May 2006 10:02:01 +0000 (10:02 +0000)]
qt3/qfont_loader.h: added comment about pointer reference.
qt4/qfont_loader.h: reverted to last version and added comment about pointer reference.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13927 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFrom Joost Verburg: Put the clean_dvi.py script into the main distribution
Georg Baum [Wed, 24 May 2006 20:06:42 +0000 (20:06 +0000)]
From Joost Verburg: Put the clean_dvi.py script into the main distribution
* lib/configure.py
(checkLatex): Add DraftDVI converter on windows if dv2dt and dt2dv
are available
(checkFormatEntries): Add DraftDVI entry on windows if dv2dt and
dt2dv are available

* lib/Makefile.am: add clean_dvi.py

* development/Win32/packaging/build_lyxwin.sh: remove clean_dvi.py
stuff

* development/Win32/packaging/package_lyxwin.sh: remove configure
mangling for clean_dvi.py

* development/Win32/packaging/clean_dvi.py: move to lib/scripts

* development/Win32/packaging/README: remove clean_dvi.py stuff

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13924 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoupdate to de_userguide and de_Extended, due to wrong picture references
Jean-Marc Lasgouttes [Tue, 23 May 2006 09:30:26 +0000 (09:30 +0000)]
update to de_userguide and de_Extended, due to wrong picture references

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13918 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: dest_dir option, cache command line option, fix a intl bug
Bo Peng [Tue, 23 May 2006 00:27:05 +0000 (00:27 +0000)]
Scons: dest_dir option, cache command line option, fix a intl bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13914 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* BufferView_pimpl.C (getStatus):
Jürgen Spitzmüller [Mon, 22 May 2006 14:28:43 +0000 (14:28 +0000)]
* BufferView_pimpl.C (getStatus):
Disable saving of bookmarks in mathed for it is not yet supported
   and makes LyX crash (bug 2597)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13911 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* insettabular.C (doDispatch):
Jürgen Spitzmüller [Mon, 22 May 2006 14:19:34 +0000 (14:19 +0000)]
* insettabular.C (doDispatch):
set cursor after mouse (button 3) press
(re-fix bug 2526).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13909 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* insettabular.C (doDispatch):
Jürgen Spitzmüller [Mon, 22 May 2006 13:11:57 +0000 (13:11 +0000)]
* insettabular.C (doDispatch):
do not mark the cursor undispatched after mouse (button 3) press
(prevents the cursor from leaving the tabular when opening the
dialog).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13906 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* insettabular.C (doDispatch):
Jürgen Spitzmüller [Mon, 22 May 2006 10:19:27 +0000 (10:19 +0000)]
* insettabular.C (doDispatch):
fix crash due to invalidated
cursor after insertAciiString (bug 2603).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13905 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoupdate German docs
Jean-Marc Lasgouttes [Mon, 22 May 2006 09:45:30 +0000 (09:45 +0000)]
update German docs

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13902 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoforgot this in the last patch
Georg Baum [Mon, 22 May 2006 09:21:43 +0000 (09:21 +0000)]
forgot this in the last patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13899 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/insets/insetgraphics.C
Georg Baum [Mon, 22 May 2006 09:15:33 +0000 (09:15 +0000)]
* src/insets/insetgraphics.C
(InsetGraphics::prepareFile): Rename file in the temp dir if the
extension does not match the format (bug 2235)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13898 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoFix crash that occurs if the cursor is in a table cell when the document class
Georg Baum [Sun, 21 May 2006 17:33:03 +0000 (17:33 +0000)]
Fix crash that occurs if the cursor is in a table cell when the document class
is changed
* src/cursor.C: remove unused 'using std::swap'
* src/BufferView.C: ditto

* src/CutAndPaste.[Ch]
(switchBetweenClasses): replace ParagraphList argument with InsetText
argument. This avoids an unnecessary swap in lyxfunc.C.

* src/CutAndPaste.C
(pasteSelectionHelper): Adjust to the changes above
(pasteSelectionHelper): Use ParagraphList::swap instead of std::swap.
This fixes the crash.

* src/lyxfunc.C
(LyXFunc::dispatch): Adjust to switchBetweenClasses changes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13895 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: fix a few bugs: qt4, included_ libs, command line argument with blank
Bo Peng [Sun, 21 May 2006 15:50:55 +0000 (15:50 +0000)]
Scons: fix a few bugs: qt4, included_ libs, command line argument with  blank

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13894 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoqt4 optimisation:
Abdelrazak Younes [Sun, 21 May 2006 08:49:02 +0000 (08:49 +0000)]
qt4 optimisation:
* qfont_loader.h: enable the font caching
* QWorkArea: disable intermediate QImage caching, use QPixmap directly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13893 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoScons: nls support (nls=yes, gettext=include/system/auto), merge some autoconf
Bo Peng [Sat, 20 May 2006 15:59:56 +0000 (15:59 +0000)]
Scons: nls support (nls=yes, gettext=include/system/auto), merge some autoconf
tests, fix CCFLAGS arg for mingw, version-suffix support, reduce unnecessary rebuild

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13892 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/format.[Ch]
Georg Baum [Sat, 20 May 2006 12:03:40 +0000 (12:03 +0000)]
* src/format.[Ch]
(document_): new flag, telling whether this is a document format and
we want to show this format in the export and view menus
(documentFormat): accessor for document_

* src/format.h: Add some documentation

* src/frontends/qt3/QPrefsDialog.C
(QPrefsDialog::QPrefsDialog): handle new documentCB checkbox
(QPrefsDialog::switch_format): ditto
(QPrefsDialog::updateFormatsButtons): ditto
(QPrefsDialog::new_format): ditto
(QPrefsDialog::modify_format): ditto

* src/frontends/qt3/ui/QPrefFileformatsModule.ui: Add documentCB checkbox

* src/frontends/qt4/QPrefsDialog.C
(QPrefsDialog::QPrefsDialog): handle new documentCB checkbox
(QPrefsDialog::switch_format): ditto
(QPrefsDialog::updateFormatsButtons): ditto
(QPrefsDialog::new_format): ditto
(QPrefsDialog::modify_format): ditto

* src/frontends/qt4/ui/QPrefFileformatsUi.ui: Add documentCB checkbox

* src/frontends/xforms/FormPreferences.C
(FormPreferences::Formats::build): handle new check_document checkbox
(FormPreferences::Formats::input): ditto
(FormPreferences::Formats::Add): ditto
(FormPreferences::Formats::Browser): ditto

* src/frontends/xforms/forms/form_preferences.fd: Add check_document
checkbox

* src/lyxrc.C
(LyXRC::read): Remove compatibility code for 1.3 \format entries.
Read the new format flags (but don't require them for 1.4
compatibility)
(LyXRC::write): Write the new format flags

* src/MenuBackend.C
(expandFormats): Remove the hardcoded exception for image formats
and use Format::isDocument() instead

* lib/doc/Customization.lyx: Document auto viever/editor and the
"document format" flag

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13887 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* QPrefsDialog.[Ch]: Split up of QPrefsDialog into different modules (one per .ui...
Abdelrazak Younes [Sat, 20 May 2006 11:49:53 +0000 (11:49 +0000)]
* QPrefsDialog.[Ch]: Split up of QPrefsDialog into different modules (one per .ui file)
* panelstack.C: automatic creation of parent category if not already created.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13886 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * paragraph_pimpl.C
Martin Vermeer [Sat, 20 May 2006 10:35:40 +0000 (10:35 +0000)]
* paragraph_pimpl.C
(Paragraph::Pimpl::erase): Fix crash when selecting and erasing
"blue" paragraph break in CT mode (report JMarc)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13885 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago* src/frontends/qt3/qfontloader.C (initFontPath, ~FontLoader):
Jean-Marc Lasgouttes [Sat, 20 May 2006 08:21:58 +0000 (08:21 +0000)]
* src/frontends/qt3/qfontloader.C (initFontPath, ~FontLoader):
* src/frontends/qt4/qfontloader.C (initFontPath, ~FontLoader): add fonts in
lyxdir/fonts to system fonts in windows; remove them in destructor.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13877 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago Fix bug 2516
Martin Vermeer [Fri, 19 May 2006 16:23:49 +0000 (16:23 +0000)]
Fix bug 2516

* CutAndPaste.C
(eraseSelectionHelper): merge (conditionally) only first and last
paragraph of selection

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13875 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoPrevent automatic opening of child docs because of natbib labels
Georg Baum [Fri, 19 May 2006 07:21:43 +0000 (07:21 +0000)]
Prevent automatic opening of child docs because of natbib labels
* src/insets/insetinclude.h
(updateBibfilesCache): adjust comment
(getBibfilesCache): ditto

* src/insets/insetinclude.C
(getChildBuffer): new, return the buffer of the child if it exists
(updateBibfilesCache): update the child buffer only if already loaded
(getBibfilesCache): scan the child buffer only if already loaded

* src/buffer.h
(updateBibfilesCache): adjust comment
(getBibfilesCache): ditto
(bibfilesCache_): ditto

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13869 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/mathed/math_hullinset.h (canTrackChanges): remove, since math insets do
Jean-Marc Lasgouttes [Thu, 18 May 2006 21:08:11 +0000 (21:08 +0000)]
* src/mathed/math_hullinset.h (canTrackChanges): remove, since math insets do
not implement (yet) change tracking.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13867 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago * src/support/os.h
Georg Baum [Thu, 18 May 2006 19:09:53 +0000 (19:09 +0000)]
* src/support/os.h
(canAutoOpenFile): correct comment
(autoOpenFile): ditto

* src/support/os_win32.C
(canAutoOpenFile): Remove unneeded test for dot
(autoOpenFile): whitespace

* src/support/os_cygwin.C
(canAutoOpenFile): Remove unneeded test for dot
(autoOpenFile): whitespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13866 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agomake the formats/converters panels in the pref dialog set the correct parameters.
Edwin Leuven [Thu, 18 May 2006 11:14:10 +0000 (11:14 +0000)]
make the formats/converters panels in the pref dialog set the correct parameters.

atm this does not work because it depends on the order in which these entries were added.

now the order is alphabetical and things are messed up.

the attached patch adds the nr of the format/converter to the listwidgetitem as a type and uses that to get to the right details

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13864 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoSmall cleanup recommended by Lars Gullik Bjønnes:
Abdelrazak Younes [Thu, 18 May 2006 09:37:35 +0000 (09:37 +0000)]
Small cleanup recommended by Lars Gullik Bjønnes:

Can you move the SUBDIRS var back to the top of the file pleae.
Also EXTRA_DIST should be at the top.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13863 a592a061-630c-0410-9148-cb99ea01b6c8

18 years ago2006-05-18 Enrico Forestieri <forenr@tlc.unipr.it>
Jean-Marc Lasgouttes [Thu, 18 May 2006 09:13:24 +0000 (09:13 +0000)]
2006-05-18  Enrico Forestieri <forenr@tlc.unipr.it>

* configure.py: fix setting of \cygwin_path_fix_needed; remove
extra \r at end of line for cygwin.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13861 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoQt4 compilation speedup patch by Bo Peng and me.
Abdelrazak Younes [Thu, 18 May 2006 08:51:12 +0000 (08:51 +0000)]
Qt4 compilation speedup patch by Bo Peng and me.

* configure.ac: removed frontends/qt4/moc compilation.
* frontends/qt4/: moc files (*_moc.cpp) are now included at the end of relevant source file (*.C)
* SConscript: adapted to "moc included in .C file" change.
* frontends/qt4/Makefile.am:  adapted to "moc included in .C file" change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13860 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoAdd \overset and \underset to math panel (bug 2533):
Georg Baum [Thu, 18 May 2006 07:10:56 +0000 (07:10 +0000)]
Add \overset and \underset to math panel (bug 2533):
* lib/images/math/underset.xpm: new
* lib/images/math/overset.xpm: new

* lib/Makefile.am: add new files

* src/frontends/controllers/ControlMath.C
(latex_deco[]): add overset and underset

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13858 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoNew auto-open feature from Bo Peng (with help from Jean-Marc and Enrico)
Jean-Marc Lasgouttes [Wed, 17 May 2006 22:13:33 +0000 (22:13 +0000)]
New auto-open feature from Bo Peng (with help from Jean-Marc and Enrico)

* src/lyx_main.C (init): call Formats::setAutoOpen.

* src/lyxrc.C (read): do not reset editor/viewer values of "none".

* src/format.C (fixCommand): helper function: tweak command depending
of the availability of OS viewer/editor.
(setAutoOpen): run fixCommand over all the formats.

* src/support/Makefile.am: under win32, link against shlwapi.dll.

* src/support/os_*.C (canAutoOpenFile, autoOpenFile): new
functions, used to let the OS handle viewers and editors it knows about.

* configure.ac: improve check for shlwapi.

* lib/configure.py: remove check for native windows viewers.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13855 a592a061-630c-0410-9148-cb99ea01b6c8

18 years agoscons: lyx2lyx_version.py.in, less rebuild, filter installed files, bug fix for substFile
Bo Peng [Wed, 17 May 2006 04:07:45 +0000 (04:07 +0000)]
scons: lyx2lyx_version.py.in, less rebuild, filter installed files, bug fix for substFile

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13853 a592a061-630c-0410-9148-cb99ea01b6c8