Re: [Kicad-developers] Pl_Editor scrollbars

2014-06-28 Thread Jason Whiteman
Now that I can compile, it's fairly obvious that the difference in
BestZoom() is likely not any issue.  The architecture for the window
management is slightly different between the two (Pl_editor vs eeschema).
Unfortunately, my soak-time with the source is not long enough to offer
anything other than functional observations.  Unless someone beats me to it
- I'll continue to look, as a vehicle to learn the window management
architecture, into the cause as a secondary thread to the other features
I'm working on.

Regards,
Jason



On Fri, Jun 27, 2014 at 8:56 PM, Jason Whiteman whitemanja...@gmail.com
wrote:

 Coming from the 07-07-2013 BZR release for windows - the Pl_Editor is a
 new and welcome feature.  I see the window defaults with the sheet border
 centered but the scroll bars are at max-right (for bottom scroll) and
 max-down (for side scroll).  When zooming in, the center is zoomed (as
 expected) but the portion of the border which is now off screen since
 we've zoomed in to the right or bottom cannot be accessed because the
 scrollbars are pegged to full right and full bottom already.  Therefore,
 zooming into the title block area does not appear possible unless there is
 another workaround I am unaware of.

 Actually - F4 seems to allow me to reorient the center.  But the
 scrollbar behavior is still non-intuitive at best.

 Ultimately, the extents of the scrollbars should always follow the extent
 of the page (at a minimum) with possibly extra margin.

 Eeschema uses the same underlying scrollbar control functions and eeschema
 does not have an issue - so I suspect pl_editor_frame.cpp

 Comparing pl_editor_frame.cpp to schframe.cpp (eeschema's equiv) I see the
 following difference in BestZoom():

 // PL_EDITOR Version

 dx = GetPageLayout().GetPageSettings().GetWidthIU();
 dy = GetPageLayout().GetPageSettings().GetHeightIU();

 // SCHFRAME Version

 dx = GetScreen()-GetPageSettings().GetWidthIU();
 dy = GetScreen()-GetPageSettings().GetHeightIU();

 =

  I'm wondering if the GetPageLayout() vs. GetScreen() in
 pl_editor_frame.cpp is causing the issue.

  Since, for another issue, I've switched to a debug build -- which is
 currently in the taking forever for a 1st build stage -- I do not yet
 have test results for the shotgun approach of swapping methods for dx and
 dy assignments.

 Regards,
 Jason


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Pl_Editor scrollbars

2014-06-27 Thread Jason Whiteman
Coming from the 07-07-2013 BZR release for windows - the Pl_Editor is a new
and welcome feature.  I see the window defaults with the sheet border
centered but the scroll bars are at max-right (for bottom scroll) and
max-down (for side scroll).  When zooming in, the center is zoomed (as
expected) but the portion of the border which is now off screen since
we've zoomed in to the right or bottom cannot be accessed because the
scrollbars are pegged to full right and full bottom already.  Therefore,
zooming into the title block area does not appear possible unless there is
another workaround I am unaware of.

Actually - F4 seems to allow me to reorient the center.  But the
scrollbar behavior is still non-intuitive at best.

Ultimately, the extents of the scrollbars should always follow the extent
of the page (at a minimum) with possibly extra margin.

Eeschema uses the same underlying scrollbar control functions and eeschema
does not have an issue - so I suspect pl_editor_frame.cpp

Comparing pl_editor_frame.cpp to schframe.cpp (eeschema's equiv) I see the
following difference in BestZoom():

// PL_EDITOR Version

dx = GetPageLayout().GetPageSettings().GetWidthIU();
dy = GetPageLayout().GetPageSettings().GetHeightIU();

// SCHFRAME Version

dx = GetScreen()-GetPageSettings().GetWidthIU();
dy = GetScreen()-GetPageSettings().GetHeightIU();

=

 I'm wondering if the GetPageLayout() vs. GetScreen() in
pl_editor_frame.cpp is causing the issue.

 Since, for another issue, I've switched to a debug build -- which is
currently in the taking forever for a 1st build stage -- I do not yet
have test results for the shotgun approach of swapping methods for dx and
dy assignments.

Regards,
Jason
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp