mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-25 15:25:39 +00:00
Added: #2478 Simple editor - remembering last frame / timeline
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.jpexs.decompiler.flash.configuration;
|
||||
|
||||
import com.jpexs.decompiler.flash.ApplicationInfo;
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.configuration.enums.GridSnapAccuracy;
|
||||
import com.jpexs.decompiler.flash.configuration.enums.GuidesSnapAccuracy;
|
||||
import com.jpexs.decompiler.flash.exporters.modes.ExeExportMode;
|
||||
@@ -1399,6 +1400,16 @@ public final class Configuration {
|
||||
|
||||
return map.get(fileName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get per-swf custom configuration.
|
||||
*
|
||||
* @param swf SWF
|
||||
* @return SWF specific custom configuration, null if not found
|
||||
*/
|
||||
public static SwfSpecificCustomConfiguration getSwfSpecificCustomConfiguration(SWF swf) {
|
||||
return getSwfSpecificCustomConfiguration(swf.getShortPathTitle());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or create per-swf custom configuration.
|
||||
@@ -1415,6 +1426,16 @@ public final class Configuration {
|
||||
|
||||
return swfConf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or create per-swf custom configuration.
|
||||
*
|
||||
* @param swf SWF
|
||||
* @return SWF specific custom configuration
|
||||
*/
|
||||
public static SwfSpecificCustomConfiguration getOrCreateSwfSpecificCustomConfiguration(SWF swf) {
|
||||
return getOrCreateSwfSpecificCustomConfiguration(swf.getShortPathTitle());
|
||||
}
|
||||
|
||||
private static String getConfigFile() throws IOException {
|
||||
return getFFDecHome() + storage.getConfigName();
|
||||
|
||||
@@ -32,4 +32,9 @@ public class CustomConfigurationKeys {
|
||||
public static final String KEY_BREAKPOINTS = "breakpoints";
|
||||
public static final String KEY_PATH_RESOLVING = "pathResolving";
|
||||
public static final String KEY_GUIDES = "guides";
|
||||
public static final String KEY_EASY_LAST_SELECTED_TIMELINE = "easy.lastSelected.timeline";
|
||||
public static final String KEY_EASY_LAST_SELECTED_FRAME = "easy.lastSelected.frame";
|
||||
public static final String KEY_EASY_LAST_SELECTED_FIRST_PARENT_FRAME = "easy.lastSelected.firstParentFrame";
|
||||
public static final String KEY_EASY_LAST_SELECTED_PARENT_DEPTHS = "easy.lastSelected.parentDepths";
|
||||
public static final String KEY_EASY_LAST_SELECTED_PARENT_FRAMES = "easy.lastSelected.parentFrames";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user