- m_Fp << " e->DefineInput(\""<< name << "\", " << box << ", "
- << input << ", \"" << help << "\");" << std::endl;
-
- /*
- // If the input is defined in the Root box
- if (Current()==mRoot)
- {
- // If the dialog mode is set to NoDialog
- // and the user passed the name in the Inputs map
- // then the associated value is set to the box.input
- // This is the way command line parameters are passed to the Root box
- if (mDialogMode == NoDialog)
- {
- // find if name is in mInputs
- std::map<std::string,std::string>::iterator i;
- i = mInputs.find(name);
- if (i!=mInputs.end()) {
- Set(box,input,(*i).second);
- }
- }
- // If the dialog mode is set to TextDialog
- // The user is prompted for the value
- else if (mDialogMode == TextDialog)
- {
- std::cout << name << "=";
- std::string ans;
- std::cin >> ans;
- Set(box,input,ans);
- }
-#ifdef _USE_WXWIDGETS_
- // If the dialog mode is set to GraphicalDialog
- // A dialog box is pop up
- else if (mDialogMode == GraphicalDialog)
- {
- std::string mess("Enter the value of '");
- mess += name;
- mess += "' (";
- mess += help;
- mess += ")";
- std::string title(name);
- title += " ?";
- std::string ans = wx2std ( wxGetTextFromUser( std2wx (mess), std2wx(title)));
- Set(box,input,ans);
- }
-#endif
- }
-
- Current()->DefineInput(name,box,input,help);
-*/
-