Ignore:
Timestamp:
May 8, 2010, 9:59:27 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
48b5fd
Parents:
e04838
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/UIElements/CommandLineWindow.cpp

    re04838 r495a53  
    1111#include "UIElements/CommandLineStatusIndicator.hpp"
    1212
     13#include "Actions/CmdAction/HelpAction.hpp"
     14#include "Actions/ParserAction/LoadXyzAction.hpp"
     15#include "Actions/ParserAction/SaveXyzAction.hpp"
     16
    1317#include <iostream>
    1418
     
    1620
    1721// TODO: see what code can be moved to a base class for Graphic and CommandLine Windows
    18 CommandLineWindow::CommandLineWindow(menuPopulaters populaters)
     22CommandLineWindow::CommandLineWindow()
    1923{
     24  // create and register all command line callable actions
     25  populateParserActions();
    2026
    2127  // Add status indicators etc...
    22 
    2328  statusIndicator = new CommandLineStatusIndicator();
    2429}
     
    3136void CommandLineWindow::display() {
    3237}
     38
     39void CommandLineWindow::populateParserActions()
     40{
     41  new ParserLoadXyzAction();
     42  new ParserSaveXyzAction();
     43}
     44
Note: See TracChangeset for help on using the changeset viewer.