Re: Making a tab read-only?

2012-06-27 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 20:55, Liviu Andronic wrote:
 On Tue, Jun 26, 2012 at 6:02 PM, Steve Litt sl...@troubleshooters.com wrote:
 I like the idea of a read-only tab via Documents-Disable Editing, but then 
 again, I'm lousy 
 at C++, know nothing about Qt-4, and therefore am unlikely to help with the 
 addition.
 
 No need for that. LyX already features an internal function to disable the 
 editing, and I've 
 already provided a patch that adds the item to the menus. Now it is only a 
 matter of the core 
 LyX developers to approve (or not) of the modification.

As the manual points out, this function does not work on files under version 
control, which is a
problem for me, as nearly all my larger documents are under version control.

I would need one which also works for files under vesion control.

Cheers,

Rainer


 
 Liviu
 
 PS Anyone interested in the feature can easily copy/paste the config info 
 from the bug report, 
 to add this item to your local LyX installation. It's very simple.
 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/qvn4ACgkQoYgNqgF2egrwKgCfS3XZXc73o+sdHb0ARoaj+c8Y
f5QAn1RSspPzyqsca8LiUQgy97wXYlk3
=7ka2
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-27 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 27/06/12 10:04, Rainer M Krug wrote:
 On 26/06/12 20:55, Liviu Andronic wrote:
 On Tue, Jun 26, 2012 at 6:02 PM, Steve Litt sl...@troubleshooters.com 
 wrote:
 I like the idea of a read-only tab via Documents-Disable Editing, but then 
 again, I'm
 lousy at C++, know nothing about Qt-4, and therefore am unlikely to help 
 with the
 addition.
 
 No need for that. LyX already features an internal function to disable the 
 editing, and I've
  already provided a patch that adds the item to the menus. Now it is only a 
 matter of the
 core LyX developers to approve (or not) of the modification.
 
 As the manual points out, this function does not work on files under version 
 control, which is
 a problem for me, as nearly all my larger documents are under version control.
 
 I would need one which also works for files under vesion control.
 
 Cheers,
 
 Rainer
 
 
 
 Liviu
 
 PS Anyone interested in the feature can easily copy/paste the config info 
 from the bug
 report, to add this item to your local LyX installation. It's very simple.

I just re-opend the ticked http://http://www.lyx.org/trac/ticket/6692 and added 
to make the
function buffer-toggle-read-only should also be working on version controlled 
files, or an
alternactive function be created.

Cheers,

Rainer

 
 
 
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/qv9cACgkQoYgNqgF2egogoQCgibWVwrEII0npO1v3tZE4j1Zf
71YAn2RVonTcF/FWBQt8Yjgx2xkD0hAk
=s7Ae
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-27 Thread Liviu Andronic
On Wed, Jun 27, 2012 at 10:09 AM, Rainer M Krug r.m.k...@gmail.com wrote:
 I just re-opend the ticked http://http://www.lyx.org/trac/ticket/6692 and 
 added to make the
 function buffer-toggle-read-only should also be working on version controlled 
 files, or an
 alternactive function be created.

I would suggest opening a different bug report for that. This one
deals specifically with the GUI availability of the function, while
the 'version control' issue is more likely to get noticed and
addressed in a separate report.

Liviu


Re: Making a tab read-only?

2012-06-27 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 27/06/12 11:10, Liviu Andronic wrote:
 On Wed, Jun 27, 2012 at 10:09 AM, Rainer M Krug r.m.k...@gmail.com wrote:
 I just re-opend the ticked http://http://www.lyx.org/trac/ticket/6692 and 
 added to make the 
 function buffer-toggle-read-only should also be working on version 
 controlled files, or an 
 alternactive function be created.
 
 I would suggest opening a different bug report for that. This one deals 
 specifically with the
 GUI availability of the function, while the 'version control' issue is more 
 likely to get
 noticed and addressed in a separate report.

True - done:

http://www.lyx.org/trac/ticket/8228

Rainer

 
 Liviu
 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/q2jcACgkQoYgNqgF2egpF6QCeMBy07BlQkmBz8UVgEoIQGLlv
TzoAnAuxax0htflY6Vy8WzQ+j9MkGGEO
=SHUi
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-27 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 20:55, Liviu Andronic wrote:
 On Tue, Jun 26, 2012 at 6:02 PM, Steve Litt sl...@troubleshooters.com wrote:
 I like the idea of a read-only tab via Documents-Disable Editing, but then 
 again, I'm lousy 
 at C++, know nothing about Qt-4, and therefore am unlikely to help with the 
 addition.
 
 No need for that. LyX already features an internal function to disable the 
 editing, and I've 
 already provided a patch that adds the item to the menus. Now it is only a 
 matter of the core 
 LyX developers to approve (or not) of the modification.

As the manual points out, this function does not work on files under version 
control, which is a
problem for me, as nearly all my larger documents are under version control.

I would need one which also works for files under vesion control.

Cheers,

Rainer


 
 Liviu
 
 PS Anyone interested in the feature can easily copy/paste the config info 
 from the bug report, 
 to add this item to your local LyX installation. It's very simple.
 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/qvn4ACgkQoYgNqgF2egrwKgCfS3XZXc73o+sdHb0ARoaj+c8Y
f5QAn1RSspPzyqsca8LiUQgy97wXYlk3
=7ka2
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-27 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 27/06/12 10:04, Rainer M Krug wrote:
 On 26/06/12 20:55, Liviu Andronic wrote:
 On Tue, Jun 26, 2012 at 6:02 PM, Steve Litt sl...@troubleshooters.com 
 wrote:
 I like the idea of a read-only tab via Documents-Disable Editing, but then 
 again, I'm
 lousy at C++, know nothing about Qt-4, and therefore am unlikely to help 
 with the
 addition.
 
 No need for that. LyX already features an internal function to disable the 
 editing, and I've
  already provided a patch that adds the item to the menus. Now it is only a 
 matter of the
 core LyX developers to approve (or not) of the modification.
 
 As the manual points out, this function does not work on files under version 
 control, which is
 a problem for me, as nearly all my larger documents are under version control.
 
 I would need one which also works for files under vesion control.
 
 Cheers,
 
 Rainer
 
 
 
 Liviu
 
 PS Anyone interested in the feature can easily copy/paste the config info 
 from the bug
 report, to add this item to your local LyX installation. It's very simple.

I just re-opend the ticked http://http://www.lyx.org/trac/ticket/6692 and added 
to make the
function buffer-toggle-read-only should also be working on version controlled 
files, or an
alternactive function be created.

Cheers,

Rainer

 
 
 
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/qv9cACgkQoYgNqgF2egogoQCgibWVwrEII0npO1v3tZE4j1Zf
71YAn2RVonTcF/FWBQt8Yjgx2xkD0hAk
=s7Ae
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-27 Thread Liviu Andronic
On Wed, Jun 27, 2012 at 10:09 AM, Rainer M Krug r.m.k...@gmail.com wrote:
 I just re-opend the ticked http://http://www.lyx.org/trac/ticket/6692 and 
 added to make the
 function buffer-toggle-read-only should also be working on version controlled 
 files, or an
 alternactive function be created.

I would suggest opening a different bug report for that. This one
deals specifically with the GUI availability of the function, while
the 'version control' issue is more likely to get noticed and
addressed in a separate report.

Liviu


Re: Making a tab read-only?

2012-06-27 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 27/06/12 11:10, Liviu Andronic wrote:
 On Wed, Jun 27, 2012 at 10:09 AM, Rainer M Krug r.m.k...@gmail.com wrote:
 I just re-opend the ticked http://http://www.lyx.org/trac/ticket/6692 and 
 added to make the 
 function buffer-toggle-read-only should also be working on version 
 controlled files, or an 
 alternactive function be created.
 
 I would suggest opening a different bug report for that. This one deals 
 specifically with the
 GUI availability of the function, while the 'version control' issue is more 
 likely to get
 noticed and addressed in a separate report.

True - done:

http://www.lyx.org/trac/ticket/8228

Rainer

 
 Liviu
 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/q2jcACgkQoYgNqgF2egpF6QCeMBy07BlQkmBz8UVgEoIQGLlv
TzoAnAuxax0htflY6Vy8WzQ+j9MkGGEO
=SHUi
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-27 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 20:55, Liviu Andronic wrote:
> On Tue, Jun 26, 2012 at 6:02 PM, Steve Litt  wrote:
>> I like the idea of a read-only tab via Documents->Disable Editing, but then 
>> again, I'm lousy 
>> at C++, know nothing about Qt-4, and therefore am unlikely to help with the 
>> addition.
>> 
> No need for that. LyX already features an internal function to disable the 
> editing, and I've 
> already provided a patch that adds the item to the menus. Now it is only a 
> matter of the core 
> LyX developers to approve (or not) of the modification.

As the manual points out, this function does not work on files under version 
control, which is a
problem for me, as nearly all my larger documents are under version control.

I would need one which also works for files under vesion control.

Cheers,

Rainer


> 
> Liviu
> 
> PS Anyone interested in the feature can easily copy/paste the config info 
> from the bug report, 
> to add this item to your local LyX installation. It's very simple.
> 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/qvn4ACgkQoYgNqgF2egrwKgCfS3XZXc73o+sdHb0ARoaj+c8Y
f5QAn1RSspPzyqsca8LiUQgy97wXYlk3
=7ka2
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-27 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 27/06/12 10:04, Rainer M Krug wrote:
> On 26/06/12 20:55, Liviu Andronic wrote:
>> On Tue, Jun 26, 2012 at 6:02 PM, Steve Litt  
>> wrote:
>>> I like the idea of a read-only tab via Documents->Disable Editing, but then 
>>> again, I'm
>>> lousy at C++, know nothing about Qt-4, and therefore am unlikely to help 
>>> with the
>>> addition.
>>> 
>> No need for that. LyX already features an internal function to disable the 
>> editing, and I've
>>  already provided a patch that adds the item to the menus. Now it is only a 
>> matter of the
>> core LyX developers to approve (or not) of the modification.
> 
> As the manual points out, this function does not work on files under version 
> control, which is
> a problem for me, as nearly all my larger documents are under version control.
> 
> I would need one which also works for files under vesion control.
> 
> Cheers,
> 
> Rainer
> 
> 
> 
>> Liviu
> 
>> PS Anyone interested in the feature can easily copy/paste the config info 
>> from the bug
>> report, to add this item to your local LyX installation. It's very simple.

I just re-opend the ticked http://http://www.lyx.org/trac/ticket/6692 and added 
to make the
function buffer-toggle-read-only should also be working on version controlled 
files, or an
alternactive function be created.

Cheers,

Rainer

> 
> 
> 
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/qv9cACgkQoYgNqgF2egogoQCgibWVwrEII0npO1v3tZE4j1Zf
71YAn2RVonTcF/FWBQt8Yjgx2xkD0hAk
=s7Ae
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-27 Thread Liviu Andronic
On Wed, Jun 27, 2012 at 10:09 AM, Rainer M Krug  wrote:
> I just re-opend the ticked http://http://www.lyx.org/trac/ticket/6692 and 
> added to make the
> function buffer-toggle-read-only should also be working on version controlled 
> files, or an
> alternactive function be created.
>
I would suggest opening a different bug report for that. This one
deals specifically with the GUI availability of the function, while
the 'version control' issue is more likely to get noticed and
addressed in a separate report.

Liviu


Re: Making a tab read-only?

2012-06-27 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 27/06/12 11:10, Liviu Andronic wrote:
> On Wed, Jun 27, 2012 at 10:09 AM, Rainer M Krug  wrote:
>> I just re-opend the ticked http://http://www.lyx.org/trac/ticket/6692 and 
>> added to make the 
>> function buffer-toggle-read-only should also be working on version 
>> controlled files, or an 
>> alternactive function be created.
>> 
> I would suggest opening a different bug report for that. This one deals 
> specifically with the
> GUI availability of the function, while the 'version control' issue is more 
> likely to get
> noticed and addressed in a separate report.

True - done:

http://www.lyx.org/trac/ticket/8228

Rainer

> 
> Liviu
> 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/q2jcACgkQoYgNqgF2egpF6QCeMBy07BlQkmBz8UVgEoIQGLlv
TzoAnAuxax0htflY6Vy8WzQ+j9MkGGEO
=SHUi
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug r.m.k...@gmail.com wrote:
 My Problem: I would like to avoid that I accidentally change something in the 
 other documents and
 save it.

Have been there..


 Is it at the moment possible to make a tab as read-only or, if not, could 
 this be easily be
 implemented? I consider this a useful feature for cases like mine at the 
 moment.

Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.

I proposed to include a 'Documents  Disable Editing' menu entry that
would mark a document as read-only for the given LyX session. You can
easily re-enable editing via the same menu item.

The bug was resolved as 'wontfix' because of lack of interest for that
feature. For the record, I still think that this feature is very
useful and I would (again) propose to include it in base LyX. (For
example, LibreOffice has this feature via a 'Edit File' toggle
button.)

Regards
Liviu

PS Right now the bugtracker seems down.


Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 14:52, Liviu Andronic wrote:
 On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug r.m.k...@gmail.com wrote:
 My Problem: I would like to avoid that I accidentally change something in 
 the other documents
 and save it.
 
 Have been there..
 

It is always nice to hear that I am not the only one...

 
 Is it at the moment possible to make a tab as read-only or, if not, could 
 this be easily
 be implemented? I consider this a useful feature for cases like mine at the 
 moment.
 
 Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.
 
 I proposed to include a 'Documents  Disable Editing' menu entry that would 
 mark a document as
 read-only for the given LyX session. You can easily re-enable editing via the 
 same menu item.

Would be perfect - exactly what I thought about.

 
 The bug was resolved as 'wontfix' because of lack of interest for that 
 feature. For the record,
 I still think that this feature is very useful and I would (again) propose to 
 include it in
 base LyX. (For example, LibreOffice has this feature via a 'Edit File' toggle 
 button.)

Agreed - I will support that suggestion.



 
 Regards Liviu
 
 PS Right now the bugtracker seems down.

Not only the bug tracker, also the wiki... and I think lyx.org as well...


 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/psbMACgkQoYgNqgF2egoEzgCfauObH29844fqDvoMjURXjRTu
WzsAniphGOPLLh8J4epv1wV5A1H8ALIB
=fJMO
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Roger Burton West
On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
My Problem: I would like to avoid that I accidentally change something in the 
other documents and
save it.

Failing an in-program solution, how about marking the _file_ read-only?
(chmod a-w filename)


Re: Making a tab read-only?

2012-06-26 Thread Alex Vergara Gil

El 26/06/2012 07:03 a.m., Roger Burton West escribió:

On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:

My Problem: I would like to avoid that I accidentally change something in the 
other documents and
save it.

Failing an in-program solution, how about marking the _file_ read-only?
(chmod a-w filename)


Oh, but this is a linux-only solution, and definitely not for user who 
wants to write without knowing too much of technical details, otherwise 
we will use plain latex instead of lyx. ;)


A simple menu entry won't hurt anyone and will be helpful

--
greetings
~-o--{}--o-~
Alex Vergara Gil
MSc. Física Nuclear
Laboratorio Secundario de Calibración Dosimétrica
Centro de Protección e Higiene de las Radiaciones
Calle 20 No. 4113 e/ 18A y 47 Playa
La Habana, Cuba
A.P.6195 C.P.10600
Telf: (537)6824892, (537)6821803
Fax: (537)2030165



Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 17:10, Alex Vergara Gil wrote:
 El 26/06/2012 07:03 a.m., Roger Burton West escribió:
 On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
 My Problem: I would like to avoid that I accidentally change something in 
 the other
 documents and save it.
 Failing an in-program solution, how about marking the _file_ read-only? 
 (chmod a-w filename)

