kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #29397
Re: [Patch] pcbnew clipboard support
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Sumiński <maciej.suminski@xxxxxxx>
-
Date:
Mon, 8 May 2017 15:41:58 +0200
-
Authentication-results:
spf=pass (sender IP is 188.184.36.50) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
In-reply-to:
<35f34454-ef81-8133-0586-3b4aa7c92d37@gmail.com>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
Hi Kristoffer,
It is a neat feature. Your application is a good application, but I
think it would really shine in the footprint editor. Unfortunately, it
crashes when I tried to copy and paste a bunch of pads. Could you check it?
IMHO it would be better to keep standard Ctrl+C and Ctrl+V hot keys, as
this is what people are likely to press when they want to copy or paste
items. These two functions also deserve an entry in the right-click
context menu. Let's not add more hidden features in KiCad.
Speaking of which, you can also have a look at
MODULE_EDITOR_TOOLS::{Copy,Paste}Items()
(pcbnew/tools/module_editor_tools.cpp). Yes, you guessed it - there was
already copy & paste for the module editor, but it was not properly
exposed, mea culpa. We need to pick one way, and remove the other.
There are also some code formatting violations that also should be
handled before merging the patch. Tools like uncrustify or clang-format
will do most of the boring work for you.
If we decide to choose your way, then you need to add GPL license header
for kicad_clipboard.{cpp,h} too.
Regards,
Orson
On 05/04/2017 10:40 AM, Kristoffer Ödmark wrote:
> Hello all!
>
> Last night I was doing some design that used a PCB antenna. I had this
> antenna design made in zones, It was very frustrating to try to copy
> this between an old design and a new one since I had to use a texteditor
> ( very glad that I could though ).
>
> After this I figured that this should be able to be copy-pasted between
> pcbs.
>
> So I have now implemented a subclass of the PCB_IO, that can format an
> entire board or a selection to the clipboard in textformat, and then
> created a subclass to the PCB_PARSER that parses from the clipboard and
> reuses the "append board" functionality to add them back. It also does
> remove the "path" properties of modules. This allows me to copy-paste
> things between different PCBs in kicad. The shortcut keys are
> ctrl+shift+c and ctrl+shift+v so that people dont use this by mistake :)
>
> I think that this might be useful for reusing designs in some manner,
> and if this is in Kicad, my next step would be to start looking into
> some tool to link the pasted modules to symbols in the schematic.
>
> Give me some insight on what you think about this please :)
>
> video: https://youtu.be/4SuUzma0Ua4
>
> (only tested in linux)
>
> - Kristoffer
>
>
> _______________________________________________
> 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
>
Attachment:
signature.asc
Description: OpenPGP digital signature
Follow ups
References