|
|
@ -187,6 +187,14 @@ public class EditingMouseListener extends MouseInputAdapter { |
|
|
|
designer.selectComponents(e); |
|
|
|
designer.selectComponents(e); |
|
|
|
} |
|
|
|
} |
|
|
|
if (stateModel.isDragging()) { |
|
|
|
if (stateModel.isDragging()) { |
|
|
|
|
|
|
|
mouseDraggingRelease(e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
lastPressEvent = null; |
|
|
|
|
|
|
|
last_creator = null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void mouseDraggingRelease(MouseEvent e) { |
|
|
|
// 当前鼠标所在的组件
|
|
|
|
// 当前鼠标所在的组件
|
|
|
|
XCreator hoveredComponent = designer.getComponentAt(e.getX(), e.getY()); |
|
|
|
XCreator hoveredComponent = designer.getComponentAt(e.getX(), e.getY()); |
|
|
|
if(designer.isWidgetsIntersect() && dragBackupBounds != null && hoveredComponent != null){ |
|
|
|
if(designer.isWidgetsIntersect() && dragBackupBounds != null && hoveredComponent != null){ |
|
|
@ -219,11 +227,6 @@ public class EditingMouseListener extends MouseInputAdapter { |
|
|
|
} |
|
|
|
} |
|
|
|
cancelPromptWidgetForbidEnter(); |
|
|
|
cancelPromptWidgetForbidEnter(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
lastPressEvent = null; |
|
|
|
|
|
|
|
last_creator = null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -286,6 +289,17 @@ public class EditingMouseListener extends MouseInputAdapter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (component.isReport()) { |
|
|
|
if (component.isReport()) { |
|
|
|
|
|
|
|
elementCaseMouseMoved(e, component); |
|
|
|
|
|
|
|
designer.repaint(); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
processChartEditorMouseMove(component, e); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
designer.repaint(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void elementCaseMouseMoved(MouseEvent e, XCreator component) { |
|
|
|
xElementCase = (XElementCase)component; |
|
|
|
xElementCase = (XElementCase)component; |
|
|
|
UIButton button = (UIButton)xElementCase.getCoverPane().getComponent(0); |
|
|
|
UIButton button = (UIButton)xElementCase.getCoverPane().getComponent(0); |
|
|
|
if(designer.getCursor().getType() == Cursor.HAND_CURSOR) { |
|
|
|
if(designer.getCursor().getType() == Cursor.HAND_CURSOR) { |
|
|
@ -312,14 +326,6 @@ public class EditingMouseListener extends MouseInputAdapter { |
|
|
|
} |
|
|
|
} |
|
|
|
xElementCase.displayCoverPane(true); |
|
|
|
xElementCase.displayCoverPane(true); |
|
|
|
xElementCase.setDirections(Direction.TOP_BOTTOM_LEFT_RIGHT); |
|
|
|
xElementCase.setDirections(Direction.TOP_BOTTOM_LEFT_RIGHT); |
|
|
|
|
|
|
|
|
|
|
|
designer.repaint(); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
processChartEditorMouseMove(component, e); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
designer.repaint(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void setCoverPaneNotDisplay(MouseEvent e, boolean isLinkedHelpDialog) { |
|
|
|
private void setCoverPaneNotDisplay(MouseEvent e, boolean isLinkedHelpDialog) { |
|
|
|