From: Alex T. <al...@tw...> - 2005-05-04 00:33:17
|
Summary: a couple of bug fixes, plus selection by rectangular "region" of the window, and re-layering of multiple components. This can be found at www.tweedly.net/Python/newresourceEditorv0.2.zip See changes.txt for the changes (enclosed here for convenience) btw - Next time, I will spell-check the changes.txt file BEFORE releasing it :-) -- Alex. bug fixes: Note that when in multiple-component mode, the component box in the property window is for display only - you cannot click in that box to (de)select components. "0.2" - fixed; in 0.1, it did allow clicking in this box, with varied and interesting results. A related fix involving selecting first component from this componentList in the propertyEditor, and additional components by Ctl-clicking also fixed. Never save sizing handles to resource file. In 0.1, if you selected multiple components, and then saved the resource file, the sizing handles were saved to the file along with the user's components. Oops. Fixed now. Multiple component selection using rectangular "marquee" You can select multiple components by enclosing them within a rectangular "marquee". The basic form involves pressing the mouse button down NOT within any component, and while holding the button down, dragging the mouse out to surround some components. These components will become a new multiple-component selection, replacing any previous selection. You can modify this by using modifier keys while doing the rectangle selection. 1. No modifier - define a new selection 2. shift-rectangle : add enclosed components to existing selection (any enclosed components already selected remain selected) 3. ctl-rectangle : toggle the status of enclosed components (i.e. if already selected, remove it, if not already selected, add it) 4. shift-ctl-rectangle : subtract from existing selection As well as the 4 buttons corresponding to the existing commands, there are two additional ones which only take effect when there are multiple components selected. First, a description of what it means to re-layer multiple components. All the selected components are put, in the order they were selected, together in the final order list. The base component (first one selected) is then moved back or forward according to the given command, with all other selected components following it. In some cases, you will want to collect the selected components together in the component ordering, but without changing the base component's place in the order. The first new button "gather together" does this. The second new button takes a set of components and re-layers them according to their position, in approximate "reading" order; top-left to bottom right, in rows. Just like "Gather together", this re-ordered set of components finish up adjacent in the layer ordering, following the place in order of the base component. Beware that the reading order works well if the components are non-overlapping, but can be hard to predict when there are multiple overlapping components selected (e.g. if you were to edit the resource editor's own resource file, where the "single-mode" and "multiple-mode" controls occupy the same area, and simply select all of them, you will get a different result from what you expect or want. This is a result of the comparison function used to sort into "reading order" - if one component is entirely below another, the order is clear; otherwise they are assumed to be on the same row, and sorted according to X coord. NB There is a definite lack of visual feedback from these commands. I'm trying to find a good way to give this feedback - any suggestions gratefully received. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 02/05/2005 |