kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #05409
Re: Footprint reference/value text size patch
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxxxx>
-
Date:
Mon, 13 Sep 2010 10:22:32 -0400
-
In-reply-to:
<AANLkTinf1F4AUMfJg2Ydw+29oCrt104gQzoA2b=QgzcT@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2
On 9/10/2010 9:19 AM, Marco Mattila wrote:
> Hi,
>
> Do you have any input regarding this patch proposal? Is there something that
> should be done differently for this to be considered?
Marco,
I apologize for not responding sooner but I've been very busy. I reviewed your
patch and have a few comments before I would commit it.
1) Modify the context menu so that selecting a module will only display the
"Reset Size" menu entry. "Reset All Sizes" doesn't make sense when selecting a
module. "Reset All Sizes" should probably be displayed when selecting an empty
region of the board.
2) Menu entries are to have header (Title) capitalization per the UI guidelines
not sentence capitalization.
3) Avoid direct manipulation of the module object in your code. Why not add a
SetTextSize( aHeight, aWidth ) method to the module class and hide all direct
manipulation of the module's text objects? This would make the code easier to
maintain and understand.
4) If there are any other text items besides m_Reference and m_Value reset them
as well. As a user I would expect all of the module text to get reset not just
the value and reference text.
I know some of this seems trivial but I have spent a lot of time cleaning up
these kinds of issues would prefer that the patch submitter clean them up
before committing it. Thanks for taking the time to help improve Kicad.
Wayne
>
> Regards,
>
> Marco
>
> On Sun, Aug 29, 2010 at 9:50 PM, Marco Mattila wrote:
>
> Hi,
>
> I've attached a patch that allows reseting footprint reference or value
> text sizes and widths to the defaults set in the Dimensions->Texts and
> Drawings dialog. The functions "Reset size" and "Reset all sizes" are added
> into Reference and Value submenus of the right-click context menu (not sure
> if that's the correct place for these). Reset size resets the selected
> field only, all sizes resets all similar fields (reference or value).
>
> Regards,
>
> Marco
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
Follow ups
References