StateMachineView::StateMachineView(const String &contentName, StateManager * _manager) : BaseManagerShapeShifterViewUI(contentName, _manager), manager(_manager), transitionCreationMode(false), transitionCreationSourceUI(nullptr) { contentIsFlexible = true; addItemText = "Add State"; stmUI = new StateTransitionManagerUI(this, &manager->stm); addAndMakeVisible(stmUI, 0); addExistingItems(true); }
AutomationUI::AutomationUI(Automation * _automation) : BaseManagerUI("Automation",_automation,false), firstROIKey(0),lastROIKey(0), currentPosition(0), valueBGColor(Colours::white.withAlpha(.1f)), currentUI(nullptr) { manager->selectionManager->addSelectionListener(this); setShowAddButton(false); animateItemOnAdd = false; transparentBG = true; setViewRange(0, manager->positionMax); manager->addAsyncContainerListener(this); resizeOnChildBoundsChanged = false; addExistingItems(); }