Hi Hortense,

for examples of how to use perspectives you can take a look at the perspectives 
of MITK Diffusion [1]. Please note some idiosyncrasies in the usage of 
IPageLayout [2], especially the ratio is not always intuitive:
"

For a vertical split, the part on top gets the specified ratio of the current 
space and the part on bottom gets the rest. Likewise, for a horizontal split, 
the part at left gets the specified ratio of the current space and the part at 
right gets the rest."


Please note, that the "Display" is an editor and not a view. The two are 
different concepts and you generally do not want them to occupy the same space. 
You could create your own editor instead (see for example our help editor and 
perspective [3]).

Best,
Caspar

[1] 
http://mitk.org/git/?p=MITK.git;a=tree;f=Plugins/org.mitk.gui.qt.diffusionimagingapp/src/internal/Perspectives;h=4a0a1aa8267a6664aeb45d974f7a73ca80e578f8;hb=HEAD
[2] http://docs.mitk.org/nightly-qt4/structberry_1_1IPageLayout.html
[3] 
http://mitk.org/git/?p=MITK.git;a=tree;f=BlueBerry/Bundles/org.blueberry.ui.qt.help/src/internal;h=990a8303d2822d540c7e86dad6c073c56ce4c357;hb=HEAD


Von: Hortense KIRISLI [mailto:[email protected]]
Gesendet: Donnerstag, 5. Juni 2014 11:47
An: [email protected]
Betreff: [mitk-users] How to set default perspective of a plugin

Hi all,

I am struggling understanding how can the default perspective of plugins be 
set? I use MITK 2013.09.0.

For instance, how can i specify that a plugin of my project should by default 
appear:
- on the left side of workbench, for instance between the 'data manager' and 
the 'Image Navigator' plugins.
- as a second tab with the 'Display' renderer in middle of workbench.

Any tip is welcome :)

Regards,
Hortense
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to