- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MoleculeAction/ChangeNameAction.cpp
r03bb99 r97ebf8 15 15 #include "UIElements/UIFactory.hpp" 16 16 #include "UIElements/Dialog.hpp" 17 #include "Actions/MapOfActions.hpp" 17 18 18 19 #include "atom.hpp" … … 35 36 const char MoleculeChangeNameAction::NAME[] = "Change filename of Molecule"; 36 37 37 MoleculeChangeNameAction::MoleculeChangeNameAction(MoleculeListClass *_molecules) : 38 Action(NAME), 39 molecules(_molecules) 38 MoleculeChangeNameAction::MoleculeChangeNameAction() : 39 Action(NAME) 40 40 {} 41 41 … … 48 48 Dialog *dialog = UIFactory::getInstance().makeDialog(); 49 49 50 dialog->queryMolecule( "Enter index of molecule: ",&mol,molecules);50 dialog->queryMolecule(NAME, &mol, MapOfActions::getInstance().getDescription(NAME)); 51 51 dialog->queryString("Enter name: ",&filename); 52 52
Note:
See TracChangeset
for help on using the changeset viewer.