Hello Baruch!
> The goals for the insetgraphics are to use the newer graphicx package in
Good!
> ... (smaller targets make for faster overall work) ...
True!
> Afterwards, I'll need to do the GraphicsCache and FormatConvertor
Ok! They should be general classes!
> 1. I'm using the GUIndependent code, and there is a show() method that is
Have a look at the newly (today;) added src/frontends/xforms/FormCitation.C!
> 2. I have the current scenario which I don't know how to handle:
> a. User clicks on a graphics inset, the edit dialog opens.
> b. User clicks in LyX on another graphics inset, it's edit dialog should
> open.
No I think as it is with other things you just should update the dialog
with the new values of the last clicked insetgraphics!
>
> 3. I hold a pointer to the inset (I clear it when I hide()), currently my
I guess that in the Destructor part of the inset there should be a clear
of the inset-pointer in the dialog if they are equal!
Something like:
ClearInsetPointer(InsetGraphics * ip)
{
if (local_inset_pointer == ip) {
local_inset_pointer = 0;
if (dialog_is_visible)
hide_dialog();
}
}
>
> 4. In the filename input should I verify that the file actually exists?
> I believe it's obvious I should, but I think it wasn't done so far.
>
I guess yes you should!
> 5. What about the file format? Should I be compatible with figinset, so as
No it should just be possible to eventually read old figinsets format when
we then use only the graphics-inset for this!
>
> 6. Message passing with the inset. currently I have a set/get-Params in
I guess this is alright as you have the inset-pointer!
>
> 7. Guarding against illegal input. I set up guarding from illegal input,
> specifically when there is any form of illegal input, the OK/Apply buttons
Yes!
>
> 8. Having menu options. The graphicx has quite a few options, some are
> ...
> Should I use a tabbed dialog or second dialog?
Use a tabbed one!
>
> 9. I wanted to change the radio buttons on the dialog to a choice button,
> any reason why not to?
> I have a problem doing it since I need to enter the percent character and
> I can't seem to do it correctly since the percent char is a special char
> for xforms. I couldn't find anything in xforms manual, I need to enter
> something like "% of Page", I tried \% and %%, the former did nothing the
> second showed only the % so if I did "%% of Page" I got "%", which is not
> a good idea.
Clueless, did you have a look at the xforms-manual?
>
> I think I'll stop here before I'll be hanged :-)
Would be really hard to get you :)
Jürgen
--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED]
Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450296
I-39100 Bozen Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
When in doubt, lead trump.