Mailing list archives : pcb-rnd

ID:3112
From:ge...@igor2.repo.hu
Date:Sat, 1 Jun 2019 08:56:21 +0200 (CEST)
Subject:[pcb-rnd] new: layersel scroll, paned left side tools, better small screen
Hi all,
 
I've just finished the following modifications:
 
1. layersel scroll
 
The new layer selector gets scoll bars now if the window is resized to 
"too small"; this fixes the bug that the new layersel forced the top 
window to be too tall for small screen. 
 
With this, we can go down to about 320 pixels in height and still see 3 
layers. On our small-screen target (800x600), even the 4 layer default 
board has all real layers visible and you need to scroll only for the 
virtual layers.
 
Alain, Keantoken, you have both reported this bug, so please test and ACK.
 
2. horizontal pan
 
The split between the left side dock and the main drawing area is now a 
paned widget, which means the user can grab and change the ratio of how 
many pixels are spent for the drawing area and for the left side tools. 
This obviously has a limit, determined by the minimum sizes of whatever 
that got docked on the left (see below)
 
NOTE: we also have the full-screen mode (little icon in the bottom 
right corner of the drawing area scroll bars or the {\} key in the default 
menu file), which removes all the widgets from around the drawing area. On 
small screen it's probably easier to use than constantly resizing the 
left side. 
 
 
3. lesstif
 
The lesstif HID does not yet have the left side dock so it is not 
affected. But all code is implemented with the lesstif HID in mind, it 
will sooner or later catch up too.
 
4. implementation details: docking, default and minimum sizes
 
Since a few weeks ago, the left side is really a dock, the layer selector 
is really a dialog box docked in there, just like the routing style 
selector.
 
We already had a "default size" for DAD dialog boxes. I've now introduced 
the concept of "minimum size". 
 
When talking about docked dialogs in a paned setup, the rule is that when 
the docked dialog is put in the docking area, the paned widget is slided 
automatically to accomodate the _default_ size of the dialog. When moving 
the paner, you can get it smaller, but you can not go below the minimum 
size.
 
In practice the layer selector has 180 pixels for default width and 100 
pixels for minimal width. This means when it is created, it may bump the 
left side of the paned to 180 (it's normally narrower for the routing 
style part), but you can manually pull it back, down to 100 or what the 
routing style allows (if that's bigger than 100).
 
However, if you change the layers, either by editing them or by starting 
or loading a new board, the layer selector is destroyed and created again 
which will bump back the pan to the minimum 180 pixels. This is 
intentional, and is generic (will happen with other dialogs docked in 
there later on).
 
Regards,
 
Igor2
 
 

Reply subtree:
3112 [pcb-rnd] new: layersel scroll, paned left side tools, better small screen from ge...@igor2.repo.hu