Would be possible, but then I have to change it back afterwards...

 
 
 Oh, but this is a linux-only solution, and definitely not for user who wants 
 to write without 
 knowing too much of technical details, otherwise we will use plain latex 
 instead of lyx. ;)

nicely put.

 
 A simple menu entry won't hurt anyone and will be helpful
 

Agreed.

Cheers,

Rainer

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pt10ACgkQoYgNqgF2egpvbgCeKymZwkOoo0yDXdX6F1MrQ2BK
114AnR8u7U+jW2vWaugHG87iKXTovAYe
=wa1z
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/12 14:52, Liviu Andronic a écrit :

I proposed to include a 'Documents  Disable Editing' menu entry that
would mark a document as read-only for the given LyX session. You can
easily re-enable editing via the same menu item.


The lack of enthousiasm was for the menu entry. The function exists, it is:

M-x buffer-toggle-read-only

JMarc


Re: Re: Making a tab read-only?

2012-06-26 Thread Kornel Benko
Am Dienstag, 26. Juni 2012 um 09:10:15, schrieb Alex Vergara Gil 
a...@cphr.edu.cu
 El 26/06/2012 07:03 a.m., Roger Burton West escribió:
  On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
  My Problem: I would like to avoid that I accidentally change something in 
  the other documents and
  save it.
  Failing an in-program solution, how about marking the _file_ read-only?
  (chmod a-w filename)
 
 
 Oh, but this is a linux-only solution, and definitely not for user who 
 wants to write without knowing too much of technical details, otherwise 
 we will use plain latex instead of lyx. ;)
 
 A simple menu entry won't hurt anyone and will be helpful
 
 -- 
 greetings
 ~-o--{}--o-~
 Alex Vergara Gil
 MSc. Física Nuclear
 Laboratorio Secundario de Calibración Dosimétrica
 Centro de Protección e Higiene de las Radiaciones
 Calle 20 No. 4113 e/ 18A y 47 Playa
 La Habana, Cuba
 A.P.6195 C.P.10600
 Telf: (537)6824892, (537)6821803
 Fax: (537)2030165

And how about the command 
buffer-toggle-read-only
?

You may enter the command in the lyx-command line, or bind it to some key.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: Making a tab read-only?

2012-06-26 Thread Alex Vergara Gil

El 26/06/2012 07:24 a.m., Kornel Benko escribió:


And how about the command

buffer-toggle-read-only

?

You may enter the command in the lyx-command line, or bind it to some key.

Kornel



I have found a solution

copy from Lyx_directory/Resources/ui/stdmenus.inc to userdir/personalLyx/ui
add the following line wherever you want inside the file menu in the 
copied file

Item Make Read Only buffer-toggle-read-only

voilá, it works! Thanks to Kornel for the hint

--
Greetings
~-o--{}--o-~
Alex Vergara Gil
MSc. Física Nuclear
Laboratorio Secundario de Calibración Dosimétrica
Centro de Protección e Higiene de las Radiaciones
Calle 20 No. 4113 e/ 18A y 47 Playa
La Habana, Cuba
A.P.6195 C.P.10600
Telf: (537)6824892, (537)6821803
Fax: (537)2030165



Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 15:24, Kornel Benko wrote:
 Am Dienstag, 26. Juni 2012 um 09:10:15, schrieb Alex Vergara Gil 
 a...@cphr.edu.cu
 
 El 26/06/2012 07:03 a.m., Roger Burton West escribió:
 
 On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
 
 My Problem: I would like to avoid that I accidentally change something in 
 the other
 documents and
 
 save it.
 
 Failing an in-program solution, how about marking the _file_ read-only?
 
 (chmod a-w filename)
 
 
 
 
 
 Oh, but this is a linux-only solution, and definitely not for user who
 
 wants to write without knowing too much of technical details, otherwise
 
 we will use plain latex instead of lyx. ;)
 
 
 
 A simple menu entry won't hurt anyone and will be helpful
 
 
 
 --
 
 greetings
 
 ~-o--{}--o-~
 
 Alex Vergara Gil
 
 MSc. Física Nuclear
 
 Laboratorio Secundario de Calibración Dosimétrica
 
 Centro de Protección e Higiene de las Radiaciones
 
 Calle 20 No. 4113 e/ 18A y 47 Playa
 
 La Habana, Cuba
 
 A.P.6195 C.P.10600
 
 Telf: (537)6824892, (537)6821803
 
 Fax: (537)2030165
 
 
 
 And how about the command
 
 buffer-toggle-read-only
 
 ?
 

Just discovered this one (also thanks Jean-Marc), but in the manual it states:

###
This function is not allowed if the file is under version control, since 
read-only flag is often
used in version control file locking.
###

which is a problem, as IO have most LyX projects under version control.

So no help for me.

If this function changes the attributes of the file, then this is a problem 
with VC - otherwise if
it only changes the properties of the tab,  do not see a problem with it.

Cheers,

Rainer


 
 
 You may enter the command in the lyx-command line, or bind it to some key.
 
 
 
 Kornel
 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pvn8ACgkQoYgNqgF2egp8JgCdHlSbXAP3NxODQ+SxLx9EjCCW
lgQAoIrm07bEVtAL4UNvRrHf6dv9D7jq
=6mq2
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 15:24, Jean-Marc Lasgouttes wrote:
 Le 26/06/12 14:52, Liviu Andronic a écrit :
 I proposed to include a 'Documents  Disable Editing' menu entry that would 
 mark a document
 as read-only for the given LyX session. You can easily re-enable editing via 
 the same menu
 item.
 
 The lack of enthousiasm was for the menu entry. The function exists, it is:

I think a menu entry in the context menu (right mouse click) of the tab would 
be the perfect
location for a menu entry.


 
 M-x buffer-toggle-read-only

thanks - but see other reply.

Cheers,

Rainer

 
 JMarc
 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pvssACgkQoYgNqgF2egrtXQCePz6ARcNXmqqYZr1dvAc8fAtp
INYAn01mZcL9v13EhRgjDyRfv4QW20kQ
=9AOj
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/12 14:52, Liviu Andronic a écrit :

For the record, I still think that this feature is very
useful and I would (again) propose to include it in base LyX. (For
example, LibreOffice has this feature via a 'Edit File' toggle
button.)


Where is this toggle button?

What would be more interesting than a plain old boring read-only mode is 
a viewer mode which would mean

* read-only
* reload file automatically when it is updated
* maybe allow space as a synonym for page down

JMarc


Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 16:09, Jean-Marc Lasgouttes wrote:
 Le 26/06/12 14:52, Liviu Andronic a écrit :
 For the record, I still think that this feature is very useful and I would 
 (again) propose to
 include it in base LyX. (For example, LibreOffice has this feature via a 
 'Edit File' toggle 
 button.)
 
 Where is this toggle button?
 
 What would be more interesting than a plain old boring read-only mode is a 
 viewer mode which
 would mean * read-only * reload file automatically when it is updated * maybe 
 allow space as a
 synonym for page down

Good idea - one can always improve on an idea.

Rainer

 
 JMarc
 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pwwMACgkQoYgNqgF2egqKQgCbBIxe2QQrBNmnRj5D1HQjbxv1
0eoAn1rm2h5whh7GzSCcbb7IQ/nuOJ2t
=4nWo
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 4:09 PM, Jean-Marc Lasgouttes
lasgout...@lyx.org wrote:
 Le 26/06/12 14:52, Liviu Andronic a écrit :

 For the record, I still think that this feature is very

 useful and I would (again) propose to include it in base LyX. (For
 example, LibreOffice has this feature via a 'Edit File' toggle
 button.)


 Where is this toggle button?

