elliotf / heekscad

Automatically exported from code.google.com/p/heekscad
0 stars 0 forks source link

Reset Layout chops off icon edges - and some icons if the width is too small to fit them all in. #215

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On the Linux platform, if I use the 'reset layout' menu option (beneath the
'window' menu) it sets two rows for the tool bars (which is good) but the
space (button - I believe) around the icons is insufficient for the icon size.

If I change the const int ToolImage::default_bitmap_size = 24; line to
become const int ToolImage::default_bitmap_size = 16; within
interface/ToolImage.cpp then it all presents well.  I could just make this
change but it seems like a workaround rather than a fix.  I believe the
problem is that the 'button size' (I think that's the terminology) is
smaller than is required for the 'icon size' (bitmap size).  My problem is
that I just can't figure this stuff out.

If I could figure it out, I would also change the layout so that, if a
different 'tool icon size' in the 'view options' were selected, it would
add as many toolbar lines as was necessary to fit them all in.  At the
moment it adds them all in a single row and the larger icons force some of
the toolbars off the right hand edge of the screen.

I will keep looking at it but if someone else has some time and understands
this stuff, can you give me a hand?

Original issue reported on code.google.com by David.Ni...@gmail.com on 28 Oct 2009 at 10:41

GoogleCodeExporter commented 9 years ago
You can work around this problem by doing, from the menu, Window->"Set toolbars 
to
left". Then you can drag them to where you want them.

Original comment by danhe...@gmail.com on 2 Nov 2009 at 8:53

GoogleCodeExporter commented 9 years ago
"Reset Layout" works OK for me; Ubuntu 8.04 on my Dell Mini 9.

To change the default_layout_string in src/HeeksFrame.cpp ( I do this when we 
change
the number of icons in the tool bars )
 Do "Window"->"Set toolbars to left".
 Drag the tool bars to where you want them.
 Close HeeksCAD, to save the defaults.
 Open ".HeeksCAD" file from your home/user folder.
 Copy the string from AuiPerspective=    it's several lines of text on my editor
 Paste this string into definition of default_layout_string in HeeksFrame.cpp ( not
the #ifdef WIN32 one )

Original comment by danhe...@gmail.com on 2 Nov 2009 at 9:18

GoogleCodeExporter commented 9 years ago
Dan,
  thanks for that.  I followed the process and, initially, found it didn't change
anything.  I then removed my ~/.HeeksCAD configuration file and restarted 
HeeksCAD
and it worked correctly.

  The failure occurs when the HeeksCNC plugin is included.  After including HeeksCNC
plugin configuration and restarting HeeksCAD, the space available to the icons 
is
reduced so that the edges of the icons are clipped.

  The workaround of using the 'Set toolbars left' and then moving them around works well.

  I will leave this open and look into it later on.

  Thanks
  David Nicholls

Original comment by David.Ni...@gmail.com on 2 Nov 2009 at 10:09

GoogleCodeExporter commented 9 years ago
Dan,
  I needed to add the layout string into the HeeksCNC.cpp file as well.  By following
your instructions and updating the layout string in the HeeksCNC.cpp file as 
well,
it's all working well.

  Thanks for your help.
  Ta
  David Nicholls

Original comment by David.Ni...@gmail.com on 3 Nov 2009 at 9:33

GoogleCodeExporter commented 9 years ago
Thanks David. Sorry, I forgot about the layout string in HeeksCNC. When I said 
it
worked OK for me, I was only trying HeeksCAD on it's own.
Thanks again.

Original comment by danhe...@gmail.com on 3 Nov 2009 at 10:09