Ignore:
Timestamp:
04/28/16 19:37:35 (8 years ago)
Author:
davidb
Message:

Anchor top and left added as minus options to an @i item. Relocation of ParseArgsApache(). Addition of getData type function for Bool. Some typos fixed in comments. Left click on image refinement: it check the pixel clicked on in the image, and if the same as the background, it does a back() operation rather than forming a new link

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameMouseActions.java

    r998 r1047  
    1919package org.expeditee.gui;
    2020
     21import java.awt.Color;
    2122import java.awt.Image;
    2223import java.awt.Point;
     
    911912
    912913                /*
    913                  * This makes it so clicking repeatedly on the frameName doesnt add the
     914                 * This makes it so clicking repeatedly on the frameName doesn't add the
    914915                 * frames to the backup stack. Only the first frame is added to the
    915916                 * backup stack.
     
    945946
    946947                // Mike says...
    947                 // For somereason the modifiers for e are different from modifiersEx
     948                // For some reason the modifiers for e are different from modifiersEx
    948949                // The SwingUtilities.convertMouseEvent method changes the modifiers
    949950                _lastMouseClick = e;
     
    10601061                // Auto-hide popups when user clicks into expeditee world
    10611062                // If the user clicks into empty space and a popup-is showing, then
    1062                 // the user porbably wants to click away the popup - therefore ignore
     1063                // the user probably wants to click away the popup - therefore ignore
    10631064                // the event
    10641065                boolean shouldConsume = PopupManager.getInstance()
     
    14011402                if (clicked instanceof Text) {
    14021403                        Text text = (Text) clicked;
    1403                         /* Dont follow link when just highlighting text with the left button */
     1404                        /* Don't follow link when just highlighting text with the left button */
    14041405                        if (text.getText().length() == 0)
    14051406                                clicked = null;
     
    14571458                }
    14581459
     1460               
     1461                if (clicked instanceof Picture) {
     1462                        int mouseX = DisplayIO.getMouseX();
     1463                        int mouseY = FrameMouseActions.getY();
     1464                        Picture clickedOnPicture = (Picture)clicked;
     1465                        Frame current_frame = DisplayIO.getCurrentFrame();
     1466                        Color bg_col = current_frame.getBackgroundColor();
     1467                        if (clickedOnPicture.MouseOverBackgroundPixel(mouseX,mouseY,bg_col)) {
     1468                                // Make 'clicked' null, effectively causing a back() operation
     1469                                clicked = null;
     1470                        }
     1471                }
     1472               
    14591473                if (clicked != null) {
    14601474                        // check item permissions
     
    15001514
    15011515                } else {
     1516                       
    15021517                        IndirectMouseActions.getInstance().getBackAction().exec(new MouseInfo(clicked, clickedIn, isShiftDown, isControlDown));
    15031518                }
Note: See TracChangeset for help on using the changeset viewer.