Page MenuHomePhabricator

Activate F1 help for DI App
Closed, ResolvedPublic

Assigned To
None
Authored By
goch
Oct 19 2011, 11:40 AM
Referenced Files
Unknown Object (File)
Oct 21 2011, 10:16 AM

Description

Currently pressing F1 in the Diffusion Imaging Application results in an error message. Instead the help should be opened.

Related Objects

StatusAssignedTask
ResolvedNone
ResolvedNone

Event Timeline

In the QmitkDiffusionImagingAppWorkbenchAdvisor.cpp the berryQtAssistantUtil was commented out. Checking if it is just that.

Not only that. qhcp file is there but qhc is missing

Note: the MitkDiffusionImagingAppQtHelpCollection.qhcp has to be changed from 3M3 to DI

When building the org.mitk...app project output for di is:
...
Deleting intermediate and output files for project 'org_mitk_gui_qt_diffusionimagingapp', configuration 'Debug|x64'
Generating ui_QmitkWelcomeScreenViewControls.h
Generating resources/org.mitk.gui.qt.diffusionimagingapp.qch
C:/home/goch/mitk/sources/woco/MITK/Modules/Bundles/org.mitk.gui.qt.diffusionimagingapp/documentation/UserManual/QmitkDiffusionImagingAppUserManual.dox:6: Warning: unable to resolve reference to `MITKManualMainPage' for \ref command
Generating qrc_org_mitk_gui_qt_diffusionimagingapp_cached.cxx
Generating qrc_org_mitk_gui_qt_diffusionimagingapp_manifest.cxx
Generating qrc_org_mitk_gui_qt_diffusionimagingapp.cxx
Generating qrc_QmitkWelcomeScreenView.cxx
...

The same for the ext:
...
Deleting intermediate and output files for project 'org_mitk_gui_qt_extapplication', configuration 'Debug|x64'
Generating resources/org.mitk.gui.qt.extapplication.qch
C:/home/goch/mitk/sources/woco/MITK/Modules/Bundles/org.mitk.gui.qt.extapplication/documentation/UserManual/QmitkExtapplicationUserManual.dox:6: Warning: unable to resolve reference to `ModuleListPage' for \ref command
C:/home/goch/mitk/sources/woco/MITK/Modules/Bundles/org.mitk.gui.qt.extapplication/documentation/UserManual/QmitkExtapplicationUserManual.dox:8: Warning: unable to resolve reference to `ModuleListPage' for \ref command
C:/home/goch/mitk/sources/woco/MITK/Modules/Bundles/org.mitk.gui.qt.extapplication/documentation/UserManual/QmitkExtapplicationUserManual.dox:10: Warning: unable to resolve reference to `MITKManualMainPage' for \ref command
Generating MitkExtQtHelpCollection_e654d30a4c57fc859724fa68c4bbb809247f17cc.qhc
Reading collection config file...
Creating collection file...
Generating qrc_org_mitk_gui_qt_extapplication_cached.cxx
Generating qrc_org_mitk_gui_qt_extapplication_manifest.cxx
...

The qhc generation step is skipped, but no warning is given or anything.

[738c59]: Merge branch 'bug-9808-enable-user-help'

Merged commits:

2011-10-20 17:46:08 Caspar Goch [f80675]
Changed for help to appear


2011-10-19 12:52:34 Caspar Goch [00f96a]
Removed comment out

I am experiencing the same as Thomas.

Hmm, seems to work now for windows after building MITK as package and then MBI as package, probably MITK package build is needed to generate the corresponding qhc.

Some Meta Bundle Nemas are still off though, will correct that.

Still does not work under Linux.. even though MITK was build before :(

well, at least under MY linux ;) I am not sure, if I am missing anything here with my configuration..

This is starting to become highly mysterious. As far as I recall it works both for Jan and Peter...

If you do a search of your binary tree, do you have .qch files generated for all those diffusion imaging .dox files? Do you have a DiffusionImaging .qhc file? Or are they just missing? Is qhelpgenerator installed on your system?

(In reply to comment #12)

If you do a search of your binary tree, do you have .qch files generated for
all those diffusion imaging .dox files? Do you have a DiffusionImaging .qhc
file? Or are they just missing?

They seem to be missing:
fritzsck@mbi-nb20:/opt/mitk-bins/mitk-release$ find -iname "*.qhc"
./MITK-superbuild/MITK-build/bin/ExtBundles/org.mitk.gui.qt.extapplication/resources/MitkExtQtHelpCollection.qhc

Is qhelpgenerator installed on your system?

yes
fritzsck@mbi-nb20:/opt/mitk-bins/mitk-release$ which qhelpgenerator
/usr/bin/qhelpgenerator

Maybe wrong cmake-configuration?

maybe this is relevant information for this problem?:


Von: Clarkson, Matt [m.clarkson@ucl.ac.uk]
Gesendet: Samstag, 29. Oktober 2011 09:11
An: mitk-users
Betreff: [mitk-users] Fwd: Can't install a boost library

Hi there,

OK, I have sorted out my Linux and Mac installers, raising T9949.
Thanks to everyone for their help.

For other readers interest, the most important bit to get the Qt Assistant help working on the Mac was to build my own Qt, install it in a non-standard place. (i.e. not /usr/lib, /usr/bin), and define a dependency on specific libraries like libQtCLucene.
Then when fixup_bundle searches for libraries to include, it will include all the Qt ones which on a Mac includes things like the Frameworks and also any additional libraries like libQtCLucene.
So, in future, for all my builds, I will probably compile my own Qt.

A few comments below

Many thanks.

Matt

Hmm, possible, though it referred to a Mac problem.

Have you set
MITK_DOXYGEN_GENERATE_QCH_FILES
and
MBI_DOXYGEN_GENERATE_QCH_FILES
set to on?

As well as
BLUEBERRY_USE_QT_HELP
?

If F1 help under linux is displayed in a wrong way (outdated help pages) you have to remove the folders belonging to this application in ./local/share/data/

This removes the outdated pages at least but that does not mean that all wanted pages are displayed.

OK, thanks, the cmake tips solved this.

T9961 might be of interest for you guys.