예제 #1
0
 internal void selectAll(TimelineSelectionCollection selectionCollection)
 {
     foreach (TimelineViewButton button in buttons)
     {
         selectionCollection.addButton(button);
     }
 }
예제 #2
0
 internal void removeSelection(TimelineSelectionCollection selectionCollection, TimelineSelectionBox timelineSelectionBox)
 {
     foreach (TimelineViewButton button in buttons)
     {
         if (timelineSelectionBox.intersects(button))
         {
             selectionCollection.removeButton(button);
         }
     }
 }
예제 #3
0
 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);
 }