Ignore:
Timestamp:
Dec 14, 2012, 1:59:27 PM (12 years ago)
Author:
lemeur
Message:

renommage de uploadFileSelectorWidget en uploadFileSelectorWidget_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc

    r179 r182  
    484484  WVBoxLayout* myLayout = new WVBoxLayout();
    485485
    486   uploadFileSelectorWidget = new WFileUpload();
    487 
    488   uploadFileSelectorWidget->setFileTextSize(40);
     486  uploadFileSelectorWidget_ = new WFileUpload();
     487
     488  uploadFileSelectorWidget_->setFileTextSize(40);
    489489 
    490490  myLayout->addWidget(new WText("Select the configuration file for pspa : "));
    491   myLayout->addWidget(uploadFileSelectorWidget);
     491  myLayout->addWidget(uploadFileSelectorWidget_);
    492492
    493493  result->setLayout (myLayout);
    494494
    495495  // Upload automatically when the user entered a file.
    496   uploadFileSelectorWidget->changed().connect(uploadFileSelectorWidget, &WFileUpload::upload);
     496  uploadFileSelectorWidget_->changed().connect(uploadFileSelectorWidget_, &WFileUpload::upload);
    497497 
    498498  // React to a succesfull upload.
    499   uploadFileSelectorWidget->uploaded().connect(this, &PspaApplication::chargerConfig);
     499  uploadFileSelectorWidget_->uploaded().connect(this, &PspaApplication::chargerConfig);
    500500 
    501501  // React to a fileupload problem.
    502   uploadFileSelectorWidget->fileTooLarge().connect(this, &PspaApplication::fileTooLarge);
     502  uploadFileSelectorWidget_->fileTooLarge().connect(this, &PspaApplication::fileTooLarge);
    503503 
    504504 
     
    511511void PspaApplication::chargerConfig()
    512512{
    513   GWt_dialog*  message= new GWt_dialog("File successfully upload","The file has been correctly upload to" + uploadFileSelectorWidget->spoolFileName(),GWt_dialog::Warning,false,true);
    514  
     513  GWt_dialog*  message= new GWt_dialog("File successfully upload","The file has been correctly upload to" + uploadFileSelectorWidget_->spoolFileName(),GWt_dialog::Warning,false,true);
     514  cout << " fichier client : " << uploadFileSelectorWidget_->clientFileName() << endl;
    515515  message->show();
    516516}
Note: See TracChangeset for help on using the changeset viewer.