Changeset 1200 for trunk/src/org/expeditee/gui
- Timestamp:
- 11/28/18 16:16:29 (6 years ago)
- Location:
- trunk/src/org/expeditee/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/AttributeUtils.java
r1188 r1200 283 283 _Attrib.put("Width", Item.class.getMethod("getWidthToSave"), 284 284 Item.class.getMethod("setWidth", pIntO)); 285 _Attrib.put("MinWidth", Item.class.getMethod("getMinWidthToSave"), 286 Item.class.getMethod("setMinWidth", pIntO)); 285 287 _Attrib.put("X", null, 286 288 Item.class.getMethod("setX", pFloat)); … … 307 309 _Attrib.put("LetterSpacing", Text.class.getMethod("getLetterSpacing"), 308 310 Text.class.getMethod("setLetterSpacing", pFloat)); 311 _Attrib.put("Mask", Text.class.getMethod("getMask"), 312 Text.class.getMethod("setMask", pIntO)); 309 313 310 314 // Aliases for attribute setting … … 340 344 _Attrib.alias("j", "justification"); 341 345 _Attrib.alias("w", "width"); 346 _Attrib.alias("mw", "minwidth"); 342 347 _Attrib.alias("as", "autostamp"); 343 344 345 348 } catch (SecurityException e) { 346 349 // TODO Auto-generated catch block -
trunk/src/org/expeditee/gui/Frame.java
r1193 r1200 126 126 private Stack<History> _redo = new Stack<History>(); 127 127 128 // basically just a list of smaller objects?129 // maybe a hashtable (id -> item?)130 // Note: Needs to be able to be iterated through (for painting)131 128 private List<Item> _body = new ArrayList<Item>(); 129 private List<Item> _bodyHiddenDueToPermissions = new ArrayList<Item>(); 132 130 133 131 // for drawing purposes … … 964 962 } 965 963 966 public void removeItem(Item item) 967 { 964 public void removeItem(Item item) { 968 965 removeItem(item, true); 969 966 } … … 2607 2604 return _observers != null && _observers.size() > 0; 2608 2605 } 2606 2607 public List<Item> getBodyItemsWithInsufficientPermissions() { 2608 return _bodyHiddenDueToPermissions; 2609 } 2610 2611 public void moveItemToBodyHiddenDueToPermission(final Item i) { 2612 _body.remove(i); 2613 _bodyHiddenDueToPermissions.add(i); 2614 } 2609 2615 2610 2616 public Collection<? extends Item> getInteractableItems() -
trunk/src/org/expeditee/gui/FrameIO.java
r1188 r1200 40 40 import org.expeditee.actions.Actions; 41 41 import org.expeditee.agents.ExistingFramesetException; 42 import org.expeditee.auth.io.EncryptedExpReader; 43 import org.expeditee.auth.io.EncryptedExpWriter; 42 44 import org.expeditee.io.Conversion; 43 45 import org.expeditee.io.ExpReader; … … 465 467 466 468 if (fullPath.endsWith(ExpReader.EXTENTION)) { 467 reader = new ExpReader(frameName); 469 if (EncryptedExpReader.isEncryptedExpediteeFile(fullPath)) { 470 reader = new EncryptedExpReader(frameName); 471 } else { 472 reader = new ExpReader(frameName); 473 } 468 474 } else { 469 475 reader = new KMSReader(); … … 952 958 /* Dont save the frame if it has the noSave tag */ 953 959 if (toSave.hasAnnotation("nosave")) { 954 Actions. PerformActionCatchErrors(toSave, null, "Restore");960 Actions.LegacyPerformActionCatchErrors(toSave, null, "Restore"); 955 961 return ""; 956 962 } … … 964 970 /* Format the frame if it has the autoFormat tag */ 965 971 if (toSave.hasAnnotation("autoformat")) { 966 Actions. PerformActionCatchErrors(toSave, null, "Format");972 Actions.LegacyPerformActionCatchErrors(toSave, null, "Format"); 967 973 } 968 974 … … 988 994 // if its a new frame or an existing Exp frame... 989 995 if (fullPath == null || fullPath.endsWith(ExpReader.EXTENTION)) { 990 writer = new ExpWriter(); 996 //writer = new ExpWriter(); 997 writer = new ExpWriter();//new EncryptedExpWriter(); 991 998 savedVersion = ExpReader.getVersion(fullPath); 992 999 } else { … … 1198 1205 public static Frame LoadProfile(String userName) 1199 1206 { 1200 return LoadFrame(userName + "1"); 1207 final String profilesLoc = System.getProperty("profiles.loc"); 1208 if (profilesLoc != null) { 1209 return LoadFrame(userName + "1", profilesLoc); 1210 } else { 1211 return LoadFrame(userName + "1"); 1212 } 1201 1213 } 1202 1214 -
trunk/src/org/expeditee/gui/FrameUtils.java
r1193 r1200 1288 1288 } 1289 1289 } 1290 1291 if (i.getData() != null && !i.getData().isEmpty() && i.getText().isEmpty()) { 1292 System.err.println(); 1293 } 1290 1294 1291 1295 if (i.contains(new Point(x, y))){ … … 1867 1871 } 1868 1872 } 1869 if (lastEdited != LastEdited && LastEdited.getText().length() == 0 ) {1873 if (lastEdited != LastEdited && LastEdited.getText().length() == 0 && LastEdited.getMinWidth() == null) { 1870 1874 parent.removeItem(LastEdited); 1871 1875 }
Note:
See TracChangeset
for help on using the changeset viewer.