Changeset ae8b90 for molecuilder


Ignore:
Timestamp:
May 8, 2010, 10:00:57 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
07d2cd
Parents:
13743e
Message:

New HelpAction that will print the help from boost::program_options.

  • new class CommandLineHelpAction that will print the boost::program_options help
  • therefore CommandLineParser::visible had to be made public
  • CommandLineHelpAction is instantiated in CommandLineWindow::populateParserActions()
Location:
molecuilder/src
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/CommandLineParser.hpp

    r13743e rae8b90  
    3535  po::options_description hidden;
    3636
     37  po::options_description visible;
     38
    3739protected:
    3840  CommandLineParser();
     
    4446  po::options_description cmdline_options;
    4547  po::options_description config_file_options;
    46   po::options_description visible;
    4748
    4849  po::variables_map vm;
  • molecuilder/src/Makefile.am

    r13743e rae8b90  
    5151ACTIONSSOURCE = Actions/Action.cpp \
    5252  ${ATOMACTIONSOURCE} \
     53  ${CMDACTIONSOURCE} \
    5354  ${FRAGMENTATIONACTIONSOURCE} \
    5455  ${MOLECULEACTIONSOURCE} \
     
    6667ACTIONSHEADER = Actions/Action.hpp \
    6768  ${ATOMACTIONHEADER} \
     69  ${CMDACTIONHEADER} \
    6870  ${FRAGMENTATIONACTIONHEADER} \
    6971  ${MOLECULEACTIONHEADER} \
     
    8587ATOMACTIONHEADER =
    8688#  Actions/AtomAction/SomeAction.hpp
     89
     90CMDACTIONSOURCE = \
     91  Actions/CmdAction/HelpAction.cpp
     92CMDACTIONHEADER = \
     93  Actions/CmdAction/HelpAction.hpp
    8794
    8895FRAGMENTATIONACTIONSOURCE =
  • molecuilder/src/UIElements/CommandLineWindow.cpp

    r13743e rae8b90  
    3939void CommandLineWindow::populateParserActions()
    4040{
     41  new CommandLineHelpAction();
    4142  new ParserLoadXyzAction();
    4243  new ParserSaveXyzAction();
Note: See TracChangeset for help on using the changeset viewer.