public override void mouseClick(StandardClick click) { if (click.matchesSelectionType(Selection.Set_Length)) { executor.executeChangeChordLength(click); } else if (click.matchesSelectionType(Selection.Add_Note)) { executor.executeAddNoteToChord(click); } invokeClickDelegate(click); }
public override void mouseClick(StandardClick click) { if (click.matchesSelectionType(Selection.Add_Multi_Effect)) { executor.executeAddMultiEffectToNotesMenu(click); } else if (click.matchesSelectionType(Selection.Add_Effect)) { executor.executeAddEffectToNote(click); } invokeClickDelegate(click); }
public void mouseUp(Point pos) { if (note_select) { var click = new NoteSelectClick(pos); tree.HandleMouseEvent(click); populateSelected(click); noteSelected(click); } else if (checkMouseMoved(pos)) { NodeClick click; if (checkForDragRelease(pos)) { click = new ReleaseClick(pos); selected.populateNodeClick(click); } else { click = new SelectClick(pos, new Rect(pos, down_point)); } tree.HandleMouseEvent(click); populateSelected(click); } else if (double_click && selected.selectedContainsPoint(pos)) { var click = new NodeClick(pos); selected.populateNodeClick(click); var args = new PropertyMenuEventArgs(click); PropertyMenuChanged?.Invoke(this, args); } else { var click = new StandardClick(SelectionState, pos); tree.HandleMouseEvent(click); if (!click.Handled) { populateSelected(click); } if (SelectionState == Selection.Standard) { TimeDoubleClick(); } } }
public override void mouseClick(StandardClick click) { if (click.matchesSelectionType(Selection.Add_Rest)) { int position = performMousePositionCheck(click); executor.executeAddRestChordToMeasure(click, position); } invokeClickDelegate(click); if (click.matchesSelectionType(Selection.Add_Note)) { int position = performMousePositionCheck(click); executor.executeAddNoteToMeasure(click, position); } }
public override void mouseClick(StandardClick click) { if (click.matchesSelectionType(Selection.Add_Measure)) { MeasurePositionClick pos_click = performMousePositionCheck(click); executor.executeAddMeasureToPart(click, pos_click); } invokeClickDelegate(click); if (click.matchesSelectionType(Selection.Add_Rest)) { executor.executeAddRestChordToPart(click); } else if (click.matchesSelectionType(Selection.Add_Note)) { executor.executeAddNoteToPart(click); } }
public virtual void mouseClick(StandardClick click) { }