In LibreOffice, see button to the left of the 'generate PDF' icon and
to the right of the 'Save' button. I'm not aware of a Menu item
equivalent.


 What would be more interesting than a plain old boring read-only mode is a
 viewer mode which would mean
 * read-only
 * reload file automatically when it is updated
 * maybe allow space as a synonym for page down

That would certainly be nice. Although some users would still find
useful an easily discoverable, albeit boring read-only mode.

Liviu


Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/2012 16:51, Liviu Andronic a écrit :

Where is this toggle button?


In LibreOffice, see button to the left of the 'generate PDF' icon and
to the right of the 'Save' button. I'm not aware of a Menu item
equivalent.


Indeed, I see it now. I have doubts about the discoverability of this 
thing :)


Does somebody know whether ms word has something similar ?


JMarc


Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 5:07 PM, Jean-Marc Lasgouttes
lasgout...@lyx.org wrote:
 Le 26/06/2012 16:51, Liviu Andronic a écrit :
 In LibreOffice, see button to the left of the 'generate PDF' icon and
 to the right of the 'Save' button. I'm not aware of a Menu item
 equivalent.

 Indeed, I see it now. I have doubts about the discoverability of this thing
 :)

Yes, this specific button is quite nicely hidden. :) I discovered it
once by accident, but since I didn't stop using it. (By the way, it is
present throughout the suite: Word processor, Spreadsheet,
Presentation.)


 Does somebody know whether ms word has something similar ?

I don't _know_, but I don't think so. I suspect that this is an
OpenOffice innovation. Either way, I always appreciate when an
editor (be it word/document processor like LibreOffice/LyX or IDE such
as Geany) provide an easily accessible read-only mode. Geany has a
'Document  Read only' menu item for this.

Liviu


Re: Making a tab read-only?

2012-06-26 Thread Steve Litt
On Tue, 26 Jun 2012 14:52:16 +0200, Liviu Andronic said:
 On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug r.m.k...@gmail.com
 wrote:
  My Problem: I would like to avoid that I accidentally change
  something in the other documents and save it.
 
 Have been there..
 
 
  Is it at the moment possible to make a tab as read-only or, if
  not, could this be easily be implemented? I consider this a useful
  feature for cases like mine at the moment.
 
 Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.
 
 I proposed to include a 'Documents  Disable Editing' menu entry that
 would mark a document as read-only for the given LyX session. You can
 easily re-enable editing via the same menu item.
 
 The bug was resolved as 'wontfix' because of lack of interest for that
 feature. For the record, I still think that this feature is very
 useful and I would (again) propose to include it in base LyX. (For
 example, LibreOffice has this feature via a 'Edit File' toggle
 button.)

I never even knew LyX had tabs. I'll be using tabs now.

I like the idea of a read-only tab via Documents-Disable Editing, but
then again, I'm lousy at C++, know nothing about Qt-4, and therefore am
unlikely to help with the addition.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/12 19:21, Alex Vergara Gil a écrit :

El 26/06/2012 09:07 a.m., Jean-Marc Lasgouttes escribió:

Does somebody know whether ms word has something similar ?


MS Word has a Restrict Edition button which besides makes posible to add
a password to the file with a list of restrictions of use


Where is it? I cannot find it on Word/Mac 2008.

JMarc




Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
On 26/06/12 18:02, Steve Litt wrote:
 On Tue, 26 Jun 2012 14:52:16 +0200, Liviu Andronic said:
 On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug r.m.k...@gmail.com wrote:
 My Problem: I would like to avoid that I accidentally change something in 
 the other 
 documents and save it.
 
 Have been there..
 
 
 Is it at the moment possible to make a tab as read-only or, if not, could 
 this be easily
  be implemented? I consider this a useful feature for cases like mine at 
 the moment.
 
 Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.
 
 I proposed to include a 'Documents  Disable Editing' menu entry that would 
 mark a document 
 as read-only for the given LyX session. You can easily re-enable editing via 
 the same menu 
 item.
 
 The bug was resolved as 'wontfix' because of lack of interest for that 
 feature. For the 
 record, I still think that this feature is very useful and I would (again) 
 propose to include
 it in base LyX. (For example, LibreOffice has this feature via a 'Edit File' 
 toggle button.)
 
 I never even knew LyX had tabs. I'll be using tabs now.

Something new to learn every day...
Maybe it is time to include a Tip of the day box on startup (obviously with 
the option to opt
out...).

Rainer

 
 I like the idea of a read-only tab via Documents-Disable Editing, but then 
 again, I'm lousy at
 C++, know nothing about Qt-4, and therefore am unlikely to help with the 
 addition.
 
 Thanks,
 
 SteveT
 
 Steve Litt*  http://www.troubleshooters.com/ *  
 http://twitter.com/stevelitt 
 Troubleshooting Training  *  Human Performance
 
 




Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 6:02 PM, Steve Litt sl...@troubleshooters.com wrote:
 I like the idea of a read-only tab via Documents-Disable Editing, but
 then again, I'm lousy at C++, know nothing about Qt-4, and therefore am
 unlikely to help with the addition.

No need for that. LyX already features an internal function to disable
the editing, and I've already provided a patch that adds the item to
the menus. Now it is only a matter of the core LyX developers to
approve (or not) of the modification.

Liviu

PS Anyone interested in the feature can easily copy/paste the config
info from the bug report, to add this item to your local LyX
installation. It's very simple.


Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug r.m.k...@gmail.com wrote:
 My Problem: I would like to avoid that I accidentally change something in the 
 other documents and
 save it.

Have been there..


 Is it at the moment possible to make a tab as read-only or, if not, could 
 this be easily be
 implemented? I consider this a useful feature for cases like mine at the 
 moment.

Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.

I proposed to include a 'Documents  Disable Editing' menu entry that
would mark a document as read-only for the given LyX session. You can
easily re-enable editing via the same menu item.

The bug was resolved as 'wontfix' because of lack of interest for that
feature. For the record, I still think that this feature is very
useful and I would (again) propose to include it in base LyX. (For
example, LibreOffice has this feature via a 'Edit File' toggle
button.)

Regards
Liviu

PS Right now the bugtracker seems down.


Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 14:52, Liviu Andronic wrote:
 On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug r.m.k...@gmail.com wrote:
 My Problem: I would like to avoid that I accidentally change something in 
 the other documents
 and save it.
 
 Have been there..
 

It is always nice to hear that I am not the only one...

 
 Is it at the moment possible to make a tab as read-only or, if not, could 
 this be easily
 be implemented? I consider this a useful feature for cases like mine at the 
 moment.
 
 Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.
 
 I proposed to include a 'Documents  Disable Editing' menu entry that would 
 mark a document as
 read-only for the given LyX session. You can easily re-enable editing via the 
 same menu item.

Would be perfect - exactly what I thought about.

 
 The bug was resolved as 'wontfix' because of lack of interest for that 
 feature. For the record,
 I still think that this feature is very useful and I would (again) propose to 
 include it in
 base LyX. (For example, LibreOffice has this feature via a 'Edit File' toggle 
 button.)

Agreed - I will support that suggestion.



 
 Regards Liviu
 
 PS Right now the bugtracker seems down.

Not only the bug tracker, also the wiki... and I think lyx.org as well...


 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/psbMACgkQoYgNqgF2egoEzgCfauObH29844fqDvoMjURXjRTu
WzsAniphGOPLLh8J4epv1wV5A1H8ALIB
=fJMO
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Roger Burton West
On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
My Problem: I would like to avoid that I accidentally change something in the 
other documents and
save it.

Failing an in-program solution, how about marking the _file_ read-only?
(chmod a-w filename)


Re: Making a tab read-only?

2012-06-26 Thread Alex Vergara Gil

El 26/06/2012 07:03 a.m., Roger Burton West escribió:

On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:

My Problem: I would like to avoid that I accidentally change something in the 
other documents and
save it.

Failing an in-program solution, how about marking the _file_ read-only?
(chmod a-w filename)


Oh, but this is a linux-only solution, and definitely not for user who 
wants to write without knowing too much of technical details, otherwise 
we will use plain latex instead of lyx. ;)


A simple menu entry won't hurt anyone and will be helpful

--
greetings
~-o--{}--o-~
Alex Vergara Gil
MSc. Física Nuclear
Laboratorio Secundario de Calibración Dosimétrica
Centro de Protección e Higiene de las Radiaciones
Calle 20 No. 4113 e/ 18A y 47 Playa
La Habana, Cuba
A.P.6195 C.P.10600
Telf: (537)6824892, (537)6821803
Fax: (537)2030165



Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 17:10, Alex Vergara Gil wrote:
 El 26/06/2012 07:03 a.m., Roger Burton West escribió:
 On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
 My Problem: I would like to avoid that I accidentally change something in 
 the other
 documents and save it.
 Failing an in-program solution, how about marking the _file_ read-only? 
 (chmod a-w filename)

Would be possible, but then I have to change it back afterwards...

 
 
 Oh, but this is a linux-only solution, and definitely not for user who wants 
 to write without 
 knowing too much of technical details, otherwise we will use plain latex 
 instead of lyx. ;)

nicely put.

 
 A simple menu entry won't hurt anyone and will be helpful
 

Agreed.

Cheers,

Rainer

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pt10ACgkQoYgNqgF2egpvbgCeKymZwkOoo0yDXdX6F1MrQ2BK
114AnR8u7U+jW2vWaugHG87iKXTovAYe
=wa1z
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/12 14:52, Liviu Andronic a écrit :

I proposed to include a 'Documents  Disable Editing' menu entry that
would mark a document as read-only for the given LyX session. You can
easily re-enable editing via the same menu item.


The lack of enthousiasm was for the menu entry. The function exists, it is:

M-x buffer-toggle-read-only

JMarc


Re: Re: Making a tab read-only?

2012-06-26 Thread Kornel Benko
Am Dienstag, 26. Juni 2012 um 09:10:15, schrieb Alex Vergara Gil 
a...@cphr.edu.cu
 El 26/06/2012 07:03 a.m., Roger Burton West escribió:
  On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
  My Problem: I would like to avoid that I accidentally change something in 
  the other documents and
  save it.
  Failing an in-program solution, how about marking the _file_ read-only?
  (chmod a-w filename)
 
 
 Oh, but this is a linux-only solution, and definitely not for user who 
 wants to write without knowing too much of technical details, otherwise 
 we will use plain latex instead of lyx. ;)
 
 A simple menu entry won't hurt anyone and will be helpful
 
 -- 
 greetings
 ~-o--{}--o-~
 Alex Vergara Gil
 MSc. Física Nuclear
 Laboratorio Secundario de Calibración Dosimétrica
 Centro de Protección e Higiene de las Radiaciones
 Calle 20 No. 4113 e/ 18A y 47 Playa
 La Habana, Cuba
 A.P.6195 C.P.10600
 Telf: (537)6824892, (537)6821803
 Fax: (537)2030165

And how about the command 
buffer-toggle-read-only
?

You may enter the command in the lyx-command line, or bind it to some key.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: Making a tab read-only?

2012-06-26 Thread Alex Vergara Gil

El 26/06/2012 07:24 a.m., Kornel Benko escribió:


And how about the command

buffer-toggle-read-only

?

You may enter the command in the lyx-command line, or bind it to some key.

Kornel



I have found a solution

copy from Lyx_directory/Resources/ui/stdmenus.inc to userdir/personalLyx/ui
add the following line wherever you want inside the file menu in the 
copied file

Item Make Read Only buffer-toggle-read-only

voilá, it works! Thanks to Kornel for the hint

--
Greetings
~-o--{}--o-~
Alex Vergara Gil
MSc. Física Nuclear
Laboratorio Secundario de Calibración Dosimétrica
Centro de Protección e Higiene de las Radiaciones
Calle 20 No. 4113 e/ 18A y 47 Playa
La Habana, Cuba
A.P.6195 C.P.10600
Telf: (537)6824892, (537)6821803
Fax: (537)2030165



Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 15:24, Kornel Benko wrote:
 Am Dienstag, 26. Juni 2012 um 09:10:15, schrieb Alex Vergara Gil 
 a...@cphr.edu.cu
 
 El 26/06/2012 07:03 a.m., Roger Burton West escribió:
 
 On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
 
 My Problem: I would like to avoid that I accidentally change something in 
 the other
 documents and
 
 save it.
 
 Failing an in-program solution, how about marking the _file_ read-only?
 
 (chmod a-w filename)
 
 
 
 
 
 Oh, but this is a linux-only solution, and definitely not for user who
 
 wants to write without knowing too much of technical details, otherwise
 
 we will use plain latex instead of lyx. ;)
 
 
 
 A simple menu entry won't hurt anyone and will be helpful
 
 
 
 --
 
 greetings
 
 ~-o--{}--o-~
 
 Alex Vergara Gil
 
 MSc. Física Nuclear
 
 Laboratorio Secundario de Calibración Dosimétrica
 
 Centro de Protección e Higiene de las Radiaciones
 
 Calle 20 No. 4113 e/ 18A y 47 Playa
 
 La Habana, Cuba
 
 A.P.6195 C.P.10600
 
 Telf: (537)6824892, (537)6821803
 
 Fax: (537)2030165
 
 
 
 And how about the command
 
 buffer-toggle-read-only
 
 ?
 

Just discovered this one (also thanks Jean-Marc), but in the manual it states:

###
This function is not allowed if the file is under version control, since 
read-only flag is often
used in version control file locking.
###

which is a problem, as IO have most LyX projects under version control.

So no help for me.

If this function changes the attributes of the file, then this is a problem 
with VC - otherwise if
it only changes the properties of the tab,  do not see a problem with it.

Cheers,

Rainer


 
 
 You may enter the command in the lyx-command line, or bind it to some key.
 
 
 
 Kornel
 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pvn8ACgkQoYgNqgF2egp8JgCdHlSbXAP3NxODQ+SxLx9EjCCW
lgQAoIrm07bEVtAL4UNvRrHf6dv9D7jq
=6mq2
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 15:24, Jean-Marc Lasgouttes wrote:
 Le 26/06/12 14:52, Liviu Andronic a écrit :
 I proposed to include a 'Documents  Disable Editing' menu entry that would 
 mark a document
 as read-only for the given LyX session. You can easily re-enable editing via 
 the same menu
 item.
 
 The lack of enthousiasm was for the menu entry. The function exists, it is:

I think a menu entry in the context menu (right mouse click) of the tab would 
be the perfect
location for a menu entry.


 
 M-x buffer-toggle-read-only

thanks - but see other reply.

Cheers,

Rainer

 
 JMarc
 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pvssACgkQoYgNqgF2egrtXQCePz6ARcNXmqqYZr1dvAc8fAtp
INYAn01mZcL9v13EhRgjDyRfv4QW20kQ
=9AOj
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/12 14:52, Liviu Andronic a écrit :

For the record, I still think that this feature is very
useful and I would (again) propose to include it in base LyX. (For
example, LibreOffice has this feature via a 'Edit File' toggle
button.)


Where is this toggle button?

What would be more interesting than a plain old boring read-only mode is 
a viewer mode which would mean

* read-only
* reload file automatically when it is updated
* maybe allow space as a synonym for page down

JMarc


Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 16:09, Jean-Marc Lasgouttes wrote:
 Le 26/06/12 14:52, Liviu Andronic a écrit :
 For the record, I still think that this feature is very useful and I would 
 (again) propose to
 include it in base LyX. (For example, LibreOffice has this feature via a 
 'Edit File' toggle 
 button.)
 
 Where is this toggle button?
 
 What would be more interesting than a plain old boring read-only mode is a 
 viewer mode which
 would mean * read-only * reload file automatically when it is updated * maybe 
 allow space as a
 synonym for page down

