Enrico Forestieri wrote:

> I thought about it and my idea is to retain the existing delimiter
> dialog but placing a combobox next to the "Keep matched" checkbox.
> The default combobox item would be "Variable size", and the other
> items would be labeled "big size", "Big size", and so on.

For example.

> The combobox activated() signal would be connected to a slot function
> recording the choice. Now, when the Insert button is clicked, the
> code inserting \left<ldelim> and \right<rdelim> should be changed
> to instead insert \bigl<ldelim> and \bigr<rdelim> according to the
> recorded choice.
> 
> This is the theory, but in practice I am a Qt ignorant and have no
> idea of what I should do to achieve that goal. Moreover, I think
> that I should tweak QDelimiterDialogBase.ui and this is a big
> problem as I don't grok that format. My intuition says that
> probably there is some GUI for dealing with .ui files (designer?
> Yes, I really mean that I know next to nothing about programming Qt).

Yes, designer is the GUI for .ui files, and it is pretty easy to use.

> In conclusion, I think that you would do in a few minutes what
> I would need a few weeks to do...

You seem to overestimate my qt knowledge, I only program qt from time to
time. I still think that this case is easy to do even for a qt newby: There
are a few signals in the math dialog already, and it should not be too
difficult to simply copy one and make it do what you want.
Of course I don't want to force you to do something that you don't like, but
I really think that it is not too difficult.


Georg


Reply via email to