Beispiel #1
0
 internal void selectAll(TimelineSelectionCollection selectionCollection)
 {
     foreach (TimelineViewButton button in buttons)
     {
         selectionCollection.addButton(button);
     }
 }
Beispiel #2
0
 internal void removeSelection(TimelineSelectionCollection selectionCollection, TimelineSelectionBox timelineSelectionBox)
 {
     foreach (TimelineViewButton button in buttons)
     {
         if (timelineSelectionBox.intersects(button))
         {
             selectionCollection.removeButton(button);
         }
     }
 }
 public TimelineView(ScrollView scrollView)
 {
     timelineSelectionBox = new TimelineSelectionBox(scrollView);
     timelineSelectionBox.SelectionAreaDefined += new EventDelegate <TimelineSelectionBox>(timelineSelectionBox_SelectionAreaDefined);
     selectionCollection = new TimelineSelectionCollection(this);
     timelineScrollView  = new TimelineScrollView(scrollView);
     scrollView.ClientWidget.MouseLostFocus += new MyGUIEvent(scrollView_MouseLostFocus);
     scrollView.MouseWheel        += new MyGUIEvent(scrollView_MouseWheel);
     scrollView.KeyButtonPressed  += new MyGUIEvent(scrollView_KeyButtonPressed);
     scrollView.KeyButtonReleased += new MyGUIEvent(scrollView_KeyButtonReleased);
     timelineMarker = new TimelineMarker(this, scrollView);
     timelineMarker.CoordChanged += new EventHandler(timelineMarker_CoordChanged);
 }