Changes in src/builder.cpp [da3024:980dd6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
rda3024 r980dd6 47 47 */ 48 48 49 #include "Helpers/MemDebug.hpp"50 49 51 50 #include <boost/bind.hpp> … … 74 73 #include "periodentafel.hpp" 75 74 #include "UIElements/UIFactory.hpp" 76 #include "UIElements/TextUI/TextUIFactory.hpp"77 #include "UIElements/CommandLineUI/CommandLineUIFactory.hpp"78 75 #include "UIElements/MainWindow.hpp" 79 76 #include "UIElements/Dialog.hpp" … … 87 84 #include "version.h" 88 85 #include "World.hpp" 89 86 #include "Helpers/MemDebug.hpp" 90 87 91 88 /********************************************* Subsubmenu routine ************************************/ … … 1358 1355 }; 1359 1356 1357 #endif 1360 1358 1361 1359 /** Tries given filename or standard on saving the config file. … … 1483 1481 }; 1484 1482 1485 #endif1486 1487 1483 /** Parses the command line options. 1488 1484 * Note that this function is from now on transitional. All commands that are not passed … … 1502 1498 { 1503 1499 Vector x,y,z,n; // coordinates for absolute point in cell volume 1500 double *factor; // unit factor if desired 1504 1501 ifstream test; 1505 1502 ofstream output; 1506 1503 string line; 1504 atom *first; 1507 1505 bool SaveFlag = false; 1508 1506 int ExitFlag = 0; … … 1510 1508 double volume = 0.; 1511 1509 enum ConfigStatus configPresent = absent; 1510 clock_t start,end; 1511 double MaxDistance = -1; 1512 1512 int argptr; 1513 1513 molecule *mol = NULL; 1514 1514 string BondGraphFileName("\n"); 1515 bool DatabasePathGiven = false; 1515 1516 1516 1517 if (argc > 1) { // config file specified as option … … 2189 2190 ActionRegistry::purgeInstance(); 2190 2191 ActionHistory::purgeInstance(); 2191 #ifdef LOG_OBSERVER2192 cout << observerLog().getLog();2193 #endif2194 2192 Memory::getState(); 2195 2193 } … … 2197 2195 int main(int argc, char **argv) 2198 2196 { 2197 config *configuration = World::getInstance().getConfig(); 2199 2198 // while we are non interactive, we want to abort from asserts 2200 2199 //ASSERT_DO(Assert::Abort); 2200 molecule *mol = NULL; 2201 2201 Vector x, y, z, n; 2202 2202 ifstream test; … … 2255 2255 if (!CommandLineParser::getInstance().isEmpty()) { 2256 2256 DoLog(0) && (Log() << Verbose(0) << "Setting UI to CommandLine." << endl); 2257 UIFactory::registerFactory(new CommandLineUIFactory::description()); 2258 UIFactory::makeUserInterface("CommandLine"); 2257 UIFactory::makeUserInterface(UIFactory::CommandLine); 2259 2258 } else { 2260 2259 DoLog(0) && (Log() << Verbose(0) << "Setting UI to Text." << endl); 2261 UIFactory::registerFactory(new TextUIFactory::description()); 2262 UIFactory::makeUserInterface("Text"); 2260 UIFactory::makeUserInterface(UIFactory::Text); 2263 2261 } 2264 2262 }
Note:
See TracChangeset
for help on using the changeset viewer.