|
|
@ -3,7 +3,6 @@ package com.fr.design.mainframe.guide.creator; |
|
|
|
import com.fr.design.designer.beans.models.AddingModel; |
|
|
|
import com.fr.design.designer.beans.models.AddingModel; |
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
import com.fr.design.designer.creator.XLayoutContainer; |
|
|
|
import com.fr.design.designer.creator.XLayoutContainer; |
|
|
|
import com.fr.design.designer.creator.XOccupiedLayout; |
|
|
|
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.FormCreatorDropTarget; |
|
|
|
import com.fr.design.mainframe.FormCreatorDropTarget; |
|
|
@ -18,17 +17,15 @@ import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import sun.java2d.xr.XcbRequestCounter; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.ImageIcon; |
|
|
|
import javax.swing.ImageIcon; |
|
|
|
import javax.swing.JComponent; |
|
|
|
import javax.swing.JComponent; |
|
|
|
|
|
|
|
import javax.swing.JDialog; |
|
|
|
import javax.swing.JPopupMenu; |
|
|
|
import javax.swing.JPopupMenu; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.Point; |
|
|
|
import java.awt.Point; |
|
|
|
import java.awt.Rectangle; |
|
|
|
import java.awt.Rectangle; |
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
|
|
|
|
import java.io.InputStream; |
|
|
|
import java.io.InputStream; |
|
|
|
import java.util.UUID; |
|
|
|
import java.util.UUID; |
|
|
|
|
|
|
|
|
|
|
@ -42,7 +39,7 @@ public class GuideCreateUtils { |
|
|
|
public static Rectangle getXCreatorBoundsRelative2FormDesigner(XCreator xCreator) { |
|
|
|
public static Rectangle getXCreatorBoundsRelative2FormDesigner(XCreator xCreator) { |
|
|
|
FormDesigner designer = getFormDesigner(); |
|
|
|
FormDesigner designer = getFormDesigner(); |
|
|
|
Point point = SwingUtilities.convertPoint(xCreator, 0, 0, designer.getRootComponent()); |
|
|
|
Point point = SwingUtilities.convertPoint(xCreator, 0, 0, designer.getRootComponent()); |
|
|
|
return new Rectangle(point.x + designer.getPaintX(), point.y + designer.getPaintY(), xCreator.getWidth(), xCreator.getHeight()); |
|
|
|
return new Rectangle(point.x + designer.getPaintX() - designer.getHorizontalScaleValue(), point.y + designer.getPaintY(), xCreator.getWidth(), xCreator.getHeight()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static XCreator getXCreatorFormDesigner(String name) { |
|
|
|
public static XCreator getXCreatorFormDesigner(String name) { |
|
|
@ -115,4 +112,10 @@ public class GuideCreateUtils { |
|
|
|
public static void deleteGuideFile(String filePath) { |
|
|
|
public static void deleteGuideFile(String filePath) { |
|
|
|
WorkContext.getWorkResource().delete(filePath); |
|
|
|
WorkContext.getWorkResource().delete(filePath); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void openDialogWithoutModal(JDialog dialog) { |
|
|
|
|
|
|
|
dialog.setModal(false); |
|
|
|
|
|
|
|
dialog.setVisible(true); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|