Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/AtomAction/AddAction.cpp

    rd74077 r952f38  
    1212#include "atom.hpp"
    1313#include "element.hpp"
    14 #include "log.hpp"
     14#include "Helpers/Log.hpp"
    1515#include "molecule.hpp"
    16 #include "vector.hpp"
    17 #include "verbose.hpp"
     16#include "LinearAlgebra/Vector.hpp"
     17#include "Helpers/Verbose.hpp"
    1818#include "World.hpp"
    1919
     
    2525#include "UIElements/UIFactory.hpp"
    2626#include "UIElements/Dialog.hpp"
    27 #include "UIElements/ValueStorage.hpp"
     27#include "Actions/ValueStorage.hpp"
    2828
    2929const char AtomAddAction::NAME[] = "add-atom";
     
    4242};
    4343
    44 Dialog * AtomAddAction::createDialog() {
    45   Dialog *dialog = UIFactory::getInstance().makeDialog();
     44Dialog * AtomAddAction::fillDialog(Dialog *dialog) {
     45  ASSERT(dialog,"No Dialog given when filling action dialog");
    4646
    4747  dialog->queryElement(NAME, ValueStorage::getInstance().getDescription(NAME));
     
    6161  // execute action
    6262  atom * first = World::getInstance().createAtom();
    63   first->setType(elemental);
    64   first->setPosition(position);
    65   DoLog(1) && (Log() << Verbose(1) << "Adding new atom with element " << first->getType()->name << " at " << (first->getPosition()) << "." << endl);
     63  first->type = elemental;
     64  first->x = position;
     65  DoLog(1) && (Log() << Verbose(1) << "Adding new atom with element " << first->type->name << " at " << (first->x) << "." << endl);
    6666  // TODO: remove when all of World's atoms are stored.
    6767  std::vector<molecule *> molecules = World::getInstance().getAllMolecules();
Note: See TracChangeset for help on using the changeset viewer.