|
63 | 63 | #include <coreplugin/internal/UndoAddOn.h> |
64 | 64 | #include <coreplugin/internal/ViewVisibilityAddOn.h> |
65 | 65 | #include <coreplugin/internal/WorkspaceAddOn.h> |
66 | | -#include <coreplugin/PropertyEditorManager.h> |
67 | 66 |
|
68 | 67 | static auto getCoreActionExtension() { |
69 | 68 | return QAK_STATIC_ACTION_EXTENSION(coreplugin); |
@@ -377,38 +376,38 @@ namespace Core::Internal { |
377 | 376 | } |
378 | 377 |
|
379 | 378 | void CorePlugin::initializePropertyEditors() { |
380 | | - const auto f = [=, this](const QString &typeName, void(PropertyEditorManager::*addMethod)(QQmlComponent *)) { |
| 379 | + const auto f = [=, this](const QString &typeName, const QString &id) { |
381 | 380 | auto component = new QQmlComponent(RuntimeInterface::qmlEngine(), "DiffScope.Core", typeName, this); |
382 | 381 | if (component->isError()) { |
383 | 382 | qFatal() << component->errorString(); |
384 | 383 | } |
385 | | - (CoreInterface::propertyEditorManager()->*addMethod)(component); |
| 384 | + RuntimeInterface::instance()->addObject(id, component); |
386 | 385 | }; |
387 | | - f("MetadataPropertyEditor", &PropertyEditorManager::addNoneComponent); |
388 | | - f("MasterControlPropertyEditor", &PropertyEditorManager::addNoneComponent); |
389 | | - f("LoopPropertyEditor", &PropertyEditorManager::addNoneComponent); |
| 386 | + f("MetadataPropertyEditor", "org.diffscope.core.propertyeditor.document"); |
| 387 | + f("MasterControlPropertyEditor", "org.diffscope.core.propertyeditor.document"); |
| 388 | + f("LoopPropertyEditor", "org.diffscope.core.propertyeditor.document"); |
390 | 389 |
|
391 | | - f("ClipPropertyEditor", &PropertyEditorManager::addClipComponent); |
392 | | - f("AudioPropertyEditor", &PropertyEditorManager::addClipComponent); |
393 | | - f("VirtualSingerPropertyEditor", &PropertyEditorManager::addClipComponent); |
394 | | - f("ControlPropertyEditor", &PropertyEditorManager::addClipComponent); |
395 | | - f("ClipTimePropertyEditor", &PropertyEditorManager::addClipComponent); |
| 390 | + f("ClipPropertyEditor", "org.diffscope.core.propertyeditor.clip"); |
| 391 | + f("AudioPropertyEditor", "org.diffscope.core.propertyeditor.clip"); |
| 392 | + f("VirtualSingerPropertyEditor", "org.diffscope.core.propertyeditor.clip"); |
| 393 | + f("ControlPropertyEditor", "org.diffscope.core.propertyeditor.clip"); |
| 394 | + f("ClipTimePropertyEditor", "org.diffscope.core.propertyeditor.clip"); |
396 | 395 |
|
397 | | - f("LabelPropertyEditor", &PropertyEditorManager::addLabelComponent); |
| 396 | + f("LabelPropertyEditor", "org.diffscope.core.propertyeditor.label"); |
398 | 397 |
|
399 | | - f("NotePropertyEditor", &PropertyEditorManager::addNoteComponent); |
400 | | - f("NoteLyricPropertyEditor", &PropertyEditorManager::addNoteComponent); |
401 | | - f("NotePitchPropertyEditor", &PropertyEditorManager::addNoteComponent); |
402 | | - f("NoteTimePropertyEditor", &PropertyEditorManager::addNoteComponent); |
403 | | - f("NotePhonemePropertyEditor", &PropertyEditorManager::addNoteComponent); |
| 398 | + f("NotePropertyEditor", "org.diffscope.core.propertyeditor.note"); |
| 399 | + f("NoteLyricPropertyEditor", "org.diffscope.core.propertyeditor.note"); |
| 400 | + f("NotePitchPropertyEditor", "org.diffscope.core.propertyeditor.note"); |
| 401 | + f("NoteTimePropertyEditor", "org.diffscope.core.propertyeditor.note"); |
| 402 | + f("NotePhonemePropertyEditor", "org.diffscope.core.propertyeditor.note"); |
404 | 403 |
|
405 | | - f("TempoPropertyEditor", &PropertyEditorManager::addTempoComponent); |
| 404 | + f("TempoPropertyEditor", "org.diffscope.core.propertyeditor.tempo"); |
406 | 405 |
|
407 | | - f("TrackPropertyEditor", &PropertyEditorManager::addTrackComponent); |
408 | | - f("ControlPropertyEditor", &PropertyEditorManager::addTrackComponent); |
409 | | - f("TrackDisplayPropertyEditor", &PropertyEditorManager::addTrackComponent); |
| 406 | + f("TrackPropertyEditor", "org.diffscope.core.propertyeditor.track"); |
| 407 | + f("ControlPropertyEditor", "org.diffscope.core.propertyeditor.track"); |
| 408 | + f("TrackDisplayPropertyEditor", "org.diffscope.core.propertyeditor.track"); |
410 | 409 |
|
411 | | - f("KeySignaturePropertyEditor", &PropertyEditorManager::addKeySignatureComponent); |
| 410 | + f("KeySignaturePropertyEditor", "org.diffscope.core.propertyeditor.keysignature"); |
412 | 411 |
|
413 | 412 | } |
414 | 413 |
|
|
0 commit comments