MCPcopy Create free account
hub / github.com/benkuper/Chataigne / init

Method init

Source/MainComponent.cpp:27–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void 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
59SequenceManagerUI* MainContentComponent::createSequenceManagerUI(const String& name)
60{

Callers 1

initialiseInternalMethod · 0.45

Calls 5

getValueMethod · 0.80
initFunction · 0.50
addMethod · 0.45
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected