Added: #2478 Simple editor - remembering last frame / timeline

This commit is contained in:
Jindra Petřík
2025-07-07 00:13:05 +02:00
parent 0ac9ec748c
commit 574cf1c848
8 changed files with 227 additions and 48 deletions

View File

@@ -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();

View File

@@ -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";
}