Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    r980dd6 rda3024  
    4747 */
    4848
     49#include "Helpers/MemDebug.hpp"
    4950
    5051#include <boost/bind.hpp>
     
    7374#include "periodentafel.hpp"
    7475#include "UIElements/UIFactory.hpp"
     76#include "UIElements/TextUI/TextUIFactory.hpp"
     77#include "UIElements/CommandLineUI/CommandLineUIFactory.hpp"
    7578#include "UIElements/MainWindow.hpp"
    7679#include "UIElements/Dialog.hpp"
     
    8487#include "version.h"
    8588#include "World.hpp"
    86 #include "Helpers/MemDebug.hpp"
     89
    8790
    8891/********************************************* Subsubmenu routine ************************************/
     
    13551358};
    13561359
    1357 #endif
    13581360
    13591361/** Tries given filename or standard on saving the config file.
     
    14811483};
    14821484
     1485#endif
     1486
    14831487/** Parses the command line options.
    14841488 * Note that this function is from now on transitional. All commands that are not passed
     
    14981502{
    14991503  Vector x,y,z,n;  // coordinates for absolute point in cell volume
    1500   double *factor; // unit factor if desired
    15011504  ifstream test;
    15021505  ofstream output;
    15031506  string line;
    1504   atom *first;
    15051507  bool SaveFlag = false;
    15061508  int ExitFlag = 0;
     
    15081510  double volume = 0.;
    15091511  enum ConfigStatus configPresent = absent;
    1510   clock_t start,end;
    1511   double MaxDistance = -1;
    15121512  int argptr;
    15131513  molecule *mol = NULL;
    15141514  string BondGraphFileName("\n");
    1515   bool DatabasePathGiven = false;
    15161515
    15171516  if (argc > 1) { // config file specified as option
     
    21902189  ActionRegistry::purgeInstance();
    21912190  ActionHistory::purgeInstance();
     2191#ifdef LOG_OBSERVER
     2192  cout << observerLog().getLog();
     2193#endif
    21922194  Memory::getState();
    21932195}
     
    21952197int main(int argc, char **argv)
    21962198{
    2197     config *configuration = World::getInstance().getConfig();
    21982199    // while we are non interactive, we want to abort from asserts
    21992200    //ASSERT_DO(Assert::Abort);
    2200     molecule *mol = NULL;
    22012201    Vector x, y, z, n;
    22022202    ifstream test;
     
    22552255      if (!CommandLineParser::getInstance().isEmpty()) {
    22562256        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");
    22582259      } else {
    22592260        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");
    22612263      }
    22622264    }
Note: See TracChangeset for help on using the changeset viewer.