ViewNavigator tree entries become bold when opened
Summary:
Rename plugin activator files
For a cleaner and simpler naming the files
were renamed.
Clean view navigator view files
In order to stick to the common naming convention,
the class "ViewNavigatorView" was renamed.
Additionally the "VIEW_ID" was changed according to the
common naming convention.
Correct view navigator item files
In order to stick to the common naming convention,
the classes "mitkQtViewItem" and "mitkQtPerspectiveItem" were
renamed to "QmitkViewItem" and "QmitkPerspectiveItem".
The class-names were changed in "QmitkViewNavigatorWidget" accordingly.
Clean view navigator widget files
Functions of the "ClassFilterProxyModel" class have directly
been defined inside the nested class to make the nested classes
more consistent.
Member variable and function names were changed according to the
common naming convention.
Functions have been reordered according to the access specifiers.
Unnecesary comments have been removed to clean the code.
Make class more readable
Use part listener to update tree on views status
If views are opened / closed, the tree list is updated.
The update function checks each tree item, compares them with
opened views and sets the font to bold if necessary.
Clean view navigator widget files
Loops have been modernized.
Test Plan:
- open MITK workbench, open the ViewNavigator
- double click on a tree item to open another view
- see how the tree item is written with bold font
- open a plugin view from the plugin menu bar
- see how the corresponding tree item is written with bold font
- close and re-open the view navigator
- see how the previous state is restored
- close a plugin view
- see how the corresponding tree item is written with normal font
Reviewers: kislinsk, O1 MITK Reviewer Group I, O3 MITK Reviewer Group II
Reviewed By: kislinsk, O1 MITK Reviewer Group I, O3 MITK Reviewer Group II
Subscribers: kislinsk, kalali
Maniphest Tasks: T28819
Differential Revision: https://phabricator.mitk.org/D586