Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4035 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
May 4, 2005, 3:08:08 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: no more iostream (for real)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/gui/gui/orxonox_gui_gtk.cc

    r4034 r4035  
    5656}
    5757
    58 
    5958/**
    6059   \brief enters the GUI's main-loop
     
    6968#else /* HAVE_GTK2 */
    7069  char boolAns = 'y';
    71   char ans[10];
     70  char ans[1000];
    7271  PRINT(0)("================================\n");
    7372  PRINT(0)("= ORXONOX CONFIGURATION WIZARD =\n");
     
    8180     
    8281      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')
    8584        break;
    8685     
     
    9493      while(true)
    9594        {
    96           cin >> ans;
     95          scanf("%s", ans);
    9796          int ansIp = atoi(ans);
    9897          if (ansIp <= groupCount)
     
    111110      while(true)
    112111        {
    113           cin >> ans;
     112          scanf("%s", ans);
    114113          int ansIp = atoi(ans);
    115114          if (ansIp <= groupCount)
     
    11981197  this->value =(int)gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(this->widget));
    11991198#else /* HAVE_GTK2 */
    1200   char tmpChar[20];
     1199  char tmpChar[200];
    12011200  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);
    12031202
    12041203  if ((this->value = atoi(tmpChar))=!0)
     
    12911290  char tmpChar[20];
    12921291  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);
    12941293
    12951294  if ((this->value = atoi(tmpChar))> this->end)
     
    14591458  char tmpChar[20];
    14601459  PRINT(0)("\nPlease give me a new value for %s (default: %d): ", this->title, this->defaultValue);
    1461   cin >> tmpChar;
     1460  scanf("%s",tmpChar);
    14621461  this->value = atoi(tmpChar);
    14631462
     
    15371536#else /* HAVE_GTK2 */
    15381537  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);
    15401541#endif /* HAVE_GTK2 */
    15411542  PRINT(4)("%s set to: %s\n", this->title,  this->cValue);
Note: See TracChangeset for help on using the changeset viewer.