コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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();
                }
            }
        }
コード例 #4
0
        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);
            }
        }
コード例 #5
0
        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);
            }
        }
コード例 #6
0
 public virtual void mouseClick(StandardClick click)
 {
 }