Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 9
0
        public BendDrawingStrategy(Bend b, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info = v_info;
            bend = b;
        }
Ejemplo n.º 10
0
        public PartDrawingStrategy(Part p, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info = v_info;
            part = p;
        }
Ejemplo n.º 11
0
        public TieDrawingStrategy(Tie t, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info = v_info;
            tie  = t;
        }
Ejemplo n.º 12
0
        public HOPODrawingStrategy(HOPO h, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info = v_info;
            hopo = h;
        }
Ejemplo n.º 13
0
        public SlideDrawingStrategy(Slide s, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info  = v_info;
            slide = s;
        }
Ejemplo n.º 14
0
        public VibratoDrawingStrategy(Vibrato v, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info    = v_info;
            vibrato = v;
        }
Ejemplo n.º 15
0
        public PinchHarmonicDrawingStrategy(PinchHarmonic ph, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info           = v_info;
            pinch_harmonic = ph;
        }
Ejemplo n.º 16
0
        public PalmMuteDrawingStrategy(PalmMute pm, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

            info      = v_info;
            palm_mute = pm;
        }
Ejemplo n.º 17
0
        public MeasureDrawingStrategy(Measure m, IBounds bounds, VisualInfo v_info, IDelegate del)
        {
            Bounds       = bounds;
            DrawDelegate = del;

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

            info = v_info;
            note = n;
        }
Ejemplo 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 24
0
 public GuiCommandExecutor(CommandExecutor ex, CommandSelections s, VisualInfo v_info)
 {
     executor   = ex;
     selections = s;
     info       = v_info;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 28
0
 public MeasureBounds(Measure m, VisualInfo v_info, IDelegate del)
 {
     BoundsDelegate = del;
     measure        = m;
     info           = v_info;
 }
Ejemplo n.º 29
0
 public NoteBounds(Note n, VisualInfo v_info, IDelegate del)
 {
     BoundsDelegate = del;
     note           = n;
     info           = v_info;
 }
Ejemplo n.º 30
0
 public DynamicGuiObjectFactory(VisualInfo v_info, GuiCommandExecutor ex)
 {
     info     = v_info;
     executor = ex;
 }