| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
| X-Recipient: | geda-user AT delorie DOT com |
| X-Original-DKIM-Signature: | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qux.com; |
| s=default; h=To:References:Message-Id:Content-Transfer-Encoding:Date: | |
| In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:Cc: | |
| Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: | |
| Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: | |
| List-Subscribe:List-Post:List-Owner:List-Archive; | |
| bh=QDNOyjd8K4p0Lz129MUCF9znvmbSMO3wBIJ0JiL88zM=; b=R9YWLpUulVCMWGHDXafbxR71ro | |
| dsdXPbKky4J1sOsBE/qVd9thA4zOI/tgcdq2xcCgqdFGr49KLs3XZmr+/1FAoYwGTBxpHpHGC622/ | |
| K20enwa+TxKEQ+cCFKsfIHCF5LCryaimZpNfEp9kOJ8l8HIot1Rrip4347lolzlbDRss=; | |
| Mime-Version: | 1.0 (Mac OS X Mail 9.3 \(3124\)) |
| Subject: | Re: [geda-user] Annoying object selection behaviour in gschem > 1.6.2 |
| From: | "Roger Williams (roger AT qux DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> |
| In-Reply-To: | <CAAKZVJnZFhwf1SJpiMirG3YGb6gwcRq0+x=kdf49fRpLmGh=Ew@mail.gmail.com> |
| Date: | Sun, 23 Oct 2016 11:34:52 -0400 |
| Message-Id: | <86CE0804-4DB5-402E-9D6A-CAC8C69BF910@qux.com> |
| References: | <1477080832 DOT 2909 DOT 106 DOT camel AT linetec> <201610212041 DOT u9LKfw5r031245 AT envy DOT delorie DOT com> <1477089908 DOT 2909 DOT 123 DOT camel AT linetec> <s6nbmycyci8 DOT fsf AT blaulicht DOT dmz DOT brux> <1477129015 DOT 2909 DOT 130 DOT camel AT linetec> <141F9C23-F141-42FE-A760-834BBDAA7C2F AT qux DOT com> <CAAKZVJnZFhwf1SJpiMirG3YGb6gwcRq0+x=kdf49fRpLmGh=Ew AT mail DOT gmail DOT com> |
| To: | geda-user AT delorie DOT com |
| X-Mailer: | Apple Mail (2.3124) |
| X-AntiAbuse: | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse: | Primary Hostname - meta.viewyourip.com |
| X-AntiAbuse: | Original Domain - delorie.com |
| X-AntiAbuse: | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse: | Sender Address Domain - qux.com |
| X-Get-Message-Sender-Via: | meta.viewyourip.com: authenticated_id: raw AT qux DOT org |
| X-Authenticated-Sender: | meta.viewyourip.com: raw AT qux DOT org |
| X-Source: | |
| X-Source-Args: | |
| X-Source-Dir: | |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id u9NFYxjx001205 |
| Reply-To: | geda-user AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | geda-user AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
Thanks, Dmitry!
>> In 1.8.2, a window selection of multiple objects can select individual
>> attributes of a component, rather than the earlier, more logical
>> all-or-nothing rule. This breaks the inviolability of a component object,
>> and makes it too easy to inadvertently break components and create
>> unattached attributes.
>
> Could you elaborate, please, on how exactly multiple
> attributes/objects/components
> selection algorithm should look like?
What I mean is that a window selection shouldn't be allowed to select individual attributes of a component without selecting the entire component. In 1.8.2, you have to be extremely careful with window selections to avoid accidental selection of single attributes (refdes, value, etc.) of a component. In 1.6.2, a window selection can't select a single attribute: if the window doesn't completely enclose the component, none of the component attributes are selected.
--
Roger Williams <roger AT qux DOT com>
Chief Technical Officer, Qux Corporation
> On 22 Oct 2016, at 20:36, dmn (graahnul DOT grom AT gmail DOT com) [via geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
>
> On 10/22/16, Roger Williams (roger AT qux DOT com) [via
> geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
>> In 1.8.2, after copying an object, the old object remains selected, rather
>> than the selection shifting to the the copy as in ≤ 1.6.2. This not only
>> reduces productivity, but it breaks a long-standing convention in CAD that
>> the selection shifts to the copy.
>
> Agree.
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;
> ; Shift selection to pasted objects:
> ;
>
> ( use-modules ( gschem selection ) )
> ( use-modules ( gschem window ) )
> ( use-modules ( gschem hook ) )
>
> ( define ( on_paste objs )
>
> ( for-each
> ( lambda( obj )
> ( deselect-object! obj )
> )
> ( page-selection (active-page) )
> )
>
> ( for-each
> ( lambda( obj )
> ( select-object! obj )
> )
> objs
> )
>
> ) ; on_paste()
>
> ( add-hook! paste-objects-hook on_paste )
>
> ;
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> Place the code in ${HOME}/.gEDA/gschemrc file.
> Tested on latest git version of geda-gaf.
>
>
> Dmitry.
>
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |