Changeset 416
- Timestamp:
- 11/20/08 14:36:41 (16 years ago)
- Location:
- trunk/src/org/expeditee
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameIO.java
r415 r416 671 671 if (!DisplayIO.isTwinFramesOn()) { 672 672 if ((titleItem.getX() + 1) < template.getNameItem().getX()) { 673 while (titleItem.getSize() > Text.MINIMUM_FONT_SIZE && titleItem.getBoundsWidth() + titleItem.getX() > template 674 .getNameItem().getX()) { 673 while (titleItem.getSize() > Text.MINIMUM_FONT_SIZE 674 && titleItem.getBoundsWidth() + titleItem.getX() > template 675 .getNameItem().getX()) { 675 676 titleItem.setSize(titleItem.getSize() - 1); 676 677 677 678 } 678 679 } else { … … 680 681 } 681 682 } 682 683 683 684 // Assign a width to the title. 684 685 titleItem.setRightMargin(template.getNameItem().getX(), true); 685 686 686 687 return template; 687 688 } … … 775 776 /** 776 777 * Saves a frame. 777 * @param toSave the frame to save 778 * @param inc true if the frames counter should be incremented 778 * 779 * @param toSave 780 * the frame to save 781 * @param inc 782 * true if the frames counter should be incremented 779 783 * @return the text content of the frame 780 784 */ … … 815 819 } 816 820 821 /* Dont save the frame if it has the noSave tag */ 822 if (toSave.hasAnnotation("nosave")) { 823 Actions.PerformActionCatchErrors(toSave, null, "Restore"); 824 return ""; 825 } 826 817 827 // Save frame that is not local through the Networking classes 818 828 // TODO … … 821 831 } 822 832 823 /* Format the frame if it has the autoFormat tag*/824 if (toSave.hasAnnotation("autoformat")){833 /* Format the frame if it has the autoFormat tag */ 834 if (toSave.hasAnnotation("autoformat")) { 825 835 Actions.PerformActionCatchErrors(toSave, null, "Format"); 826 836 } 827 837 828 838 /** 829 839 * Get the full path only to determine which format to use for saving … … 855 865 856 866 // Check if the frame doesnt exist 857 //if (savedVersion < 0) {858 ///*859 //* This will happen if the user has two Expeditee's running at860 //* once and closes the first. When the second one closes the861 //* messages directory will have been deleted.862 //*/863 //MessageBay864 //.errorMessage("Could not save frame that does not exist: "865 //+ toSave.getName());866 //return null;867 //}867 // if (savedVersion < 0) { 868 // /* 869 // * This will happen if the user has two Expeditee's running at 870 // * once and closes the first. When the second one closes the 871 // * messages directory will have been deleted. 872 // */ 873 // MessageBay 874 // .errorMessage("Could not save frame that does not exist: " 875 // + toSave.getName()); 876 // return null; 877 // } 868 878 869 879 // Check if we are trying to save an out of date version … … 980 990 return false; 981 991 return toCheck.getPath().equals(PROFILE_PATH); 982 // return toCheck.getFramesetName()983 // 992 // return toCheck.getFramesetName() 993 // .equalsIgnoreCase(UserSettings.ProfileName); 984 994 } 985 995 … … 1315 1325 if (!FrameIO.canAccessFrameset(framesetName)) 1316 1326 return false; 1317 // Clear the cache1327 // Clear the cache 1318 1328 _Cache.clear(); 1319 1329 1320 1330 // Search all the available directories for the directory 1321 1331 for (String path : UserSettings.FrameDirs) { … … 1331 1341 if (!dest.getParentFile().exists()) 1332 1342 dest.mkdirs(); 1333 // If a frameset with the same name is already in the destination add 1343 // If a frameset with the same name is already in the 1344 // destination add 1334 1345 // a number to the end 1335 1346 while (dest.exists()) { -
trunk/src/org/expeditee/stats/StatsLogger.java
r362 r416 19 19 20 20 private static String _filename = null; 21 private static final String FRAMES_EDITED_FILENAME = "FramesEdited. stat";21 private static final String FRAMES_EDITED_FILENAME = "FramesEdited.log"; 22 22 23 23 /**
Note:
See TracChangeset
for help on using the changeset viewer.