Ignore:
Timestamp:
Mar 11, 2010, 10:37:32 AM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
ff1812
Parents:
4c60ef
Message:

Made the UIFactory an instance of the Singleton Pattern

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Legacy/oldmenu.cpp

    r4c60ef r4fc41a  
    912912void oldmenu::SimpleAddMolecules(MoleculeListClass *molecules) {
    913913  molecule *srcmol = NULL, *destmol = NULL;
    914   Dialog *dialog = UIFactory::get()->makeDialog();
     914  Dialog *dialog = UIFactory::getInstance().makeDialog();
    915915  dialog->queryMolecule("Enter index of destination molecule: ",&destmol, molecules);
    916916  dialog->queryMolecule("Enter index of source molecule to add from: ",&srcmol, molecules);
     
    926926void oldmenu::embeddMolecules(MoleculeListClass *molecules) {
    927927  molecule *srcmol = NULL, *destmol = NULL;
    928   Dialog *dialog = UIFactory::get()->makeDialog();
     928  Dialog *dialog = UIFactory::getInstance().makeDialog();
    929929  dialog->queryMolecule("Enter index of matrix molecule (the variable one): ",&srcmol,molecules);
    930930  dialog->queryMolecule("Enter index of molecule to merge into (the fixed one): ",&destmol,molecules);
Note: See TracChangeset for help on using the changeset viewer.