Changeset 950 for cpp/frams/param/param.h
- Timestamp:
- 06/20/20 01:02:20 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/param.h
r805 r950 72 72 73 73 virtual const char* getName() = 0; 74 virtual const char* getLongName() { return getName(); } 74 75 virtual const char* getDescription() { return 0; } 75 76 virtual ParamEntry *getParamTab() const { return NULL; } … … 193 194 virtual void sanityCheck(int i) {} 194 195 #endif 196 SString nameDotProperty(int prop); 197 SString nameDotPropertyForMessages(int prop); 195 198 }; 196 199 … … 257 260 virtual void *getTarget(int i); 258 261 const char* myname; 262 const char* mylongname; 259 263 bool dontcheckchanges; 260 264 … … 263 267 264 268 const char* getName() { return myname; } 269 const char* getLongName() { return mylongname ? mylongname : myname; } 270 265 271 void setName(const char* n) { myname = n; } 272 void setLongName(const char* n) { mylongname = n; } 266 273 267 274 /** … … 270 277 @param n Param's name 271 278 */ 272 SimpleAbstractParam(void* o = 0, const char*n = 0) :myname(n), dontcheckchanges(0), object(o) {}279 SimpleAbstractParam(void* o = 0, const char*n = 0) :myname(n), mylongname(NULL), dontcheckchanges(0), object(o) {} 273 280 void setDontCheckChanges(bool x) { dontcheckchanges = x; } 274 281 … … 330 337 331 338 const char* getDescription() { return tab[0].type; } 339 const char* getLongName() { return tab[0].help ? tab[0].help : SimpleAbstractParam::getLongName(); } 332 340 333 341 int getGroupCount() { return tab[0].group; }
Note: See TracChangeset
for help on using the changeset viewer.