Browse Source

Merge pull request #5357 in DESIGN/design from release/11.0 to feature/x

* commit '268378ee9b4443763224e69817d830981a79915b':
  REPORT-56080 图表双击无法进入图表编辑页
  REPORT-55637 远程设计的 记住密码 功能,取消勾选无效
  REPORT-56679 新自适应2月份合入主 jar后在插件中修复的 bug 同步到 FR11
  REPORT-56679 新自适应2月份合入主 jar后在插件中修复的 bug 同步到 FR11
research/11.0
superman 3 years ago
parent
commit
1e37eeafe5
  1. 4
      designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java
  2. 4
      designer-form/src/main/java/com/fr/design/designer/beans/models/SelectionModel.java
  3. 5
      designer-form/src/main/java/com/fr/design/fit/NewJForm.java
  4. 16
      designer-form/src/main/java/com/fr/design/fit/common/AdaptiveSwitchUtil.java
  5. 1
      designer-form/src/main/java/com/fr/design/fit/common/TemplateTool.java
  6. 2
      designer-form/src/main/java/com/fr/design/fit/menupane/BrowserFitAttrPane.java

4
designer-base/src/main/java/com/fr/design/EnvChangeEntrance.java

@ -450,7 +450,7 @@ public class EnvChangeEntrance {
// 切换完成后清理密码 // 切换完成后清理密码
updateNotRememberPwdEnv(); updateNotRememberPwdEnv();
if (changeResult) { if (changeResult) {
VersionCheckUtils.showVersionCheckDialog(envListPane.updateEnvManager()); VersionCheckUtils.showVersionCheckDialog(envListPane.getSelectedName());
} }
} }
@ -483,7 +483,7 @@ public class EnvChangeEntrance {
DesignerExiter.getInstance().execute(); DesignerExiter.getInstance().execute();
} else { } else {
updateNotRememberPwdEnv(); updateNotRememberPwdEnv();
VersionCheckUtils.showVersionCheckDialog(envListPane.updateEnvManager()); VersionCheckUtils.showVersionCheckDialog(envListPane.getSelectedName());
} }
} }

4
designer-form/src/main/java/com/fr/design/designer/beans/models/SelectionModel.java

