Ignore:
Timestamp:
Mar 22, 2013, 9:37:45 AM (11 years ago)
Author:
garnier
Message:

Passage a la version avec uniqquement des ComboBox. Tests en cours

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/branches/12_03_12-managerComboBox/pspaWT/sources/userInterface/include/GWt_sectionToExecute.h

    r395 r396  
    44#include <Wt/WContainerWidget>
    55#include <Wt/WComboBox>
    6 #include <Wt/WLineEdit>
     6#include <Wt/WLabel>
     7
     8class GWt_softwarePanel;
    79
    810class GWt_sectionToExecute : public Wt::WContainerWidget
    911{
    1012    public :
    11     GWt_sectionToExecute(Wt::WComboBox*,Wt::WComboBox*,Wt::WComboBox*);
    12 
    13     /** DEPRECATED */
    14     GWt_sectionToExecute(Wt::WLineEdit*,Wt::WLineEdit*,Wt::WComboBox*);
     13    GWt_sectionToExecute(Wt::WComboBox*,Wt::WComboBox*,Wt::WComboBox*,GWt_softwarePanel* sPanel);
    1514
    1615    ~GWt_sectionToExecute() {;}
     
    2221    inline Wt::WString getLastElementCurrentText() {
    2322        return lastElement->currentText();
    24     }
    25    
    26     inline Wt::WString getFirstElementLineEditCurrentText() {
    27         return firstElementLineEdit->text();
    28     }
    29    
    30     inline Wt::WString getLastElementLineEditCurrentText() {
    31         return lastElementLineEdit->text();
    3223    }
    3324   
     
    5142    void setSoftwareElementCurrentSelection(Wt::WString);
    5243   
    53     void setFirstElementLineEditCurrentText(Wt::WString);
    54     void setLastElementLineEditCurrentText(Wt::WString);
     44    inline void setWarnings(Wt::WString warn){
     45        warningsLabel_->setText(warn);
     46        manageWarningsAndErrors();
     47    }
     48
     49    inline void setErrors(Wt::WString err){
     50        errorsLabel_->setText(err);
     51        manageWarningsAndErrors();
     52    }
    5553
    5654    private :
     55   
     56    void manageWarningsAndErrors();
    5757    Wt::WComboBox*  firstElement;
    5858    Wt::WComboBox*  lastElement;
    5959    Wt::WComboBox* software;
     60    GWt_softwarePanel* softwarePanel;
    6061
    61     /** DEPRECATED */
    62     Wt::WLineEdit*  firstElementLineEdit;
    63     Wt::WLineEdit*  lastElementLineEdit;
     62    Wt::WLabel* errorsLabel_;
     63    Wt::WLabel* warningsLabel_;
    6464
     65    Wt::WContainerWidget* warningsContainer_;
     66    Wt::WContainerWidget* errorsContainer_;
    6567};
    6668
Note: See TracChangeset for help on using the changeset viewer.