Re: #9759: "List of figures" navigation menu is not convenient

2015-10-01 Thread Guillaume Munch
Le 28/09/2015 19:56, Jürgen Spitzmüller a écrit : Am Montag 28 September 2015, 04:11:37 schrieb Guillaume Munch: The attached patch includes the above features along with other enhancements like a symbol that indicates disabled entries. (See description.) OK to commit? Looks very good. Thanks.

Re: #9759: "List of figures" navigation menu is not convenient

2015-09-28 Thread Jürgen Spitzmüller
Am Montag 28 September 2015, 04:11:37 schrieb Guillaume Munch: > The attached patch includes the above features along with other > enhancements like a symbol that indicates disabled entries. (See > description.) OK to commit? Looks very good. Thanks. Jürgen

Re: #9759: "List of figures" navigation menu is not convenient

2015-09-27 Thread Guillaume Munch
Le 18/09/2015 16:06, Cyrille Artho a écrit : Jürgen Spitzmüller wrote: 2015-09-18 2:37 GMT+02:00 Guillaume Munch mailto:g...@lyx.org>>: And in fact, I'd also like to navigate there directly. > > Navigation would be analoguous to sections that have subsections, so > this

Re: #9759: "List of figures" navigation menu is not convenient

2015-09-18 Thread Cyrille Artho
Jürgen Spitzmüller wrote: 2015-09-18 2:37 GMT+02:00 Guillaume Munch mailto:g...@lyx.org>>: And in fact, I'd also like to navigate there directly. > > Navigation would be analoguous to sections that have subsections, so > this seems just right to me. > >> Do you have a sit

Re: #9759: "List of figures" navigation menu is not convenient

2015-09-18 Thread Jürgen Spitzmüller
o the table if > you want to edit it). > > Actually it would make sense to show the float, but put the cursor inside > the caption. For instance if the caption is at the bottom of the float, the > screen would be filled with the bottom part of the float and the cursor > would be at th

Re: #9759: "List of figures" navigation menu is not convenient

2015-09-17 Thread Guillaume Munch
Sorry for the formatting issues, I don't know what happened. From http://www.lyx.org/trac/ticket/9759 : #9759: "List of figures" navigation menu is not convenient -+ Reporter: gadmm| Owner: gadmm Type: defect

Re: #9759: "List of figures" navigation menu is not convenient

