Changeset 3e8325 for molecuilder/src/builder.cpp
- Timestamp:
- Jan 7, 2010, 2:46:34 PM (16 years ago)
- Children:
- d97af9
- Parents:
- 34ff5e6
- File:
-
- 1 edited
-
molecuilder/src/builder.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/builder.cpp
r34ff5e6 r3e8325 65 65 #include "molecule.hpp" 66 66 #include "periodentafel.hpp" 67 #include "menu.hpp" 67 #include "UIElements/UIFactory.hpp" 68 #include "UIElements/MainWindow.hpp" 68 69 69 70 /** Parses the command line options. … … 904 905 char *ConfigFileName = NULL; 905 906 int j; 906 oldmenu *main_menu;907 main_menu = new oldmenu;908 907 setVerbosity(0); 909 908 /* structure of ParseCommandLineOptions will be refactored later */ … … 940 939 941 940 942 943 main_menu->perform(molecules, configuration, periode, ConfigFileName); 941 UIFactory::makeUserInterface(UIFactory::Text); 942 MainWindow *mainWindow = UIFactory::get()->makeMainWindow(); 943 mainWindow->display(molecules, configuration, periode, ConfigFileName); 944 944 945 945 if(periode->StorePeriodentafel(configuration->databasepath)) … … 952 952 delete(periode); 953 953 delete(configuration); 954 955 delete mainWindow; 954 956 955 957 Log() << Verbose(0) << "Maximum of allocated memory: " … … 960 962 logger::purgeInstance(); 961 963 errorLogger::purgeInstance(); 962 964 UIFactory::purgeInstance(); 963 965 return (0); 964 966 }
Note:
See TracChangeset
for help on using the changeset viewer.
