Field

Changeset 151:c76ed455316b

Show
Ignore:
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
  • development/java/field/core/plugins/drawing/BasicDrawingPlugin.java

    r140 r151  
    212212                        } else if (prop == frameManipulationEnd) { 
    213213 
    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); 
    215216                        } else if (prop == iVisualElement.hasFocusLock) { 
    216217                                if (((Ref<Boolean>) to).get()) { 
  • development/java/field/core/plugins/history/Templating.java

    r122 r151  
    2929import field.core.persistance.FluidCopyPastePersistence; 
    3030import field.core.plugins.drawing.SplineComputingOverride; 
     31import field.core.plugins.python.OutputInsertsOnSheet; 
    3132import field.core.plugins.python.PythonPlugin; 
    3233import field.core.plugins.python.PythonPluginEditor; 
     
    240241 
    241242                        Object v = e.getValue(); 
    242                         if (created.left.getProperty(p) == null
     243                        if (created.left.getProperty(p) == null && shouldCopy(p)
    243244                                performCopy(source, newElement, p, v); 
    244245                } 
    245246 
    246247                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; 
    247259        } 
    248260 
  • development/java/field/core/plugins/python/OutputInsertsOnSheet.java

    r136 r151  
    162162                OutputInsertsOnSheet oi = outputInsertsOnSheet.get(inside); 
    163163 
     164                System.out.println(" inside print slider for <"+inside+"> got <"+oi+">"); 
     165 
    164166 
    165167                iVisualElement alreadyCreated = findAlreadyCreated(oi, inside, name); 
     
    171173                        tuple = (MinimalSlider.Component) alreadyCreated.getProperty(outputInsertsOnSheet_providedComponent); 
    172174                        lastWasNew = false; 
     175                        System.out.println(" already there"); 
    173176                } else { 
     177 
     178                        System.out.println(" genuinely new"); 
    174179 
    175180                        map.remove(name); 
     
    180185 
    181186                        map.put(name, alreadyCreated.getUniqueID()); 
     187                        System.out.println(" created, map now <"+map+">"); 
    182188                        lastWasNew = true; 
    183189                } 
     
    398404                this.root = root; 
    399405                root.setProperty(outputInsertsOnSheet, this); 
     406 
     407                System.out.println("                    oios is :"+this+" for "+root); 
    400408        } 
    401409 
  • development/java/field/core/windowing/components/DraggableComponent.java

    r147 r151  
    177177 
    178178                        System.out.println(" computing currentResize :"+arg0.getX()+" "+arg0.getY()+" (( "+bounds+" ))"); 
    179                          
     179 
    180180                        currentResize.clear(); 
    181181                        if (arg0.getX() - getX() < zone) 
     
    204204 
    205205                        if (!first) { 
     206 
     207                                System.out.println(" finalizing rect <"+arg0+"> <"+arg0.getModifiersEx()+">"); 
     208 
    206209                                finalizeRect(element, currentResize, arg0.getModifiersEx()); 
    207210 
     
    490493                                } 
    491494                        } else { 
    492                                  
     495 
    493496 
    494497                                dragger.mousePressed(arg0);