@ -85,7 +85,9 @@ public class SelectionModel {
if (e.getButton() == MouseEvent.BUTTON3 || (!InputEventBaseOnOS.isControlDown(e) && !e.isShiftDown())) { if (e.getButton() == MouseEvent.BUTTON3 || (!InputEventBaseOnOS.isControlDown(e) && !e.isShiftDown())) {
// 如果Ctrl或者Shift键盘没有按下,则清除已经选择的组件 // 如果Ctrl或者Shift键盘没有按下,则清除已经选择的组件
XCreator selectXCreator = selection.getSelectedCreator(); XCreator selectXCreator = selection.getSelectedCreator();
if (selectXCreator != null && comp != null) { boolean clickOnce = e.getClickCount() == 1;
boolean hasCom = selectXCreator != null && comp != null;
if (clickOnce && hasCom) {
if (StringUtils.equals(selectXCreator.toData().getWidgetName(), comp.toData().getWidgetName())) { if (StringUtils.equals(selectXCreator.toData().getWidgetName(), comp.toData().getWidgetName())) {
return; return;
} }

5
designer-form/src/main/java/com/fr/design/fit/NewJForm.java

@ -1,6 +1,7 @@
package com.fr.design.fit; package com.fr.design.fit;
import com.fr.base.DynamicUnitList; import com.fr.base.DynamicUnitList;
import com.fr.base.Parameter;
import com.fr.design.actions.TemplateParameterAction; import com.fr.design.actions.TemplateParameterAction;
import com.fr.design.designer.beans.AdapterBus; import com.fr.design.designer.beans.AdapterBus;
import com.fr.design.designer.beans.LayoutAdapter; import com.fr.design.designer.beans.LayoutAdapter;
@ -52,6 +53,10 @@ public class NewJForm extends JForm {
changePaneSize(); changePaneSize();
} }
public NewJForm(Form form, FILE file, Parameter[] parameters) {
this(form, file);
}
public NewJForm(Form form, FILE file) { public NewJForm(Form form, FILE file) {
super(form, file); super(form, file);
if (DesignerUIModeConfig.getInstance().newUIMode()) { if (DesignerUIModeConfig.getInstance().newUIMode()) {

16
designer-form/src/main/java/com/fr/design/fit/common/AdaptiveSwitchUtil.java

@ -1,5 +1,7 @@
package com.fr.design.fit.common; package com.fr.design.fit.common;
import com.fr.decision.ExtraDecisionClassManager;
import com.fr.decision.fun.EmailSendProvider;
import com.fr.design.data.DesignTableDataManager; import com.fr.design.data.DesignTableDataManager;
import com.fr.design.fit.DesignerUIModeConfig; import com.fr.design.fit.DesignerUIModeConfig;
import com.fr.design.fit.NewJForm; import com.fr.design.fit.NewJForm;
@ -23,6 +25,8 @@ import com.fr.design.widget.ui.designer.layout.FRAbsoluteLayoutDefinePane;
import com.fr.design.widget.ui.designer.layout.FRFitLayoutDefinePane; import com.fr.design.widget.ui.designer.layout.FRFitLayoutDefinePane;
import com.fr.file.FILE; import com.fr.file.FILE;
import com.fr.file.MemFILE; import com.fr.file.MemFILE;
import com.fr.form.fit.NewFormMarkAttr;
import com.fr.form.main.Form;
import com.fr.form.ui.ElementCaseEditor; import com.fr.form.ui.ElementCaseEditor;
import com.fr.form.ui.Widget; import com.fr.form.ui.Widget;
import com.fr.form.ui.container.WAbsoluteBodyLayout; import com.fr.form.ui.container.WAbsoluteBodyLayout;
@ -34,6 +38,7 @@ import com.fr.log.FineLoggerFactory;
import com.fr.report.fit.ReportFitAttr; import com.fr.report.fit.ReportFitAttr;
import javax.swing.SwingUtilities; import javax.swing.SwingUtilities;
import java.util.Set;
/** /**
* Created by kerry on 2020-06-02 * Created by kerry on 2020-06-02
@ -167,7 +172,16 @@ public class AdaptiveSwitchUtil {
} }
TemplateTool.saveForm(old); TemplateTool.saveForm(old);
} }
return JTemplateFactory.createJTemplate(old.getEditingFILE()); if (old.getTarget() instanceof Form) {
try {
return new NewJForm((Form) (old.getTarget()).clone(), old.getEditingFILE());
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e, e.getMessage());
return null;
}
} else {
return null;
}
} }
/** /**

1
designer-form/src/main/java/com/fr/design/fit/common/TemplateTool.java

@ -12,6 +12,7 @@ import com.fr.design.fit.NewJForm;
import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.FormArea; import com.fr.design.mainframe.FormArea;
import com.fr.design.mainframe.FormDesigner; import com.fr.design.mainframe.FormDesigner;
import com.fr.design.mainframe.JForm;
import com.fr.design.mainframe.JTemplate; import com.fr.design.mainframe.JTemplate;
import com.fr.event.Event; import com.fr.event.Event;
import com.fr.event.Listener; import com.fr.event.Listener;

2
designer-form/src/main/java/com/fr/design/fit/menupane/BrowserFitAttrPane.java

@ -181,7 +181,7 @@ public class BrowserFitAttrPane extends BasicBeanPane<ReportFitAttr> {
boolean isLocalConfig = !globalCheck.isSelected(); boolean isLocalConfig = !globalCheck.isSelected();
//勾选全局时,采用全局保存的自适应属性更新界面 //勾选全局时,采用全局保存的自适应属性更新界面
if (!isLocalConfig) { if (!isLocalConfig) {
ReportFitAttr attr = globalFitAttr; ReportFitAttr attr = jFormType.obtainFitAttr();
populateAttrPane(attr); populateAttrPane(attr);
remove(BrowserFitAttrPane.this.borderPane); remove(BrowserFitAttrPane.this.borderPane);
initBorderPane(Toolkit.i18nText("Fine-Designer_Fit-Global")); initBorderPane(Toolkit.i18nText("Fine-Designer_Fit-Global"));

Loading…
Cancel
Save