← Back to team overview

kicad-developers team mailing list archive

Re: pcbnew file import plugins

 

On 2016-03-02 11:31, Simon Wells wrote:
> the problem i see with the dialog,
> lets say for example kicad comes with an extension that handles Eagle
> v5 v6 and v7 and the user installs a user made plugin hands eagle v3
> v4 and v5 if you load a v5 plugin the problem is which extension to
> use as theoretically they are both able to handle the file type

The problem might vanish again, when you give the operator a bit
more informaion. Filetype + version as well as the tool
trying to taking care about it:

---------
More than one file handler seems to be able to open the file:
 ~/share/projects/kicad/ThisIsMyExperimental.pcbx
Please choose the file handler to open your file:

 [ ] Eagle v5 (handled by KiCad Extension for Eagle v5 v6 v7)
 [x] Eagle v5 (handled by KiCad UserPlugin for Eagle v3 v4 v5)
 [ ] SuperPCB V5 (handled by... )
 [ ] OttoTool V3.2.1 (...)
 [ ] gEDA V1.2.3 (...)

 [ ] select/force manually...

 [ ] remember my selection for this file type.

[Hexdump that file now]                [Cancel]    [Ok]
---------

Nowadays, we have about 10kCharacters equivalent of screen real
estate per screen. Dump the information, give the choice, ask for help.
When the software runs out of magic, delegate to the user.
IMO, failing (software) is not an option, especially when you
have more than one...

Regards,

Clemens

> 
> On Wed, Mar 2, 2016 at 11:26 PM, Clemens Koller <cko@xxxxxxxxx> wrote:
>>
>> On 2016-03-02 10:40, Nick Østergaard wrote:
>>> If multiple plugins can handle a file, how would you handle that
>>> situation seamlessly?
>>
>> Dialog with the operator:
>> ---------
>> More than one file import plugins seem to be able to handle your file type:
>>   ~/share/projects/kicad/ThisIsMyExperimental.pcbx
>> Please choose the PCB plugin to open that file tyoe:
>>
>> [x] SuperPCB V5
>> [ ] OttoTool V3.2.1
>> [ ] gEDA V1.2.3
>>
>> [ ] remember my selection for this file type.
>>
>> [OK] [Cancel]
>> ---------
>>
>>
>>> Blindly trusting extensions is indeed problematic as we already have seen :)
>>
>> We have the 'file' command:
>> http://www.darwinsys.com/file/
>> https://github.com/file/file
>>
>> It simply says: "The file command is "a file type guesser""
>>
>>
>> Regards,
>>
>> Clemens
>>
>>
>> _______________________________________________
>> 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