Changeset 1256 for cpp/frams/genetics/genoconv.cpp
- Timestamp:
- 06/22/23 03:33:58 (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/genoconv.cpp
r1183 r1256 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2023 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 33 33 { 34 34 if (i >= gcm->converters.size()) return 0; 35 sprintf(tmp_id, "gen konw%d", i);35 sprintf(tmp_id, "genoconv_%s", ((GenoConverter*)gcm->converters(i))->id().c_str()); 36 36 return tmp_id; 37 37 } … … 45 45 freetab(); 46 46 tab = (ParamEntry*)calloc(2 + ile, sizeof(ParamEntry)); 47 tab[0].id = "Genetics: Conver sions";47 tab[0].id = "Genetics: Converters"; 48 48 tab[0].group = 1; 49 49 tab[0].flags = (paInt)ile; … … 81 81 82 82 GenoConvManager::GenoConvManager() 83 :param(this) 84 { 83 :conv_enabling_param(this), 84 param("GenoConverters", "Converters between genetic formats") 85 { 86 param += &conv_enabling_param; 85 87 } 86 88 … … 93 95 { 94 96 converters += gc; 95 param.updatetab(); 96 } 97 auto *pi = gc->getParam(); 98 if (pi) 99 param += pi; 100 conv_enabling_param.updatetab(); 101 } 102 97 103 void GenoConvManager::removeConverter(GenoConverter *gc) 98 104 { 99 105 converters -= gc; 100 param.updatetab(); 106 auto *pi = gc->getParam(); 107 if (pi) 108 param -= pi; 109 conv_enabling_param.updatetab(); 101 110 } 102 111
Note: See TracChangeset
for help on using the changeset viewer.