Changeset 319


Ignore:
Timestamp:
09/23/08 16:29:29 (16 years ago)
Author:
bjn8
Message:

Fixed lazy layout bug

Location:
trunk/src_apollo/org/apollo/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src_apollo/org/apollo/widgets/LinkedTrack.java

    r315 r319  
    6666import org.expeditee.gui.FrameGraphics;
    6767import org.expeditee.gui.FrameUtils;
     68import org.expeditee.gui.MessageBay;
    6869import org.expeditee.gui.MouseEventRouter;
    6970import org.expeditee.gui.PopupManager;
     
    655656                                                link,
    656657                                                getName());
     658                               
     659                               
     660                                // Wakeup the daemon to note that it should recheck -- in the case that a track is
     661                                // added to a non-overdubbed frame the audio structure model will not bother
     662                                // adding the track until something requests for it.
     663                                FrameLayoutDaemon.getInstance().forceRecheck();
    657664                        }
    658665                       
     
    704711                                        FrameGraphics.refresh(true);
    705712                                }
    706                         });
     713                        }); // NOTE TO REPEAT: Pick up a linked track and delete it directly from freespace
    707714
    708715                case ItemParentStateChangedEvent.EVENT_TYPE_REMOVED_VIA_OVERLAY: // TODO revise - and in sampled track widget
     
    713720                        MultiTrackPlaybackController.getInstance().removeObserver(this);
    714721                        masterMix.removeObserver(this);
    715                        
    716722                       
    717723                        setState(NOT_INITIALIZED);
     
    775781                setState(LOADING_TRACK_GRAPH);
    776782
    777                 //FrameLayoutDaemon.getInstance().forceRecheck(); // no need - daemon is notified via structure model
    778 
    779                
    780783        }
    781784
     
    898901       
    899902                                }
    900                                
    901        
     903
    902904                        }
    903905                       
     
    909911                        }
    910912
    911                        
    912913                        if (abortMessage != null) {
    913                                
    914                                
    915                                
    916                                
    917                                
    918                                 // TODO!!
    919                                 // Draw string...
    920                                
    921                                
    922                                
    923                                
    924                                
     914                                String name = getName();
     915                                if (name == null) name = "Unamed";
     916                                MessageBay.errorMessage(name + " linked track: " + abortMessage);
    925917                        }
    926918                       
     
    943935                               
    944936                                // Draw selection start bar
    945        
    946937                                ((Graphics2D)g).setStroke(SampledTrackGraphView.GRAPH_BAR_STROKE);
    947938                               
     
    10541045                g.setFont(HELPER_FONT);
    10551046                g.drawString(helperMessage, xoff, yoff);
     1047
    10561048        }
    10571049       
  • trunk/src_apollo/org/apollo/widgets/SampledTrack.java

    r318 r319  
    13501350                                                removeSelf();
    13511351                                        }
     1352                                       
     1353                                        // Wakeup the daemon to note that it should recheck -- in the case that a track is
     1354                                        // added to a non-overdubbed frame the audio structure model will not bother
     1355                                        // adding the track until something requests for it.
     1356                                        FrameLayoutDaemon.getInstance().forceRecheck();
    13521357                                }
    13531358                               
Note: See TracChangeset for help on using the changeset viewer.