source: molecuilder/src/UIElements/CommandLineWindow.cpp@ 495a53

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

removed menuPopulaters from MainWindow.

  • menuPopulaters is too specific to TextUIFactory.
  • for CommandLineUIFactory a different structure was needed.
  • the shift of struct menuPopulaters inside of class MainWindow makes it superflous.

Signed-off-by: Frederik Heber <heber@…>

  • Property mode set to 100644
File size: 927 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 ParserLoadXyzAction();
42 new ParserSaveXyzAction();
43}
44
Note: See TracBrowser for help on using the repository browser.