]> git.lyx.org Git - lyx.git/log
lyx.git
18 years ago * src/support/lyxalgo.h
Georg Baum [Thu, 15 Jun 2006 08:06:00 +0000 (08:06 +0000)]
* src/support/lyxalgo.h
(count): Compile fix (add forgotten typename)

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

18 years agoScons: bug fix for default_boost_option
Bo Peng [Thu, 15 Jun 2006 02:45:57 +0000 (02:45 +0000)]
Scons: bug fix for default_boost_option

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

18 years agoScons: update INSTALL.scons according to Abdel's recommended links.
Bo Peng [Wed, 14 Jun 2006 20:10:36 +0000 (20:10 +0000)]
Scons: update INSTALL.scons according to Abdel's recommended links.

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

18 years agoremove references to deleted file QtLyXView.h
Georg Baum [Wed, 14 Jun 2006 19:26:23 +0000 (19:26 +0000)]
remove references to deleted file QtLyXView.h

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

18 years ago * src/frontends/qt3/lyx_gui.C: compile fix
Georg Baum [Wed, 14 Jun 2006 15:49:36 +0000 (15:49 +0000)]
* src/frontends/qt3/lyx_gui.C: compile fix

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

18 years agoScons: improved option handling
Bo Peng [Wed, 14 Jun 2006 15:13:19 +0000 (15:13 +0000)]
Scons: improved option handling
* add option: optimization (=-O3 etc)
* add load_option=opt1,opt2 or load_option=-opt1,opt2: selectively load options
* CCFLAGS etc will replace default values, but not hardcoded ones.

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

18 years agoload and restore correct windows postion
Peter Kümmel [Wed, 14 Jun 2006 14:42:24 +0000 (14:42 +0000)]
load and restore correct windows postion

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

18 years agoload and restore correct windows postion
Peter Kümmel [Wed, 14 Jun 2006 14:34:50 +0000 (14:34 +0000)]
load and restore correct windows postion

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

18 years agoload and restore correct windows postion
Peter Kümmel [Wed, 14 Jun 2006 14:32:39 +0000 (14:32 +0000)]
load and restore correct windows postion

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

18 years agoFix Qt4 resize bug.
Peter Kümmel [Wed, 14 Jun 2006 14:23:25 +0000 (14:23 +0000)]
Fix Qt4 resize bug.
Don't use  multiple QPainter::begin on the same QPaintDevice.

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

18 years agocleanup zlib checking
Jean-Marc Lasgouttes [Wed, 14 Jun 2006 14:07:36 +0000 (14:07 +0000)]
cleanup zlib checking

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

18 years agoadd Linux/Win GCC instructions
Peter Kümmel [Wed, 14 Jun 2006 07:49:44 +0000 (07:49 +0000)]
add Linux/Win GCC instructions

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

18 years agoScons: add qt2 frontend for lyx1.4
Bo Peng [Tue, 13 Jun 2006 14:16:54 +0000 (14:16 +0000)]
Scons: add qt2 frontend for lyx1.4

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

18 years agocoding style and readability corrections
Peter Kümmel [Tue, 13 Jun 2006 08:24:43 +0000 (08:24 +0000)]
coding style and readability corrections

