]>
git.lyx.org Git - features.git/log
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Bo Peng [Tue, 16 May 2006 14:14:05 +0000 (14:14 +0000)]
scons: fix lyxclient build error handling under windows, extra_inc_path problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13852
a592a061 -630c-0410-9148-
cb99ea01b6c8
Abdelrazak Younes [Tue, 16 May 2006 10:37:25 +0000 (10:37 +0000)]
scons_utils.py: fix mkdir test on mingw
all files set to eolstyle native
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13851
a592a061 -630c-0410-9148-
cb99ea01b6c8
Bo Peng [Mon, 15 May 2006 20:35:01 +0000 (20:35 +0000)]
gettext support, fast_start option, scons all, mingw bug fix and some cleanup for the scons build system
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13849
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sun, 14 May 2006 17:00:53 +0000 (17:00 +0000)]
Remove remaining OS/2 bits:
* src/lyx_cb.C
(newFile): Remove OS/2 code
* src/lyxserver.C
(LyXComm::startPipe): ditto
(LyXComm::endPipe): ditto
(LyXComm::send): ditto
* src/support/rename.C
(lyx::support::rename): ditto
* src/support/filetools.C
(fileOpenSearch): ditto
(createTmpDir): ditto
(createLyXTmpDir): ditto
(makeAbsPath): ditto
* src/support/getcwd.C
(l_getcwd): ditto
* src/support/forkedcall.C
(Forkedcall::generateChild): ditto
* src/support/chdir.C
(lyx::support::chdir): ditto
* src/support/os.C: ditto
* configure.ac: ditto
* development/scons/scons_utils.py: ditto
* development/Win32/config.h: ditto
* lyx.man: Remove OS/2 related stuff
* lib/doc/Customization.lyx: ditto
* lib/doc/fr_Customization.lyx: ditto
* lib/doc/it_Customization.lyx: ditto
* src/support/os2_defines.h: Remove
* src/support/os2_errortable.h: ditto
* src/support/os_os2.C: ditto
* INSTALL.OS2: ditto
* README.OS2: ditto
* development/OS2/quick_fix.patch: ditto
* development/OS2/gnugettext.diff: ditto
* development/OS2: ditto
* src/support/Makefile.am: Remove deleted files
* development/Makefile.am: Remove deleted OS2 directory
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13848
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 13 May 2006 13:09:46 +0000 (13:09 +0000)]
* development/lyx.spec.in: remove not unneeded sourcing of /etc/profile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13846
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Sat, 13 May 2006 08:50:58 +0000 (08:50 +0000)]
* development/lyx.spec.in: Don't run configure in postinst
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13845
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Fri, 12 May 2006 19:06:19 +0000 (19:06 +0000)]
better documentation for isValidLength and stringFromUnit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13844
a592a061 -630c-0410-9148-
cb99ea01b6c8
Georg Baum [Fri, 12 May 2006 15:57:05 +0000 (15:57 +0000)]
remove deleted file cygwin.m4
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13842
a592a061 -630c-0410-9148-
cb99ea01b6c8