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.º 2
0
        public EditingView(LengthView length, DeleteView delete, AddItemView add_item, EditingCanvasView canvas_view, PropertyMenuView property, FretMenuView fret, NoteSelectView select,
                           BPMTimeSigView bpm, PartSettingsMenuView part, VisualsView view, TabScrollView scroll, GuiCommandExecutor executor, EditingMouseHandler handler)
        {
            LengthView       = length;
            DeleteView       = delete;
            AddItemView      = add_item;
            CanvasView       = canvas_view;
            PropertyMenuView = property;
            FretMenuView     = fret;
            BPMTimeSigView   = bpm;
            NoteSelectView   = select;
            PartSettingsView = part;
            VisualsView      = view;
            ScrollView       = scroll;

            setHandlers(executor, handler);
        }
Ejemplo n.º 3
0
 public void launchNewPartPropertyMenu(object sender, PartMenuEventArgs args)
 {
     PropertyMenuView.launchPartMenu(args.Click, args.Width, args.Height, args.InstrumentMenu);
 }
Ejemplo n.º 4
0
 public void launchNewPropertyMenu(object sender, PropertyMenuEventArgs args)
 {
     PropertyMenuView.launchMenu(args.Click);
 }