Hi,

> data manager, but I can't seem to prevent the old
> org.mitk.gui.qt.datamanager plugin from showing up.
I assume you sue the normal default project template (which uses the normal 
workbench application).
Then this is most probably the reason:
- The workbench application depends a.o. on the plugin 
org.mitk.gui.qt.extapplication.
- This plugin a.o. provides the default perspective QmitkExtDefaultPerspective, 
which always ensures that the DataManager is loaded at the left (see line 24 ff 
of QmitkExtDefaultPerspective.cpp)

Depending of how fundamental you want to change the appearance you have to 
specify your own application and so on. See e.g. the prototype application 
"FlowBench" (in the application directory). It completely gets rid of the data 
manager and several other stuff (including Buttons in the menu) to offer a very 
minimalized Workbench, for simple tasks triggered within a bigger workflow.

Additionally, If you build your own data manager, you should consider building 
upon 
https://github.com/MITK/MITK/blob/master/Modules/QtWidgets/include/QmitkDataStorageTreeInspector.h
 or alike, as the old data manager might not be the best role model, as it is 
very packed with features and legacy code.

> - Is MITK hard coded to always create a main window with
> org.mitk.gui.qt.datamanager on the left and the image navigator on the
> right? If it is, does anybody know where it's hard coded?
Not MITK in total but the Application MitkWorkbench is currently. See 
MitkWorkbench.cpp line 43. This causes the 
"org.mitk.gui.qt.extapplication.workbench" to be loaded as product/application. 
The plugin causes QmitkExtDefaultPerspective to be used.

Hope that helps.

Best Ralf


> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 14 Sep 2020 15:34:32 -0400
> From: Alex Melville <amelv...@umich.edu>
> To: mitk-users@lists.sourceforge.net
> Subject: [mitk-users] Application with custom Data Manager
> Message-ID:
>       <CA+-
> GQCpyYE7XKt_Z9Z2oddzYptkb=qqrywmfxdsvoob_7ex...@mail.gmail.com
> >
> Content-Type: text/plain; charset="utf-8"
> 
> Hello,
> 
> I decided to attempt to create my own Data Manager, I was able to make it
> and get it to show up as a plugin. I'd like it to completely replace the MITK
> data manager, but I can't seem to prevent the old
> org.mitk.gui.qt.datamanager plugin from showing up.
> 
> Using the MITK project template as a base,
> - I tried greping for the MITK data manager and making sure every
> occurrence was replaced with my own data manager
> - In
> Plugins\my.awesomeproject.exampleapp\src\internal\QmitkAwesomePers
> pective.cpp,
> I tried replacing the entire body of void
> QmitkAwesomePerspective::CreateInitialLayout(berry::IPageLayout::Pointer
> layout) with `return`
> - If I delete the dll for the MITK data manager, it still tries to load it 
> but it
> shows an error saying it couldn't find the DLL
> 
> I'm really not sure how the MITK data manager plugin is being loaded, it's not
> referenced anywhere in the sample project.
> - Is it stubbornly trying to load the last used layout from somewhere?
> - Is MITK hard coded to always create a main window with
> org.mitk.gui.qt.datamanager on the left and the image navigator on the
> right? If it is, does anybody know where it's hard coded?
> 
> Thanks,
> 
> - Alex
> -------------- next part --------------
> An HTML attachment was scrubbed...
> 
> ------------------------------
> 
> 
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> mitk-users mailing list
> mitk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mitk-users
> 
> 
> ------------------------------
> 
> End of mitk-users Digest, Vol 172, Issue 17
> *******************************************


_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to