| 1 | /** \file menu.hpp | 
|---|
| 2 | * The class in this file is responsible for displaying the menu and enabling choices. | 
|---|
| 3 | * | 
|---|
| 4 | * This class is currently being refactored. Functions were copied from builder.cpp and are | 
|---|
| 5 | * to be imported into the menu class. | 
|---|
| 6 | * | 
|---|
| 7 | */ | 
|---|
| 8 |  | 
|---|
| 9 | #ifndef MENU_H_ | 
|---|
| 10 | #define MENU_H_ | 
|---|
| 11 |  | 
|---|
| 12 |  | 
|---|
| 13 | class MoleculeListClass; | 
|---|
| 14 | class periodentafel; | 
|---|
| 15 | class config; | 
|---|
| 16 | class molecule; | 
|---|
| 17 |  | 
|---|
| 18 | class oldmenu | 
|---|
| 19 | { | 
|---|
| 20 | public: | 
|---|
| 21 | oldmenu(); | 
|---|
| 22 | virtual ~oldmenu(); | 
|---|
| 23 |  | 
|---|
| 24 | void notImplementedYet(); | 
|---|
| 25 | void perform(MoleculeListClass *, config *, periodentafel *, char *); | 
|---|
| 26 | void SaveConfig(char *, config *, periodentafel *, MoleculeListClass *); | 
|---|
| 27 |  | 
|---|
| 28 | // Methods extracted from EditMolecules. Probably to be moved to moleculeListClass | 
|---|
| 29 | void createNewMolecule(periodentafel *periode,MoleculeListClass *molecules); | 
|---|
| 30 | void loadFromXYZ(periodentafel *periode,MoleculeListClass *molecules); | 
|---|
| 31 | void changeName(MoleculeListClass *molecules); | 
|---|
| 32 | void setMoleculeFilename(MoleculeListClass *molecules); | 
|---|
| 33 | void parseXYZIntoMolecule(MoleculeListClass *molecules); | 
|---|
| 34 | void eraseMolecule(MoleculeListClass *molecules); | 
|---|
| 35 |  | 
|---|
| 36 | protected: | 
|---|
| 37 | void AddAtoms(periodentafel *, molecule *); | 
|---|
| 38 | void AlignAtoms(periodentafel *, molecule *); | 
|---|
| 39 | void CenterAtoms(molecule *); | 
|---|
| 40 | void EditMolecules(periodentafel *, MoleculeListClass *); | 
|---|
| 41 | void FragmentAtoms(molecule *, config *); | 
|---|
| 42 | void ManipulateAtoms(periodentafel *, MoleculeListClass *, config *); | 
|---|
| 43 | void MeasureAtoms(periodentafel *, molecule *, config *); | 
|---|
| 44 | void MergeMolecules(periodentafel *, MoleculeListClass *); | 
|---|
| 45 | void ManipulateMolecules(periodentafel *, MoleculeListClass *, config *); | 
|---|
| 46 | void MirrorAtoms(molecule *); | 
|---|
| 47 | void RemoveAtoms(molecule *); | 
|---|
| 48 | void testroutine(MoleculeListClass *); | 
|---|
| 49 | }; | 
|---|
| 50 |  | 
|---|
| 51 | #endif /* MENU_H_ */ | 
|---|