Good idea - one can always improve on an idea.

Rainer

 
 JMarc
 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pwwMACgkQoYgNqgF2egqKQgCbBIxe2QQrBNmnRj5D1HQjbxv1
0eoAn1rm2h5whh7GzSCcbb7IQ/nuOJ2t
=4nWo
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 4:09 PM, Jean-Marc Lasgouttes
lasgout...@lyx.org wrote:
 Le 26/06/12 14:52, Liviu Andronic a écrit :

 For the record, I still think that this feature is very

 useful and I would (again) propose to include it in base LyX. (For
 example, LibreOffice has this feature via a 'Edit File' toggle
 button.)


 Where is this toggle button?

In LibreOffice, see button to the left of the 'generate PDF' icon and
to the right of the 'Save' button. I'm not aware of a Menu item
equivalent.


 What would be more interesting than a plain old boring read-only mode is a
 viewer mode which would mean
 * read-only
 * reload file automatically when it is updated
 * maybe allow space as a synonym for page down

That would certainly be nice. Although some users would still find
useful an easily discoverable, albeit boring read-only mode.

Liviu


Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/2012 16:51, Liviu Andronic a écrit :

Where is this toggle button?


In LibreOffice, see button to the left of the 'generate PDF' icon and
to the right of the 'Save' button. I'm not aware of a Menu item
equivalent.


Indeed, I see it now. I have doubts about the discoverability of this 
thing :)


Does somebody know whether ms word has something similar ?


JMarc


Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 5:07 PM, Jean-Marc Lasgouttes
lasgout...@lyx.org wrote:
 Le 26/06/2012 16:51, Liviu Andronic a écrit :
 In LibreOffice, see button to the left of the 'generate PDF' icon and
 to the right of the 'Save' button. I'm not aware of a Menu item
 equivalent.

 Indeed, I see it now. I have doubts about the discoverability of this thing
 :)

Yes, this specific button is quite nicely hidden. :) I discovered it
once by accident, but since I didn't stop using it. (By the way, it is
present throughout the suite: Word processor, Spreadsheet,
Presentation.)


 Does somebody know whether ms word has something similar ?

I don't _know_, but I don't think so. I suspect that this is an
OpenOffice innovation. Either way, I always appreciate when an
editor (be it word/document processor like LibreOffice/LyX or IDE such
as Geany) provide an easily accessible read-only mode. Geany has a
'Document  Read only' menu item for this.

Liviu


Re: Making a tab read-only?

2012-06-26 Thread Steve Litt
On Tue, 26 Jun 2012 14:52:16 +0200, Liviu Andronic said:
 On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug r.m.k...@gmail.com
 wrote:
  My Problem: I would like to avoid that I accidentally change
  something in the other documents and save it.
 
 Have been there..
 
 
  Is it at the moment possible to make a tab as read-only or, if
  not, could this be easily be implemented? I consider this a useful
  feature for cases like mine at the moment.
 
 Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.
 
 I proposed to include a 'Documents  Disable Editing' menu entry that
 would mark a document as read-only for the given LyX session. You can
 easily re-enable editing via the same menu item.
 
 The bug was resolved as 'wontfix' because of lack of interest for that
 feature. For the record, I still think that this feature is very
 useful and I would (again) propose to include it in base LyX. (For
 example, LibreOffice has this feature via a 'Edit File' toggle
 button.)

I never even knew LyX had tabs. I'll be using tabs now.

I like the idea of a read-only tab via Documents-Disable Editing, but
then again, I'm lousy at C++, know nothing about Qt-4, and therefore am
unlikely to help with the addition.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/12 19:21, Alex Vergara Gil a écrit :

El 26/06/2012 09:07 a.m., Jean-Marc Lasgouttes escribió:

Does somebody know whether ms word has something similar ?


MS Word has a Restrict Edition button which besides makes posible to add
a password to the file with a list of restrictions of use


Where is it? I cannot find it on Word/Mac 2008.

JMarc




Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
On 26/06/12 18:02, Steve Litt wrote:
 On Tue, 26 Jun 2012 14:52:16 +0200, Liviu Andronic said:
 On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug r.m.k...@gmail.com wrote:
 My Problem: I would like to avoid that I accidentally change something in 
 the other 
 documents and save it.
 
 Have been there..
 
 
 Is it at the moment possible to make a tab as read-only or, if not, could 
 this be easily
  be implemented? I consider this a useful feature for cases like mine at 
 the moment.
 
 Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.
 
 I proposed to include a 'Documents  Disable Editing' menu entry that would 
 mark a document 
 as read-only for the given LyX session. You can easily re-enable editing via 
 the same menu 
 item.
 
 The bug was resolved as 'wontfix' because of lack of interest for that 
 feature. For the 
 record, I still think that this feature is very useful and I would (again) 
 propose to include
 it in base LyX. (For example, LibreOffice has this feature via a 'Edit File' 
 toggle button.)
 
 I never even knew LyX had tabs. I'll be using tabs now.

Something new to learn every day...
Maybe it is time to include a Tip of the day box on startup (obviously with 
the option to opt
out...).

Rainer

 
 I like the idea of a read-only tab via Documents-Disable Editing, but then 
 again, I'm lousy at
 C++, know nothing about Qt-4, and therefore am unlikely to help with the 
 addition.
 
 Thanks,
 
 SteveT
 
 Steve Litt*  http://www.troubleshooters.com/ *  
 http://twitter.com/stevelitt 
 Troubleshooting Training  *  Human Performance
 
 




Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 6:02 PM, Steve Litt sl...@troubleshooters.com wrote:
 I like the idea of a read-only tab via Documents-Disable Editing, but
 then again, I'm lousy at C++, know nothing about Qt-4, and therefore am
 unlikely to help with the addition.

No need for that. LyX already features an internal function to disable
the editing, and I've already provided a patch that adds the item to
the menus. Now it is only a matter of the core LyX developers to
approve (or not) of the modification.

Liviu

PS Anyone interested in the feature can easily copy/paste the config
info from the bug report, to add this item to your local LyX
installation. It's very simple.


Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug  wrote:
> My Problem: I would like to avoid that I accidentally change something in the 
> other documents and
> save it.
>
Have been there..


> Is it at the moment possible to make a tab as "read-only" or, if not, could 
> this be easily be
> implemented? I consider this a useful feature for cases like mine at the 
> moment.
>
Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.

I proposed to include a 'Documents > Disable Editing' menu entry that
would mark a document as read-only for the given LyX session. You can
easily re-enable editing via the same menu item.

The bug was resolved as 'wontfix' because of lack of interest for that
feature. For the record, I still think that this feature is very
useful and I would (again) propose to include it in base LyX. (For
example, LibreOffice has this feature via a 'Edit File' toggle
button.)

Regards
Liviu

PS Right now the bugtracker seems down.


Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 14:52, Liviu Andronic wrote:
> On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug  wrote:
>> My Problem: I would like to avoid that I accidentally change something in 
>> the other documents
>> and save it.
>> 
> Have been there..
> 

It is always nice to hear that I am not the only one...

> 
>> Is it at the moment possible to make a tab as "read-only" or, if not, could 
>> this be easily
>> be implemented? I consider this a useful feature for cases like mine at the 
>> moment.
>> 
> Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.
> 
> I proposed to include a 'Documents > Disable Editing' menu entry that would 
> mark a document as
> read-only for the given LyX session. You can easily re-enable editing via the 
> same menu item.

Would be perfect - exactly what I thought about.

> 
> The bug was resolved as 'wontfix' because of lack of interest for that 
> feature. For the record,
> I still think that this feature is very useful and I would (again) propose to 
> include it in
> base LyX. (For example, LibreOffice has this feature via a 'Edit File' toggle 
> button.)

