delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/07/14/04:07:49

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Thu, 14 Jul 2016 10:14:14 +0200 (CEST)
X-X-Sender: igor2 AT igor2priv
To: geda-user AT delorie DOT com
X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu"
From: gedau AT igor2 DOT repo DOT hu
Subject: Re: [geda-user] RFC: gtk-hid window size save/restore
In-Reply-To: <alpine.DEB.2.00.1606150620340.7286@igor2priv>
Message-ID: <alpine.DEB.2.00.1607141006190.7286@igor2priv>
References: <alpine DOT DEB DOT 2 DOT 00 DOT 1606140744350 DOT 7286 AT igor2priv> <alpine DOT DEB DOT 2 DOT 00 DOT 1606150620340 DOT 7286 AT igor2priv>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
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


On Wed, 15 Jun 2016, gedau AT igor2 DOT repo DOT hu wrote:

> Hi all,
>
> thanks everyone for the valuable input, yet another thread with useful ideas 
> and no distraction!
>
> It seems there are as many preferences as many users with this window geometry 
> thing, so I'm going to make it flexible/configurable with two booleans.
>

Meanwhile finished this feature. I decided to go for an even more flexible 
approach. There is a new node in the preferences tree for window geometry. 
There is a table with three lines:

  - save to the design file (to the .pcb)

  - save to the project file

  - save to the user config (which is usually ~/.pcb-rnd/pcb-conf.lht)

Each line has two active widgets: a button that does an immediate save and 
a checkbox. If the checkbox is checked, the save is done on every 
project save or exit.

This setup provides maximal flexibility, the user can use the buttons to 
save precious setup explicitly and leave the checkboxes unchecked. Or the 
user can check the 'save in user config' checkbox to get back (something 
very close to) the original pcb behavior.

Currently window sizes can be saved, but not window positions. In a later 
iteration I plan to support that too.

Regards,

Igor2

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019