Hi guys,

I have a a few questions for someone more familiar with the code than me.  
Mostly about preferences, but also one random question that has me scratching 
my head, bearing in mind that I’m not a C++ guy.  I’ll start with that one.

Is there a reason that WX_VIEW_CONTROLS coerces it’s aParentPanel argument to 
its superclass type?  EDA_DRAW_PANEL_GAL instantiates one of these and passes 
an instance of itself, but WX_VIEW_CONTROLS coerces it to a wxWindow*.  This 
means casting is needed to get at the subclass’ public members.   Again, I’m 
not a C++ guy, but I couldn’t figure out the reason for this.

Another question about the current implementation.  I notice that neither the 
EDA_DRAW_PANEL_GAL nor EDA_3D_CANVAS honor the mouse preferences, e.g. middle 
button panning, and making them do so essentially requires duplicating what is 
implemented for EDA_DRAW_PANEL.  It seems like these preferences belong 
somewhere else, like maybe EDA_DRAW_FRAME (or maybe there’s somewhere more 
appropriate).  I guess my question is whether anyone has done any work in this 
area or looked at it enough to have an opinion about it.

And finally, a more generic user level question spawned by the above.  Given 
that kicad is migrating toward a more unified UI via Kiway, is there a story 
for how preferences will be handled.  Currently, for instance, one has to go to 
the eeschema preferences and the pcbnew preferences to change the same set of 
prefs for some things.  Is there a plan to unify this in any way.  Seems like 
this is complicated by the ability to run the applications standalone, because 
the above makes perfect sense in that scenario.  If you view these as part of 
the same application, though, it seems cumbersome.  Just curious.


Thanks,

Garth

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to