source: src/Actions/BondAction/BondAddAction.def@ 97dff0

Last change on this file since 97dff0 was f63e41, checked in by Frederik Heber <heber@…>, 12 years ago

Added Actions to add and remove a bond in between two atoms.

  • added new menu "bond".
  • added new CommandLineParser options "bond".
  • added new regression test folder "bond".
  • also added regression tests with undo/redo for the new actions.
  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 * BondAddAction.def
3 *
4 * Created on: Nov 14, 2012
5 * Author: heber
6 */
7
8// all includes and forward declarations necessary for non-integral types below
9#include "types.hpp"
10
11// i.e. there is an integer with variable name Z that can be found in
12// ValueStorage by the token "Z" -> first column: int, Z, "Z"
13// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
14//#define paramtypes (const element *)(BoxVector) TODO: use a validator
15#undef paramtypes
16#undef paramtokens
17#undef paramdescriptions
18#undef paramreferences
19#undef paramdefaults
20#undef paramvalids
21
22#define statetypes (atomId_t)(atomId_t)
23#define statereferences (firstId)(secondId)
24
25// some defines for all the names, you may use ACTION, STATE and PARAMS
26#define CATEGORY Bond
27#define MENUNAME "bond"
28#define MENUPOSITION 1
29#define ACTIONNAME Add
30#define TOKEN "add-bond"
31
32// finally the information stored in the ActionTrait specialization
33#define DESCRIPTION "add bond in between two selected atoms"
34#undef SHORTFORM
Note: See TracBrowser for help on using the repository browser.