Re: What Magic Compiler Is Needed for LyX?
On Fri, Feb 07, 2003 at 12:30:12PM -0600, Andreas Pour wrote: For SuSE 8.0, the compile is broken if you set CXXFLAGS in your env. This is IF you're fiddling with CXXFLAGS you should know what you're doing. Hi, As it happens I know what I am doing, and hence I know that I should not have to read Makefiles to divine needed but obscure compile flags. If you do not care to document your project fully or have your build system comply with standards, that is your perogative, of course, but I would suggest that belittling those who try to help the project is not productive for anyone. [ ... ] Ciao, Dre
Re: [PATCH] changes: LColor
On Sat, Feb 08, 2003 at 01:33:14AM +, Angus Leeming wrote: John Levon wrote: I'm drunk and I'm still making more sense than you ! But to whom, that is the question. A fair point, perhaps ;) john
Re: reLyX and minipages revisited
Am Samstag, 8. Februar 2003 03:40 schrieb Angus Leeming: Having said that, reLyX without this patch also merges a paragraph ending with a minipage with the next paragraph. Kayvan, I've CCed you in the vain hope that you might know the answer! The problem is the % after \end{minipage}. If you remove it, it works with Angus patch, and also with the original reLyX. This confuses me: I always thought that a % at the end of a line makes latex ignore the line break. But this is not the case here. So reLyX agrees with my understanding of the %, but not with the one of latex:-( One final point. the 'height' and 'inner_position' fields are zeroed because although insetminipage has them, they appear never, ever to be set. Is this simply a limitation of the frontends? I have this impression. Maybe reLyX should not print them at all? Or does lyx have problems if they are missing? I tested this patch very hard and attach a little test case for you to try out too. Jean-Marc, I think that this too could go in the 1.3.x. branch but, of course, leave that to your discretion. Please apply to 1.3.x. It does work for me too. Georg
BUG?: .lyxpip.{in,out} not deleted on exit
Hello, Just compiled 1.3.0 from source. Played around with the lyx-server. IIRC lyx should kill .lyxpipe.{in,ou} on exit. Apperantly that is not the case. I do remember a thread about reverting some changes to the lyx-server just before releasing 1.3.0 since usage shut up to 100% when using it. Did same fix get lost in the shuffle since I remember this bug getting fixed in some 1.2 or eralier. By the way: the sample in section 4.3 of Customization doesn't work in 1.3.0 any more. Should I provide a better example? Additionally the Perl-code in LyX-Client (under /development/lyxserver/..) makes assumptions that are no longer true. Is the code unmaintained? It seems rather old. I am interested in writing a torture-test for lyx to trigger bugs and crashes (the whole undo-redo thing comes to mind). The obviuos way for me is to use lyx-server and perl. I thing that I will have an alpha ready in about 10 days. Are you guys interested? Michael -- Michael Abshoff - MRB - Universität Dortmund - Telefon 755-3463 (intern) Where do you want to RTFM today?
Re: BUG?: .lyxpip.{in,out} not deleted on exit
Hi, On Sat, 8 Feb 2003, Michael Abshoff wrote: Just compiled 1.3.0 from source. Played around with the lyx-server. IIRC lyx should kill .lyxpipe.{in,ou} on exit. Apperantly that is not the case. This is a problem of qt frontend. There is a patch in http://bugzilla.lyx.org/show_bug.cgi?id=865 I do remember a thread about reverting some changes to the lyx-server just before releasing 1.3.0 since usage shut up to 100% when using it. Did same fix get lost in the shuffle since I remember this bug getting fixed in some 1.2 or eralier. No, this reversion didn't affect lyxpipe. João.
Re: BUG?: .lyxpip.{in,out} not deleted on exit
On Sat, Feb 08, 2003 at 05:01:32PM +0100, Michael Abshoff wrote: Just compiled 1.3.0 from source. Played around with the lyx-server. IIRC lyx should kill .lyxpipe.{in,ou} on exit. Apperantly that is not the case. fixed already in cvs branch Additionally the Perl-code in LyX-Client (under /development/lyxserver/..) makes assumptions that are no longer true. Is the code unmaintained? It seems rather old. unmaintained indeed I am interested in writing a torture-test for lyx to trigger bugs and crashes I thing that I will have an alpha ready in about 10 days. Are you guys interested? Very. regards john
a used as accellerator twice in insert graphics dialog
a is used as the accellerator/shortcut for both Draft mode and Apply in the insert graphics dialog. It causes draft mode; the correct behavior would be Applay, just like everywhere else. hawk -- Richard E. Hawkins, Asst. Prof. of Economics/\ ASCII ribbon campaign [EMAIL PROTECTED] Smeal 178 (814) 375-4700 \ / against HTML mail These opinions will not be those of Xand postings. Penn State until it pays my retainer. / \
Re: reLyX and minipages revisited
Georg Baum wrote: Am Samstag, 8. Februar 2003 03:40 schrieb Angus Leeming: Having said that, reLyX without this patch also merges a paragraph ending with a minipage with the next paragraph. Kayvan, I've CCed you in the vain hope that you might know the answer! The problem is the % after \end{minipage}. If you remove it, it works with Angus patch, and also with the original reLyX. This confuses me: I always thought that a % at the end of a line makes latex ignore the line break. But this is not the case here. So reLyX agrees with my understanding of the %, but not with the one of latex:-( I'm sure our resident experts will provide us with some illumination. One final point. the 'height' and 'inner_position' fields are zeroed because although insetminipage has them, they appear never, ever to be set. Is this simply a limitation of the frontends? I have this impression. Maybe reLyX should not print them at all? Or does lyx have problems if they are missing? Looking at the LyX source, there are even hooks present to manipulate their values. Just noone has connected these hooks to the GUI. I tested this patch very hard and attach a little test case for you to try out too. Jean-Marc, I think that this too could go in the 1.3.x. branch but, of course, leave that to your discretion. Please apply to 1.3.x. It does work for me too. Not just yet. This bit works for 0.45\columnwidth = 45col%, but ain't so smart if you specify 4.5cm = 450cm ;-) + $tok = $fileobject-eatBalanced; + $arg = ''; + foreach (@{$tok}) { + my $tmp = $_-print; + if (defined($lengthAsLyXString{$tmp})) { + $tmp = $lengthAsLyXString{$tmp}; + } elsif ($tmp =~ /[0-9.]*/) { + $tmp *= 100; + } + $arg .= $tmp; + } -- Angus
indent as default in floats makes no sense
After unindenting lots of floats, it finally occurred to me: Even when indentation is used for paragraph breaks in the body, it makes no sense to indent within a float--the preference should be overridden. The nature of the float is that it's its own thing away from the text. I've tried, but cannot conceive of a situation where it makes sense for a table or figure to be indented by the same amount as a paragraph. hawk -- Richard E. Hawkins, Asst. Prof. of Economics/\ ASCII ribbon campaign [EMAIL PROTECTED] Smeal 178 (814) 375-4700 \ / against HTML mail These opinions will not be those of Xand postings. Penn State until it pays my retainer. / \
mouse needed before keys in insert reference
While it is possible to change the selection in insert-reference with the up/down keys, this cannot be done until the mouse is moved into the scroll-window (is that the right term?). This is odd and frustrating. If the keys are ususable, home/end and pageup/down should probably also work. hawk, busy today :) -- Richard E. Hawkins, Asst. Prof. of Economics/\ ASCII ribbon campaign [EMAIL PROTECTED] Smeal 178 (814) 375-4700 \ / against HTML mail These opinions will not be those of Xand postings. Penn State until it pays my retainer. / \
preview option gone in graphics dialog
The new tabbed design is nice, but the wonderful old preview button is gone! hawk -- Richard E. Hawkins, Asst. Prof. of Economics/\ ASCII ribbon campaign [EMAIL PROTECTED] Smeal 178 (814) 375-4700 \ / against HTML mail These opinions will not be those of Xand postings. Penn State until it pays my retainer. / \
Re: BUG?: .lyxpip.{in,out} not deleted on exit
Joao Luis Meloni Assirati wrote: This is a problem of qt frontend. There is a patch in http://bugzilla.lyx.org/show_bug.cgi?id=865 Thanks. Weird that I didn't find the bugsreport and patch when I searched for pipe in bugzillla. Oh well, time to go home and sleep a while. Michael -- Michael Abshoff - MRB - Universität Dortmund - Telefon 755-3463 (intern) Where do you want to RTFM today?
Re: BUG?: .lyxpip.{in,out} not deleted on exit
John Levon wrote: I am interested in writing a torture-test for lyx to trigger bugs and crashes I thing that I will have an alpha ready in about 10 days. Are you guys interested? Very. regards john When I started fooling around with the idea I too a closer look at LyXAction.C in the 1.2.3 version. 1.3.0 seems to be different in regards to mathematical events, especially matrix operations. Any file to point me in the right direction? My first point of interest will be the 1) undo - redo mess 2) open and closing documents - 1.2.3 crashed in my unexpectadly once or twice a week (I use lyx at least 3-4 hours a day) 3) throwing garbage at the parser I will get back to you guys if I got more questions. Thanks, Michael -- Michael Abshoff - MRB - Universität Dortmund - Telefon 755-3463 (intern) Where do you want to RTFM today?
Format bumped to 2.22
Does lyx2lyx need modifying to be aware of the change ? All older documents will still load fine and behave normally (change tracking defaults to false) regards john
[PATCH] QDocument (A4 specials)
Fixes a small bug in QDocumentDialog: the A4 extra packages should also be shown if default papersize is A4 and default chosen, furthermore only in portrait mode. This is the case in Xforms and previous LyX versions. I think this can go into 1.3 too (the patch is against 1.3.1cvs, but it should also apply to HEAD). Thanks, Jürgen. Index: src/frontends/qt2/ChangeLog === RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/ChangeLog,v retrieving revision 1.389.2.3 diff -u -r1.389.2.3 ChangeLog --- src/frontends/qt2/ChangeLog 2003/02/07 16:49:19 1.389.2.3 +++ src/frontends/qt2/ChangeLog 2003/02/09 02:07:01 @@ -1,3 +1,8 @@ +2003-02-09 Juergen Spitzmueller [EMAIL PROTECTED] + + * QDocumentDialog.[Ch]: Show A4 packages also when default papersize + is A4 (and default chosen) and only in portrait mode. + 2003-02-07 John Levon [EMAIL PROTECTED] * lyx_gui.C: delete lyxserver pipes (bug 865) Index: src/frontends/qt2/QDocumentDialog.C === RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/QDocumentDialog.C,v retrieving revision 1.20 diff -u -r1.20 QDocumentDialog.C --- src/frontends/qt2/QDocumentDialog.C 2003/01/16 10:56:48 1.20 +++ src/frontends/qt2/QDocumentDialog.C 2003/02/09 02:07:03 @@ -230,7 +230,7 @@ connect(paperModule-paperheightUnitCO, SIGNAL(activated(int)), this , SLOT(change_adaptor())); connect(paperModule-portraitRB, SIGNAL(toggled(bool)), - this , SLOT(change_adaptor())); + this , SLOT(portraitChanged())); connect(paperModule-landscapeRB, SIGNAL(toggled(bool)), this , SLOT(change_adaptor())); connect(paperModule-twoColumnCB, SIGNAL(toggled(bool)), @@ -333,6 +333,10 @@ setSkip(layoutModule-skipCO-currentItem()); } +void QDocumentDialog::portraitChanged() +{ + setMargins(paperModule-papersizeCO-currentItem()); +} void QDocumentDialog::setMargins(int papersize) { @@ -340,7 +344,9 @@ marginsModule-marginCO-clear(); marginsModule-marginCO-insertItem(qt_(Default)); marginsModule-marginCO-insertItem(qt_(Custom)); - if (papersize == 6) { + bool a4size = (papersize == 6 || papersize == 0 + lyxrc.default_papersize == BufferParams::PAPER_A4PAPER); + if (a4size paperModule-portraitRB-isChecked()) { marginsModule-marginCO-insertItem(qt_(Small margins)); marginsModule-marginCO-insertItem(qt_(Very small margins)); marginsModule-marginCO-insertItem(qt_(Very wide margins)); Index: src/frontends/qt2/QDocumentDialog.h === RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/QDocumentDialog.h,v retrieving revision 1.10 diff -u -r1.10 QDocumentDialog.h --- src/frontends/qt2/QDocumentDialog.h 2003/01/16 10:56:49 1.10 +++ src/frontends/qt2/QDocumentDialog.h 2003/02/09 02:07:03 @@ -57,6 +57,7 @@ void setCustomMargins(int); void setSkip(int); void enableSkip(bool); + void portraitChanged(); void classChanged(); protected:
Re: [PATCH] QDocument (A4 specials)
On Sun, Feb 09, 2003 at 03:16:05AM +0100, Juergen Spitzmueller wrote: Fixes a small bug in QDocumentDialog: the A4 extra packages should also be shown if default papersize is A4 and default chosen, furthermore only in portrait mode. This is the case in Xforms and previous LyX versions. Seems like that change_adaptor will no longer be called now ? john
1.3.0 wide char related build failure
Hi, trying to build lyx 1.3.0 on openbsd 3.1. Here is output. Will provide any more information required. Advice? I'm still running version 1.16. Thanks for your time, -Marten g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../boost -isystem /usr/X11R6/include -O -Wno-non-template-friend -ftemplate-depth-30 -c cpp_regex_traits.cpp -Wp,-MD,.deps/cpp_regex_traits.TPlo In file included from ../../../../boost/boost/regex/config.hpp:142, from cpp_regex_traits.cpp:26: /usr/include/g++/cwctype:6: wctype.h: No such file or directory *** Error code 1
Re: What Magic Compiler Is Needed for LyX?
> On Fri, Feb 07, 2003 at 12:30:12PM -0600, Andreas Pour wrote: > > > For SuSE 8.0, the compile is broken if you set CXXFLAGS in your env. This is > > IF you're fiddling with CXXFLAGS you should know what you're doing. Hi, As it happens I know what I am doing, and hence I know that I should not have to read Makefiles to divine needed but obscure compile flags. If you do not care to document your project fully or have your build system comply with standards, that is your perogative, of course, but I would suggest that belittling those who try to help the project is not productive for anyone. [ ... ] Ciao, Dre
Re: [PATCH] changes: LColor
On Sat, Feb 08, 2003 at 01:33:14AM +, Angus Leeming wrote: > John Levon wrote: > > I'm drunk and I'm still making more sense than you ! > But to whom, that is the question. A fair point, perhaps ;) john
Re: reLyX and minipages revisited
Am Samstag, 8. Februar 2003 03:40 schrieb Angus Leeming: > Having said that, reLyX without this patch also merges a paragraph ending > with a minipage with the next paragraph. Kayvan, I've CCed you in the > vain hope that you might know the answer! The problem is the "%" after \end{minipage}. If you remove it, it works with Angus patch, and also with the original reLyX. This confuses me: I always thought that a "%" at the end of a line makes latex ignore the line break. But this is not the case here. So reLyX agrees with my understanding of the "%", but not with the one of latex:-( > One final point. the 'height' and 'inner_position' fields are zeroed > because although insetminipage has them, they appear never, ever to be > set. Is this simply a limitation of the frontends? I have this impression. Maybe reLyX should not print them at all? Or does lyx have problems if they are missing? > I tested this patch very hard and attach a little test case for you to > try out too. Jean-Marc, I think that this too could go in the 1.3.x. > branch but, of course, leave that to your discretion. Please apply to 1.3.x. It does work for me too. Georg
BUG?: .lyxpip.{in,out} not deleted on exit
Hello, Just compiled 1.3.0 from source. Played around with the lyx-server. IIRC lyx should kill .lyxpipe.{in,ou} on exit. Apperantly that is not the case. I do remember a thread about reverting some changes to the lyx-server just before releasing 1.3.0 since usage shut up to 100% when using it. Did same fix get lost in the shuffle since I remember this bug getting fixed in some 1.2 or eralier. By the way: the sample in section 4.3 of Customization doesn't work in 1.3.0 any more. Should I provide a better example? Additionally the Perl-code in LyX-Client (under /development/lyxserver/..) makes assumptions that are no longer true. Is the code unmaintained? It seems rather old. I am interested in writing a "torture-test" for lyx to trigger bugs and crashes (the whole undo-redo thing comes to mind). The obviuos way for me is to use lyx-server and perl. I thing that I will have an alpha ready in about 10 days. Are you guys interested? Michael -- Michael Abshoff - MRB - Universität Dortmund - Telefon 755-3463 (intern) Where do you want to RTFM today?
Re: BUG?: .lyxpip.{in,out} not deleted on exit
Hi, On Sat, 8 Feb 2003, Michael Abshoff wrote: > Just compiled 1.3.0 from source. Played around with the lyx-server. IIRC > lyx should kill .lyxpipe.{in,ou} on exit. Apperantly that is not the case. This is a problem of qt frontend. There is a patch in http://bugzilla.lyx.org/show_bug.cgi?id=865 > I do remember a thread about reverting some changes to the lyx-server > just before releasing 1.3.0 since usage shut up to 100% when using it. > Did same fix get lost in the shuffle since I remember this bug getting > fixed > in some 1.2 or eralier. No, this reversion didn't affect lyxpipe. João.
Re: BUG?: .lyxpip.{in,out} not deleted on exit
On Sat, Feb 08, 2003 at 05:01:32PM +0100, Michael Abshoff wrote: > Just compiled 1.3.0 from source. Played around with the lyx-server. IIRC > lyx should kill .lyxpipe.{in,ou} on exit. Apperantly that is not the case. fixed already in cvs branch > Additionally the Perl-code in LyX-Client (under /development/lyxserver/..) > makes assumptions that are no longer true. Is the code unmaintained? > It seems rather old. unmaintained indeed > I am interested in writing a "torture-test" for lyx to trigger bugs and > crashes > > I thing that I will have an alpha ready in about 10 days. Are you guys > interested? Very. regards john
a used as accellerator twice in insert graphics dialog
"a" is used as the accellerator/shortcut for both "Draft mode" and "Apply" in the insert graphics dialog. It causes draft mode; the correct behavior would be Applay, just like everywhere else. hawk -- Richard E. Hawkins, Asst. Prof. of Economics/"\ ASCII ribbon campaign [EMAIL PROTECTED] Smeal 178 (814) 375-4700 \ / against HTML mail These opinions will not be those of Xand postings. Penn State until it pays my retainer. / \
Re: reLyX and minipages revisited
Georg Baum wrote: > Am Samstag, 8. Februar 2003 03:40 schrieb Angus Leeming: >> Having said that, reLyX without this patch also merges a paragraph ending >> with a minipage with the next paragraph. Kayvan, I've CCed you in the >> vain hope that you might know the answer! > > The problem is the "%" after \end{minipage}. If you remove it, it works > with Angus patch, and also with the original reLyX. > This confuses me: I always thought that a "%" at the end of a line makes > latex ignore the line break. But this is not the case here. So reLyX > agrees with my understanding of the "%", but not with the one of latex:-( I'm sure our resident experts will provide us with some illumination. >> One final point. the 'height' and 'inner_position' fields are zeroed >> because although insetminipage has them, they appear never, ever to be >> set. Is this simply a limitation of the frontends? > > I have this impression. Maybe reLyX should not print them at all? Or does > lyx have problems if they are missing? Looking at the LyX source, there are even hooks present to manipulate their values. Just noone has connected these hooks to the GUI. >> I tested this patch very hard and attach a little test case for you to >> try out too. Jean-Marc, I think that this too could go in the 1.3.x. >> branch but, of course, leave that to your discretion. > > Please apply to 1.3.x. It does work for me too. Not just yet. This bit works for 0.45\columnwidth => 45col%, but ain't so smart if you specify 4.5cm => 450cm ;-) + $tok = $fileobject->eatBalanced; + $arg = ''; + foreach (@{$tok}) { + my $tmp = $_->print; + if (defined($lengthAsLyXString{$tmp})) { + $tmp = $lengthAsLyXString{$tmp}; + } elsif ($tmp =~ /[0-9.]*/) { + $tmp *= 100; + } + $arg .= $tmp; + } -- Angus
indent as default in floats makes no sense
After unindenting lots of floats, it finally occurred to me: Even when indentation is used for paragraph breaks in the body, it makes no sense to indent within a float--the preference should be overridden. The nature of the float is that it's its own thing away from the text. I've tried, but cannot conceive of a situation where it makes sense for a table or figure to be indented by the same amount as a paragraph. hawk -- Richard E. Hawkins, Asst. Prof. of Economics/"\ ASCII ribbon campaign [EMAIL PROTECTED] Smeal 178 (814) 375-4700 \ / against HTML mail These opinions will not be those of Xand postings. Penn State until it pays my retainer. / \
mouse needed before keys in insert reference
While it is possible to change the selection in insert-reference with the up/down keys, this cannot be done until the mouse is moved into the scroll-window (is that the right term?). This is odd and frustrating. If the keys are ususable, home/end and pageup/down should probably also work. hawk, busy today :) -- Richard E. Hawkins, Asst. Prof. of Economics/"\ ASCII ribbon campaign [EMAIL PROTECTED] Smeal 178 (814) 375-4700 \ / against HTML mail These opinions will not be those of Xand postings. Penn State until it pays my retainer. / \
"preview" option gone in graphics dialog
The new tabbed design is nice, but the wonderful old "preview" button is gone! hawk -- Richard E. Hawkins, Asst. Prof. of Economics/"\ ASCII ribbon campaign [EMAIL PROTECTED] Smeal 178 (814) 375-4700 \ / against HTML mail These opinions will not be those of Xand postings. Penn State until it pays my retainer. / \
Re: BUG?: .lyxpip.{in,out} not deleted on exit
Joao Luis Meloni Assirati wrote: This is a problem of qt frontend. There is a patch in http://bugzilla.lyx.org/show_bug.cgi?id=865 Thanks. Weird that I didn't find the bugsreport and patch when I searched for "pipe" in bugzillla. Oh well, time to go home and sleep a while. Michael -- Michael Abshoff - MRB - Universität Dortmund - Telefon 755-3463 (intern) Where do you want to RTFM today?
Re: BUG?: .lyxpip.{in,out} not deleted on exit
John Levon wrote: I am interested in writing a "torture-test" for lyx to trigger bugs and crashes I thing that I will have an alpha ready in about 10 days. Are you guys interested? Very. regards john When I started fooling around with the idea I too a closer look at LyXAction.C in the 1.2.3 version. 1.3.0 seems to be different in regards to mathematical events, especially matrix operations. Any file to point me in the right direction? My first point of interest will be the 1) undo - redo mess 2) open and closing documents - 1.2.3 crashed in my unexpectadly once or twice a week (I use lyx at least 3-4 hours a day) 3) throwing garbage at the parser I will get back to you guys if I got more questions. Thanks, Michael -- Michael Abshoff - MRB - Universität Dortmund - Telefon 755-3463 (intern) Where do you want to RTFM today?
Format bumped to 2.22
Does lyx2lyx need modifying to be aware of the change ? All older documents will still load fine and behave normally (change tracking defaults to false) regards john
[PATCH] QDocument (A4 specials)
Fixes a small bug in QDocumentDialog: the A4 extra packages should also be shown if default papersize is A4 and default chosen, furthermore only in portrait mode. This is the case in Xforms and previous LyX versions. I think this can go into 1.3 too (the patch is against 1.3.1cvs, but it should also apply to HEAD). Thanks, Jürgen. Index: src/frontends/qt2/ChangeLog === RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/ChangeLog,v retrieving revision 1.389.2.3 diff -u -r1.389.2.3 ChangeLog --- src/frontends/qt2/ChangeLog 2003/02/07 16:49:19 1.389.2.3 +++ src/frontends/qt2/ChangeLog 2003/02/09 02:07:01 @@ -1,3 +1,8 @@ +2003-02-09 Juergen Spitzmueller <[EMAIL PROTECTED]> + + * QDocumentDialog.[Ch]: Show A4 packages also when default papersize + is A4 (and default chosen) and only in portrait mode. + 2003-02-07 John Levon <[EMAIL PROTECTED]> * lyx_gui.C: delete lyxserver pipes (bug 865) Index: src/frontends/qt2/QDocumentDialog.C === RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/QDocumentDialog.C,v retrieving revision 1.20 diff -u -r1.20 QDocumentDialog.C --- src/frontends/qt2/QDocumentDialog.C 2003/01/16 10:56:48 1.20 +++ src/frontends/qt2/QDocumentDialog.C 2003/02/09 02:07:03 @@ -230,7 +230,7 @@ connect(paperModule->paperheightUnitCO, SIGNAL(activated(int)), this , SLOT(change_adaptor())); connect(paperModule->portraitRB, SIGNAL(toggled(bool)), - this , SLOT(change_adaptor())); + this , SLOT(portraitChanged())); connect(paperModule->landscapeRB, SIGNAL(toggled(bool)), this , SLOT(change_adaptor())); connect(paperModule->twoColumnCB, SIGNAL(toggled(bool)), @@ -333,6 +333,10 @@ setSkip(layoutModule->skipCO->currentItem()); } +void QDocumentDialog::portraitChanged() +{ + setMargins(paperModule->papersizeCO->currentItem()); +} void QDocumentDialog::setMargins(int papersize) { @@ -340,7 +344,9 @@ marginsModule->marginCO->clear(); marginsModule->marginCO->insertItem(qt_("Default")); marginsModule->marginCO->insertItem(qt_("Custom")); - if (papersize == 6) { + bool a4size = (papersize == 6 || papersize == 0 + && lyxrc.default_papersize == BufferParams::PAPER_A4PAPER); + if (a4size && paperModule->portraitRB->isChecked()) { marginsModule->marginCO->insertItem(qt_("Small margins")); marginsModule->marginCO->insertItem(qt_("Very small margins")); marginsModule->marginCO->insertItem(qt_("Very wide margins")); Index: src/frontends/qt2/QDocumentDialog.h === RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/QDocumentDialog.h,v retrieving revision 1.10 diff -u -r1.10 QDocumentDialog.h --- src/frontends/qt2/QDocumentDialog.h 2003/01/16 10:56:49 1.10 +++ src/frontends/qt2/QDocumentDialog.h 2003/02/09 02:07:03 @@ -57,6 +57,7 @@ void setCustomMargins(int); void setSkip(int); void enableSkip(bool); + void portraitChanged(); void classChanged(); protected:
Re: [PATCH] QDocument (A4 specials)
On Sun, Feb 09, 2003 at 03:16:05AM +0100, Juergen Spitzmueller wrote: > Fixes a small bug in QDocumentDialog: the A4 extra packages should also be > shown if default papersize is A4 and default chosen, furthermore only in > portrait mode. This is the case in Xforms and previous LyX versions. Seems like that change_adaptor will no longer be called now ? john
1.3.0 wide char related build failure
Hi, trying to build lyx 1.3.0 on openbsd 3.1. Here is output. Will provide any more information required. Advice? I'm still running version 1.16. Thanks for your time, -Marten g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../boost -isystem /usr/X11R6/include -O -Wno-non-template-friend -ftemplate-depth-30 -c cpp_regex_traits.cpp -Wp,-MD,.deps/cpp_regex_traits.TPlo In file included from ../../../../boost/boost/regex/config.hpp:142, from cpp_regex_traits.cpp:26: /usr/include/g++/cwctype:6: wctype.h: No such file or directory *** Error code 1