| 25 | } |
| 26 | |
| 27 | void MainContentComponent::init() |
| 28 | { |
| 29 | ShapeShifterFactory::getInstance()->defs.add(new ShapeShifterDefinition("Module Router", &ModuleRouterPanelView::create)); |
| 30 | ShapeShifterFactory::getInstance()->defs.add(new ShapeShifterDefinition("Modules", &ModuleManagerUI::create)); |
| 31 | |
| 32 | ShapeShifterFactory::getInstance()->defs.add(new ShapeShifterDefinition("Custom Variables", &CVGroupManagerUI::create)); |
| 33 | ShapeShifterFactory::getInstance()->defs.add(new ShapeShifterDefinition("Morpher", &MorpherPanel::create)); |
| 34 | |
| 35 | ShapeShifterFactory::getInstance()->defs.add(new ShapeShifterDefinition("Sequences", &createSequenceManagerUI)); |
| 36 | ShapeShifterFactory::getInstance()->defs.add(new ShapeShifterDefinition("Sequence Editor", &TimeMachineView::create)); |
| 37 | |
| 38 | ShapeShifterFactory::getInstance()->defs.add(new ShapeShifterDefinition("States", &StateManagerUI::create)); |
| 39 | ShapeShifterFactory::getInstance()->defs.add(new ShapeShifterDefinition("State Machine", &StateMachineView::create)); |
| 40 | |
| 41 | ShapeShifterFactory::getInstance()->defs.add(new ShapeShifterDefinition("Command Templates", &CommandTemplateManagerPanel::create)); |
| 42 | |
| 43 | OrganicMainContentComponent::init(); |
| 44 | |
| 45 | String lastVersion = getAppProperties().getUserSettings()->getValue("lastVersion", ""); |
| 46 | |
| 47 | #if !JUCE_LINUX |
| 48 | if (lastVersion != getAppVersion()) |
| 49 | { |
| 50 | welcomeScreen.reset(new WelcomeScreen()); |
| 51 | DialogWindow::showDialog("Welcome", welcomeScreen.get(), getTopLevelComponent(), Colours::black, true); |
| 52 | } |
| 53 | #endif |
| 54 | |
| 55 | ParameterUI::customAddToContextMenuFunc = MainContentComponent::parameterAddToContextMenu; |
| 56 | ParameterUI::handleCustomContextMenuResultFunc = MainContentComponent::parameterHandleContextMenuResult; |
| 57 | } |
| 58 | |
| 59 | SequenceManagerUI* MainContentComponent::createSequenceManagerUI(const String& name) |
| 60 | { |