Changeset 182 in PSPA for Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc
- Timestamp:
- Dec 14, 2012, 1:59:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/src/GWt_pspaApplication.cc
r179 r182 484 484 WVBoxLayout* myLayout = new WVBoxLayout(); 485 485 486 uploadFileSelectorWidget = new WFileUpload();487 488 uploadFileSelectorWidget ->setFileTextSize(40);486 uploadFileSelectorWidget_ = new WFileUpload(); 487 488 uploadFileSelectorWidget_->setFileTextSize(40); 489 489 490 490 myLayout->addWidget(new WText("Select the configuration file for pspa : ")); 491 myLayout->addWidget(uploadFileSelectorWidget );491 myLayout->addWidget(uploadFileSelectorWidget_); 492 492 493 493 result->setLayout (myLayout); 494 494 495 495 // Upload automatically when the user entered a file. 496 uploadFileSelectorWidget ->changed().connect(uploadFileSelectorWidget, &WFileUpload::upload);496 uploadFileSelectorWidget_->changed().connect(uploadFileSelectorWidget_, &WFileUpload::upload); 497 497 498 498 // React to a succesfull upload. 499 uploadFileSelectorWidget ->uploaded().connect(this, &PspaApplication::chargerConfig);499 uploadFileSelectorWidget_->uploaded().connect(this, &PspaApplication::chargerConfig); 500 500 501 501 // React to a fileupload problem. 502 uploadFileSelectorWidget ->fileTooLarge().connect(this, &PspaApplication::fileTooLarge);502 uploadFileSelectorWidget_->fileTooLarge().connect(this, &PspaApplication::fileTooLarge); 503 503 504 504 … … 511 511 void PspaApplication::chargerConfig() 512 512 { 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; 515 515 message->show(); 516 516 }
Note: See TracChangeset
for help on using the changeset viewer.