|
|
|
@ -5,10 +5,18 @@ import com.fr.base.ScreenResolution;
|
|
|
|
|
import com.fr.base.vcs.DesignerMode; |
|
|
|
|
import com.fr.design.DesignState; |
|
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
|
|
|
import com.fr.design.designer.TargetComponent; |
|
|
|
|
import com.fr.design.designer.beans.AdapterBus; |
|
|
|
|
import com.fr.design.designer.beans.Painter; |
|
|
|
|
import com.fr.design.designer.beans.actions.*; |
|
|
|
|
import com.fr.design.designer.beans.actions.CopyAction; |
|
|
|
|
import com.fr.design.designer.beans.actions.CutAction; |
|
|
|
|
import com.fr.design.designer.beans.actions.FormDeleteAction; |
|
|
|
|
import com.fr.design.designer.beans.actions.MoveDownAction; |
|
|
|
|
import com.fr.design.designer.beans.actions.MoveToBottomAction; |
|
|
|
|
import com.fr.design.designer.beans.actions.MoveToTopAction; |
|
|
|
|
import com.fr.design.designer.beans.actions.MoveUpAction; |
|
|
|
|
import com.fr.design.designer.beans.actions.PasteAction; |
|
|
|
|
import com.fr.design.designer.beans.adapters.layout.FRParameterLayoutAdapter; |
|
|
|
|
import com.fr.design.designer.beans.events.CreatorEventListenerTable; |
|
|
|
|
import com.fr.design.designer.beans.events.DesignerEditListener; |
|
|
|
@ -19,7 +27,14 @@ import com.fr.design.designer.beans.location.RootResizeDirection;
|
|
|
|
|
import com.fr.design.designer.beans.models.AddingModel; |
|
|
|
|
import com.fr.design.designer.beans.models.SelectionModel; |
|
|
|
|
import com.fr.design.designer.beans.models.StateModel; |
|
|
|
|
import com.fr.design.designer.creator.*; |
|
|
|
|
import com.fr.design.designer.creator.XChartEditor; |
|
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
|
import com.fr.design.designer.creator.XCreatorUtils; |
|
|
|
|
import com.fr.design.designer.creator.XLayoutContainer; |
|
|
|
|
import com.fr.design.designer.creator.XWAbsoluteBodyLayout; |
|
|
|
|
import com.fr.design.designer.creator.XWAbsoluteLayout; |
|
|
|
|
import com.fr.design.designer.creator.XWBorderLayout; |
|
|
|
|
import com.fr.design.designer.creator.XWParameterLayout; |
|
|
|
|
import com.fr.design.designer.properties.FormWidgetAuthorityEditPane; |
|
|
|
|
import com.fr.design.event.DesignerOpenedListener; |
|
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
|
@ -45,16 +60,27 @@ import com.fr.form.ui.container.WBorderLayout;
|
|
|
|
|
import com.fr.form.ui.container.WFitLayout; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.general.FRLogger; |
|
|
|
|
|
|
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
import com.fr.stable.bridge.StableFactory; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
import javax.swing.Action; |
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
import javax.swing.JOptionPane; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import javax.swing.TransferHandler; |
|
|
|
|
import javax.swing.border.Border; |
|
|
|
|
import javax.swing.event.TreeSelectionEvent; |
|
|
|
|
import javax.swing.event.TreeSelectionListener; |
|
|
|
|
import javax.swing.tree.TreePath; |
|
|
|
|
import java.awt.*; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Color; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
import java.awt.Container; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.Graphics; |
|
|
|
|
import java.awt.Insets; |
|
|
|
|
import java.awt.Point; |
|
|
|
|
import java.awt.Rectangle; |
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
|
import java.lang.reflect.InvocationHandler; |
|
|
|
@ -670,7 +696,7 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
|
|
|
|
|
refreshParameter(); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
for( UpdateAction action : getActions()) { |
|
|
|
|
for (UpdateAction action : getActions()) { |
|
|
|
|
action.update(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1343,6 +1369,9 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
|
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public void copy() { |
|
|
|
|
if (DesignModeContext.isBanCopyAndCut()) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
selectionModel.copySelectedCreator2ClipBoard(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1364,6 +1393,9 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
|
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public boolean cut() { |
|
|
|
|
if (DesignModeContext.isBanCopyAndCut()) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
selectionModel.cutSelectedCreator2ClipBoard(); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -1482,11 +1514,11 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setResolution(int resolution){ |
|
|
|
|
public void setResolution(int resolution) { |
|
|
|
|
this.resolution = resolution; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public int getResolution(){ |
|
|
|
|
public int getResolution() { |
|
|
|
|
return this.resolution; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|