Using Qt designer

2003-06-04 Thread Angus Leeming
I'm trying to get to grips with Qt's designer (I am using Qt2's designer. I 
think that's correct isn't it?)

Attached is a screenshot of what I've got so far for the External dialog. 
I'm trying to add some widgets to control the appearence of the inset 
within LyX. Basically, I'm just copying the equivalent stuff in the 
Graphics dialog.

You can see how I've grouped the various widgets together. Look Ok?

My question: how do I tell them they're sitting in the LyX Display frame. 
Thereafter, how do I layout this frame within the whole dialog. Seems I've 
got stuck.

-- 
Angusattachment: designer.png

Re: Using Qt designer

2003-06-04 Thread Angus Leeming
Angus Leeming wrote:

 I'm trying to get to grips with Qt's designer (I am using Qt2's designer.
 I think that's correct isn't it?)
 
 Attached is a screenshot of what I've got so far for the External dialog.
 I'm trying to add some widgets to control the appearence of the inset
 within LyX. Basically, I'm just copying the equivalent stuff in the
 Graphics dialog.
 
 You can see how I've grouped the various widgets together. Look Ok?
 
 My question: how do I tell them they're sitting in the LyX Display
 frame. Thereafter, how do I layout this frame within the whole dialog.
 Seems I've got stuck.

Ahhh! Click that lil' ol' grid icon on the toolbar. Once for the frame and 
once for the whole dialog. Too easy for an old codger!

-- 
Angus



Re: Using Qt designer

2003-06-04 Thread John Levon
On Tue, Jun 03, 2003 at 07:11:43PM +, Angus Leeming wrote:

 I'm trying to get to grips with Qt's designer (I am using Qt2's designer. I 
 think that's correct isn't it?)

Yes.

 You can see how I've grouped the various widgets together. Look Ok?

I would place the template combo at the top, as it is dominant over the
other stuff. And possibly make it a grooup box so it's obvious what is
in the text area. Even better, would be to change the visual look of the
text area so it's not sunken...

 My question: how do I tell them they're sitting in the LyX Display frame. 

They're probably there. If you drag the frame, do they follow ?

Right click in the frame and choose the option to lay out the children
as a grid, horiz or vert.

 Thereafter, how do I layout this frame within the whole dialog. Seems I've 
 got stuck.

Same thing. Generally if you lay it roughly out, then Layout as grid
works.

But don't worry too much, I can do details stuff if you like

regards
john



Re: Using Qt designer

2003-06-04 Thread Angus Leeming
John Levon wrote:

 You can see how I've grouped the various widgets together. Look Ok?
 
 I would place the template combo at the top, as it is dominant over the
 other stuff. And possibly make it a grooup box so it's obvious what is
 in the text area. Even better, would be to change the visual look of the
 text area so it's not sunken...

Well I've put the template at the top.

 But don't worry too much, I can do details stuff if you like

I'll continue to play willing.

I've connected the signals and slots and have added code to 
QExternal::update_contents and QExternal::apply.

Question. xforms has input filters. In this case I have 
fl_set_input_filter(dialog_-input_lyxscale, fl_unsigned_int_filter);

Is there any equivalent in the Qt code?

-- 
Angus



Re: Using Qt designer

2003-06-04 Thread John Levon
On Tue, Jun 03, 2003 at 08:02:23PM +, Angus Leeming wrote:

 Question. xforms has input filters. In this case I have 
 fl_set_input_filter(dialog_-input_lyxscale, fl_unsigned_int_filter);
 
 Is there any equivalent in the Qt code?

http://doc.trolltech.com/2.3/qlineedit.html#766d94

john


Re: Using Qt designer

2003-06-04 Thread Angus Leeming
John Levon wrote:

 On Tue, Jun 03, 2003 at 08:02:23PM +, Angus Leeming wrote:
 
 Question. xforms has input filters. In this case I have
 fl_set_input_filter(dialog_-input_lyxscale,
 fl_unsigned_int_filter);
 
 Is there any equivalent in the Qt code?
 
 http://doc.trolltech.com/2.3/qlineedit.html#766d94
 
 john

Hmmm. I guess you don't use it much:

