Re: tear-off math panels

2007-06-18 Thread Enrico Forestieri
On Mon, Jun 18, 2007 at 08:03:21AM +0200, Andre Poenitz wrote: > On Mon, Jun 18, 2007 at 04:20:13AM +0200, Enrico Forestieri wrote: > > On Tue, Jun 12, 2007 at 11:28:37PM +0200, Edwin Leuven wrote: > > > > > >> +// FIXME: this can go when we move to Qt 4.3 > > > >> +#define QT_VERSION_CHECK(major

Re: tear-off math panels

2007-06-17 Thread Andre Poenitz
On Mon, Jun 18, 2007 at 04:20:13AM +0200, Enrico Forestieri wrote: > On Tue, Jun 12, 2007 at 11:28:37PM +0200, Edwin Leuven wrote: > > > >> +// FIXME: this can go when we move to Qt 4.3 > > >> +#define QT_VERSION_CHECK(major, minor, patch) > > >> ((major<<16)|(minor<<8)|(patch)) > > >> + > > >> +

Re: tear-off math panels

2007-06-17 Thread Enrico Forestieri
On Tue, Jun 12, 2007 at 11:28:37PM +0200, Edwin Leuven wrote: > >> +// FIXME: this can go when we move to Qt 4.3 > >> +#define QT_VERSION_CHECK(major, minor, patch) > >> ((major<<16)|(minor<<8)|(patch)) > >> + > >> +#if QT_VERSION >= QT_VERSION_CHECK(4, 2, 0) > > > > Wouldn't that give a 'redefi

Re: Fwd: tear-off math panels

2007-06-16 Thread Edwin Leuven
Roger Mc Murtrie wrote: Re Intel Mac OSX 10.4 Previous testing for both Mac and Linux done after "make" using src/lyx. Now, after doing a "make install" on the Mac and starting the resulting LyX.app, the correct characters are displayed for all palettes with the exception of the Big Operators

Fwd: tear-off math panels

2007-06-16 Thread Roger Mc Murtrie
sage: From: Roger Mc Murtrie <[EMAIL PROTECTED]> Date: 15 June 2007 1:36:31 PM To: lyx-devel@lists.lyx.org Cc: "E. Leuven" <[EMAIL PROTECTED]> Subject: Re: tear-off math panels I have tested the tear off panels on both Linux and Mac. Panels "tear off" when sin

Re: tear-off math panels

2007-06-14 Thread Roger Mc Murtrie
I have tested the tear off panels on both Linux and Mac. Panels "tear off" when single clicked above a math palette's dashed line. There is one inconsistency between the Linux panel and the Mac panel in that the linux palette has a maximise icon whereas the Mac palette doesn't. This is a g

Re: tear-off math panels

2007-06-14 Thread Andre Poenitz
On Thu, Jun 14, 2007 at 09:45:42AM +0200, Edwin Leuven wrote: > Edwin Leuven wrote: > >some people have complained the math panels cannot be torn-off (bugs > >3839 and 3840) > > > >the attached makes this work for QT_VERSION >= QT_VERSION_CHECK(4, 2, 0) > > > >perhaps people can give it a try? >

Re: tear-off math panels

2007-06-14 Thread Edwin Leuven
Edwin Leuven wrote: some people have complained the math panels cannot be torn-off (bugs 3839 and 3840) the attached makes this work for QT_VERSION >= QT_VERSION_CHECK(4, 2, 0) perhaps people can give it a try? the updated attached patch works for me on windows (qt 4.2.2) and linux (debian

Fwd: tear-off math panels

2007-06-13 Thread Roger Mc Murtrie
Begin forwarded message: From: Roger Mc Murtrie <[EMAIL PROTECTED]> Date: 14 June 2007 10:02:49 AM To: "Leuven, E." <[EMAIL PROTECTED]> Subject: Re: tear-off math panels I see, OK. Select Greek menu, select a character, character entered, palette closes. But, prob

RE: tear-off math panels

2007-06-13 Thread Leuven, E.
Roger Mc Murtrie wrote: > Great! It works. Close button and all!! Wonderfull!!! could you confirm that the menu disappear after a click when they are attached, but that they stay on top when torn-off? > Just one suggestion. Can there be a little more space between the top of > the pallett

Re: tear-off math panels

2007-06-13 Thread Roger Mc Murtrie
On Jun 13, 2007, at 8:39 AM, Leuven, E. wrote: > i would like the menu to close after clicking on a symbol when it is not > torn off > > when the menu is torn off i'd like it close only when clicking on the > close button perhaps some more can try the attached? it work flawlessly for me

RE: tear-off math panels

2007-06-13 Thread Leuven, E.
Bennett Helm wrote: > On Jun 13, 2007, at 8:48 AM, Leuven, E. wrote: That fixes the > compilation. > > However, the patch doesn't seem to work. (I'm not sure exactly how it > is supposed to work, but here's what I find.) > > Clicking on icons (such as that for big operators) that are supposed > t

Re: tear-off math panels

2007-06-13 Thread Bennett Helm
On Jun 13, 2007, at 8:48 AM, Leuven, E. wrote: add #include to iconpalette.cpp ? That fixes the compilation. However, the patch doesn't seem to work. (I'm not sure exactly how it is supposed to work, but here's what I find.) Clicking on icons (such as that for big operators) that ar

RE: tear-off math panels

2007-06-13 Thread Leuven, E.
add #include to iconpalette.cpp ? -Original Message- From: Bennett Helm [mailto:[EMAIL PROTECTED] Sent: Wed 6/13/07 14:44 To: Leuven, E. Cc: Bo Peng; LyX-Devel Mechanics Subject: Re: tear-off math panels On Jun 13, 2007, at 8:39 AM, Leuven, E. wrote: > > i would like the m

Re: tear-off math panels

2007-06-13 Thread Bennett Helm
On Jun 13, 2007, at 8:39 AM, Leuven, E. wrote: > i would like the menu to close after clicking on a symbol when it is not > torn off > > when the menu is torn off i'd like it close only when clicking on the > close button perhaps some more can try the attached? it work flawlessly for me

RE: tear-off math panels

2007-06-13 Thread Leuven, E.
> i would like the menu to close after clicking on a symbol when it is not > torn off > > when the menu is torn off i'd like it close only when clicking on the > close button perhaps some more can try the attached? it work flawlessly for me Index: src/frontends/qt4/IconPalette.cpp ==

Re: tear-off math panels

2007-06-12 Thread Edwin Leuven
Bo Peng wrote: > Now, with qt 4.2.2 and your patch, I can > 1. click to open a subpanel > 2. click a symbol and the panel does not disappear > 3. click again on vacant area, the panel will disappear. strange, it disappears here 2 or 3? Both behaviors are fine, right? My understanding is that 2

Re: tear-off math panels

2007-06-12 Thread Edwin Leuven
Andre Poenitz wrote: +void MathButton::mouseReleaseEvent(QMouseEvent *event) +{ + // this one triggers the action and untoggles the button + QToolButton::mouseReleaseEvent(event); + // this one forwards the event to the parent + QWidget::mouseReleaseEvent(event); +} I'd

Re: tear-off math panels

2007-06-12 Thread Bo Peng
> Now, with qt 4.2.2 and your patch, I can > 1. click to open a subpanel > 2. click a symbol and the panel does not disappear > 3. click again on vacant area, the panel will disappear. strange, it disappears here 2 or 3? Both behaviors are fine, right? My understanding is that 2 is used to ente

Re: tear-off math panels

2007-06-12 Thread Edwin Leuven
Bo Peng wrote: perhaps people can give it a try? What is the behavior you want to achieve? Now, with qt 4.2.2 and your patch, I can 1. click to open a subpanel 2. click a symbol and the panel does not disappear 3. click again on vacant area, the panel will disappear. strange, it disappears h

Re: tear-off math panels

2007-06-12 Thread Andre Poenitz
On Tue, Jun 12, 2007 at 10:26:23PM +0200, Edwin Leuven wrote: > some people have complained the math panels cannot be torn-off (bugs > 3839 and 3840) > > the attached makes this work for QT_VERSION >= QT_VERSION_CHECK(4, 2, 0) > > perhaps people can give it a try? > > > Index: src/frontends/q

Re: tear-off math panels

2007-06-12 Thread Bo Peng
perhaps people can give it a try? What is the behavior you want to achieve? Now, with qt 4.2.2 and your patch, I can 1. click to open a subpanel 2. click a symbol and the panel does not disappear 3. click again on vacant area, the panel will disappear. Bo

Re: tear-off math panels

2007-06-12 Thread Juergen Spitzmueller
Edwin Leuven wrote: > some people have complained the math panels cannot be torn-off (bugs > 3839 and 3840) I don't have time to test it, but if it works, I'm all for putting this in. The non-tearable panels are a major pain for some users, and this behaviour is a regression wrt the old panels.

tear-off math panels

2007-06-12 Thread Edwin Leuven
some people have complained the math panels cannot be torn-off (bugs 3839 and 3840) the attached makes this work for QT_VERSION >= QT_VERSION_CHECK(4, 2, 0) perhaps people can give it a try? Index: src/frontends/qt4/IconPalette.cpp =