Ignore:
Timestamp:
05/10/18 16:04:51 (6 years ago)
Author:
davidb
Message:

Reworking of the code-base to separate logic from graphics. This version of Expeditee now supports a JFX graphics as an alternative to SWING

File:
1 edited

Legend:

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

    r919 r1102  
    2626import org.expeditee.items.Picture;
    2727import org.expeditee.items.Text;
    28 import org.expeditee.items.widgets.InteractiveWidget;
     28import org.expeditee.items.widgets.Widget;
    2929import org.expeditee.items.widgets.WidgetCorner;
    3030import org.expeditee.items.widgets.WidgetEdge;
    3131import org.expeditee.settings.experimental.ExperimentalFeatures;
    32 
    3332
    3433public class Help {
     
    120119                        if((mod & shift) == 0)return "Extend line";
    121120                        break;
     121                default:
     122                        break;
    122123                }
    123124                if((other & cursor) != 0) return "Stamp copy";
     
    152153                        }
    153154                        break;
     155                default:
     156                        break;
    154157                }
    155158                return "Delete";
     
    165168                        if((other & cursor) == 0) return "Select text region";
    166169                        break;
     170                default:
     171                        break;
    167172                }
    168173                return null;
     
    174179                case text:
    175180                        if((other & cursor) == 0) return "Cut text region";
     181                default:
     182                        break;
    176183                }
    177184                return null;
     
    187194                case text:
    188195                        if((other & cursor) == 0) return "Copy text region";
     196                default:
     197                        break;
    189198                }
    190199                return null;
     
    192201       
    193202       
    194         public static void updateStatus() {
     203        public static void updateStatus(boolean controlDown, boolean shiftDown)
     204        {
    195205                Item current = FrameUtils.getCurrentItem();
    196206                Collection<Item> currents;
    197207                Context context;
    198                 InteractiveWidget iw = null;
     208                Widget iw = null;
    199209                if(current != null) {
    200210                        if(current instanceof Line) {
     
    232242                        }
    233243                }
    234                 int mod = (FrameMouseActions.isControlDown() ? control : 0) | (FrameMouseActions.isShiftDown() ? shift : 0);
     244                int mod = (controlDown ? control : 0) | (shiftDown ? shift : 0);
    235245                int other = (ExperimentalFeatures.MousePan.get() ? panning : 0) |
    236246                                (current != null && current.hasAction() ? action : 0)|
    237247                                (current != null && current.hasLink() ? link : 0) |
    238                                 (FreeItems.itemsAttachedToCursor() ? cursor : 0);
     248                                (FreeItems.hasItemsAttachedToCursor() ? cursor : 0);
    239249                String status = "";
    240250               
     
    264274                }
    265275               
    266                
    267276                MessageBay.setStatus(status);
    268277        }
Note: See TracChangeset for help on using the changeset viewer.