$ grep setValidator * */* */*/*
QParagraphDialog.C: linespacingValue-setValidator(new 
QDoubleValidator(linespacingValue));

Any reason why not?

-- 
Angus



Re: Using Qt designer

2003-06-04 Thread John Levon
On Tue, Jun 03, 2003 at 08:28:46PM +, Angus Leeming wrote:

 Hmmm. I guess you don't use it much:
 Any reason why not?

Most of them are units dialogs. But no, no real reason for the others.

(bug: qtabular doesn't take units for the col width)

john


Using Qt designer

2003-06-04 Thread Angus Leeming
I'm trying to get to grips with Qt's designer (I am using Qt2's designer. I 
think that's correct isn't it?)

Attached is a screenshot of what I've got so far for the External dialog. 
I'm trying to add some widgets to control the appearence of the inset 
within LyX. Basically, I'm just copying the equivalent stuff in the 
Graphics dialog.

You can see how I've grouped the various widgets together. Look Ok?

My question: how do I tell them they're sitting in the "LyX Display" frame. 
Thereafter, how do I layout this frame within the whole dialog. Seems I've 
got stuck.

-- 
Angus<>

Re: Using Qt designer

2003-06-04 Thread Angus Leeming
Angus Leeming wrote:

> I'm trying to get to grips with Qt's designer (I am using Qt2's designer.
> I think that's correct isn't it?)
> 
> Attached is a screenshot of what I've got so far for the External dialog.
> I'm trying to add some widgets to control the appearence of the inset
> within LyX. Basically, I'm just copying the equivalent stuff in the
> Graphics dialog.
> 
> You can see how I've grouped the various widgets together. Look Ok?
> 
> My question: how do I tell them they're sitting in the "LyX Display"
> frame. Thereafter, how do I layout this frame within the whole dialog.
> Seems I've got stuck.

Ahhh! Click that lil' ol' grid icon on the toolbar. Once for the frame and 
once for the whole dialog. Too easy for an old codger!

-- 
Angus



Re: Using Qt designer

2003-06-04 Thread John Levon
On Tue, Jun 03, 2003 at 07:11:43PM +, Angus Leeming wrote:

> I'm trying to get to grips with Qt's designer (I am using Qt2's designer. I 
> think that's correct isn't it?)

Yes.

> You can see how I've grouped the various widgets together. Look Ok?

I would place the template combo at the top, as it is dominant over the
other stuff. And possibly make it a grooup box so it's obvious what is
in the text area. Even better, would be to change the visual look of the
text area so it's not sunken...

> My question: how do I tell them they're sitting in the "LyX Display" frame. 

They're probably there. If you drag the frame, do they follow ?

Right click in the frame and choose the option to lay out the children
as a grid, horiz or vert.

> Thereafter, how do I layout this frame within the whole dialog. Seems I've 
> got stuck.

Same thing. Generally if you lay it roughly out, then "Layout as grid"
works.

But don't worry too much, I can do details stuff if you like

regards
john



Re: Using Qt designer

2003-06-04 Thread Angus Leeming
John Levon wrote:

>> You can see how I've grouped the various widgets together. Look Ok?
> 
> I would place the template combo at the top, as it is dominant over the
> other stuff. And possibly make it a grooup box so it's obvious what is
> in the text area. Even better, would be to change the visual look of the
> text area so it's not sunken...

Well I've put the template at the top.

> But don't worry too much, I can do details stuff if you like

I'll continue to play willing.

I've connected the signals and slots and have added code to 
QExternal::update_contents and QExternal::apply.

Question. xforms has input filters. In this case I have 
fl_set_input_filter(dialog_->input_lyxscale, fl_unsigned_int_filter);

Is there any equivalent in the Qt code?

-- 
Angus



Re: Using Qt designer

2003-06-04 Thread John Levon
On Tue, Jun 03, 2003 at 08:02:23PM +, Angus Leeming wrote:

> Question. xforms has input filters. In this case I have 
> fl_set_input_filter(dialog_->input_lyxscale, fl_unsigned_int_filter);
> 
> Is there any equivalent in the Qt code?

http://doc.trolltech.com/2.3/qlineedit.html#766d94

john


Re: Using Qt designer

2003-06-04 Thread Angus Leeming
John Levon wrote:

> On Tue, Jun 03, 2003 at 08:02:23PM +, Angus Leeming wrote:
> 
>> Question. xforms has input filters. In this case I have
>> fl_set_input_filter(dialog_->input_lyxscale,
>> fl_unsigned_int_filter);
>> 
>> Is there any equivalent in the Qt code?
> 
> http://doc.trolltech.com/2.3/qlineedit.html#766d94
> 
> john

Hmmm. I guess you don't use it much:

$ grep setValidator * */* */*/*
QParagraphDialog.C: linespacingValue->setValidator(new 
QDoubleValidator(linespacingValue));

Any reason why not?

-- 
Angus



Re: Using Qt designer

2003-06-04 Thread John Levon
On Tue, Jun 03, 2003 at 08:28:46PM +, Angus Leeming wrote:

> Hmmm. I guess you don't use it much:
> Any reason why not?

Most of them are units dialogs. But no, no real reason for the others.

(bug: qtabular doesn't take units for the col width)

john