@ -4,6 +4,7 @@
package com.fr.design.actions.help ;
package com.fr.design.actions.help ;
import com.fr.base.FRContext ;
import com.fr.base.FRContext ;
import com.fr.base.GraphHelper ;
import com.fr.design.DesignerEnvManager ;
import com.fr.design.DesignerEnvManager ;
import com.fr.design.gui.ilable.ActionLabel ;
import com.fr.design.gui.ilable.ActionLabel ;
import com.fr.design.gui.ilable.BoldFontTextLabel ;
import com.fr.design.gui.ilable.BoldFontTextLabel ;
@ -36,9 +37,13 @@ public class AboutPane extends JPanel {
private static final String COMPANY_TELEPHONE = CloudCenter . getInstance ( ) . acquireUrlByKind ( "help.compNo" ) ;
private static final String COMPANY_TELEPHONE = CloudCenter . getInstance ( ) . acquireUrlByKind ( "help.compNo" ) ;
private static final String PRESIDENT_PHONE = CloudCenter . getInstance ( ) . acquireUrlByKind ( "help.PNo" ) ;
private static final String PRESIDENT_PHONE = CloudCenter . getInstance ( ) . acquireUrlByKind ( "help.PNo" ) ;
private int maxWidth ;
public AboutPane ( ) {
public AboutPane ( ) {
this . setLayout ( FRGUIPaneFactory . createBorderLayout ( ) ) ;
this . setLayout ( FRGUIPaneFactory . createBorderLayout ( ) ) ;
this . maxWidth = GraphHelper . getWidth ( getBuildTitle ( ) + GeneralUtils . readFullBuildNO ( ) +
com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Copy_Build_NO" ) +
com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Basic_Copy_Build_NO_OK" ) ) ;
//center panel
//center panel
JPanel centerPane = FRGUIPaneFactory . createBorderLayout_L_Pane ( ) ;
JPanel centerPane = FRGUIPaneFactory . createBorderLayout_L_Pane ( ) ;
this . add ( centerPane , BorderLayout . CENTER ) ;
this . add ( centerPane , BorderLayout . CENTER ) ;
@ -90,6 +95,11 @@ public class AboutPane extends JPanel {
}
}
}
}
@Override
public Dimension getPreferredSize ( ) {
return new Dimension ( this . maxWidth , super . getPreferredSize ( ) . height ) ;
}
private void addPhoneAndQQPane ( JPanel contentPane ) {
private void addPhoneAndQQPane ( JPanel contentPane ) {
BoxCenterAligmentPane boxCenterAlignmentPane ;
BoxCenterAligmentPane boxCenterAlignmentPane ;
// 英文版不显示服务电话和QQ
// 英文版不显示服务电话和QQ