Re: Qt Math Panel layout

2002-09-05 Thread Jean-Marc Lasgouttes

> The only GUI way to select a layout in LyX is with the toolbar.
> I don't see why this can't be done in other areas. 

And this should change. We need a layout selector in the paragraph
layout dialog.

JMarc






Re: Qt Math Panel layout

2002-08-31 Thread Dekel Tsur

On Sat, Aug 31, 2002 at 04:38:34PM +0100, John Levon wrote:
> On Sat, Aug 31, 2002 at 06:16:21PM +0300, Dekel Tsur wrote:
> 
> > > That's a bad idea. A maths toolbar takes up valuable screen estate for
> > > people who don't use math, and must be optional.
> > 
> > In klyx, you can hide the toolbar menu if you don't need it.
> 
> But it's not optional - if you need it even to add a single symbol you
> have to enable it at least temporarily.
>Toolbars are intended as
> convenience items not primary interaction items (similar to context
> menus).

The only GUI way to select a layout in LyX is with the toolbar.
I don't see why this can't be done in other areas. 



Re: Qt Math Panel layout

2002-08-31 Thread John Levon

On Sat, Aug 31, 2002 at 06:16:21PM +0300, Dekel Tsur wrote:

> > That's a bad idea. A maths toolbar takes up valuable screen estate for
> > people who don't use math, and must be optional.
> 
> In klyx, you can hide the toolbar menu if you don't need it.

But it's not optional - if you need it even to add a single symbol you
have to enable it at least temporarily. Toolbars are intended as
convenience items not primary interaction items (similar to context
menus).

> Another option would be to make the toolbar appear only when in math mode

I think this might be a little disconcerting !

regards
john

-- 
"Take the ideas you find useful. Try not to get hung up on the labels."
- Jonathan S. Shapiro



Re: Qt Math Panel layout

2002-08-31 Thread Dekel Tsur

On Sat, Aug 31, 2002 at 06:16:20PM +0300, Dekel Tsur wrote:
> On Sat, Aug 31, 2002 at 04:08:31PM +0100, John Levon wrote:
> > > With this implementation, the toolbar replaces the math panel 
> > > (which is not implemented in klyx).
> > 
> > That's a bad idea. A maths toolbar takes up valuable screen estate for
> > people who don't use math, and must be optional.
> 
> In klyx, you can hide the toolbar menu if you don't need it.

  I meant the math toolbar



Re: Qt Math Panel layout

2002-08-31 Thread Dekel Tsur

On Sat, Aug 31, 2002 at 04:08:31PM +0100, John Levon wrote:
> > With this implementation, the toolbar replaces the math panel 
> > (which is not implemented in klyx).
> 
> That's a bad idea. A maths toolbar takes up valuable screen estate for
> people who don't use math, and must be optional.

In klyx, you can hide the toolbar menu if you don't need it.
Another option would be to make the toolbar appear only when in math mode
(klyx uses the latter approach for the tabular toolbar).



Re: Qt Math Panel layout

2002-08-31 Thread John Levon

On Sat, Aug 31, 2002 at 01:00:34PM +0300, Dekel Tsur wrote:

> What klyx does, it to have Greek, Arrows, etc. buttons on the toolbar.

Oh now I see what you mean. That will be easy to do - when Math Panel is
done, we can make it so we can drag a symbols panel onto the toolbar.
Also we will need an extension of the .ui format to allow defining such
icon menus.

> With this implementation, the toolbar replaces the math panel 
> (which is not implemented in klyx).

That's a bad idea. A maths toolbar takes up valuable screen estate for
people who don't use math, and must be optional.

> The klyx math toolbar is easier to use than the math panel.

Mostly because the math panel needs some serious UI work doing on it...

regards
john

-- 
"Take the ideas you find useful. Try not to get hung up on the labels."
- Jonathan S. Shapiro



Re: Qt Math Panel layout

2002-08-31 Thread Dekel Tsur

On Sat, Aug 31, 2002 at 03:25:37AM +0100, John Levon wrote:
> > How difficult is implementing a mathed toolbar (like in klyx) ?
> 
> It's already implemented.
> 
> Toolbar
>   ...
> NewLine
> Icon "math-insert \overleftrightarrow"
> Icon "math-insert \grave"
> Icon "math-insert \tilde"

But this does not allow you to access all the symbols from the toolbar.
What klyx does, it to have Greek, Arrows, etc. buttons on the toolbar.
When pressing, for example, the Greek button, it opens a (rectangle) menu
below the button that allow you to choose a greek symbol.
(the menu closes after you choose the symbol)

