source: PSPA/Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_computingBlock.h @ 493

Last change on this file since 493 was 493, checked in by lemeur, 10 years ago

refection generale des secteurs et applications de softwares (suite)

File size: 1.8 KB
Line 
1#ifndef GWT_COMPUTINGBLOCK_SEEN
2#define GWT_COMPUTINGBLOCK_SEEN
3
4#include <Wt/WContainerWidget>
5#include <Wt/WComboBox>
6#include <Wt/WText>
7#include <Wt/WSignal>
8
9class GWt_softwarePanel;
10class GWt_machine;
11class computingBlock;
12
13class GWt_computingBlock : public Wt::WContainerWidget
14{
15    public :
16    GWt_computingBlock(Wt::WComboBox* ,Wt::WComboBox* ,Wt::WComboBox*,Wt::WContainerWidget* ,computingBlock*,GWt_machine* );
17
18    ~GWt_computingBlock() {;}
19
20    void setSoftware();
21  void changeFirstElement();
22  void changeLastElement();
23 
24    inline Wt::WString getFirstElementCurrentText() {
25        return firstElement_->currentText();
26    }
27   
28    inline Wt::WString getLastElementCurrentText() {
29        return lastElement_->currentText();
30    }
31   
32    inline Wt::WComboBox * getFirstElement() {
33        return firstElement_;
34    }
35   
36    inline Wt::WComboBox * getLastElement() {
37        return lastElement_;
38    }
39   
40    void setFirstElementCurrentSelection_deprecated(Wt::WString);
41    void setLastElementCurrentSelection_deprecated(Wt::WString);
42    void setSoftwareElementCurrentSelection_deprecated(Wt::WString);
43   
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    }
53
54    Wt::Signal<void> redraw_;
55
56    private :
57   
58    void manageWarningsAndErrors();
59    Wt::WComboBox*  firstElement_;
60    Wt::WComboBox*  lastElement_;
61    Wt::WComboBox*  softElement_;
62    computingBlock* cpblock_;
63    GWt_machine* UImachine_;
64
65    Wt::WText* errorsLabel_;
66    Wt::WText* warningsLabel_;
67
68    Wt::WContainerWidget* warningsContainer_;
69    Wt::WContainerWidget* errorsContainer_;
70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.