Changeset 4035 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 4, 2005, 3:08:08 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/gui/gui/orxonox_gui_gtk.cc
r4034 r4035 56 56 } 57 57 58 59 58 /** 60 59 \brief enters the GUI's main-loop … … 69 68 #else /* HAVE_GTK2 */ 70 69 char boolAns = 'y'; 71 char ans[10 ];70 char ans[1000]; 72 71 PRINT(0)("================================\n"); 73 72 PRINT(0)("= ORXONOX CONFIGURATION WIZARD =\n"); … … 81 80 82 81 PRINT(0)("\nDo you want change any of the above values now? [Yn] "); 83 cin >> boolAns;84 if ( boolAns =='n' || boolAns=='N')82 scanf("%s", ans); 83 if (ans[0] =='n' || ans[0]=='N') 85 84 break; 86 85 … … 94 93 while(true) 95 94 { 96 cin >> ans;95 scanf("%s", ans); 97 96 int ansIp = atoi(ans); 98 97 if (ansIp <= groupCount) … … 111 110 while(true) 112 111 { 113 cin >> ans;112 scanf("%s", ans); 114 113 int ansIp = atoi(ans); 115 114 if (ansIp <= groupCount) … … 1198 1197 this->value =(int)gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(this->widget)); 1199 1198 #else /* HAVE_GTK2 */ 1200 char tmpChar[20 ];1199 char tmpChar[200]; 1201 1200 PRINT(0)("\nPlease give me a new value for %s [0,1](default:%d): ",this->title, this->defaultValue); 1202 cin >> tmpChar;1201 scanf("%s", tmpChar); 1203 1202 1204 1203 if ((this->value = atoi(tmpChar))=!0) … … 1291 1290 char tmpChar[20]; 1292 1291 PRINT(0)("\nPlease give me a new value for %s [%d-%d] (default:%d): ", this->title, this->start, this->end, this->defaultValue); 1293 cin >> tmpChar;1292 scanf("%s", tmpChar); 1294 1293 1295 1294 if ((this->value = atoi(tmpChar))> this->end) … … 1459 1458 char tmpChar[20]; 1460 1459 PRINT(0)("\nPlease give me a new value for %s (default: %d): ", this->title, this->defaultValue); 1461 cin >> tmpChar;1460 scanf("%s",tmpChar); 1462 1461 this->value = atoi(tmpChar); 1463 1462 … … 1537 1536 #else /* HAVE_GTK2 */ 1538 1537 PRINT(0)("\nPlease give me a new input for %s: ", this->title); 1539 cin >> this->cValue; 1538 char tmpChar[100]; 1539 scanf("%s",tmpChar); 1540 this->setValue(tmpChar); 1540 1541 #endif /* HAVE_GTK2 */ 1541 1542 PRINT(4)("%s set to: %s\n", this->title, this->cValue);
Note: See TracChangeset
for help on using the changeset viewer.