Re: Icon size in Lyx 2.2.2

2016-12-12 Thread Scott Kostyshak
On Sat, Dec 10, 2016 at 08:50:11AM +0100, racoon wrote:
> On 10.12.2016 00:08, Scott Kostyshak wrote:
> > On Fri, Dec 09, 2016 at 10:21:49AM +0100, Jean-Marc Lasgouttes wrote:
> > > Le 09/12/2016 à 02:23, Scott Kostyshak a écrit :
> > > > > > Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active 
> > > > > > (not
> > > > > > grayed out).
> > > > 
> > > > I think we should enable the context menu even if the icons are greyed
> > > > out. I think we discussed this elsewhere also. Do others agree?
> > > 
> > > I agree that we should, but is it something we have control on?
> > 
> > I don't know.
> > 
> > racoon do you have any ideas on this since you've worked a bit on the
> > toolbar code?
> 
> I wondered this before as well but could not find a setting for it. Seems to
> me like a bug of qt. But maybe it is as it should be according to their
> documentation?
> 
> One way to implement it manually might be (in the constructor of toolbars
> maybe?) to
> 
> 1. disable the default context menu for the toolbars
> 
> http://www.qtcentre.org/threads/7718-How-to-disable-context-menu-of-a-toolbar-in-QMainApplication
> 
> 2. add a custom event to the toolbar
> 
> Could this help? http://stackoverflow.com/a/4781437
> 
> Maybe these two things could be added to the constructor of a toolbar?
> 
> Sorry, not much of a help I guess.
> 
> Daniel

Thanks for the response, Daniel. It indeed seems non-trivial. I'm not
interested in spending the time myself to look into a fix. If it is a
bug of Qt, then I guess just waiting to see it is ever fixed seems like
an OK idea (at least it gives me an excuse to not work on it now).

Scott


signature.asc
Description: PGP signature


Re: Icon size in Lyx 2.2.2

2016-12-09 Thread racoon

On 10.12.2016 00:08, Scott Kostyshak wrote:

On Fri, Dec 09, 2016 at 10:21:49AM +0100, Jean-Marc Lasgouttes wrote:

Le 09/12/2016 à 02:23, Scott Kostyshak a écrit :

Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active (not
grayed out).


I think we should enable the context menu even if the icons are greyed
out. I think we discussed this elsewhere also. Do others agree?


I agree that we should, but is it something we have control on?


I don't know.

racoon do you have any ideas on this since you've worked a bit on the
toolbar code?


I wondered this before as well but could not find a setting for it. 
Seems to me like a bug of qt. But maybe it is as it should be according 
to their documentation?


One way to implement it manually might be (in the constructor of 
toolbars maybe?) to


1. disable the default context menu for the toolbars

http://www.qtcentre.org/threads/7718-How-to-disable-context-menu-of-a-toolbar-in-QMainApplication

2. add a custom event to the toolbar

Could this help? http://stackoverflow.com/a/4781437

Maybe these two things could be added to the constructor of a toolbar?

Sorry, not much of a help I guess.

Daniel


Re: Icon size in Lyx 2.2.2

2016-12-09 Thread Scott Kostyshak
On Fri, Dec 09, 2016 at 10:21:49AM +0100, Jean-Marc Lasgouttes wrote:
> Le 09/12/2016 à 02:23, Scott Kostyshak a écrit :
> > > > Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active (not
> > > > grayed out).
> > 
> > I think we should enable the context menu even if the icons are greyed
> > out. I think we discussed this elsewhere also. Do others agree?
> 
> I agree that we should, but is it something we have control on?

I don't know.

racoon do you have any ideas on this since you've worked a bit on the
toolbar code?

Scott


signature.asc
Description: PGP signature


Re: Icon size in Lyx 2.2.2

2016-12-09 Thread Jean-Marc Lasgouttes

Le 09/12/2016 à 02:23, Scott Kostyshak a écrit :

Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active (not
grayed out).


I think we should enable the context menu even if the icons are greyed
out. I think we discussed this elsewhere also. Do others agree?


I agree that we should, but is it something we have control on?

JMarc



Re: Icon size in Lyx 2.2.2

2016-12-08 Thread Scott Kostyshak
> > Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active (not
> > grayed out).

I think we should enable the context menu even if the icons are greyed
out. I think we discussed this elsewhere also. Do others agree?

Scott


signature.asc
Description: PGP signature


Re: Icon size in Lyx 2.2.2

2016-12-08 Thread Paul A. Rubin

On 12/08/2016 04:14 PM, UD wrote:




On 12/08/2016 05:45 PM, Paul A. Rubin wrote:

On 12/08/2016 11:20 AM, UD wrote:
I used to be able to right-click on an icon in Lyx and change the 
size of the icons, but in Lyx 2.2.2 nothing happens when I right 
click an icon.

What am I missing?  I have qt5 installed.
Thanks--
EK


Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active 
(not grayed out).


Paul

Thanks Paul-- silly me-- I was trying it without an open file, 
thinking it had something to do with Lyx itself.
Once I opened a file it worked as it should.  A bit confusing for 
novices like me, but it works once you know how.


EK

Ehud,

It works without a document being open, so long as you pick a live icon. 
With no document open, try the "New Document" or "Open Document" icon on 
the main tool bar.


Working in a GUI where I'm not sure how to do something, I frequently 
resort to "right click anything that can't outrun me" until I find what 
I'm looking for. :-)


Paul



Re: Icon size in Lyx 2.2.2

2016-12-08 Thread UD



On 12/08/2016 05:45 PM, Paul A. Rubin wrote:

On 12/08/2016 11:20 AM, UD wrote:
I used to be able to right-click on an icon in Lyx and change the 
size of the icons, but in Lyx 2.2.2 nothing happens when I right 
click an icon.

What am I missing?  I have qt5 installed.
Thanks--
EK


Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active 
(not grayed out).


Paul

Thanks Paul-- silly me-- I was trying it without an open file, thinking 
it had something to do with Lyx itself.
Once I opened a file it worked as it should.  A bit confusing for 
novices like me, but it works once you know how.


EK

--
Ehud Kaplan, Ph.D.
Jules and Doris Stein Research to Prevent Blindness Professor
Director, Center of Excellence for Computational & System neuroscience,
The Friedman Brain Institute, ISMMS
Director, The laboratory of Visual & Computational Neuroscience
Depts. of Neuroscience, Ophthalmology, Chemical & Structural Biology
The Icahn School of Medicine at Mount Sinai
One Gustave Levy Place
New York, NY, 10029
USA



Re: Icon size in Lyx 2.2.2

2016-12-08 Thread Paul A. Rubin

On 12/08/2016 11:20 AM, UD wrote:
I used to be able to right-click on an icon in Lyx and change the size 
of the icons, but in Lyx 2.2.2 nothing happens when I right click an 
icon.

What am I missing?  I have qt5 installed.
Thanks--
EK


Works for me (Linux Mint, Qt 4.8.6), so long as the icon is active (not 
grayed out).


Paul



Icon size in Lyx 2.2.2

2016-12-08 Thread UD

  
  
I used to be able to right-click on an icon in Lyx and change the
size of the icons, but in Lyx 2.2.2 nothing happens when I right
click an icon. 
What am I missing?  I have qt5 installed.
Thanks--
EK