Re: [Kicad-developers] Display origin transforms for DRC reports?

2020-07-09 Thread Reece R. Pollack

On 7/9/20 7:09 PM, Tomasz Wlostowski wrote:

On 10/07/2020 00:58, Reece R. Pollack wrote:

I'm looking at display origin transformations for DRC reports.

With the 5.1.x branch Pcbnew, the DRC report dialog box message texts
contained the Cartesian coordinates of each flagged item. It appears
that the 5.99 branch no longer displays the coordinates of DRC items.
However, the Cartesian coordinates are still listed in the report file.
Unlike the display in a dialog box, this report is persistent and could
be passed to someone using different display origin settings.

  1. Should these coordinates be reported relative to the page origin, or
 transformed per the user-selected origin and axis directions?
  2. If the coordinates are transformed, should the report include the
 user settings?

-Reece


Reece,

I wouldn't introduce any changes to the current DRC code, we're
designing a new DRC engine for KiCad V6 and many things in DRC interface
will likely change.

IMHO the DRC coordinate transform belongs to the UI, not the DRC itself:
- the DRC engine generates an internal report with coordinates in board
coordinate space
- whatever displays the report to the user (i.e. the DRC dialog)
converts the board coordinates to UI coordinates.

- my 5 cents
Tom



Tom,

I'm not hard to convince, especially when it means doing less work.

This sounds like the RC_ITEM::ShowCoord function will be removed or 
replaced. It's one of the two troublesome function groups.


The other troublesome function group is the GetSelectMenuText function. 
Last year I knew what they did but I've forgotten in the interim. Will 
this DRC rewrite replace these?


-Reece

___
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


Re: [Kicad-developers] Display origin transforms for DRC reports?

2020-07-09 Thread Tomasz Wlostowski
On 10/07/2020 00:58, Reece R. Pollack wrote:
> I'm looking at display origin transformations for DRC reports.
> 
> With the 5.1.x branch Pcbnew, the DRC report dialog box message texts
> contained the Cartesian coordinates of each flagged item. It appears
> that the 5.99 branch no longer displays the coordinates of DRC items.
> However, the Cartesian coordinates are still listed in the report file.
> Unlike the display in a dialog box, this report is persistent and could
> be passed to someone using different display origin settings.
> 
>  1. Should these coordinates be reported relative to the page origin, or
> transformed per the user-selected origin and axis directions?
>  2. If the coordinates are transformed, should the report include the
> user settings?
> 
> -Reece
> 

Reece,

I wouldn't introduce any changes to the current DRC code, we're
designing a new DRC engine for KiCad V6 and many things in DRC interface
will likely change.

IMHO the DRC coordinate transform belongs to the UI, not the DRC itself:
- the DRC engine generates an internal report with coordinates in board
coordinate space
- whatever displays the report to the user (i.e. the DRC dialog)
converts the board coordinates to UI coordinates.

- my 5 cents
Tom



___
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] Display origin transforms for DRC reports?

2020-07-09 Thread Reece R. Pollack

I'm looking at display origin transformations for DRC reports.

With the 5.1.x branch Pcbnew, the DRC report dialog box message texts 
contained the Cartesian coordinates of each flagged item. It appears 
that the 5.99 branch no longer displays the coordinates of DRC items. 
However, the Cartesian coordinates are still listed in the report file. 
Unlike the display in a dialog box, this report is persistent and could 
be passed to someone using different display origin settings.


1. Should these coordinates be reported relative to the page origin, or
   transformed per the user-selected origin and axis directions?
2. If the coordinates are transformed, should the report include the
   user settings?

-Reece

___
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] Proposal: Drop GTK2 support

2020-07-09 Thread Ian McInerney
Currently, we support both GTK2 and GTK3 versions of wxWidgets. What I am
proposing here is that we drop the support of GTK2 from our codebase and
only officially support the GTK3 version of wxWidgets on Linux. This would
only apply for master (v6 and beyond), 5.1 would continue to have its same
support status.

The reasons I have for wanting this are:
* GTK2 has some issues in rendering our UI that we can't overcome (
https://gitlab.com/kicad/code/kicad/-/issues/4842).
* New features in the KIPLATFORM library will make direct use of the GTK
calls and headers, and having to support mixed GTK versions makes the build
system and code for these features very complex
* All of our supported platforms for v6 use the GTK3 version of wxWidgets
by default

Any objections/comments?

-Ian
___
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


Re: [Kicad-developers] Kicad 6 API

2020-07-09 Thread Nick Østergaard
Are you talking about the python scripting API,   or what is your intention?

tor. 9. jul. 2020 14.20 skrev Conrad Wood :

> Hi,
>
> I have a keen interest on APIs for Kicad6. I wonder if there are any
> documents describing the intented architecture and APIs of Kicad6 yet?
> If so could you give me a pointer where?
> If not, is there any interest in me starting a google doc and begin to
> propose something like it?
>
> Conrad
>
>
>
>
> ___
> 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
>
___
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] Kicad 6 API

2020-07-09 Thread Conrad Wood
Hi,

I have a keen interest on APIs for Kicad6. I wonder if there are any
documents describing the intented architecture and APIs of Kicad6 yet?
If so could you give me a pointer where?
If not, is there any interest in me starting a google doc and begin to
propose something like it?

Conrad




___
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