With this implementation, the toolbar replaces the math panel 
(which is not implemented in klyx). The klyx math toolbar is easier to use
than the math panel.



Re: Qt Math Panel layout

2002-08-30 Thread John Levon

On Sat, Aug 31, 2002 at 12:16:15AM +0300, Dekel Tsur wrote:

> How difficult is implementing a mathed toolbar (like in klyx) ?

It's already implemented.

Toolbar
...
NewLine
Icon "math-insert \overleftrightarrow"
Icon "math-insert \grave"
Icon "math-insert \tilde"
Icon "math-insert \underline"
Icon "math-superscript"
Icon "math-subscript"
Icon "math-insert \frac"
Icon "math-insert \sqrt"
Icon "math-insert \spadesuit"
Icon "math-insert \clubsuit"
Icon "math-insert \diamondsuit"

Works a treat :)

regards
john


-- 
"Take the ideas you find useful. Try not to get hung up on the labels."
- Jonathan S. Shapiro



Re: Qt Math Panel layout

2002-08-30 Thread Dekel Tsur

How difficult is implementing a mathed toolbar (like in klyx) ?



Re: Qt Math Panel layout

2002-08-30 Thread John Levon

On Fri, Aug 30, 2002 at 11:42:26AM +0200, Philipp Reichmuth wrote:

> - Added group boxes for better grouping to overall enhance usability,
>   especially for the symbol area, where I think there should be a
>   distinction between the label for the area and for the range
>   selector

I don't agree with this grouping. Why ? Well look at the name you gave.
These are *not* "Standard elements" (or if they are, so is the rest of
the dialog, excepting the AMS stuff). Most of them open dialogs, and
some of them just mutate the equation. To be honest, I'm not fond of the
current selection of buttons we actually have, but now is not the time
to be refining this.

> - Renamed "functions" to "operators" for LaTeX-speak conformity
>   reasons and because some of them aren't really functions

This is a classic example of "worse is better" (or if you will, "better
is worse"). Re-using the word operators is just confusing next to the
symbols panel. Seeing as its immediately obvious what is contained
within the combo, I'd rather retain the old name (unless you can think
of a better one).

Also I would rather remove "Symbol range:" text altogether - it does not
add information, and seems rather confusing. I like the group box in
this case though, as it clearly identifies the expand button with the
widget stack.

> - Moved speed buttons to the top right because they're used more
>   frequently, given them a label for better usability

As said I don't agree with the label, but I think the rearrangement is a
good idea.

thanks
john

-- 
"Take the ideas you find useful. Try not to get hung up on the labels."
- Jonathan S. Shapiro



Re: Qt Math Panel layout

2002-08-30 Thread Philipp Reichmuth

Hi John,

JL> Comments please. I'm not sure how this will fit into my "favourite
JL> icons" panel yet.

Variation screenshot attached.

Changes:

- Added group boxes for better grouping to overall enhance usability,
  especially for the symbol area, where I think there should be a
  distinction between the label for the area and for the range
  selector

- Renamed "functions" to "operators" for LaTeX-speak conformity
  reasons and because some of them aren't really functions

- Moved speed buttons to the top right because they're used more
  frequently, given them a label for better usability

  Philipp


panel.png
Description: PNG image


Re: Qt Math Panel layout

2002-08-29 Thread Andre Poenitz

On Fri, Aug 30, 2002 at 12:23:39AM +0100, John Levon wrote:
> Comments please. I'm not sure how this will fit into my "favourite
> icons" panel yet.

I do not really care...

[And I am better at looking at screenshots that at xml style files ;-)]

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)



Qt Math Panel layout

2002-08-29 Thread John Levon


Comments please. I'm not sure how this will fit into my "favourite
icons" panel yet.

In case it's not obvious, the grey widget stack will switch between
the various symbol palettes based on the combo box above

regards
john

-- 
"Take the ideas you find useful. Try not to get hung up on the labels."
- Jonathan S. Shapiro



QMathsDialogBase

QDialog

name
QMathsDialogBase


geometry

0
0
393
351



caption
LyX: Math Panel


sizeGripEnabled
true



margin
11


spacing
6


QLayoutWidget

name
Layout21



margin
0


spacing
6


QLayoutWidget

name
Layout12



margin
0


spacing
6


QLayoutWidget

name
Layout2



margin
0


spacing
6


QLabel

name
functionsLA


text
&Functions


buddy
functionsLB



QListBox

name
functionsLB


sizePolicy

1
7



minimumSize

100
100






QLayoutWidget

name
Layout11



margin
0


spacing
6


QPushButton

name
equationPB


text



pixmap
image0


toolTip
Switch between inline and display 
mode



QPushButton