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