2015-09-17 Thread Guillaume Munch
From http://www.lyx.org/trac/ticket/9759 : Le 16/09/2015 09:06, LyX Ticket Tracker a écrit : #9759: "List of figures" navigation menu is not convenient > -+ Reporter: gadmm > | Owner: gadmm Type: defect | Status

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-28 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: > | Georg> Angus Leeming wrote: >>> Jean-Marc Lasgouttes wrote: >>>> The two solutions I see are Figure/Table (use the G

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-28 Thread Jean-Marc Lasgouttes
>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Angus Leeming wrote: >> Jean-Marc Lasgouttes wrote: >>> The two solutions I see are Figure/Table (use the GUIName of the >>> float) or "List of Figures"/"List of

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-28 Thread Georg Baum
Angus Leeming wrote: > Jean-Marc Lasgouttes wrote: >> The two solutions I see are Figure/Table (use the GUIName of the >> float) or "List of Figures"/"List of Tables" (we have this string >> too). > >> Which one would you prefer? > > "List of Figures"/"List of Tables" Me too. Georg

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-28 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > The two solutions I see are Figure/Table (use the GUIName of the > float) or "List of Figures"/"List of Tables" (we have this string > too). > Which one would you prefer? "List of Figures"/"List of Tables" -- Angus

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-28 Thread Jean-Marc Lasgouttes
>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> I noticed that the Navigate menu contains "figure" and "table" Georg> (all frontends). I think that this should be "figures" and Georg> "tables". The

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-28 Thread Georg Baum
Juergen Spitzmueller wrote: > Unfortunately, I cannot verify if it works with gtk, because my gtkmm etc. > libs (and pkg-config) are totally messed up since the recent distro > update. But it compiles (this I could verify at least). > > I'd propose to shove it in, so that someone with working gtk

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-28 Thread Juergen Spitzmueller
Georg Baum wrote: > I was wondering about the recent encoding related changes. Can I still use > fromqstr/toqstr everywhere? I didn't encounter any problems by now. But OTOH I didn't really follow the encoding changes. Jürgen

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-28 Thread Georg Baum
Juergen Spitzmueller wrote: > Georg Baum wrote: >> Is the attached patch the >> correct solution? > > Yes. I was wondering about the recent encoding related changes. Can I still use fromqstr/toqstr everywhere? Georg

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-27 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | Unfortunately it does not compile for qt :-( Is the attached patch | the correct solution? Lars> Hmm does this mean that the check J-M added to avoid using Lars> implict conversion operators with Qt does not work? That's what I wa

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-27 Thread Juergen Spitzmueller
Georg Baum wrote: > Unfortunately it does not compile for qt :-( Oops. It compiles here. > Is the attached patch the > correct solution? Yes. Thanks, Jürgen

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-27 Thread Lars Gullik Bjønnes
Georg Baum <[EMAIL PROTECTED]> writes: | Juergen Spitzmueller wrote: > >> Unfortunately, I cannot verify if it works with gtk, because my gtkmm etc. >> libs (and pkg-config) are totally messed up since the recent distro >> update. But it compiles (this I could verify at least). > | Unfortunately i

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-27 Thread Georg Baum
Juergen Spitzmueller wrote: > Unfortunately, I cannot verify if it works with gtk, because my gtkmm etc. > libs (and pkg-config) are totally messed up since the recent distro > update. But it compiles (this I could verify at least). Unfortunately it does not compile for qt :-( Is the attached pat

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-27 Thread Lars Gullik Bjønnes
Juergen Spitzmueller <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> This looks good. It is verified (i.e. you have tested it) that this >> works for all frontends and fix the original problem that triggered >> this, then please commit it. > | Unfortunately, I cannot verify if it works

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-27 Thread Juergen Spitzmueller
Lars Gullik Bjønnes wrote: > This looks good. It is verified (i.e. you have tested it) that this > works for all frontends and fix the original problem that triggered > this, then please commit it. Unfortunately, I cannot verify if it works with gtk, because my gtkmm etc. libs (and pkg-config) ar

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-27 Thread Lars Gullik Bjønnes
Juergen Spitzmueller <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> And getGuiName should never be used for any comparisons... just to be >> displayed. So imo the translation should be done there... >> >> -... but... if the change to make that happen is "largish" then I'd go >>  with

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Lars Gullik Bjønnes wrote: >> And getGuiName should never be used for any comparisons... just to >> be displayed. So imo the translation should be done there... >> >> -... but... if the change to make that happen is "lar

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc Lasgouttes wrote: >> Do you plan to adapt it to 1.3.7cvs? Juergen> If I still have the energy once this is in. :) I have to say that you have been very patient on this one... JMarc

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Angus Leeming
Juergen Spitzmueller wrote: > Not at all. It's not more than the attached. Loverly! -- Angus

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Do you plan to adapt it to 1.3.7cvs? If I still have the energy once this is in. Jürgen

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Juergen Spitzmueller
Lars Gullik Bjønnes wrote: > And getGuiName should never be used for any comparisons... just to be > displayed. So imo the translation should be done there... > > -... but... if the change to make that happen is "largish" then I'd go >  with this proposed change and try to fix it proper in 1.5. No

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Lars Gullik Bjønnes
Juergen Spitzmueller <[EMAIL PROTECTED]> writes: | Angus Leeming wrote: >> Why is "Table of Contents" not translated? > | Because the result of getGuiName gets translated in the frontends. You cannot | translate a string twice, can you? | BTW, the string "Table of Contents" is marked in several o

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Jean-Marc Lasgouttes wrote: > >> But I guess you know by now that adding random transformation (like >> trim()) in helper functions just because you are lazy is not always a >> good idea ;) > | Of course, getGuiName(...) suggests a transformation whereas

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > But I guess you know by now that adding random transformation (like > trim()) in helper functions just because you are lazy is not always a > good idea ;) Of course, getGuiName(...) suggests a transformation whereas getString doesn't imply a trim. getTrimmedString, h

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Juergen Spitzmueller
Angus Leeming wrote: > Why is "Table of Contents" not translated? Because the result of getGuiName gets translated in the frontends. You cannot translate a string twice, can you? BTW, the string "Table of Contents" is marked in several other places, e.g. in QToc, GToc, FormToc. So it's already t

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Why is "Table of Contents" not translated? I guess that this Angus> question stems from my disbelief that you don't translate these Angus> strings until you get to QToc.C, etc. It is part of the fix to the bug. It happens that it w

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Angus Leeming
Juergen Spitzmueller wrote: > Juergen Spitzmueller wrote: >> Jean-Marc Lasgouttes wrote: >> > Except that I do not think this requires to create a vector. But I may >> > be mistaken. >> >> No, you're right. I'm just about to implement this. > > Attached. +string const getGuiName(string const & t

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Attached. But I cannot compile gtk at the moment, so somebody Juergen> has to test and adjust this. Juergen> Better? It looks very good to me. Do you plan to adapt it to 1.3.7cvs? JMarc

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Juergen Spitzmueller
Juergen Spitzmueller wrote: > Jean-Marc Lasgouttes wrote: > > Except that I do not think this requires to create a vector. But I may > > be mistaken. > > No, you're right. I'm just about to implement this. Attached. But I cannot compile gtk at the moment, so somebody has to test and adjust this.

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Except that I do not think this requires to create a vector. But I may > be mistaken. No, you're right. I'm just about to implement this. Jürgen

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc Lasgouttes wrote: >> Isn't it possible to use the index in the combox? This would avoid >> comparing translated strings, wouldn't it? Juergen> But the index differs depending on what kind of floats the Juergen>

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: >> Isn't it possible to use the index in the combox? This would avoid >> comparing translated strings, wouldn't it? Angus> Isn't that the "store a vector of "identifier strings" Angus> solution? Ie, use the combox index as the identifier

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Georg Baum
Juergen Spitzmueller wrote: > Jean-Marc Lasgouttes wrote: >> Isn't it possible to use the index in the combox? This would avoid >> comparing translated strings, wouldn't it? > > But the index differs depending on what kind of floats the document has. > Or do I misunderstand you? But for a given

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Isn't it possible to use the index in the combox? This would avoid > comparing translated strings, wouldn't it? But the index differs depending on what kind of floats the document has. Or do I misunderstand you? Jürgen

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Juergen> I had a look at this again. The problem is that we only have > Juergen> the translated names (from the combo) if we are requesting > Juergen> the contents of the toc browser. Since we cannot just > Juergen> "translate back", the only alternative to compare aga

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> I had a look at this again. The problem is that we only have Juergen> the translated names (from the combo) if we are requesting Juergen> the contents of the toc browser. Since we cannot just Juergen> "translate back", th

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Angus Leeming
Juergen Spitzmueller wrote: > Angus Leeming wrote: >> Haven't looked at the patch, but this is something that we do elsewhere. >> The clean and elegant solution, IMO, would be to have a LyXComboBox that >> derives from (or stores internally --- probably better) QComboBox which >> would store the "

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Juergen Spitzmueller
Angus Leeming wrote: > Haven't looked at the patch, but this is something that we do elsewhere. > The clean and elegant solution, IMO, would be to have a LyXComboBox that > derives from (or stores internally --- probably better) QComboBox which > would store the "identifier" string. QComboBox would

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Angus Leeming
Juergen Spitzmueller wrote: > I had a look at this again. The problem is that we only have the > translated names (from the combo) if we are requesting the contents of > the toc browser. Since we cannot just "translate back", the only > alternative to compare against translated strings is, AFAICS,

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-26 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > I do not like this much: > > +   FloatList::const_iterator it = floats.begin(); > +   FloatList::const_iterator end = floats.end(); > +   if (guiname == _("Table of Contents")) > +   return "TOC"; > +   for (; it != end; ++it) { > + 

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-08 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Juergen> You are probably right. I think about it a soon as I find > Juergen> time. What about the patch for 1.3.6? > > Yes, it is OK. I committed that, so that 1.3.6 can be released :-) I'm a bit busy with real work at the moment, but I will come back to the 1.4-pat

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-08 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> You are probably right. I think about it a soon as I find Juergen> time. What about the patch for 1.3.6? Yes, it is OK. JMarc

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-08 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > You should never have to compare against a translated value. I think > GUIName should be untranslated, and all translation should happen in > the frontends. > > So basically, I'd try to avoid using gettext at all in toc.C. You are probably right. I think about it a so

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-06 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc Lasgouttes wrote: >> I would really like to see a patch where only the type of float is >> used internally, and the GUI name is only for displaying. Juergen> I decided to do this properly now (use no translatab

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-05 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > I would really like to see a patch where only the type of float is > used internally, and the GUI name is only for displaying. I decided to do this properly now (use no translatable strings internally). Some new funtions were needed. See attached patch. For 1.3.6, I

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-04 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc Lasgouttes wrote: Yes. See my second patch. >> I saw that after sending my message. I prefer this version for >> 1.3.6cvs. Juergen> Which? The second? Juergen> Does that mean the (second) patch can be committ

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-04 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Juergen> Yes. See my second patch. > > I saw that after sending my message. I prefer this version for > 1.3.6cvs. Which? The second? Does that mean the (second) patch can be committed? Jürgen

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-04 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc Lasgouttes wrote: >> What about   floats().getType(type).name() where floats is a member >> of the textclass? Juergen> Yes. See my second patch. I saw that after sending my message. I prefer this version for 1

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-04 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > What about >   floats().getType(type).name() > where floats is a member of the textclass? Yes. See my second patch. > Juergen> Jean-Marc, this could also be a candidate for 1.3.6. > > I would really like to see a patch where only the type of float is > used internall

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-04 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> http://bugzilla.lyx.org/show_bug.cgi?id=1870 The problem was Juergen> that we compared two different string types (GuiName and Juergen> type), one of which is translatable, moreover. Juergen> The attached patch fixes it.

Re: [patch] Bug 1870: List of tables windows shows list of figures

2005-07-04 Thread Juergen Spitzmueller
Juergen Spitzmueller wrote: > The attached patch fixes it. It would be cleaner if there was a method to > get the GuiName from the type, but I have found no such method. Attached is a more general, IMO better solution. For 1.3.6, maybe the first patch would do. Jürgen Index: toc.C ==

[patch] Bug 1870: List of tables windows shows list of figures

2005-07-03 Thread Juergen Spitzmueller
http://bugzilla.lyx.org/show_bug.cgi?id=1870 The problem was that we compared two different string types (GuiName and type), one of which is translatable, moreover. The attached patch fixes it. It would be cleaner if there was a method to get the GuiName from the type, but I have found no such

Re: List of figures

2002-10-08 Thread Dekel Tsur
On Sun, Oct 06, 2002 at 12:53:27PM +0200, I Wayan Warmada wrote: > > Dear LyX-users, > I have a problem with the list of figures in LyX-1.3.0cvs. The long title > of the figures is not wrapped correctly (over the page boundary). Could > you please explain me how to solve the

Re: Problem in List of Figures ....

1999-01-12 Thread Jean-Marc Lasgouttes
x Sven> (attached) and select view dvi. Look at the figure-description Sven> in chapter 1 (page 4 or so). There's a "\dot m"-formula, which Sven> is all right in the .dvi file. Look now at the list of figures Sven> (page 3 or so) of the .dvi file, there's a strange

Problem in List of Figures ....

1999-01-12 Thread Sven Kopp
a "\dot m"-formula, which is all right in the .dvi file. Look now at the list of figures (page 3 or so) of the .dvi file, there's a strange combination of characters, but no "\dot m" at all. Any ideas ? Problem of LyX or a problem of TeX ? best regards and go on with you