source: molecuilder/src/UIElements/CommandLineWindow.cpp@ ae8b90

Last change on this file since ae8b90 was ae8b90, checked in by Frederik Heber <heber@…>, 16 years ago

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()
  • Property mode set to 100644
File size: 958 bytes
Line 
1/*
2 * CommandLineWindow.cpp
3 *
4 * Created on: May 8, 2010
5 * Author: heber
6 */
7
8#include <boost/bind.hpp>
9
10#include "UIElements/CommandLineWindow.hpp"
11#include "UIElements/CommandLineStatusIndicator.hpp"
12
13#include "Actions/CmdAction/HelpAction.hpp"
14#include "Actions/ParserAction/LoadXyzAction.hpp"
15#include "Actions/ParserAction/SaveXyzAction.hpp"
16
17#include <iostream>
18
19using namespace std;
20
21// TODO: see what code can be moved to a base class for Graphic and CommandLine Windows
22CommandLineWindow::CommandLineWindow()
23{
24 // create and register all command line callable actions
25 populateParserActions();
26
27 // Add status indicators etc...
28 statusIndicator = new CommandLineStatusIndicator();
29}
30
31CommandLineWindow::~CommandLineWindow()
32{
33 delete statusIndicator;
34}
35
36void CommandLineWindow::display() {
37}
38
39void CommandLineWindow::populateParserActions()
40{
41 new CommandLineHelpAction();
42 new ParserLoadXyzAction();
43 new ParserSaveXyzAction();
44}
45
Note: See TracBrowser for help on using the repository browser.