forked from qt-creator/qt-creator
ModelEditor: Remove diagram's specific document and editor
Only one document is created per .qmodel file and only one editor is opened (splitting is not yet supported). The editor shows one diagram, another diagram can be shown from the model tree. Change-Id: Icd8211c14cb09203c52769a8ea1c90edb741ae51 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
|
||||
#include "modeleditor_plugin.h"
|
||||
|
||||
#include "diagrameditorfactory.h"
|
||||
#include "modeleditorfactory.h"
|
||||
#include "modelsmanager.h"
|
||||
#include "settingscontroller.h"
|
||||
@@ -72,7 +71,6 @@ public:
|
||||
ModelsManager *modelsManager = 0;
|
||||
UiController *uiController = 0;
|
||||
ModelEditorFactory *modelFactory = 0;
|
||||
DiagramEditorFactory *diagramFactory = 0;
|
||||
SettingsController *settingsController = 0;
|
||||
};
|
||||
|
||||
@@ -110,9 +108,6 @@ bool ModelEditorPlugin::initialize(const QStringList &arguments, QString *errorS
|
||||
d->modelFactory = new ModelEditorFactory(d->uiController, this);
|
||||
addAutoReleasedObject(d->modelFactory);
|
||||
|
||||
d->diagramFactory = new DiagramEditorFactory(d->uiController, this);
|
||||
addAutoReleasedObject(d->diagramFactory);
|
||||
|
||||
d->settingsController = new SettingsController(this);
|
||||
addAutoReleasedObject(d->settingsController);
|
||||
|
||||
@@ -130,7 +125,6 @@ void ModelEditorPlugin::extensionsInitialized()
|
||||
// In the extensionsInitialized method, a plugin can be sure that all
|
||||
// plugins that depend on it are completely initialized.
|
||||
d->modelFactory->extensionsInitialized();
|
||||
d->diagramFactory->extensionsInitialized();
|
||||
d->settingsController->load(Core::ICore::settings());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user