Index: frontends/qt3/lyx_gui.C
===================================================================
--- frontends/qt3/lyx_gui.C     (revision 14088)
+++ frontends/qt3/lyx_gui.C     (working copy)
@@ -222,12 +222,12 @@

 void start(string const & batch, vector<string> const & files,
-          unsigned int width, unsigned int height, int posx, int posy, bool isMax)
+          unsigned int width, unsigned int height, int posx, int posy, bool maximize)
 {
        // this can't be done before because it needs the Languages object
        initEncodings();

-       boost::shared_ptr<QtView> view_ptr(new QtView(width, height, isMax));
+       boost::shared_ptr<QtView> view_ptr(new QtView(width, height, maximize));
        LyX::ref().addLyXView(view_ptr);

        QtView & view = *view_ptr.get();
Index: frontends/qt3/QtView.C
===================================================================
--- frontends/qt3/QtView.C      (revision 14088)
+++ frontends/qt3/QtView.C      (working copy)
@@ -55,12 +55,12 @@

-QtView::QtView(unsigned int width, unsigned int height, bool isMax)
+QtView::QtView(unsigned int width, unsigned int height, bool maximize)
        : QMainWindow(), LyXView(), commandbuffer_(0)
 {
        resize(width, height);

-       if(isMax)
+       if (maximize)
                this->setWindowState(WindowMaximized);

        qApp->setMainWidget(this);
@@ -164,7 +164,7 @@
 void QtView::closeEvent(QCloseEvent *)
 {
        LyX::ref().session().saveSessionInfo("WindowIsMaximized", (this->isMaximized() ? "yes" : "no"));
-       //don't save maximized values
+       // don't save maximized values
        this->showNormal();
        // save windows size and position
        LyX::ref().session().saveSessionInfo("WindowWidth", convert<string>(width()));
Index: frontends/qt3/QtView.h
===================================================================
--- frontends/qt3/QtView.h      (revision 14088)
+++ frontends/qt3/QtView.h      (working copy)
@@ -37,7 +37,7 @@
        Q_OBJECT
 public:
        /// create a main window of the given dimensions
-       QtView(unsigned int w, unsigned int h, bool isMax);
+       QtView(unsigned int w, unsigned int h, bool maximize);

        ~QtView();

Index: frontends/qt4/lyx_gui.C
===================================================================
--- frontends/qt4/lyx_gui.C     (revision 14088)
+++ frontends/qt4/lyx_gui.C     (working copy)
@@ -228,12 +228,12 @@

 void start(string const & batch, vector<string> const & files,
-          unsigned int width, unsigned int height, int posx, int posy, bool isMax)
+          unsigned int width, unsigned int height, int posx, int posy, bool maximize)
 {
        // this can't be done before because it needs the Languages object
        initEncodings();

-       boost::shared_ptr<QtView> view_ptr(new QtView(width, height, isMax));
+       boost::shared_ptr<QtView> view_ptr(new QtView(width, height, maximize));
        LyX::ref().addLyXView(view_ptr);

        QtView & view = *view_ptr.get();
Index: frontends/qt4/QtView.C
===================================================================
--- frontends/qt4/QtView.C      (revision 14088)
+++ frontends/qt4/QtView.C      (working copy)
@@ -70,12 +70,12 @@
 } // namespace anon

-QtView::QtView(unsigned int width, unsigned int height, bool isMax)
+QtView::QtView(unsigned int width, unsigned int height, bool maximize)
        : QMainWindow(), LyXView(), commandbuffer_(0)
 {
        resize(width, height);

-       if(isMax)
+       if (maximize)
                this->setWindowState(Qt::WindowMaximized);

        mainWidget_ = this;
Index: frontends/qt4/QtView.h
===================================================================
--- frontends/qt4/QtView.h      (revision 14088)
+++ frontends/qt4/QtView.h      (working copy)
@@ -47,7 +47,7 @@
        Q_OBJECT
 public:
        /// create a main window of the given dimensions
-       QtView(unsigned int w, unsigned int h, bool isMax);
+       QtView(unsigned int w, unsigned int h, bool maximize);

        ~QtView();

Index: frontends/lyx_gui.h
===================================================================
--- frontends/lyx_gui.h (revision 14088)
+++ frontends/lyx_gui.h (working copy)
@@ -57,7 +57,7 @@
  * batch commands, and loading the given documents
  */
 void start(std::string const & batch, std::vector<std::string> const & files,
-           unsigned int width, unsigned int height, int posx, int posy, bool isMax);
+           unsigned int width, unsigned int height, int posx, int posy, bool maximize);

 /**
  * Enter the main event loop (\sa LyX::exec2)
Index: lyx_main.C
===================================================================
--- lyx_main.C  (revision 14088)
+++ lyx_main.C  (working copy)
@@ -307,7 +307,7 @@
                // initial geometry
                unsigned int width = 690;
                unsigned int height = 510;
-               bool isMax = false;
+               bool maximize = false;
                // first try lyxrc
                if (lyxrc.geometry_width != 0 && lyxrc.geometry_height != 0 ) {
                        width = lyxrc.geometry_width;
@@ -322,7 +322,7 @@
                        if (!val.empty())
                                height = convert<unsigned int>(val);
                        if (session().loadSessionInfo("WindowIsMaximized") == "yes")
-                               isMax = true;
+                               maximize = true;
                }
                // if user wants to restore window position
                int posx = -1;
@@ -335,7 +335,7 @@
                        if (!val.empty())
                                posy = convert<int>(val);
                }
-               lyx_gui::start(batch_command, files, width, height, posx, posy, isMax);
+               lyx_gui::start(batch_command, files, width, height, posx, posy, maximize);
        } else {
                // Something went wrong above
                quitLyX(false);

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

18 years agoQt3/Qt4:
Peter Kümmel [Tue, 13 Jun 2006 08:05:00 +0000 (08:05 +0000)]
Qt3/Qt4:
   - don't save geometry values of the maximized lyx window
   - save/restore the maximized property of the lyx window

- fix changed lyx_gui::start interface for xform and gtk

Index: frontends/gtk/lyx_gui.C
===================================================================
--- frontends/gtk/lyx_gui.C (revision 14083)
+++ frontends/gtk/lyx_gui.C (working copy)
@@ -123,7 +123,7 @@

 void lyx_gui::start(string const & batch, std::vector<string> const & files,
-     unsigned int width, unsigned int height, int posx, int posy)
+     unsigned int width, unsigned int height, int posx, int posy, bool)
 {
  boost::shared_ptr<GView> view_ptr(new GView);
  LyX::ref().addLyXView(view_ptr);
Index: frontends/qt3/lyx_gui.C
===================================================================
--- frontends/qt3/lyx_gui.C (revision 14083)
+++ frontends/qt3/lyx_gui.C (working copy)
@@ -222,12 +222,12 @@

 void start(string const & batch, vector<string> const & files,
-    unsigned int width, unsigned int height, int posx, int posy)
+    unsigned int width, unsigned int height, int posx, int posy, bool isMax)
 {
  // this can't be done before because it needs the Languages object
  initEncodings();

- boost::shared_ptr<QtView> view_ptr(new QtView(width, height));
+ boost::shared_ptr<QtView> view_ptr(new QtView(width, height, isMax));
  LyX::ref().addLyXView(view_ptr);

  QtView & view = *view_ptr.get();
Index: frontends/qt3/QtView.C
===================================================================
--- frontends/qt3/QtView.C (revision 14083)
+++ frontends/qt3/QtView.C (working copy)
@@ -55,10 +55,13 @@

-QtView::QtView(unsigned int width, unsigned int height)
+QtView::QtView(unsigned int width, unsigned int height, bool isMax)
  : QMainWindow(), LyXView(), commandbuffer_(0)
 {
  resize(width, height);
+
+ if(isMax)
+ this->setWindowState(WindowMaximized);

  qApp->setMainWidget(this);

@@ -160,6 +163,9 @@

 void QtView::closeEvent(QCloseEvent *)
 {
+ LyX::ref().session().saveSessionInfo("WindowIsMaximized", (this->isMaximized() ? "yes" : "no"));
+ //don't save maximized values
+ this->showNormal();
  // save windows size and position
  LyX::ref().session().saveSessionInfo("WindowWidth", convert<string>(width()));
  LyX::ref().session().saveSessionInfo("WindowHeight", convert<string>(height()));
Index: frontends/qt3/QtView.h
===================================================================
--- frontends/qt3/QtView.h (revision 14083)
+++ frontends/qt3/QtView.h (working copy)
@@ -37,7 +37,7 @@
  Q_OBJECT
 public:
  /// create a main window of the given dimensions
- QtView(unsigned int w, unsigned int h);
+ QtView(unsigned int w, unsigned int h, bool isMax);

  ~QtView();

Index: frontends/qt4/lyx_gui.C
===================================================================
--- frontends/qt4/lyx_gui.C (revision 14083)
+++ frontends/qt4/lyx_gui.C (working copy)
@@ -228,12 +228,12 @@

 void start(string const & batch, vector<string> const & files,
-    unsigned int width, unsigned int height, int posx, int posy)
+    unsigned int width, unsigned int height, int posx, int posy, bool isMax)
 {
  // this can't be done before because it needs the Languages object
  initEncodings();

- boost::shared_ptr<QtView> view_ptr(new QtView(width, height));
+ boost::shared_ptr<QtView> view_ptr(new QtView(width, height, isMax));
  LyX::ref().addLyXView(view_ptr);

  QtView & view = *view_ptr.get();
Index: frontends/qt4/QtView.C
===================================================================
--- frontends/qt4/QtView.C (revision 14083)
+++ frontends/qt4/QtView.C (working copy)
@@ -70,11 +70,14 @@
 } // namespace anon

-QtView::QtView(unsigned int width, unsigned int height)
+QtView::QtView(unsigned int width, unsigned int height, bool isMax)
  : QMainWindow(), LyXView(), commandbuffer_(0)
 {
  resize(width, height);

+ if(isMax)
+ this->setWindowState(Qt::WindowMaximized);
+
  mainWidget_ = this;

 // setToolButtonStyle(Qt::ToolButtonIconOnly);
@@ -182,11 +185,12 @@
 void QtView::closeEvent(QCloseEvent *)
 {
  // save windows size and position
- LyX::ref().session().saveSessionInfo("WindowWidth", convert<string>(width()));
- LyX::ref().session().saveSessionInfo("WindowHeight", convert<string>(height()));
+ LyX::ref().session().saveSessionInfo("WindowWidth", convert<string>(this->normalGeometry().width()));
+ LyX::ref().session().saveSessionInfo("WindowHeight", convert<string>(this->normalGeometry().height()));
+ LyX::ref().session().saveSessionInfo("WindowIsMaximized", (this->isMaximized() ? "yes" : "no"));
  if (lyxrc.geometry_xysaved) {
- LyX::ref().session().saveSessionInfo("WindowPosX", convert<string>(x()));
- LyX::ref().session().saveSessionInfo("WindowPosY", convert<string>(y()));
+ LyX::ref().session().saveSessionInfo("WindowPosX", convert<string>(this->normalGeometry().x()));
+ LyX::ref().session().saveSessionInfo("WindowPosY", convert<string>(this->normalGeometry().y()));
  }
  // trigger LFUN_LYX_QUIT instead of quit directly
  // since LFUN_LYX_QUIT may have more cleanup stuff
Index: frontends/qt4/QtView.h
===================================================================
--- frontends/qt4/QtView.h (revision 14083)
+++ frontends/qt4/QtView.h (working copy)
@@ -47,7 +47,7 @@
  Q_OBJECT
 public:
  /// create a main window of the given dimensions
- QtView(unsigned int w, unsigned int h);
+ QtView(unsigned int w, unsigned int h, bool isMax);

  ~QtView();

Index: frontends/xforms/lyx_gui.C
===================================================================
--- frontends/xforms/lyx_gui.C (revision 14083)
+++ frontends/xforms/lyx_gui.C (working copy)
@@ -256,7 +256,7 @@

 void start(string const & batch, vector<string> const & files,
-    unsigned int width, unsigned int height, int posx, int posy)
+    unsigned int width, unsigned int height, int posx, int posy, bool)
 {
  int const geometryBitmask =
  XParseGeometry(geometry, &posx, &posy, &width, &height);
Index: frontends/lyx_gui.h
===================================================================
--- frontends/lyx_gui.h (revision 14083)
+++ frontends/lyx_gui.h (working copy)
@@ -57,7 +57,7 @@
  * batch commands, and loading the given documents
  */
 void start(std::string const & batch, std::vector<std::string> const & files,
-           unsigned int width, unsigned int height, int posx, int posy);
+           unsigned int width, unsigned int height, int posx, int posy, bool isMax);

 /**
  * Enter the main event loop (\sa LyX::exec2)
Index: lyx_main.C
===================================================================
--- lyx_main.C (revision 14083)
+++ lyx_main.C (working copy)
@@ -307,6 +307,7 @@
  // initial geometry
  unsigned int width = 690;
  unsigned int height = 510;
+ bool isMax = false;
  // first try lyxrc
  if (lyxrc.geometry_width != 0 && lyxrc.geometry_height != 0 ) {
  width = lyxrc.geometry_width;
@@ -320,6 +321,8 @@
  val = session().loadSessionInfo("WindowHeight");
  if (!val.empty())
  height = convert<unsigned int>(val);
+ if (session().loadSessionInfo("WindowIsMaximized") == "yes")
+ isMax = true;
  }
  // if user wants to restore window position
  int posx = -1;
@@ -332,7 +335,7 @@
  if (!val.empty())
  posy = convert<int>(val);
  }
- lyx_gui::start(batch_command, files, width, height, posx, posy);
+ lyx_gui::start(batch_command, files, width, height, posx, posy, isMax);
  } else {
  // Something went wrong above
  quitLyX(false);

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

18 years agoDeleted because not used anywhere.
Abdelrazak Younes [Sun, 11 Jun 2006 21:45:01 +0000 (21:45 +0000)]
Deleted because not used anywhere.

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

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