DarwinNE / FidoCadJ

FidoCadJ is a free user-friendly vector graphic editor for MacOSX, Linux, Windows and Android with a library of electronic symbols.
http://darwinne.github.io/FidoCadJ/
GNU General Public License v3.0
113 stars 40 forks source link

Often I can't save new components in the libraries #120

Closed Max2433BO closed 7 years ago

Max2433BO commented 7 years ago

HI, @DarwinNE

I shall quote a problem reported by a mutual friend from electroyou.it site:

when you create a new component for FidoCadJ (I suppose the 0.24.6 version, but I'm not sure) libraries and you save it, often does not accept the new component because the key number is already assigned. In order to save the new component we must make a series of attempts by assigning a random number. ... And if you are unlucky, it happens sometimes, you have to try and try again several times. :(

This is ... I haven't tried it, and I will propose as is.

Bye, Max

DarwinNE commented 7 years ago

Hi @Max2433BO If I understand correctly the problem, a solution may be to put the background of the key field in red if the key can not be accepted (because incomplete or replicate in the library).

Cheers, D.

DarwinNE commented 7 years ago

Here is my solution. An invalid key is shown in this way:

invalid

Here the key is invalid as there is a space. The key does not need to be a numerical code, btw. If the "ok" button is clicked anyway, the usual error message appears. Now the program checks if the code is available or not before choosing one more or less randomly.

Max2433BO commented 7 years ago

Hi, @DarwinNE ,

it's a good idea for me ... now we have to hear what think our mutual friend ;)

Bye, Max

DarwinNE commented 7 years ago

Ok, I close this issue now.