Agreed - I will support that suggestion.



> 
> Regards Liviu
> 
> PS Right now the bugtracker seems down.

Not only the bug tracker, also the wiki... and I think lyx.org as well...


> 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/psbMACgkQoYgNqgF2egoEzgCfauObH29844fqDvoMjURXjRTu
WzsAniphGOPLLh8J4epv1wV5A1H8ALIB
=fJMO
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Roger Burton West
On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
>My Problem: I would like to avoid that I accidentally change something in the 
>other documents and
>save it.

Failing an in-program solution, how about marking the _file_ read-only?
(chmod a-w filename)


Re: Making a tab read-only?

2012-06-26 Thread Alex Vergara Gil

El 26/06/2012 07:03 a.m., Roger Burton West escribió:

On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:

My Problem: I would like to avoid that I accidentally change something in the 
other documents and
save it.

Failing an in-program solution, how about marking the _file_ read-only?
(chmod a-w filename)


Oh, but this is a linux-only solution, and definitely not for user who 
wants to write without knowing too much of technical details, otherwise 
we will use plain latex instead of lyx. ;)


A simple menu entry won't hurt anyone and will be helpful

--
greetings
~-o--{}--o-~
Alex Vergara Gil
MSc. Física Nuclear
Laboratorio Secundario de Calibración Dosimétrica
Centro de Protección e Higiene de las Radiaciones
Calle 20 No. 4113 e/ 18A y 47 Playa
La Habana, Cuba
A.P.6195 C.P.10600
Telf: (537)6824892, (537)6821803
Fax: (537)2030165



Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 17:10, Alex Vergara Gil wrote:
> El 26/06/2012 07:03 a.m., Roger Burton West escribió:
>> On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
>>> My Problem: I would like to avoid that I accidentally change something in 
>>> the other
>>> documents and save it.
>> Failing an in-program solution, how about marking the _file_ read-only? 
>> (chmod a-w filename)

Would be possible, but then I have to change it back afterwards...

>> 
>> 
> Oh, but this is a linux-only solution, and definitely not for user who wants 
> to write without 
> knowing too much of technical details, otherwise we will use plain latex 
> instead of lyx. ;)

nicely put.

> 
> A simple menu entry won't hurt anyone and will be helpful
> 

Agreed.

Cheers,

Rainer

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pt10ACgkQoYgNqgF2egpvbgCeKymZwkOoo0yDXdX6F1MrQ2BK
114AnR8u7U+jW2vWaugHG87iKXTovAYe
=wa1z
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/12 14:52, Liviu Andronic a écrit :

I proposed to include a 'Documents > Disable Editing' menu entry that
would mark a document as read-only for the given LyX session. You can
easily re-enable editing via the same menu item.


The lack of enthousiasm was for the menu entry. The function exists, it is:

M-x buffer-toggle-read-only

JMarc


Re: Re: Making a tab read-only?

2012-06-26 Thread Kornel Benko
Am Dienstag, 26. Juni 2012 um 09:10:15, schrieb Alex Vergara Gil 

> El 26/06/2012 07:03 a.m., Roger Burton West escribió:
> > On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
> >> My Problem: I would like to avoid that I accidentally change something in 
> >> the other documents and
> >> save it.
> > Failing an in-program solution, how about marking the _file_ read-only?
> > (chmod a-w filename)
> >
> >
> Oh, but this is a linux-only solution, and definitely not for user who 
> wants to write without knowing too much of technical details, otherwise 
> we will use plain latex instead of lyx. ;)
> 
> A simple menu entry won't hurt anyone and will be helpful
> 
> -- 
> greetings
> ~-o--{}--o-~
> Alex Vergara Gil
> MSc. Física Nuclear
> Laboratorio Secundario de Calibración Dosimétrica
> Centro de Protección e Higiene de las Radiaciones
> Calle 20 No. 4113 e/ 18A y 47 Playa
> La Habana, Cuba
> A.P.6195 C.P.10600
> Telf: (537)6824892, (537)6821803
> Fax: (537)2030165

And how about the command 
buffer-toggle-read-only
?

You may enter the command in the lyx-command line, or bind it to some key.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: Making a tab read-only?

2012-06-26 Thread Alex Vergara Gil

El 26/06/2012 07:24 a.m., Kornel Benko escribió:


And how about the command

buffer-toggle-read-only

?

You may enter the command in the lyx-command line, or bind it to some key.

Kornel



I have found a solution

copy from Lyx_directory/Resources/ui/stdmenus.inc to userdir/personalLyx/ui
add the following line wherever you want inside the file menu in the 
copied file

Item "Make Read Only" "buffer-toggle-read-only"

voilá, it works! Thanks to Kornel for the hint

--
Greetings
~-o--{}--o-~
Alex Vergara Gil
MSc. Física Nuclear
Laboratorio Secundario de Calibración Dosimétrica
Centro de Protección e Higiene de las Radiaciones
Calle 20 No. 4113 e/ 18A y 47 Playa
La Habana, Cuba
A.P.6195 C.P.10600
Telf: (537)6824892, (537)6821803
Fax: (537)2030165



Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 15:24, Kornel Benko wrote:
> Am Dienstag, 26. Juni 2012 um 09:10:15, schrieb Alex Vergara Gil 
> 
> 
>> El 26/06/2012 07:03 a.m., Roger Burton West escribió:
> 
>>> On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote:
> 
 My Problem: I would like to avoid that I accidentally change something in 
 the other
 documents and
> 
 save it.
> 
>>> Failing an in-program solution, how about marking the _file_ read-only?
> 
>>> (chmod a-w filename)
> 
>>> 
> 
>>> 
> 
>> Oh, but this is a linux-only solution, and definitely not for user who
> 
>> wants to write without knowing too much of technical details, otherwise
> 
>> we will use plain latex instead of lyx. ;)
> 
>> 
> 
>> A simple menu entry won't hurt anyone and will be helpful
> 
>> 
> 
>> --
> 
>> greetings
> 
>> ~-o--{}--o-~
> 
>> Alex Vergara Gil
> 
>> MSc. Física Nuclear
> 
>> Laboratorio Secundario de Calibración Dosimétrica
> 
>> Centro de Protección e Higiene de las Radiaciones
> 
>> Calle 20 No. 4113 e/ 18A y 47 Playa
> 
>> La Habana, Cuba
> 
>> A.P.6195 C.P.10600
> 
>> Telf: (537)6824892, (537)6821803
> 
>> Fax: (537)2030165
> 
> 
> 
> And how about the command
> 
> buffer-toggle-read-only
> 
> ?
> 

Just discovered this one (also thanks Jean-Marc), but in the manual it states:

###
This function is not allowed if the file is under version control, since 
read-only flag is often
used in version control file locking.
###

which is a problem, as IO have most LyX projects under version control.

So no help for me.

If this function changes the attributes of the file, then this is a problem 
with VC - otherwise if
it only changes the properties of the tab,  do not see a problem with it.

Cheers,

Rainer


> 
> 
> You may enter the command in the lyx-command line, or bind it to some key.
> 
> 
> 
> Kornel
> 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pvn8ACgkQoYgNqgF2egp8JgCdHlSbXAP3NxODQ+SxLx9EjCCW
lgQAoIrm07bEVtAL4UNvRrHf6dv9D7jq
=6mq2
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 15:24, Jean-Marc Lasgouttes wrote:
> Le 26/06/12 14:52, Liviu Andronic a écrit :
>> I proposed to include a 'Documents > Disable Editing' menu entry that would 
>> mark a document
>> as read-only for the given LyX session. You can easily re-enable editing via 
>> the same menu
>> item.
> 
> The lack of enthousiasm was for the menu entry. The function exists, it is:

I think a menu entry in the context menu (right mouse click) of the tab would 
be the perfect
location for a menu entry.


> 
> M-x buffer-toggle-read-only

thanks - but see other reply.

Cheers,

