mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Right click rotates component while laying out on the canvas
This commit is contained in:
Binary file not shown.
+1
-1
@@ -187,7 +187,7 @@ class CanvasPanel extends JComponent implements Autoscroll {
|
|||||||
@Override
|
@Override
|
||||||
public void mouseClicked(MouseEvent e) {
|
public void mouseClicked(MouseEvent e) {
|
||||||
if (e.getButton() == MouseEvent.BUTTON1) {
|
if (e.getButton() == MouseEvent.BUTTON1) {
|
||||||
plugInPort.mouseClicked(e.getPoint(), e.isControlDown(), e.isShiftDown(), e
|
plugInPort.mouseClicked(e.getPoint(), e.getButton(), e.isControlDown(), e.isShiftDown(), e
|
||||||
.isAltDown(), e.getClickCount());
|
.isAltDown(), e.getClickCount());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -94,7 +94,9 @@ public class CanvasPlugin implements IPlugIn, ClipboardOwner {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void mouseReleased(MouseEvent e) {
|
public void mouseReleased(MouseEvent e) {
|
||||||
if (e.isPopupTrigger()) {
|
if (plugInPort.getNewComponentTypeSlot() != null) {
|
||||||
|
plugInPort.mouseClicked(e.getPoint(), e.getButton(), false, false, false, 1);
|
||||||
|
} else if (e.isPopupTrigger()) {
|
||||||
// Enable actions.
|
// Enable actions.
|
||||||
boolean enabled = !plugInPort.getSelectedComponents().isEmpty();
|
boolean enabled = !plugInPort.getSelectedComponents().isEmpty();
|
||||||
getCutAction().setEnabled(enabled);
|
getCutAction().setEnabled(enabled);
|
||||||
|
|||||||
@@ -602,6 +602,10 @@
|
|||||||
<releaseDate>2012-03-27 20:00:00.000 CET</releaseDate>
|
<releaseDate>2012-03-27 20:00:00.000 CET</releaseDate>
|
||||||
<name></name>
|
<name></name>
|
||||||
<changes>
|
<changes>
|
||||||
|
<org.diylc.appframework.update.Change>
|
||||||
|
<changeType>NEW_FEATURE</changeType>
|
||||||
|
<description>Right click rotates component while laying out on the canvas</description>
|
||||||
|
</org.diylc.appframework.update.Change>
|
||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description>More usable "Bring to Forward" and "Send to Backward"</description>
|
<description>More usable "Bring to Forward" and "Send to Backward"</description>
|
||||||
|
|||||||
Reference in New Issue
Block a user