Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Pavel Sanda wrote: Juergen, i would like to have this in branch too. pavel OK, but I have some minor question and comments on the changes: Modified: lyx-devel/trunk/lib/ui/stdmenus.inc == ---

Re: [Patch] Outline Drag and Drop (Backend)

2009-06-26 Thread Pavel Sanda
Rob Oakes wrote: btw Rob, in this second mail you sent the attachment in (desirable) plain form, so one can comment on it directly, please remember how you did it :) thanks pavel

Re: More about tex2lyx and roundtrip

2009-06-26 Thread Jean-Marc Lasgouttes
rgheck rgh...@bobjweil.com writes: Yes, I have been following it, distantly, and am in effect endorsing the old solution, plus some additional granularity. Your worries about the new attempt seem to me reasonable ones. I'll let Uwe decide on what he wants to do. Nevertheless, concerning what

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Jürgen Spitzmüller wrote: Pavel Sanda wrote: Juergen, i would like to have this in branch too. pavel OK, but I have some minor question and comments on the changes: Modified: lyx-devel/trunk/lib/ui/stdmenus.inc

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Pavel Sanda wrote: + OptItem Toggle locking property|T vc-locking-toggle Please unify the casing, i.e. Toggle Locking Property|T will fix it Also, I'm not sure I understood this feature, but wouldn't a string such as Lock File in Repository be more adequate? No,

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Jürgen Spitzmüller wrote: Pavel Sanda wrote: + OptItem Toggle locking property|T vc-locking-toggle Please unify the casing, i.e. Toggle Locking Property|T will fix it Also, I'm not sure I understood this feature, but wouldn't a string such as Lock File in

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Pavel Sanda wrote: But if it's a toggle, how is the user supposed to see whether s/he toggles the locking mechanism on or off? its very similar to register function. if you used it you have to remember until you commit it. once you commit it, it can be recognized by the state of the

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jean-Marc Lasgouttes
Pavel Sanda sa...@lyx.org writes: Also, I'm not sure I understood this feature, but wouldn't a string such as Lock File in Repository be more adequate? No, because it doesn't lock anything. Locking is done by svn when updating/commiting and this command just tells svn that it should use

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Pavel Sanda wrote: i was wrong that we do not use automatical check of properties once we are under svn control -- we use it... which leads me to the idea how to add revision info into bufferparams in the current state of things :) pavel

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Pavel Sanda wrote: you can recognize locking state enabled by title and vc toolbar once you commited it. So why don't you use that information to set flag.setOnOff and rename the menu entry to Use Locking Property? Menu items should be self-explanatory, without the need to memorize actions or

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: #: lib/ui/stdcontext.inc:133 msgid Toggle Label|L -- Of these, only the last one is interesting, since we do not change classic.ui anymore (although we may want to make them in line with default?) This last one should changed to Show Label, Indeed. but I do

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: Of these, only the last one is interesting, since we do not change classic.ui anymore (although we may want to make them in line with default?) This last one should changed to Show Label, Indeed. Since the checkbox was already there, I just changed the

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: Since the checkbox was already there, I just changed the string. As far as branch is concerned, we have some more occurrences. See attached patch. Before I commit: is this part OK or did the semantics of math-number- toggle change in trunk? - OptItem

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: As far as branch is concerned, we have some more occurrences. See attached patch. Before I commit: is this part OK or did the semantics of math-number- toggle change in trunk? - OptItem Toggle Labeling/Numbering|T math-number-toggle +

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: So you mean Use Locking Property ? yes. I do not like the verb toggle in the UI context. Feel free to suggest better naming. We use it anyway in different UIs $ cat cs.po|grep -i toggle|grep -v ^#|wc -l 16 This kind of grepping is irrelevant. The

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Pavel Sanda wrote: This kind of grepping is irrelevant. The question here is about menus. i didnt get you talk only about menus. is there any way how to make toolbar icon tristate? What do you mean by tristate? Toolbar buttons also have the onOff and enabled/disabled facility. Jürgen

Re: r30267 - lyx-devel/trunk/src

2009-06-26 Thread Jürgen Spitzmüller
sanda wrote: if (enable) flag.setOnOff(!buf-lyxvc().locker().empty()); or rather flag.setOnOff(enabled !buf-lyxvc().locker().empty()); ? Jürgen

Re: r30267 - lyx-devel/trunk/src