Rainer

> 
> JMarc
> 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pvssACgkQoYgNqgF2egrtXQCePz6ARcNXmqqYZr1dvAc8fAtp
INYAn01mZcL9v13EhRgjDyRfv4QW20kQ
=9AOj
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/12 14:52, Liviu Andronic a écrit :

For the record, I still think that this feature is very
useful and I would (again) propose to include it in base LyX. (For
example, LibreOffice has this feature via a 'Edit File' toggle
button.)


Where is this toggle button?

What would be more interesting than a plain old boring read-only mode is 
a viewer mode which would mean

* read-only
* reload file automatically when it is updated
* maybe allow space as a synonym for page down

JMarc


Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 26/06/12 16:09, Jean-Marc Lasgouttes wrote:
> Le 26/06/12 14:52, Liviu Andronic a écrit :
>> For the record, I still think that this feature is very useful and I would 
>> (again) propose to
>> include it in base LyX. (For example, LibreOffice has this feature via a 
>> 'Edit File' toggle 
>> button.)
> 
> Where is this toggle button?
> 
> What would be more interesting than a plain old boring read-only mode is a 
> viewer mode which
> would mean * read-only * reload file automatically when it is updated * maybe 
> allow space as a
> synonym for page down

Good idea - one can always improve on an idea.

Rainer

> 
> JMarc
> 


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pwwMACgkQoYgNqgF2egqKQgCbBIxe2QQrBNmnRj5D1HQjbxv1
0eoAn1rm2h5whh7GzSCcbb7IQ/nuOJ2t
=4nWo
-END PGP SIGNATURE-


Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 4:09 PM, Jean-Marc Lasgouttes
 wrote:
> Le 26/06/12 14:52, Liviu Andronic a écrit :
>>
>> For the record, I still think that this feature is very
>>
>> useful and I would (again) propose to include it in base LyX. (For
>> example, LibreOffice has this feature via a 'Edit File' toggle
>> button.)
>
>
> Where is this toggle button?
>
In LibreOffice, see button to the left of the 'generate PDF' icon and
to the right of the 'Save' button. I'm not aware of a Menu item
equivalent.


> What would be more interesting than a plain old boring read-only mode is a
> viewer mode which would mean
> * read-only
> * reload file automatically when it is updated
> * maybe allow space as a synonym for page down
>
That would certainly be nice. Although some users would still find
useful an easily discoverable, albeit boring read-only mode.

Liviu


Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/2012 16:51, Liviu Andronic a écrit :

Where is this toggle button?


In LibreOffice, see button to the left of the 'generate PDF' icon and
to the right of the 'Save' button. I'm not aware of a Menu item
equivalent.


Indeed, I see it now. I have doubts about the discoverability of this 
thing :)


Does somebody know whether ms word has something similar ?


JMarc


Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 5:07 PM, Jean-Marc Lasgouttes
 wrote:
> Le 26/06/2012 16:51, Liviu Andronic a écrit :
>> In LibreOffice, see button to the left of the 'generate PDF' icon and
>> to the right of the 'Save' button. I'm not aware of a Menu item
>> equivalent.
>
> Indeed, I see it now. I have doubts about the discoverability of this thing
> :)
>
Yes, this specific button is quite nicely hidden. :) I discovered it
once by accident, but since I didn't stop using it. (By the way, it is
present throughout the suite: Word processor, Spreadsheet,
Presentation.)


> Does somebody know whether ms word has something similar ?
>
I don't _know_, but I don't think so. I suspect that this is an
OpenOffice "innovation". Either way, I always appreciate when an
editor (be it word/document processor like LibreOffice/LyX or IDE such
as Geany) provide an easily accessible "read-only" mode. Geany has a
'Document > Read only' menu item for this.

Liviu


Re: Making a tab read-only?

2012-06-26 Thread Steve Litt
On Tue, 26 Jun 2012 14:52:16 +0200, Liviu Andronic said:
> On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug 
> wrote:
> > My Problem: I would like to avoid that I accidentally change
> > something in the other documents and save it.
> >
> Have been there..
> 
> 
> > Is it at the moment possible to make a tab as "read-only" or, if
> > not, could this be easily be implemented? I consider this a useful
> > feature for cases like mine at the moment.
> >
> Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.
> 
> I proposed to include a 'Documents > Disable Editing' menu entry that
> would mark a document as read-only for the given LyX session. You can
> easily re-enable editing via the same menu item.
> 
> The bug was resolved as 'wontfix' because of lack of interest for that
> feature. For the record, I still think that this feature is very
> useful and I would (again) propose to include it in base LyX. (For
> example, LibreOffice has this feature via a 'Edit File' toggle
> button.)

I never even knew LyX had tabs. I'll be using tabs now.

I like the idea of a read-only tab via Documents->Disable Editing, but
then again, I'm lousy at C++, know nothing about Qt-4, and therefore am
unlikely to help with the addition.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: Making a tab read-only?

2012-06-26 Thread Jean-Marc Lasgouttes

Le 26/06/12 19:21, Alex Vergara Gil a écrit :

El 26/06/2012 09:07 a.m., Jean-Marc Lasgouttes escribió:

Does somebody know whether ms word has something similar ?


MS Word has a Restrict Edition button which besides makes posible to add
a password to the file with a list of restrictions of use


Where is it? I cannot find it on Word/Mac 2008.

JMarc




Re: Making a tab read-only?

2012-06-26 Thread Rainer M Krug
On 26/06/12 18:02, Steve Litt wrote:
> On Tue, 26 Jun 2012 14:52:16 +0200, Liviu Andronic said:
>> On Tue, Jun 26, 2012 at 2:43 PM, Rainer M Krug  wrote:
>>> My Problem: I would like to avoid that I accidentally change something in 
>>> the other 
>>> documents and save it.
>>> 
>> Have been there..
>> 
>> 
>>> Is it at the moment possible to make a tab as "read-only" or, if not, could 
>>> this be easily
>>>  be implemented? I consider this a useful feature for cases like mine at 
>>> the moment.
>>> 
>> Bug #6692 ( http://www.lyx.org/trac/ticket/6692 ) deals with it.
>> 
>> I proposed to include a 'Documents > Disable Editing' menu entry that would 
>> mark a document 
>> as read-only for the given LyX session. You can easily re-enable editing via 
>> the same menu 
>> item.
>> 
>> The bug was resolved as 'wontfix' because of lack of interest for that 
>> feature. For the 
>> record, I still think that this feature is very useful and I would (again) 
>> propose to include
>> it in base LyX. (For example, LibreOffice has this feature via a 'Edit File' 
>> toggle button.)
> 
> I never even knew LyX had tabs. I'll be using tabs now.

Something new to learn every day...
Maybe it is time to include a "Tip of the day" box on startup (obviously with 
the option to opt
out...).

Rainer

> 
> I like the idea of a read-only tab via Documents->Disable Editing, but then 
> again, I'm lousy at
> C++, know nothing about Qt-4, and therefore am unlikely to help with the 
> addition.
> 
> Thanks,
> 
> SteveT
> 
> Steve Litt*  http://www.troubleshooters.com/ *  
> http://twitter.com/stevelitt 
> Troubleshooting Training  *  Human Performance
> 
> 




Re: Making a tab read-only?

2012-06-26 Thread Liviu Andronic
On Tue, Jun 26, 2012 at 6:02 PM, Steve Litt  wrote:
> I like the idea of a read-only tab via Documents->Disable Editing, but
> then again, I'm lousy at C++, know nothing about Qt-4, and therefore am
> unlikely to help with the addition.
>
No need for that. LyX already features an internal function to disable
the editing, and I've already provided a patch that adds the item to
the menus. Now it is only a matter of the core LyX developers to
approve (or not) of the modification.

Liviu

PS Anyone interested in the feature can easily copy/paste the config
info from the bug report, to add this item to your local LyX
installation. It's very simple.