Generic handling of online help topics.
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 11 May 2012 18:08:47 +0000 (21:08 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Tue, 29 May 2012 13:56:53 +0000 (16:56 +0300)
commit1440526f9793d93a858905c0df55cd79bae3c7b3
tree55dbfd7a89bd2884f81de7cebb29c6a26f80c07e
parentbfdfd536795632ddcaf874f93b0a1dee1f118bfb
Generic handling of online help topics.

- Added a few simple classes for handling a tree of help topics
  (src/gromacs/onlinehelp/).
- Rewrote the selection help to use the new classes. Required changing
  the help parser slightly to pass all requested help topics in a single
  call to _gmx_sel_handle_help_cmd(). Although this changes the usage of
  the help slightly, did not yet update the help texts.
- Added a way to specify the bison and flex binaries to use for
  regenerate_parser.sh (useful, e.g., if multiple versions are
  installed).

Related to #666.

Change-Id: I318fc0fc42e4af39734a5aa65a503582302ecdd8
22 files changed:
src/gromacs/onlinehelp/CMakeLists.txt
src/gromacs/onlinehelp/helpformat.cpp
src/gromacs/onlinehelp/helpformat.h
src/gromacs/onlinehelp/helpmanager.cpp [new file with mode: 0644]
src/gromacs/onlinehelp/helpmanager.h [new file with mode: 0644]
src/gromacs/onlinehelp/helptopic.cpp [new file with mode: 0644]
src/gromacs/onlinehelp/helptopic.h [new file with mode: 0644]
src/gromacs/onlinehelp/helptopicinterface.h [new file with mode: 0644]
src/gromacs/onlinehelp/tests/CMakeLists.txt
src/gromacs/onlinehelp/tests/helpmanager.cpp [new file with mode: 0644]
src/gromacs/onlinehelp/tests/refdata/HelpTopicFormattingTest_FormatsCompositeTopicWithSubTopics.xml [new file with mode: 0644]
src/gromacs/onlinehelp/tests/refdata/HelpTopicFormattingTest_FormatsSimpleTopic.xml [new file with mode: 0644]
src/gromacs/selection/parser.cpp
src/gromacs/selection/parser.y
src/gromacs/selection/parsetree.cpp
src/gromacs/selection/parsetree.h
src/gromacs/selection/regenerate_parser.sh
src/gromacs/selection/selectioncollection-impl.h
src/gromacs/selection/selhelp.cpp
src/gromacs/selection/selhelp.h
src/testutils/mock_helptopic.cpp [new file with mode: 0644]
src/testutils/mock_helptopic.h [new file with mode: 0644]