示例#1
0
 public PalmMuteBounds(PalmMute pm, Note n, IBounds n_bounds, VisualInfo v_info, IDelegate del)
 {
     palm_mute   = pm;
     note        = n;
     note_bounds = n_bounds;
     info        = v_info;
 }
示例#2
0
 public VibratoBounds(Vibrato v, Note n, IBounds n_bounds, VisualInfo v_info, IDelegate del)
 {
     vibrato     = v;
     note        = n;
     note_bounds = n_bounds;
     info        = v_info;
 }
示例#3
0
 public PinchHarmonicBounds(PinchHarmonic ph, Note n, IBounds n_bounds, VisualInfo v_info, IDelegate del)
 {
     pinch_harmonic = ph;
     note           = n;
     note_bounds    = n_bounds;
     info           = v_info;
 }
示例#4
0
 public HOPOBounds(HOPO h, Note n, IBounds n_bounds, VisualInfo v_info, IDelegate del)
 {
     hopo        = h;
     note        = n;
     note_bounds = n_bounds;
     info        = v_info;
 }
        public void runFactory(StartingFactory fac, Part part)
        {
            reader = fac.Reader;
            info   = fac.Info;
            info.Position.reset();
            selected = createSelected();

            converter  = createMouseStateConverter();
            selections = createCommandSelections();
            executor   = createExecutor();
            tree       = createTree();
            handler    = createHandler();
            updater    = createUpdater();

            length_view   = createLengthView();
            delete_view   = createDeleteView();
            add_item_view = createAddItemView();
            canvas_view   = createCanvasView();
            property_view = createPropertyView();
            fret_view     = createFretView();
            select_view   = createNoteSelectView();
            time_sig_view = createBPMTimeSigView();
            part_view     = createPartMenuView();
            visuals_view  = createVisualsView();
            scroll_view   = createScollView();

            main_view = createMainView();

            initView(part);
        }
示例#6
0
 public TieBounds(Tie t, Note n, IBounds n_bounds, VisualInfo v_info, IDelegate del)
 {
     tie         = t;
     note        = n;
     note_bounds = n_bounds;
     info        = v_info;
 }
示例#7
0
 public BendBounds(Bend b, Note n, IBounds n_bounds, VisualInfo v_info, IDelegate del)
 {
     bend        = b;
     note        = n;
     note_bounds = n_bounds;
     info        = v_info;
 }
示例#8
0
 public SlideBounds(Slide s, Note n, IBounds n_bounds, VisualInfo v_info, IDelegate del)
 {
     slide       = s;
     note        = n;
     note_bounds = n_bounds;
     info        = v_info;
 }
示例#9
0
        public BendDrawingStrategy(Bend b, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info = v_info;
            bend = b;
        }
示例#10
0
        public PartDrawingStrategy(Part p, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info = v_info;
            part = p;
        }
示例#11
0
        public TieDrawingStrategy(Tie t, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info = v_info;
            tie  = t;
        }
示例#12
0
        public HOPODrawingStrategy(HOPO h, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info = v_info;
            hopo = h;
        }
示例#13
0
        public SlideDrawingStrategy(Slide s, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info  = v_info;
            slide = s;
        }
示例#14
0
        public VibratoDrawingStrategy(Vibrato v, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info    = v_info;
            vibrato = v;
        }
示例#15
0
        public PinchHarmonicDrawingStrategy(PinchHarmonic ph, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info           = v_info;
            pinch_harmonic = ph;
        }
示例#16
0
        public PalmMuteDrawingStrategy(PalmMute pm, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info      = v_info;
            palm_mute = pm;
        }
        public MeasureDrawingStrategy(Measure m, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info    = v_info;
            measure = m;
        }
示例#18
0
        public NoteDrawingStrategy(Note n, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info = v_info;
            note = n;
        }
示例#19
0
        public ChordBounds(Chord c, VisualInfo v_info, IDelegate del)
        {
            ChordBar   = new ChordBar(c.Length.NoteType);
            ChordTuple = new ChordTuple(c.Length);

            BoundsDelegate = del;
            chord          = c;
            info           = v_info;
        }
示例#20
0
        public ChordDrawingStrategy(Chord c, ChordBar b, ChordTuple t, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info  = v_info;
            chord = c;
            bar   = b;
            tuple = t;
        }
示例#21
0
        public PropertyMenuView(PropertyMenuFactory fac, VisualInfo v_info)
        {
            factory   = fac;
            Menu      = null;
            Visible   = Visibility.Collapsed;
            Selected  = null;
            ref_click = null;
            Left      = 0;
            Top       = 0;

            info = v_info;
        }
        public void runFactory(StartingFactory fac, Part part)
        {
            reader = fac.Reader;
            info   = fac.Info;
            info.Position.reset();

            tree = createTree();

            canvas_view  = createCanvasView();
            visuals_view = createVisualsView();
            scroll_view  = createScrollView();

            main_view = createMainView();

            initView(part);
        }
 public StaticGuiObjectFactory(VisualInfo v_info)
 {
     info = v_info;
 }
 public GuiCommandExecutor(CommandExecutor ex, CommandSelections s, VisualInfo v_info)
 {
     executor   = ex;
     selections = s;
     info       = v_info;
 }
示例#25
0
        public static void updateBelowLineEffectBounds(IBounds effect_bounds, IBounds note_bounds, Note note, VisualInfo info)
        {
            int right = Math.Min(note_bounds.Right + info.Dimensions.getLength(note.Length.NoteType) + info.Dimensions.NoteWidth / 2,
                                 info.Dimensions.BarMargin + info.Dimensions.BarWidth + info.Position.CurrentLeft);

            effect_bounds.Left   = note_bounds.Left + info.Dimensions.NoteWidth / 2;
            effect_bounds.Top    = note_bounds.Bottom - info.Dimensions.StringHeight * 2 / 3;
            effect_bounds.Width  = right - (note_bounds.Left + info.Dimensions.NoteWidth / 2);
            effect_bounds.Height = info.Dimensions.StringHeight;
            effect_bounds.Bar    = note_bounds.Bar;
        }
示例#26
0
 public RestChordDrawingStrategy(Chord c, ChordBar b, ChordTuple t, IBounds bounds, VisualInfo v_info, IDelegate del) : base(c, b, t, bounds, v_info, del)
 {
 }
示例#27
0
 public static void updateBeforeNoteEffectBounds(IBounds effect_bounds, IBounds note_bounds, Note note, VisualInfo info)
 {
     effect_bounds.Left   = note_bounds.Left - info.Dimensions.NoteWidth;
     effect_bounds.Top    = note_bounds.Top;
     effect_bounds.Width  = info.Dimensions.NoteWidth;
     effect_bounds.Height = note_bounds.Height;
     effect_bounds.Bar    = note_bounds.Bar;
 }
示例#28
0
 public MeasureBounds(Measure m, VisualInfo v_info, IDelegate del)
 {
     BoundsDelegate = del;
     measure        = m;
     info           = v_info;
 }
示例#29
0
 public NoteBounds(Note n, VisualInfo v_info, IDelegate del)
 {
     BoundsDelegate = del;
     note           = n;
     info           = v_info;
 }
示例#30
0
 public DynamicGuiObjectFactory(VisualInfo v_info, GuiCommandExecutor ex)
 {
     info     = v_info;
     executor = ex;
 }