kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #08270
Re: Patch: Don't force modal dialog on creating a new file
And what about a commandline parameter "--create" or "-c" when
we want the file to be created (when file doesn't exist?)
I also find the dialog annoying when you are creating a project from
within KiCad, but also wouldn't be normal to just create the file
when calling pcbnew from outside KiCad to open a .brd file.
2012/5/14 jean-pierre charras <jp.charras@xxxxxxxxxx>
> Le 14/05/2012 02:04, Henner Zeller a écrit :
>
> Hi,
>> Small patch.
>>
>> When creating a new schematic or start a new board from your
>> schematic, a new file is created. But in that case an
>> attention-grabbing modal dialog pops ups telling the user that 'The
>> file is not found'. The first reaction of the user is that something
>> went wrong - but everything works as expected.
>>
>> It seems, someone 'fixed' this problem by adding a message to these
>> dialog boxes that this is normal and expected if this is the first
>> time happening.
>> But this fixes the symptom, not the cause (scary attention grabbing
>> modal dialog box).
>>
>> There is really no reason for such a modal dialog, and they should be
>> used sparingly.
>> In any other application, if a new file is opened, a message in the
>> status line is telling about this. If at all.
>>
>> This patch fixes this: what used to be a modal dialog box is now just
>> a status message "New file %s".
>>
>> cheers,
>> -henner
>>
>
> I am not enthusiastic about this patch.
> The dialog about a not found file is usual, and most of application do
> that.
> Assuming "try to opening a not existing file" should be "create a new
> file" is wrong.
> There are lot of reasons when a file is missing and should exist:
> For instance a file can be missing because it was forgotten when copying a
> lot of files,
> or erroneous renaming file command, ...
> and the user *should be* prompted.
>
> The issue for new projects (and only for new projects) is in fact in Kicad,
> that perhaps could create void .sch and .pcb files after creating the .pro
> file.
>
>
>
>
> --
> Jean-Pierre CHARRAS
>
>
> ______________________________**_________________
> Mailing list: https://launchpad.net/~kicad-**developers<https://launchpad.net/~kicad-developers>
> Post to : kicad-developers@lists.**launchpad.net<kicad-developers@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~kicad-**developers<https://launchpad.net/~kicad-developers>
> More help : https://help.launchpad.net/**ListHelp<https://help.launchpad.net/ListHelp>
>
--
Miguel Angel Ajo Pelayo
http://www.nbee.es
+34 636 52 25 69
skype: ajoajoajo
Follow ups
References