Changeset 4134 in orxonox.OLD for orxonox/trunk/src/lib/gui
- Timestamp:
- May 9, 2005, 10:26:59 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/gui/gui/gui_gtk.cc
r4133 r4134 318 318 void Widget::printHelp(Widget* widget) 319 319 { 320 bool hasFlag = false;320 int helpLen=0; 321 321 322 322 if (widget->optionType > GUI_NOTHING) … … 329 329 { 330 330 PRINT(0)("-%s", option->flagNameShort); 331 h asFlag = true;331 helpLen += strlen(option->flagNameShort)+1; 332 332 } 333 333 if (option->flagName) 334 334 { 335 if (hasFlag) 336 PRINT(0)("|"); 335 if (helpLen > 0) 336 { 337 PRINT(0)("|"); 338 helpLen++; 339 } 337 340 PRINT(0)("--%s:", option->flagName); 338 h asFlag = true;341 helpLen += strlen(option->flagName)+2; 339 342 } 343 while ((helpLen ++) < 29) 344 PRINT(0)(" "); 340 345 if (option->shortDescription) 341 PRINT(0)(" \t\t%s\n", option->shortDescription);346 PRINT(0)("%s\n", option->shortDescription); 342 347 else 343 348 PRINT(0)("\n");
Note: See TracChangeset
for help on using the changeset viewer.