Add subsection depth to HelpWriterContext
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 17 May 2015 18:27:17 +0000 (21:27 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 22 May 2015 03:03:23 +0000 (05:03 +0200)
commit57ecfc60bdfc15acc46081a3372c1d1dd9cca037
treea8f65fbb515cc2cfd201e8cf83c12c20101cfee8
parentfe649c41316fa7350126235d13a3fbde5004e2e8
Add subsection depth to HelpWriterContext

Necessary for exporting, e.g., the selection help as rst (#679), and
cleans up the code by making more output go through HelpWriterContext
instead of directly writing to the output file.

Also, reorganize the way help topic titles are written: HelpManager is
now responsible for writing out the title for a topic.  This makes
things behave the same as with HelpWriterContext::createSubSection().

Change-Id: If7e0ee6d4c9dd313e1523fa457f64cf3c4f891f9
src/gromacs/commandline/cmdlinehelpcontext.cpp
src/gromacs/commandline/cmdlinehelpcontext.h
src/gromacs/commandline/cmdlinehelpmodule.cpp
src/gromacs/onlinehelp/helpmanager.cpp
src/gromacs/onlinehelp/helptopic.cpp
src/gromacs/onlinehelp/helptopic.h
src/gromacs/onlinehelp/helpwritercontext.cpp
src/gromacs/onlinehelp/helpwritercontext.h
src/gromacs/selection/selhelp.cpp