Changeset 151:c76ed455316b
- Timestamp:
- 08/13/2008 02:17:34 PM
(4 months ago)
- Author:
- marc@f1.local
- branch:
- default
- Message:
workaround for #95?
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r140 |
r151 |
|
| 212 | 212 | } else if (prop == frameManipulationEnd) { |
|---|
| 213 | 213 | |
|---|
| 214 | | dragParticipants_list.endDrag(((FrameManipulation) to.get()).resizeType, source, ((FrameManipulation) to.get()).originalFrame, (((FrameManipulation) to.get()).modifersDown) == 256, ((FrameManipulation) to.get()).modifersDown); |
|---|
| | 214 | boolean shouldCreateConstraint = (((FrameManipulation) to.get()).modifersDown) == 256; |
|---|
| | 215 | dragParticipants_list.endDrag(((FrameManipulation) to.get()).resizeType, source, ((FrameManipulation) to.get()).originalFrame, shouldCreateConstraint, ((FrameManipulation) to.get()).modifersDown); |
|---|
| 215 | 216 | } else if (prop == iVisualElement.hasFocusLock) { |
|---|
| 216 | 217 | if (((Ref<Boolean>) to).get()) { |
|---|
| r122 |
r151 |
|
| 29 | 29 | import field.core.persistance.FluidCopyPastePersistence; |
|---|
| 30 | 30 | import field.core.plugins.drawing.SplineComputingOverride; |
|---|
| | 31 | import field.core.plugins.python.OutputInsertsOnSheet; |
|---|
| 31 | 32 | import field.core.plugins.python.PythonPlugin; |
|---|
| 32 | 33 | import field.core.plugins.python.PythonPluginEditor; |
|---|
| … | … | |
| 240 | 241 | |
|---|
| 241 | 242 | Object v = e.getValue(); |
|---|
| 242 | | if (created.left.getProperty(p) == null) |
|---|
| | 243 | if (created.left.getProperty(p) == null && shouldCopy(p)) |
|---|
| 243 | 244 | performCopy(source, newElement, p, v); |
|---|
| 244 | 245 | } |
|---|
| 245 | 246 | |
|---|
| 246 | 247 | return newElement; |
|---|
| | 248 | } |
|---|
| | 249 | |
|---|
| | 250 | /** |
|---|
| | 251 | * TODO: this needs rearchitecting |
|---|
| | 252 | */ |
|---|
| | 253 | private static boolean shouldCopy(VisualElementProperty p) { |
|---|
| | 254 | System.out.println(" should copy ? "+p); |
|---|
| | 255 | if (p.equals(OutputInsertsOnSheet.outputInsertsOnSheet_knownComponents)) return false; |
|---|
| | 256 | if (p.equals(OutputInsertsOnSheet.outputInsertsOnSheet)) return false; |
|---|
| | 257 | |
|---|
| | 258 | return true; |
|---|
| 247 | 259 | } |
|---|
| 248 | 260 | |
|---|
| r136 |
r151 |
|
| 162 | 162 | OutputInsertsOnSheet oi = outputInsertsOnSheet.get(inside); |
|---|
| 163 | 163 | |
|---|
| | 164 | System.out.println(" inside print slider for <"+inside+"> got <"+oi+">"); |
|---|
| | 165 | |
|---|
| 164 | 166 | |
|---|
| 165 | 167 | iVisualElement alreadyCreated = findAlreadyCreated(oi, inside, name); |
|---|
| … | … | |
| 171 | 173 | tuple = (MinimalSlider.Component) alreadyCreated.getProperty(outputInsertsOnSheet_providedComponent); |
|---|
| 172 | 174 | lastWasNew = false; |
|---|
| | 175 | System.out.println(" already there"); |
|---|
| 173 | 176 | } else { |
|---|
| | 177 | |
|---|
| | 178 | System.out.println(" genuinely new"); |
|---|
| 174 | 179 | |
|---|
| 175 | 180 | map.remove(name); |
|---|
| … | … | |
| 180 | 185 | |
|---|
| 181 | 186 | map.put(name, alreadyCreated.getUniqueID()); |
|---|
| | 187 | System.out.println(" created, map now <"+map+">"); |
|---|
| 182 | 188 | lastWasNew = true; |
|---|
| 183 | 189 | } |
|---|
| … | … | |
| 398 | 404 | this.root = root; |
|---|
| 399 | 405 | root.setProperty(outputInsertsOnSheet, this); |
|---|
| | 406 | |
|---|
| | 407 | System.out.println(" oios is :"+this+" for "+root); |
|---|
| 400 | 408 | } |
|---|
| 401 | 409 | |
|---|
| r147 |
r151 |
|
| 177 | 177 | |
|---|
| 178 | 178 | System.out.println(" computing currentResize :"+arg0.getX()+" "+arg0.getY()+" (( "+bounds+" ))"); |
|---|
| 179 | | |
|---|
| | 179 | |
|---|
| 180 | 180 | currentResize.clear(); |
|---|
| 181 | 181 | if (arg0.getX() - getX() < zone) |
|---|
| … | … | |
| 204 | 204 | |
|---|
| 205 | 205 | if (!first) { |
|---|
| | 206 | |
|---|
| | 207 | System.out.println(" finalizing rect <"+arg0+"> <"+arg0.getModifiersEx()+">"); |
|---|
| | 208 | |
|---|
| 206 | 209 | finalizeRect(element, currentResize, arg0.getModifiersEx()); |
|---|
| 207 | 210 | |
|---|
| … | … | |
| 490 | 493 | } |
|---|
| 491 | 494 | } else { |
|---|
| 492 | | |
|---|
| | 495 | |
|---|
| 493 | 496 | |
|---|
| 494 | 497 | dragger.mousePressed(arg0); |
|---|