From d2898f101235a3dbabb0349c8e9e8a485f28d9b5 Mon Sep 17 00:00:00 2001 From: Alexander Lobas Date: Tue, 10 Apr 2012 21:58:59 +0400 Subject: [PATCH] AbsoluteLayout --- .../layout/AbsoluteLayoutOperation.java | 46 ++++++++++++ .../android/designer/icons/AbsoluteLayout.png | Bin 0 -> 462 bytes .../model/layout/RadAbsoluteLayout.java | 69 ++++++++++++++++++ .../designer/model/views-meta-model.xml | 18 +++++ 4 files changed, 133 insertions(+) create mode 100644 plugins/android-designer/src/com/intellij/android/designer/designSurface/layout/AbsoluteLayoutOperation.java create mode 100644 plugins/android-designer/src/com/intellij/android/designer/icons/AbsoluteLayout.png create mode 100644 plugins/android-designer/src/com/intellij/android/designer/model/layout/RadAbsoluteLayout.java diff --git a/plugins/android-designer/src/com/intellij/android/designer/designSurface/layout/AbsoluteLayoutOperation.java b/plugins/android-designer/src/com/intellij/android/designer/designSurface/layout/AbsoluteLayoutOperation.java new file mode 100644 index 000000000000..c42fec4c6987 --- /dev/null +++ b/plugins/android-designer/src/com/intellij/android/designer/designSurface/layout/AbsoluteLayoutOperation.java @@ -0,0 +1,46 @@ +/* + * Copyright 2000-2012 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.intellij.android.designer.designSurface.layout; + +import com.intellij.android.designer.designSurface.AbstractEditOperation; +import com.intellij.android.designer.model.RadViewComponent; +import com.intellij.designer.designSurface.OperationContext; + +/** + * @author Alexander Lobas + */ +public class AbsoluteLayoutOperation extends AbstractEditOperation { + public AbsoluteLayoutOperation(RadViewComponent container, OperationContext context) { + super(container, context); + } + + @Override + public void showFeedback() { + // TODO: Auto-generated method stub + } + + @Override + public void eraseFeedback() { + // TODO: Auto-generated method stub + } + + @Override + public void execute() throws Exception { + if (!myContext.isMove()) { + super.execute(); + } + } +} \ No newline at end of file diff --git a/plugins/android-designer/src/com/intellij/android/designer/icons/AbsoluteLayout.png b/plugins/android-designer/src/com/intellij/android/designer/icons/AbsoluteLayout.png new file mode 100644 index 0000000000000000000000000000000000000000..382b11a207b13ab36b8fd3c9e4ae4065a9193b9a GIT binary patch literal 462 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgg)MoAHAs|%iaxj-Sw64!_l=ltB< z)VvY~=c3falGGH1^30M91$R&1fbd2>aiCS2o-U3d7N?g68x|dM;E74A5R%m|aCVP- z(DwWTLmQLUbH)&x1OF9U3NGbw&E-F5;T!ODW4QL)bvD_v+;tLPCrTX>36gB;KEFTFar~q-VhFnaafeaskW4 z1#T?w40WZLRoFZQR6JVv@5gbjS@TTD?%HdwpzEbiE4Sa?>*bNwzp`s9f4j0u`(%N` zlegt|%Zna-ez|4gnM)^jWLV8VFPg{4u==XjY_VUv)=69HPvB#S(3`FhnX=d8gVrvc z&X)AM%-hTiZz}Kd*>E#QZT

9B0;=obG&E7OnENw*P37prKXr=E9z7LNnI)a~%$m zoiuf~f~n(!e selection) { + if (mySelectionDecorator == null) { + mySelectionDecorator = new ResizeSelectionDecorator(Color.red, 1); + ResizeOperation.points(mySelectionDecorator); + } + return mySelectionDecorator; + } +} \ No newline at end of file diff --git a/plugins/android-designer/src/com/intellij/android/designer/model/views-meta-model.xml b/plugins/android-designer/src/com/intellij/android/designer/model/views-meta-model.xml index d1f9fdf69833..8f9b927d0e53 100644 --- a/plugins/android-designer/src/com/intellij/android/designer/model/views-meta-model.xml +++ b/plugins/android-designer/src/com/intellij/android/designer/model/views-meta-model.xml @@ -1074,6 +1074,24 @@ + + + + + + + + ]]> + + +