Changes in src/builder.cpp [b59da6:4cf323d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
rb59da6 r4cf323d 76 76 77 77 #include "bondgraph.hpp" 78 #include "CommandLineParser.hpp" 78 79 #include "config.hpp" 79 80 #include "Helpers/Log.hpp" … … 84 85 #include "UIElements/TextUI/TextUIFactory.hpp" 85 86 #include "UIElements/CommandLineUI/CommandLineUIFactory.hpp" 86 #include "UIElements/CommandLineUI/CommandLineParser.hpp"87 87 #ifdef USE_GUI_QT 88 88 #include "UIElements/Qt4/QtUIFactory.hpp" … … 90 90 #include "UIElements/MainWindow.hpp" 91 91 #include "UIElements/Dialog.hpp" 92 //#include "Menu/ActionMenuItem.hpp"92 #include "Menu/ActionMenuItem.hpp" 93 93 #include "Helpers/Verbose.hpp" 94 94 #include "World.hpp" … … 96 96 #include "Actions/ActionRegistry.hpp" 97 97 #include "Actions/ActionHistory.hpp" 98 #include "Actions/MapOfActions.hpp" 98 99 99 100 #include "Parser/ChangeTracker.hpp" … … 118 119 errorLogger::purgeInstance(); 119 120 UIFactory::purgeInstance(); 120 ValueStorage::purgeInstance();121 MapOfActions::purgeInstance(); 121 122 CommandLineParser::purgeInstance(); 122 123 ActionRegistry::purgeInstance(); 123 OptionRegistry::purgeInstance();124 124 ActionHistory::purgeInstance(); 125 125 #ifdef LOG_OBSERVER … … 174 174 // handle remaining arguments by CommandLineParser 175 175 if (argc>1) { 176 CommandLineParser::getInstance().InitializeCommandArguments(); 177 CommandLineParser::getInstance().Run(argc,argv); 176 MapOfActions::getInstance().AddOptionsToParser(); 177 map <std::string, std::string> ShortFormToActionMap = MapOfActions::getInstance().getShortFormToActionMap(); 178 CommandLineParser::getInstance().Run(argc,argv, ShortFormToActionMap); 178 179 DoLog(0) && (Log() << Verbose(0) << "Setting UI to CommandLine." << endl); 179 180 UIFactory::registerFactory(new CommandLineUIFactory::description());
Note:
See TracChangeset
for help on using the changeset viewer.