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