Batchmake developers: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
Line 3: Line 3:
= Add new command to BatchMake =
= Add new command to BatchMake =


* Add a new class (bmScriptNewCommadAction.h, and bmScriptNewCommadAction.cxx)
* Add a new class (bmScriptNewCommnadAction.h, and bmScriptNewCommandAction.cxx)
* Don't forget to add it to the CMakeLists
* Don't forget to add it to the CMakeLists
* In the header file bmScriptActionManager.h :
* In the header file bmScriptActionManager.h :
** Include the header of your class  
** Include the header of your class  
  #include "bmScriptNewCommadAction.h"
#include "bmScriptNewCommandAction.h"
** In the GetKeywordList() function, add a new keyword
** In the GetKeywordList() function, add a new keyword :
  BM_NEWKEYWORD(_list, DownloadXcedeDataSet);
BM_NEWKEYWORD(_list, NewCommand);
** In the CreateAction(MString option) function, add a new action :
BM_NEWACTION(option, NewCommand);
You can choose to put theses two last things in BM_GRID, or BM_DASHBOARD, if it is a new command for the grid, or the dashboard.

Revision as of 19:56, 21 January 2008

Documentation for Developers.

Add new command to BatchMake

  • Add a new class (bmScriptNewCommnadAction.h, and bmScriptNewCommandAction.cxx)
  • Don't forget to add it to the CMakeLists
  • In the header file bmScriptActionManager.h :
    • Include the header of your class
#include "bmScriptNewCommandAction.h"
    • In the GetKeywordList() function, add a new keyword :
BM_NEWKEYWORD(_list, NewCommand);
    • In the CreateAction(MString option) function, add a new action :
BM_NEWACTION(option, NewCommand);

You can choose to put theses two last things in BM_GRID, or BM_DASHBOARD, if it is a new command for the grid, or the dashboard.