[Xastir-Dev] Annoying map chooser behavior to be corrected

Jack Twilley jmt at twilley.org
Wed Oct 29 14:17:51 EST 2003


WARNING: Unsanitized content follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Curt" == Curt Mills <Curt> writes:

[...]

Curt> I tried the checked-in code and it looks like the zoom level
Curt> stuff works very well.  Thanks for doing that!

Curt> A few things still:

Curt> 1) I'd like to swap the positions of the new parameters in the
Curt> map_index file as specified in the last message direct to you.

I saw that, and responded to it.  The message I sent to xastir-dev
announcing the fix included directions on preserving old values.  In
case it didn't make it out to the list, here they are:

- --begin exercpt--
Q: What about my existing map_index.sys file?

A: Run these commands:
   $ cd ~/.xastir/config
   $ mv map_index.sys map_index.sys-old
   $ awk -F, 'BEGIN { OFS="," } { print $1, $2, $3, $4, "00000", "00000",
 $5, $6, $7, $8 }' < map_index.sys-old > map_index.sys

   That'll modify your existing map_index.sys to handle the two new
   columns.  When both values are zero, the software behaves exactly
   as it did before the patch.

- --end excerpt--

I don't have much of a personal attachment to how the files are ordered,
just warn me before you make any changes because you'll break my
stuff. :-)

Curt> 2) I'd like the Map Properties window to be narrower.  I don't
Curt> think it fits on a 640x480 screen.  It needs to.

I'd rearrange the bottom of the window to look something like this:

Max Zoom -->   0   Min Zoom -->   0   Change Layer -->   0  

Filled -> Yes No   Automaps -> Yes No   Clear   Close

I don't know how to do this, though.

Curt> 3) I'd like to be able to somehow merge the Map Chooser and the
Curt> Map Properties dialogs so that you can change properties more
Curt> easily, without having to manually synchronize between the two
Curt> windows.  With a lot of maps and directories it gets hard to
Curt> find the maps you want to mess with sometimes, to both select
Curt> them and to change their properties.  I haven't figured out what
Curt> I'd like it to look like yet, but perhaps having another button
Curt> on the Map Chooser that brings up a Properties window that only
Curt> has the selected maps in it?  That would narrow down the choice.

One option would be to change the Properties window to only reflect
selected maps -- as long as selecting a directory selects all the maps
in that directory, recursively, I'm happy.  An alternative would be to
merge the Map Chooser and Map Properties into one window.

Suggestions for this option would be:

 * remove the buttons from the bottom of the chooser, and use the
   buttons from the Properties screen instead

 * use a windows-esque directory/file choosing mechanism

 * have the ability to set values on directories, for all files
   beneath them

Curt> Another possibility would be to right-click on a map in the Map
Curt> Chooser and have it bring up properties for that map?  That
Curt> would allow quick changes to one map, but you'd still need to
Curt> have the full Map Properies dialog for making large numbers of
Curt> changes at once.  We'd also need a keyboard method of getting to
Curt> that right-click option.

If we do end up with the ability to view a subset of files in the
Properties window, we need a "Select All" feature.

Curt> Alan's comment about not having the window go back to position
Curt> one each time you make a change would be nice as well.  Perhaps
Curt> we could save the current widget position and then after
Curt> refreshing, reposition there.  I'm talking about the Map
Curt> Properties dialog.

The quick fix for that is to use something like selected_maps.sys
with the first line being the most recent selected, or something.

Jack.
- -- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/oBJkGPFSfAB/ezgRAlilAKC9mHCIIGxSM1zfHuQ5vfkvDZnUqQCgvtJY
QTIJhBlR7BDgvn4RFRPXiCk=
=NM48
-----END PGP SIGNATURE-----



More information about the Xastir-dev mailing list