2009-06-26 Thread Pavel Sanda
Jürgen Spitzmüller wrote: sanda wrote: if (enable) flag.setOnOff(!buf-lyxvc().locker().empty()); or rather flag.setOnOff(enabled !buf-lyxvc().locker().empty()); ? i thought in disabled state you wont recognize toolbar on/off. i will fix it.

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Jürgen Spitzmüller wrote: Pavel Sanda wrote: This kind of grepping is irrelevant. The question here is about menus. i didnt get you talk only about menus. is there any way how to make toolbar icon tristate? What do you mean by tristate? Toolbar buttons also have the onOff and

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Jürgen Spitzmüller wrote: +string LyXVC::lockingToggle() +{ + LYXERR(Debug::LYXVC, LyXVC: toggle locking property); + return vcs-lockingToggle(); Here, you don't need to check if vcs is valid, i.e. return vcs vcs-lockingToggle(); as in lockingToggleEnabled() below?

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Pavel Sanda wrote: i meant enabled_on/enabled_off/disable. and i saw meanwhile it works... hope you are more happy now ;) Yes. Thanks. Jürgen

Warning in branch

2009-06-26 Thread Pavel Sanda
currently i see GuiImage.cpp: In member function 'bool lyx::graphics::GuiImage::scale(const lyx::graphics::Params)': GuiImage.cpp:168: warning: comparison of unsigned expression 0 is always false which is because unsigned int scale; if (params.scale 0 || params.scale == 100)

Re: Wiki question

2009-06-26 Thread Paul A. Rubin
Christian Ridderström wrote: Feel free to correct the title, e.g. by adding this: (:title AMS (for LyX 1.4.x and 1.5.x) :) or whatever title text you want. Tried that, but it broke the entry on the page list for the Layouts section (the link to the Layouts/AMS page was there, but the

Re: Wiki question

2009-06-26 Thread Paul A. Rubin
Christian Ridderström wrote: Btw, I think you should add a list of contributors, and some way to get in contact (which could of course be through the users' or developers' list). Ok, I put a hint about this at the top of LyX/Modules and took the blame for the two sets of files I

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread rgheck
Pavel Sanda wrote: Abdelrazak Younes wrote: Is this InsetCounter a good idea? Could this be based on InsetFlex? i would use such kind of inset myself and have already been thinking how to add it ;) (maybe named counters for more counters in named document and master/child usage).

Re: More about tex2lyx and roundtrip

2009-06-26 Thread rgheck
Jean-Marc Lasgouttes wrote: rgheck rgh...@bobjweil.com writes: Yes, I have been following it, distantly, and am in effect endorsing the old solution, plus some additional granularity. Your worries about the new attempt seem to me reasonable ones. I'll let Uwe decide on what he wants

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread Pavel Sanda
Richard Heck wrote: Pavel Sanda wrote: Abdelrazak Younes wrote: Is this InsetCounter a good idea? Could this be based on InsetFlex? i would use such kind of inset myself and have already been thinking how to add it ;) (maybe named counters for more counters in named document and

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread rgheck
Pavel Sanda wrote: Richard Heck wrote: Pavel Sanda wrote: Abdelrazak Younes wrote: Is this InsetCounter a good idea? Could this be based on InsetFlex? i would use such kind of inset myself and have already been thinking how to add it ;) (maybe named counters

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread Pavel Sanda
Richard Heck wrote: Is this InsetCounter a good idea? Could this be based on InsetFlex? i would use such kind of inset myself and have already been thinking how to add it ;) (maybe named counters for more counters in named document and master/child usage). I think

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread Jean-Marc Lasgouttes
i want some inset, which i can put anywhere in the text which output single number which is incremented + 1 to previous inset. and i do not want to edit some preamble stuff to do this, just something from the insert menu, as any normal user would expect. So you want an object that does

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Vincent van Ravesteijn
Also, I'm not sure I understood this feature, but wouldn't a string such as Lock File in Repository be more adequate? I do not like the verb toggle in the UI context. Also, I would use a menu checkbox (FuncFlags::setOnOff) that is checked if the file is locked. Then you'd have three states:

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Vincent van Ravesteijn
Jürgen Spitzmüller schreef: Jürgen Spitzmüller wrote: Since the checkbox was already there, I just changed the string. As far as branch is concerned, we have some more occurrences. See attached patch. Before I commit: is this part OK or did the semantics of math-number- toggle

