source: molecuilder/src/menu.hpp@ d20ed5

Last change on this file since d20ed5 was d20ed5, checked in by Frederik Heber <heber@…>, 16 years ago

Added basic menu and action framework

  • Added action base class
  • Added class to make actions from methods
  • Added Menu base class
  • Added TextMenu class to produce text menus
  • Added MenuItem base class for menu items
  • Added ActionMenuItem for menu items using an action
  • Added SubMenuItem class for menu items presenting a submenu
  • Added SeperatorItem class for menu seperators without functioninality

Signed-off-by: Tillmann Crueger <crueger@…>

  • Property mode set to 100644
File size: 1.2 KB
Line 
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
13class MoleculeListClass;
14class periodentafel;
15class config;
16class molecule;
17
18class oldmenu
19{
20public:
21 oldmenu();
22 virtual ~oldmenu();
23
24 void perform(MoleculeListClass *, config *, periodentafel *, char *);
25 void SaveConfig(char *, config *, periodentafel *, MoleculeListClass *);
26
27protected:
28 void AddAtoms(periodentafel *, molecule *);
29 void AlignAtoms(periodentafel *, molecule *);
30 void CenterAtoms(molecule *);
31 void EditMolecules(periodentafel *, MoleculeListClass *);
32 void FragmentAtoms(molecule *, config *);
33 void ManipulateAtoms(periodentafel *, MoleculeListClass *, config *);
34 void MeasureAtoms(periodentafel *, molecule *, config *);
35 void MergeMolecules(periodentafel *, MoleculeListClass *);
36 void ManipulateMolecules(periodentafel *, MoleculeListClass *, config *);
37 void MirrorAtoms(molecule *);
38 void RemoveAtoms(molecule *);
39 void testroutine(MoleculeListClass *);
40};
41
42#endif /* MENU_H_ */
Note: See TracBrowser for help on using the repository browser.