Ignore:
Timestamp:
01/26/21 09:45:54 (3 years ago)
Author:
bnemhaus
Message:

With a Item under your cursor, pressing left and right mouse buttons at the same time, extracts the properties of that item. (No change)
However, if an Item is attached to the users cursor when doing this, nothing happens. Now, instead of nothing happening, all attached Items are checked to see if they are in the format of "Property:". If they are then those specified properties are extracted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gio/gesture/StandardGestureActions.java

    r1532 r1548  
    47164716         * attributes, so it is not checked.
    47174717         *
     4718         * 25/01/2021: If the user has Items attached to the cursor, they are used to
     4719         * specify what attributes to extract.  For example, if the user has "Width:"
     4720         * attached to their cursor, only the width attribute will be extracted rather
     4721         * than all of them.
     4722         *
    47184723         * @param toExtract
    47194724         *            Item containing the Item to extract the attributes from.
     
    47234728                        return;
    47244729                }
    4725 
    4726                 if (FreeItems.hasItemsAttachedToCursor()) {
    4727                         return;
    4728                 }
    4729 
     4730               
    47304731                Item attribs;
    47314732                Item item = toExtract;
     4733                Object toExtractFrom = item.isFrameName() ? item.getParent() : item;
     4734
    47324735                // Extract the frames attributes when the user clicks on the frame name
    47334736                FrameGraphics.changeHighlightMode(item, HighlightMode.None);
    47344737                if (item.isFrameName()) {
    4735                         attribs = AttributeUtils.extractAttributes(item.getParent());
     4738                        attribs = AttributeUtils.extractAttributes(toExtractFrom);
    47364739                } else {
    4737                         attribs = AttributeUtils.extractAttributes(item);
     4740                        attribs = AttributeUtils.extractAttributes(toExtractFrom);
     4741                }
     4742               
     4743                if (FreeItems.hasItemsAttachedToCursor()) {
     4744                        return;
    47384745                }
    47394746
Note: See TracChangeset for help on using the changeset viewer.