| 
            Last change
 on this file since 1ae9aa was             f63e41, checked in by Frederik Heber <heber@…>, 13 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
           | 
        
      
      
| Rev | Line |   | 
|---|
| [f63e41] | 1 | /*
 | 
|---|
 | 2 |  * BondRemoveAction.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 | 
 | 
|---|
 | 10 | // i.e. there is an integer with variable name Z that can be found in
 | 
|---|
 | 11 | // ValueStorage by the token "Z" -> first column: int, Z, "Z"
 | 
|---|
 | 12 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
 | 
|---|
 | 13 | //#define paramtypes (const element *)(BoxVector) TODO: use a validator
 | 
|---|
 | 14 | #undef paramtypes
 | 
|---|
 | 15 | #undef paramtokens
 | 
|---|
 | 16 | #undef paramdescriptions
 | 
|---|
 | 17 | #undef paramreferences
 | 
|---|
 | 18 | #undef paramdefaults
 | 
|---|
 | 19 | #undef paramvalids
 | 
|---|
 | 20 | 
 | 
|---|
 | 21 | #define statetypes (atomId_t)(atomId_t)
 | 
|---|
 | 22 | #define statereferences (firstId)(secondId)
 | 
|---|
 | 23 | 
 | 
|---|
 | 24 | // some defines for all the names, you may use ACTION, STATE and PARAMS
 | 
|---|
 | 25 | #define CATEGORY Bond
 | 
|---|
 | 26 | #define MENUNAME "bond"
 | 
|---|
 | 27 | #define MENUPOSITION 2
 | 
|---|
 | 28 | #define ACTIONNAME Remove
 | 
|---|
 | 29 | #define TOKEN "remove-bond"
 | 
|---|
 | 30 | 
 | 
|---|
 | 31 | // finally the information stored in the ActionTrait specialization
 | 
|---|
 | 32 | #define DESCRIPTION "remove the bond in between two selected atoms"
 | 
|---|
 | 33 | #undef SHORTFORM
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.