рефакторинг хранения окон

This commit is contained in:
2024-10-15 02:32:52 +03:00
parent 1f6cc4a579
commit 2999390b91
105 changed files with 421 additions and 318 deletions

View File

@@ -52,7 +52,7 @@ public class SPF_GetGraphFunctionPositions extends SilentSapforPass {
}
@Override
protected void showPreparation() {
UI.getMainWindow().getProjectWindow().ShowNoFunctions();
Global.mainModule.getUI().getMainWindow().getProjectWindow().ShowNoFunctions();
}
@Override
protected void performDone() throws Exception {
@@ -125,7 +125,7 @@ public class SPF_GetGraphFunctionPositions extends SilentSapforPass {
return res;
}
public String packFgSettings() {
Pair<Integer, Integer> screenDims = UI.getMainWindow().getProjectWindow().getFunctionsWindow().getFunctionsGraphPanelSizes();
Pair<Integer, Integer> screenDims = Global.mainModule.getUI().getMainWindow().getProjectWindow().getFunctionsWindow().getFunctionsGraphPanelSizes();
int x = (int) (screenDims.getKey() * target.fgScreen);
int y = (int) (screenDims.getValue() * target.fgScreen);
Vector<String> visibleFuncNames = new Vector<>();
@@ -269,6 +269,6 @@ public class SPF_GetGraphFunctionPositions extends SilentSapforPass {
}
@Override
protected void showDone() throws Exception {
UI.getMainWindow().getProjectWindow().ShowFunctions();
Global.mainModule.getUI().getMainWindow().getProjectWindow().ShowFunctions();
}
}