Ignore:
Timestamp:
Mar 7, 2013, 1:15:29 AM (11 years ago)
Author:
garnier
Message:

Affichage du nom du cas test dans le titre de la fenetre + see History

File:
1 edited

Legend:

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

    r371 r375  
    4646
    4747PspaApplication::PspaApplication(const WEnvironment& env) : WApplication(env)
     48,applicationDefaultTitle_("portail PSPA")
    4849{
    4950   
     
    5152    nameOfCase_ = "pspa"; // default
    5253   
    53     setTitle("portail PSPA");                               // application title
     54    setTitle(applicationDefaultTitle_);                               // application title
    5455    if (!wApp->environment().javaScript()) {
    5556        new WText("<i>This examples requires that javascript support is enabled.</i>",root());
     
    374375    string fileName = fs->exec();
    375376     nameOfCase_ = fileName;
    376    
     377    if (fileName == "") {
     378        return;
     379    }
     380   
    377381    removePathFromConfigName(nameOfCase_ );
    378382    cout << " nom sans path " << nameOfCase_ << endl;
     
    388392        GWt_dialog restoreWarning(" element restoring", "failure in restoring elements from file : " + fileName , GWt_dialog::Error, false,true);
    389393        restoreWarning.exec();
     394    } else {
     395        // Change the window title
     396        unsigned long found = fileName.find_last_of("/");
     397        setTitle(applicationDefaultTitle_+" : "+fileName.substr(found+1));
    390398    }
    391399   
Note: See TracChangeset for help on using the changeset viewer.