Skip to content

Commit

Permalink
Refs #6101. First pass at the qtassistant setup.
Browse files Browse the repository at this point in the history
Missing all autogenerated code and lots of information.
  • Loading branch information
peterfpeterson committed Jan 30, 2013
1 parent d284dd4 commit 080e989
Show file tree
Hide file tree
Showing 12 changed files with 1,183 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Code/Mantid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ endif ( MAKE_VATES )

add_subdirectory ( MantidPlot )

add_subdirectory ( docs )

# python unit tests
if (PYUNITTEST_FOUND)
add_subdirectory ( scripts )
Expand Down
1 change: 1 addition & 0 deletions Code/Mantid/docs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_subdirectory ( qtassistant )
30 changes: 30 additions & 0 deletions Code/Mantid/docs/qtassistant/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
######################################################################
# QT assistant documentation generator
######################################################################
#QT_QCOLLECTIONGENERATOR_EXECUTABLE
if (QT_QCOLLECTIONGENERATOR_EXECUTABLE)
message (STATUS "Adding information for qtassistant: mantid.qhc")
set (HELP_QHCP_SOURCE
mantid.qhcp
img/Mantid_Logo_Transparent.png
img/MantidPlot_Icon_32offset.png
src/about.txt
src/algorithms.html
src/algorithms.qhp
src/fitfunctions.html
src/mantidgeneral.qhp
)

add_custom_command(OUTPUT mantid.qhc algorithms.qch mantidgeneral.qch
DEPENDS ${HELP_QHCP_SOURCE}
COMMAND ${QT_QCOLLECTIONGENERATOR_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/mantid.qhcp
)

add_custom_target ( qtassistant ALL
DEPENDS mantid.qhc MantidPlot)

# install ( FILES mantid.qhc algorithms.qch mantidgeneral.qch
# DESTINATION ${GUI_HELP_DEST} <- TODO define this variable
# COMPONENT help ) <- TODO define this component

endif()
12 changes: 12 additions & 0 deletions Code/Mantid/docs/qtassistant/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
mycollection.qhcp - main collection file that has generic about information
myapplication-manual.qhp - information about an individual manual
mycollection.qhc - final output file to use
myapplication-manual.qch - cache file for the applications help info

To generate the help run

qcollectiongenerator mycollection.qhcp -o mycollection.qhc

To view use

assistant-qt4 -collectionFile mycollection.qhc
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions Code/Mantid/docs/qtassistant/mantid.qhcp
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8" ?>
<QHelpCollectionProject version="1.0">
<assistant>
<title>Mantid Help</title>
<startPage>qthelp://org.mantidproject/doc/index.html</startPage>
<applicationIcon>img/MantidPlot_Icon_32offset.png</applicationIcon>
<enableFilterFunctionality>false</enableFilterFunctionality>
<enableDocumentationManager>true</enableDocumentationManager>
<enableAddressBar visible="true">false</enableAddressBar>
<cacheDirectory>mantidproject/mantid</cacheDirectory>
<aboutMenuText>
<text>About Mantid</text>
</aboutMenuText>
<aboutDialog>
<file>src/about.txt</file>
<icon>img/Mantid_Logo_Transparent.png</icon>
</aboutDialog>
</assistant>
<docFiles>
<generate>
<file>
<input>src/mantidgeneral.qhp</input>
<output>mantidgeneral.qch</output>
</file>
<file>
<input>src/algorithms.qhp</input>
<output>algorithms.qch</output>
</file>
</generate>
<register>
<file>mantidgeneral.qch</file>
<file>algorithms.qch</file>
</register>
</docFiles>
</QHelpCollectionProject>
1 change: 1 addition & 0 deletions Code/Mantid/docs/qtassistant/src/about.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Lots of really helpful information about mantid.
701 changes: 701 additions & 0 deletions Code/Mantid/docs/qtassistant/src/algorithms.html

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions Code/Mantid/docs/qtassistant/src/algorithms.qhp
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<QtHelpProject version="1.0">
<namespace>org.mantidproject.algorithms</namespace>
<virtualFolder>doc</virtualFolder>
<filterSection>
<!--
<toc>
<section title="Algorithms" ref="./algorithms.html"/>
</toc>
-->
<keywords>
<keyword name="Algorithms" ref="./algorithms.html"/>
<!--
<keyword name="Display" ref="./index.html"/>
<keyword name="Rich text" ref="./index.html"/>
<keyword name="Plain text" ref="./index.html"/>
<keyword name="Find" ref="./findfile.html"/>
<keyword name="File menu" ref="./findfile.html"/>
<keyword name="File name" ref="./filedialog.html"/>
<keyword name="File dialog" ref="./filedialog.html"/>
<keyword name="File globbing" ref="./wildcardmatching.html"/>
<keyword name="Wildcard matching" ref="./wildcardmatching.html"/>
<keyword name="Wildcard syntax" ref="./wildcardmatching.html"/>
<keyword name="Browse" ref="./browse.html"/>
<keyword name="Directory" ref="./browse.html"/>
<keyword name="Open" ref="./openfile.html"/>
<keyword name="Select" ref="./openfile.html"/>
-->
</keywords>
<files>
<file>algorithms.html</file>
<!--
<file>browse.html</file>
<file>filedialog.html</file>
<file>findfile.html</file>
<file>index.html</file>
<file>intro.html</file>
<file>openfile.html</file>
<file>wildcardmatching.html</file>
<file>images/browse.png</file>
<file>images/fadedfilemenu.png</file>
<file>images/filedialog.png</file>
<file>images/handbook.png</file>
<file>images/mainwindow.png</file>
<file>images/open.png</file>
<file>images/wildcard.png</file>
-->
</files>
</filterSection>
</QtHelpProject>

0 comments on commit 080e989

Please sign in to comment.