Changeset 1102 for trunk/src/org/expeditee/gui/Help.java
- Timestamp:
- 05/10/18 16:04:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/Help.java
r919 r1102 26 26 import org.expeditee.items.Picture; 27 27 import org.expeditee.items.Text; 28 import org.expeditee.items.widgets. InteractiveWidget;28 import org.expeditee.items.widgets.Widget; 29 29 import org.expeditee.items.widgets.WidgetCorner; 30 30 import org.expeditee.items.widgets.WidgetEdge; 31 31 import org.expeditee.settings.experimental.ExperimentalFeatures; 32 33 32 34 33 public class Help { … … 120 119 if((mod & shift) == 0)return "Extend line"; 121 120 break; 121 default: 122 break; 122 123 } 123 124 if((other & cursor) != 0) return "Stamp copy"; … … 152 153 } 153 154 break; 155 default: 156 break; 154 157 } 155 158 return "Delete"; … … 165 168 if((other & cursor) == 0) return "Select text region"; 166 169 break; 170 default: 171 break; 167 172 } 168 173 return null; … … 174 179 case text: 175 180 if((other & cursor) == 0) return "Cut text region"; 181 default: 182 break; 176 183 } 177 184 return null; … … 187 194 case text: 188 195 if((other & cursor) == 0) return "Copy text region"; 196 default: 197 break; 189 198 } 190 199 return null; … … 192 201 193 202 194 public static void updateStatus() { 203 public static void updateStatus(boolean controlDown, boolean shiftDown) 204 { 195 205 Item current = FrameUtils.getCurrentItem(); 196 206 Collection<Item> currents; 197 207 Context context; 198 InteractiveWidget iw = null;208 Widget iw = null; 199 209 if(current != null) { 200 210 if(current instanceof Line) { … … 232 242 } 233 243 } 234 int mod = ( FrameMouseActions.isControlDown() ? control : 0) | (FrameMouseActions.isShiftDown()? shift : 0);244 int mod = (controlDown ? control : 0) | (shiftDown ? shift : 0); 235 245 int other = (ExperimentalFeatures.MousePan.get() ? panning : 0) | 236 246 (current != null && current.hasAction() ? action : 0)| 237 247 (current != null && current.hasLink() ? link : 0) | 238 (FreeItems. itemsAttachedToCursor() ? cursor : 0);248 (FreeItems.hasItemsAttachedToCursor() ? cursor : 0); 239 249 String status = ""; 240 250 … … 264 274 } 265 275 266 267 276 MessageBay.setStatus(status); 268 277 }
Note:
See TracChangeset
for help on using the changeset viewer.