Browse Source

Merge branch 'fbp-1.0' of ssh://code.fineres.com:7999/~vito/c-design into fbp-1.0

fbp-1.0
vito 4 months ago
parent
commit
cdb0bcf9a9
  1. 19
      designer-base/src/main/java/com/fr/design/dialog/BasicDialog.java
  2. 18
      designer-base/src/main/java/com/fr/design/dialog/BasicPane.java
  3. 1
      designer-base/src/main/java/com/fr/design/formula/FormulaPane.java
  4. BIN
      designer-realize/src/main/resources/com/fr/design/images/splash.png
  5. BIN
      designer-realize/src/main/resources/com/fr/design/images/splash@2x.png
  6. BIN
      designer-realize/src/main/resources/com/fr/design/images/splash@2x_en.png
  7. BIN
      designer-realize/src/main/resources/com/fr/design/images/splash@2x_zh.png
  8. BIN
      designer-realize/src/main/resources/com/fr/design/images/splash@2x_zh_TW.png
  9. BIN
      designer-realize/src/main/resources/com/fr/design/images/splash_en.png
  10. BIN
      designer-realize/src/main/resources/com/fr/design/images/splash_zh.png
  11. BIN
      designer-realize/src/main/resources/com/fr/design/images/splash_zh_TW.png

19
designer-base/src/main/java/com/fr/design/dialog/BasicDialog.java

@ -52,6 +52,15 @@ public abstract class BasicDialog extends UIDialog {
super.setSize(FineUIScale.scale(d.width), FineUIScale.scale(d.height));
}
/**
* 设置对话框大小,本方法不进行主动缩放
*
* @param d 对话框尺寸
*/
protected void setBasicDialogSizeNoScale(Dimension d) {
super.setSize(d.width, d.height);
}
/**
* 设置对话框大小方法内已进行dpi适配传参无需考虑dpi适配
*
@ -62,6 +71,16 @@ public abstract class BasicDialog extends UIDialog {
setBasicDialogSize(new Dimension(w, h));
}
/**
* 设置对话框大小,本方法不进行主动缩放
*
* @param w 宽度
* @param h 高度
*/
protected void setBasicDialogSizeNoScale(int w, int h) {
setBasicDialogSizeNoScale(new Dimension(w, h));
}
@Override
public void setSize(Dimension d) {
throw new UnsupportedOperationException();

18
designer-base/src/main/java/com/fr/design/dialog/BasicPane.java

@ -14,7 +14,6 @@ import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.stable.core.PropertyChangeAdapter;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import javax.swing.event.DocumentEvent;
import java.awt.BorderLayout;
import java.awt.Dialog;
@ -179,17 +178,12 @@ public abstract class BasicPane extends JPanel {
dg = new DIALOG((Dialog) window, isNeedButtonPane);
}
SwingUtilities.invokeLater(() -> {
if (l != null) {
dg.addDialogActionListener(l);
}
dg.setBasicDialogSize(dimension);
GUICoreUtils.centerWindow(dg);
dg.setResizable(false);
dg.setVisible(true);
dg.toFront();
dg.requestFocus();
});
if (l != null) {
dg.addDialogActionListener(l);
}
dg.setBasicDialogSize(dimension);
GUICoreUtils.centerWindow(dg);
dg.setResizable(false);
return dg;
}

1
designer-base/src/main/java/com/fr/design/formula/FormulaPane.java

@ -745,7 +745,6 @@ public class FormulaPane extends BasicPane implements KeyListener, UIFormula {
public BasicDialog showLargeWindow(Window window, DialogActionListener l) {
Dimension dimension = new Dimension(900, 640);
BasicDialog basicDialog = super.showWindowWithCustomSize(window, l, dimension);
basicDialog.setMinimumSize(dimension);
basicDialog.setResizable(true);
return basicDialog;
}

BIN
designer-realize/src/main/resources/com/fr/design/images/splash.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 253 KiB

After

Width:  |  Height:  |  Size: 256 KiB

BIN
designer-realize/src/main/resources/com/fr/design/images/splash@2x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 904 KiB

After

Width:  |  Height:  |  Size: 914 KiB

BIN
designer-realize/src/main/resources/com/fr/design/images/splash@2x_en.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 904 KiB

After

Width:  |  Height:  |  Size: 914 KiB

BIN
designer-realize/src/main/resources/com/fr/design/images/splash@2x_zh.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 903 KiB

After

Width:  |  Height:  |  Size: 913 KiB

BIN
designer-realize/src/main/resources/com/fr/design/images/splash@2x_zh_TW.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 904 KiB

After

Width:  |  Height:  |  Size: 913 KiB

BIN
designer-realize/src/main/resources/com/fr/design/images/splash_en.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 253 KiB

After

Width:  |  Height:  |  Size: 256 KiB

BIN
designer-realize/src/main/resources/com/fr/design/images/splash_zh.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 KiB

After

Width:  |  Height:  |  Size: 255 KiB

BIN
designer-realize/src/main/resources/com/fr/design/images/splash_zh_TW.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 KiB

After

Width:  |  Height:  |  Size: 255 KiB

Loading…
Cancel
Save