Browse Source

bug fix

master
XiaXiang 8 years ago
parent
commit
fde3497b21
  1. 2
      designer_base/src/com/fr/design/actions/help/AboutPane.java
  2. 9
      designer_base/src/com/fr/design/actions/help/AlphaFine/RemindDialog.java
  3. 38
      designer_base/src/com/fr/design/actions/help/AlphaFine/RemindPane.java
  4. 3
      designer_base/src/com/fr/design/locale/designer.properties
  5. 3
      designer_base/src/com/fr/design/locale/designer_en_US.properties
  6. 3
      designer_base/src/com/fr/design/locale/designer_zh_CN.properties
  7. 3
      designer_base/src/com/fr/design/locale/designer_zh_TW.properties
  8. 2
      designer_base/src/com/fr/design/mainframe/loghandler/DesignerLogHandler.java

2
designer_base/src/com/fr/design/actions/help/AboutPane.java

@ -47,7 +47,7 @@ public class AboutPane extends JPanel {
BoxCenterAlignmentCopyablePane buildCopyPane = new BoxCenterAlignmentCopyablePane( BoxCenterAlignmentCopyablePane buildCopyPane = new BoxCenterAlignmentCopyablePane(
getBuildTitle(), getBuildTitle(),
GeneralUtils.readFullBuildNO(), GeneralUtils.readBuildNO(),
new String[]{ new String[]{
Inter.getLocText("FR-Designer-Basic_Copy_Build_NO"), Inter.getLocText("FR-Designer-Basic_Copy_Build_NO"),
Inter.getLocText("FR-Designer-Basic_Copy_Build_NO_OK") Inter.getLocText("FR-Designer-Basic_Copy_Build_NO_OK")

9
designer_base/src/com/fr/design/actions/help/AlphaFine/RemindDialog.java

@ -25,14 +25,7 @@ public class RemindDialog extends UIDialog {
private void initComponent() { private void initComponent() {
final AlphafineConfigManager manager = DesignerEnvManager.getEnvManager().getAlphafineConfigManager(); final AlphafineConfigManager manager = DesignerEnvManager.getEnvManager().getAlphafineConfigManager();
remindPane = new RemindPane(manager); remindPane = new RemindPane(manager, this);
remindPane.navigateButton.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
dispose();
manager.setOperateCount(0);
}
});
this.add(remindPane); this.add(remindPane);
} }

38
designer_base/src/com/fr/design/actions/help/AlphaFine/RemindPane.java

@ -1,5 +1,6 @@
package com.fr.design.actions.help.AlphaFine; package com.fr.design.actions.help.AlphaFine;
import com.fr.design.dialog.UIDialog;
import com.fr.design.gui.ibutton.UIButton; import com.fr.design.gui.ibutton.UIButton;
import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilable.UILabel;
import com.fr.general.IOUtils; import com.fr.general.IOUtils;
@ -25,37 +26,28 @@ public class RemindPane extends JPanel {
private Icon closeIcon = IOUtils.readIcon("/com/fr/design/mainframe/alphafine/images/remind_close.png"); private Icon closeIcon = IOUtils.readIcon("/com/fr/design/mainframe/alphafine/images/remind_close.png");
private Icon labelIcon = IOUtils.readIcon("/com/fr/design/mainframe/alphafine/images/remind.png"); private Icon labelIcon = IOUtils.readIcon("/com/fr/design/mainframe/alphafine/images/remind.png");
private Icon openIcon = IOUtils.readIcon("com/fr/design/mainframe/alphafine/images/open.png"); private Icon openIcon = IOUtils.readIcon("com/fr/design/mainframe/alphafine/images/open.png");
public JComponent navigateButton = new JComponent() { public JComponent closeButton = new JComponent() {
protected void paintComponent(Graphics g) { protected void paintComponent(Graphics g) {
closeIcon.paintIcon(this, g, 0, 0); closeIcon.paintIcon(this, g, 0, 0);
} }
}; };
public RemindPane(AlphafineConfigManager manager) { public RemindPane(AlphafineConfigManager manager, UIDialog remindDialog) {
this.setPreferredSize(new Dimension(600, 400)); this.setPreferredSize(new Dimension(600, 400));
initUI(manager); initUI(manager, remindDialog);
this.setLayout(getAbsoluteLayout()); this.setLayout(getAbsoluteLayout());
} }
private void initUI(final AlphafineConfigManager manager) { private void initUI(final AlphafineConfigManager manager, final UIDialog dialog) {
openButton = new UIButton() {
@Override openButton = new UIButton();
public void paintComponent(Graphics g) {
g.setColor( Color.white );
g.fillRect(0, 0, getSize().width, getSize().height);
super.paintComponent(g);
}
};
openButton.setContentAreaFilled(false);
openButton.setForeground(new Color(0x3394F0));
openButton.setIcon(openIcon); openButton.setIcon(openIcon);
openButton.setFont(LARGE_FONT);
openButton.set4ToolbarButton(); openButton.set4ToolbarButton();
openButton.addMouseListener(new MouseAdapter() { openButton.addMouseListener(new MouseAdapter() {
@Override @Override
public void mouseClicked(MouseEvent e) { public void mouseClicked(MouseEvent e) {
//manager.setOperateCount(0);
dialog.dispose();
} }
}); });
backgroundLabel = new UILabel(Inter.getLocText("FR-Designer-Alphafine_No_Remind")); backgroundLabel = new UILabel(Inter.getLocText("FR-Designer-Alphafine_No_Remind"));
@ -81,7 +73,15 @@ public class RemindPane extends JPanel {
}); });
backgroundPane = new JPanel(new BorderLayout()); backgroundPane = new JPanel(new BorderLayout());
backgroundPane.add(new UILabel(labelIcon), BorderLayout.CENTER); backgroundPane.add(new UILabel(labelIcon), BorderLayout.CENTER);
add(navigateButton, 0); closeButton.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
//manager.setOperateCount(0);
dialog.dispose();
}
});
add(closeButton, 0);
add(checkLabel, 1); add(checkLabel, 1);
add(openButton, 2); add(openButton, 2);
add(backgroundLabel, 3); add(backgroundLabel, 3);
@ -113,7 +113,7 @@ public class RemindPane extends JPanel {
public void layoutContainer(Container parent) { public void layoutContainer(Container parent) {
int width = parent.getWidth(); int width = parent.getWidth();
int height = parent.getHeight(); int height = parent.getHeight();
navigateButton.setBounds((width - 30), 0, 30, 30); closeButton.setBounds((width - 30), 0, 30, 30);
openButton.setBounds(30, 300, 150, 40); openButton.setBounds(30, 300, 150, 40);
backgroundLabel.setBounds(95, 350, 100, 20); backgroundLabel.setBounds(95, 350, 100, 20);
checkLabel.setBounds(70, 350, 20, 20); checkLabel.setBounds(70, 350, 20, 20);

3
designer_base/src/com/fr/design/locale/designer.properties

@ -2005,4 +2005,5 @@ FR-Designer_Templates_Content=Templates Contents
FR-Designer_AlphaFine_ShowAll=show all FR-Designer_AlphaFine_ShowAll=show all
FR-Designer_AlphaFine_Latest=Latest FR-Designer_AlphaFine_Latest=Latest
FR-Designer_AlphaFine_ShowLess=show less FR-Designer_AlphaFine_ShowLess=show less
FR-Designer_Alphafine=AlphaFine FR-Designer_Alphafine=AlphaFine
FR-Designer-Alphafine_No_Remind=

3
designer_base/src/com/fr/design/locale/designer_en_US.properties

@ -2003,4 +2003,5 @@ FR-Designer_Templates_Content=Template'Contents
FR-Designer_AlphaFine_ShowAll=show all FR-Designer_AlphaFine_ShowAll=show all
FR-Designer_AlphaFine_Latest=Recent FR-Designer_AlphaFine_Latest=Recent
FR-Designer_AlphaFine_ShowLess=show less FR-Designer_AlphaFine_ShowLess=show less
FR-Designer_Alphafine=AlphaFine FR-Designer_Alphafine=AlphaFine
FR-Designer-Alphafine_No_Remind=don't remind

3
designer_base/src/com/fr/design/locale/designer_zh_CN.properties

@ -2001,4 +2001,5 @@ FR-Designer_AlphaFine_ShowAll=\u663E\u793A\u5168\u90E8
FR-Designer_AlphaFine_Conclude=\u731C\u60A8\u9700\u8981 FR-Designer_AlphaFine_Conclude=\u731C\u60A8\u9700\u8981
FR-Designer_AlphaFine_Latest=\u672C\u5730\u5E38\u7528 FR-Designer_AlphaFine_Latest=\u672C\u5730\u5E38\u7528
FR-Designer_AlphaFine_ShowLess=\u6536\u8D77 FR-Designer_AlphaFine_ShowLess=\u6536\u8D77
FR-Designer_Alphafine=AlphaFine\u667A\u80FD\u641C\u7D22 FR-Designer_Alphafine=AlphaFine\u667A\u80FD\u641C\u7D22
FR-Designer-Alphafine_No_Remind=\u4E0D\u518D\u63D0\u793A

3
designer_base/src/com/fr/design/locale/designer_zh_TW.properties

@ -1999,4 +1999,5 @@ FR-Designer_Templates_Content=\u6A21\u677F\u5167\u5BB9
FR-Designer_AlphaFine_Latest=\u6700\u8FD1\u5E38\u7528 FR-Designer_AlphaFine_Latest=\u6700\u8FD1\u5E38\u7528
FR-Designer_AlphaFine_ShowLess=\u6536\u8D77 FR-Designer_AlphaFine_ShowLess=\u6536\u8D77
FR-Designer_Alphafine=AlphaFine\u667A\u80FD\u641C\u7D22 FR-Designer_Alphafine=AlphaFine\u667A\u80FD\u641C\u7D22
FR-Designer_AlphaFine_ShowAll=\u986F\u793A\u5168\u90E8 FR-Designer_AlphaFine_ShowAll=\u986F\u793A\u5168\u90E8
FR-Designer-Alphafine_No_Remind=\u4E0D\u518D\u63D0\u793A

2
designer_base/src/com/fr/design/mainframe/loghandler/DesignerLogHandler.java

@ -187,7 +187,7 @@ public class DesignerLogHandler {
} }
private JTextPane initLogJTextArea() { private JTextPane initLogJTextArea() {
JTextPane resultPane = new JTextPane(); final JTextPane resultPane = new JTextPane();
InputMap inputMap = resultPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); InputMap inputMap = resultPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, DEFAULT_MODIFIER), DefaultEditorKit.copyAction); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, DEFAULT_MODIFIER), DefaultEditorKit.copyAction);
inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, DEFAULT_MODIFIER), DefaultEditorKit.selectAllAction); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, DEFAULT_MODIFIER), DefaultEditorKit.selectAllAction);

Loading…
Cancel
Save