source: src/Actions/GraphAction/CreateAdjacencyAction.def@ 97dff0

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

Added Undo/Redo functionality to CreateAdjacencyAction.

  • also added regression test on whole functionality.
  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[c449d9]1/*
[d4a44c]2 * CreateAdjacencyAction.def
[c449d9]3 *
4 * Created on: Aug 26, 2010
5 * Author: heber
6 */
7
8// all includes and forward declarations necessary for non-integral types below
[055ad7]9#include <vector>
10#include "types.hpp"
[c449d9]11
[055ad7]12struct BondInfo_t;
[649aaa]13
[c449d9]14// i.e. there is an integer with variable name Z that can be found in
15// ValueStorage by the token "Z" -> first column: int, Z, "Z"
[6ba9ba]16// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
[c449d9]17#undef paramtypes
18#undef paramtokens
[fc192f]19#undef paramdescriptions
[e4afb4]20#undef paramdefaults
[c449d9]21#undef paramreferences
[23958d]22#undef paramvalids
[c449d9]23
[055ad7]24#define statetypes (std::vector<BondInfo_t>)
25#define statereferences (bonds)
[c449d9]26
27// some defines for all the names, you may use ACTION, STATE and PARAMS
[d09093]28#define CATEGORY Graph
29#define MENUNAME "graph"
[052bfd8]30#define MENUPOSITION 1
[d4a44c]31#define ACTIONNAME CreateAdjacency
32#define TOKEN "create-adjacency"
[c449d9]33
[24fbf3]34
35// finally the information stored in the ActionTrait specialization
36#define DESCRIPTION "construct the bond graph of the selected atoms"
37#undef SHORTFORM
Note: See TracBrowser for help on using the repository browser.