Re: Warning in branch

2009-06-26 Thread Vincent van Ravesteijn
Pavel Sanda schreef: currently i see GuiImage.cpp: In member function 'bool lyx::graphics::GuiImage::scale(const lyx::graphics::Params)': GuiImage.cpp:168: warning: comparison of unsigned expression 0 is always false which is because unsigned int scale; if (params.scale 0 ||

Re: Wiki question

2009-06-26 Thread Christian Ridderström
On Fri, 26 Jun 2009, Paul A. Rubin wrote: Christian Ridderström wrote: Btw, I think you should add a list of contributors, and some way to get in contact (which could of course be through the users' or developers' list). Ok, I put a hint about this at the top of LyX/Modules and took the

Re: Wiki question

2009-06-26 Thread Christian Ridderström
On Fri, 26 Jun 2009, Paul A. Rubin wrote: Christian Ridderström wrote: Feel free to correct the title, e.g. by adding this: (:title AMS (for LyX 1.4.x and 1.5.x) :) or whatever title text you want. Tried that, but it broke the entry on the page list for the Layouts section (the link

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread rgheck
Pavel Sanda wrote: Richard Heck wrote: how i do it in lyx? o we have some module? It depends exactly what you need, but you can define counters like this: i want some inset, which i can put anywhere in the text which output single number which is incremented + 1 to

Re: Wiki question

2009-06-26 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: Ok, I put a hint about this at the top of LyX/Modules and took the blame for the two sets of files I uploaded. Incidentally, I noticed that the Modules upload directory already existed and contained a file (nomindex.module), but I have no idea who the donor is (not listed

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Vincent van Ravesteijn wrote: Shouldn't it be Number Whole Formula|N and Number This Line, as I read that the casing should be unified ? Yes. The stdcontext file is not very coherent in style. I'll fix that. Jürgen

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: Vincent van Ravesteijn wrote: Shouldn't it be Number Whole Formula|N and Number This Line, as I read that the casing should be unified ? Yes. The stdcontext file is not very coherent in style. And not only that. After re-consulting a HIG (the Gnome HIG since

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > Juergen, i would like to have this in branch too. pavel OK, but I have some minor question and comments on the changes: >Modified: lyx-devel/trunk/lib/ui/stdmenus.inc > >== ---

Re: [Patch] Outline Drag and Drop (Backend)

2009-06-26 Thread Pavel Sanda
Rob Oakes wrote: btw Rob, in this second mail you sent the attachment in (desirable) plain form, so one can comment on it directly, please remember how you did it :) thanks pavel

Re: More about tex2lyx and roundtrip

2009-06-26 Thread Jean-Marc Lasgouttes
rgheck writes: > Yes, I have been following it, distantly, and am in effect endorsing > the old solution, plus some additional granularity. Your worries about > the new attempt seem to me reasonable ones. I'll let Uwe decide on what he wants to do. Nevertheless, concerning

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > Pavel Sanda wrote: > > Juergen, i would like to have this in branch too. pavel > > OK, but I have some minor question and comments on the changes: > > >Modified: lyx-devel/trunk/lib/ui/stdmenus.inc >

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > > >+ OptItem "Toggle locking property|T" "vc-locking-toggle" > > > > Please unify the casing, i.e. "Toggle Locking Property|T" > > will fix it > > > Also, I'm not sure I understood this feature, but wouldn't a string such > > as "Lock File in Repository" be more

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > Pavel Sanda wrote: > > > >+ OptItem "Toggle locking property|T" "vc-locking-toggle" > > > > > > Please unify the casing, i.e. "Toggle Locking Property|T" > > > > will fix it > > > > > Also, I'm not sure I understood this feature, but wouldn't a string such

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Pavel Sanda wrote: > > But if it's a toggle, how is the user supposed to see whether s/he toggles > > the > > locking mechanism on or off? > > its very similar to register function. if you used it you have to remember > until > you commit it. once you commit it, it can be recognized by the

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jean-Marc Lasgouttes
Pavel Sanda writes: >> Also, I'm not sure I understood this feature, but wouldn't a string such as >> "Lock File in Repository" be more adequate? > > No, because it doesn't lock anything. Locking is done by svn when > updating/commiting and this command just tells svn that it

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Pavel Sanda wrote: > i was wrong that we do not use automatical check of properties once we are > under svn control -- we use it... which leads me to the idea how to add revision info into bufferparams in the current state of things :) pavel

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > you can recognize locking state enabled by title and vc toolbar > once you commited it. So why don't you use that information to set flag.setOnOff and rename the menu entry to "Use Locking Property"? Menu items should be self-explanatory, without the need to memorize

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > #: lib/ui/stdcontext.inc:133 > msgid "Toggle Label|L" > -- > > Of these, only the last one is interesting, since we do not change > classic.ui anymore (although we may want to make them in line with > default?) > > This last one should changed to "Show Label",

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > > Of these, only the last one is interesting, since we do not change > > classic.ui anymore (although we may want to make them in line with > > default?) > > > > This last one should changed to "Show Label", > > Indeed. Since the checkbox was already there, I just

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > Since the checkbox was already there, I just changed the string. As far as branch is concerned, we have some more occurrences. See attached patch. Before I commit: is this part OK or did the semantics of math-number- toggle change in trunk? - OptItem

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > As far as branch is concerned, we have some more occurrences. See attached > patch. Before I commit: is this part OK or did the semantics of > math-number- toggle change in trunk? > > - OptItem "Toggle Labeling/Numbering|T" "math-number-toggle" > +

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: > So you mean "Use Locking Property" ? yes. > >>I do not like the verb "toggle" in > >> the UI context. > > > > Feel free to suggest better naming. We use it anyway in different UIs > > $ cat cs.po|grep -i toggle|grep -v ^#|wc -l > > 16 > > This kind of grepping

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > > This kind of grepping is irrelevant. The question here is about menus. > > i didnt get you talk only about menus. is there any way how to make > toolbar icon tristate? What do you mean by "tristate"? Toolbar buttons also have the onOff and enabled/disabled facility.

Re: r30267 - lyx-devel/trunk/src

2009-06-26 Thread Jürgen Spitzmüller
sanda wrote: > if (enable) > flag.setOnOff(!buf->lyxvc().locker().empty()); or rather flag.setOnOff(enabled && !buf->lyxvc().locker().empty()); ? Jürgen

Re: r30267 - lyx-devel/trunk/src

2009-06-26 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > sanda wrote: > > if (enable) > > flag.setOnOff(!buf->lyxvc().locker().empty()); > > or rather > flag.setOnOff(enabled && !buf->lyxvc().locker().empty()); > ? i thought in disabled state you wont recognize toolbar on/off. i

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > Pavel Sanda wrote: > > > This kind of grepping is irrelevant. The question here is about menus. > > > > i didnt get you talk only about menus. is there any way how to make > > toolbar icon tristate? > > What do you mean by "tristate"? Toolbar buttons also have the

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > >+string LyXVC::lockingToggle() > >+{ > >+ LYXERR(Debug::LYXVC, "LyXVC: toggle locking property"); > >+ return vcs->lockingToggle(); > > Here, you don't need to check if vcs is valid, i.e. > > return vcs && vcs->lockingToggle(); > > as in

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > i meant enabled_on/enabled_off/disable. and i saw meanwhile it works... > hope you are more happy now ;) Yes. Thanks. Jürgen

Warning in branch

2009-06-26 Thread Pavel Sanda
currently i see GuiImage.cpp: In member function 'bool lyx::graphics::GuiImage::scale(const lyx::graphics::Params&)': GuiImage.cpp:168: warning: comparison of unsigned expression < 0 is always false which is because unsigned int scale; if (params.scale < 0 || params.scale == 100)

Re: Wiki question

2009-06-26 Thread Paul A. Rubin
Christian Ridderström wrote: Feel free to correct the title, e.g. by adding this: (:title AMS (for LyX 1.4.x and 1.5.x) :) or whatever title text you want. Tried that, but it "broke" the entry on the page list for the Layouts section (the link to the Layouts/AMS page was there, but the

Re: Wiki question

2009-06-26 Thread Paul A. Rubin
Christian Ridderström wrote: Btw, I think you should add a list of contributors, and some way to get in contact (which could of course be through the users' or developers' list). Ok, I put a hint about this at the top of LyX/Modules and took the blame for the two sets of files I

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread rgheck
Pavel Sanda wrote: Abdelrazak Younes wrote: Is this InsetCounter a good idea? Could this be based on InsetFlex? i would use such kind of inset myself and have already been thinking how to add it ;) (maybe named counters for more counters in named document and master/child usage).

Re: More about tex2lyx and roundtrip

2009-06-26 Thread rgheck
Jean-Marc Lasgouttes wrote: rgheck writes: Yes, I have been following it, distantly, and am in effect endorsing the old solution, plus some additional granularity. Your worries about the new attempt seem to me reasonable ones. I'll let Uwe decide on what he wants

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread Pavel Sanda
Richard Heck wrote: > Pavel Sanda wrote: >> Abdelrazak Younes wrote: >> >>> Is this InsetCounter a good idea? Could this be based on InsetFlex? >>> >> >> i would use such kind of inset myself and have already been thinking >> how to add it ;) (maybe named counters for more counters in

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread rgheck
Pavel Sanda wrote: Richard Heck wrote: Pavel Sanda wrote: Abdelrazak Younes wrote: Is this InsetCounter a good idea? Could this be based on InsetFlex? i would use such kind of inset myself and have already been thinking how to add it ;) (maybe named counters

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread Pavel Sanda
Richard Heck wrote: > Is this InsetCounter a good idea? Could this be based on InsetFlex? > i would use such kind of inset myself and have already been thinking how to add it ;) (maybe named counters for more counters in named document and master/child

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread Jean-Marc Lasgouttes
i want some inset, which i can put anywhere in the text which output single number which is incremented + 1 to previous inset. and i do not want to edit some preamble stuff to do this, just something from the insert menu, as any normal user would expect. So you want an object that does

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Vincent van Ravesteijn
Also, I'm not sure I understood this feature, but wouldn't a string such as "Lock File in Repository" be more adequate? I do not like the verb "toggle" in the UI context. Also, I would use a menu checkbox (FuncFlags::setOnOff) that is checked if the file is locked. Then you'd have three

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Vincent van Ravesteijn
Jürgen Spitzmüller schreef: Jürgen Spitzmüller wrote: Since the checkbox was already there, I just changed the string. As far as branch is concerned, we have some more occurrences. See attached patch. Before I commit: is this part OK or did the semantics of math-number- toggle

Re: Warning in branch

2009-06-26 Thread Vincent van Ravesteijn
Pavel Sanda schreef: currently i see GuiImage.cpp: In member function 'bool lyx::graphics::GuiImage::scale(const lyx::graphics::Params&)': GuiImage.cpp:168: warning: comparison of unsigned expression < 0 is always false which is because unsigned int scale; if (params.scale < 0 ||

Re: Wiki question

2009-06-26 Thread Christian Ridderström
On Fri, 26 Jun 2009, Paul A. Rubin wrote: Christian Ridderström wrote: Btw, I think you should add a list of contributors, and some way to get in contact (which could of course be through the users' or developers' list). Ok, I put a hint about this at the top of LyX/Modules and took the

Re: Wiki question

2009-06-26 Thread Christian Ridderström
On Fri, 26 Jun 2009, Paul A. Rubin wrote: Christian Ridderström wrote: Feel free to correct the title, e.g. by adding this: (:title AMS (for LyX 1.4.x and 1.5.x) :) or whatever title text you want. Tried that, but it "broke" the entry on the page list for the Layouts section (the

Re: Howto create a counter in LyX? Do we need an InsetCounter? Or an InsetTask?

2009-06-26 Thread rgheck
Pavel Sanda wrote: Richard Heck wrote: how i do it in lyx? o we have some module? It depends exactly what you need, but you can define counters like this: i want some inset, which i can put anywhere in the text which output single number which is incremented + 1 to

Re: Wiki question

2009-06-26 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: > Ok, I put a hint about this at the top of LyX/Modules and took the blame > for the two sets of files I uploaded. Incidentally, I noticed that the > Modules upload directory already existed and contained a file > (nomindex.module), but I have no idea who the donor is (not

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Vincent van Ravesteijn wrote: > Shouldn't it be "Number Whole Formula|N" and "Number This Line", as I > read that the casing should be unified ? Yes. The stdcontext file is not very coherent in style. I'll fix that. Jürgen

Re: r30255 - in lyx-devel/trunk: lib/doc lib/images lib/ui src

2009-06-26 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > Vincent van Ravesteijn wrote: > > Shouldn't it be "Number Whole Formula|N" and "Number This Line", as I > > read that the casing should be unified ? > > Yes. The stdcontext file is not very coherent in style. And not only that. After re-consulting a HIG (the Gnome HIG