kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #01171
Re: Re: eeschema: Block commands broken
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
jean-pierre charras - INPG <jean-pierre.charras@...>
-
Date:
Mon, 10 Mar 2008 17:25:19 +0100
-
In-reply-to:
<47D55987.5020800@...>
-
User-agent:
Thunderbird 2.0.0.12 (Windows/20080213)
Wayne Stambaugh a écrit :
Dick,
I made the change. I apologize for the error. I forgot to check the
popup commands before submitting to code. In my zeal to simplify the
eeschema "main loop", I missed the default handler in the first case
statement. I will make sure to be more careful in the future.
I still feel this function needs to be simplified. It is over 700 lines
of code long. It is also redundant. The wxWidgets command loop does
this already. I can understand grouping related commands together in an
event handler. Recombining them back into a single function call and
picking apart again doesn't make a lot of sense to me but maybe I'm
missing the big picture. If you wanted to add a new command (say a
block annotate command), you have to decipher this function to make sure
you don't break anything. Obviously I deciphered it incorrectly.
Wayne
I replaced in last commit the missing lines.
--
Jean-Pierre CHARRAS
Maître de conférences
Directeur d'études 2ieme année.
Génie Electrique et Informatique Industrielle 2
Institut Universitaire de Technologie 1 de Grenoble
BP 67, 38402 St Martin d'Heres Cedex
Recherche :
Grenoble Image Parole Signal Automatique (GIPSA - INPG)
46, Avenue Félix Viallet
38031 Grenoble Cedex
Follow ups
References