Changeset 399 in PSPA for Interface_Web/branches/12_03_12-managerComboBox/pspaWT/sources/userInterface/src/GWt_sectionToExecute.cc
- Timestamp:
- Mar 27, 2013, 5:14:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/branches/12_03_12-managerComboBox/pspaWT/sources/userInterface/src/GWt_sectionToExecute.cc
r397 r399 2 2 #include <Wt/WVBoxLayout> 3 3 #include <Wt/WHBoxLayout> 4 #include <Wt/WGridLayout> 4 5 #include <Wt/WContainerWidget> 5 6 #include <Wt/WImage> … … 15 16 softwarePanel(sPanel) 16 17 { 17 Wt::W HBoxLayout* mainContainerLayout = new Wt::WHBoxLayout();18 Wt::WGridLayout* mainContainerLayout = new Wt::WGridLayout(); 18 19 mainContainerLayout->setContentsMargins(0,0,0,0); 19 20 … … 26 27 labelAndComboInsideContainerLayout->setContentsMargins(0,0,0,0); 27 28 28 labelAndComboInsideContainerLayout->addWidget(new Wt::WText(" from :"));29 labelAndComboInsideContainerLayout->addWidget(new Wt::WText("from : ")); 29 30 labelAndComboInsideContainerLayout->addWidget(first); 30 labelAndComboInsideContainerLayout->addWidget(new Wt::WText(" to :"));31 labelAndComboInsideContainerLayout->addWidget(new Wt::WText("to : ")); 31 32 labelAndComboInsideContainerLayout->addWidget(last); 32 33 labelAndComboInsideContainerLayout->addWidget(soft); … … 39 40 labelAndComboContainer->setLayout(labelAndComboContainerLayout); 40 41 41 // add label and Combo containers42 mainContainerLayout->addWidget(labelAndComboContainer);43 44 42 45 43 // add errors and warning layout … … 48 46 49 47 Wt::WContainerWidget* warningsAndErrorsContainer = new Wt::WContainerWidget(); 50 Wt::WVBoxLayout* vLayoutContainer = new Wt::WVBoxLayout(); 51 52 vLayoutContainer->addWidget(warningsContainer_); 53 vLayoutContainer->addWidget(errorsContainer_); 54 vLayoutContainer->addStretch (100); 48 Wt::WVBoxLayout* vWarningsAndErrorsLayoutContainer = new Wt::WVBoxLayout(); 55 49 56 50 Wt::WHBoxLayout* hLayoutContainerWarnings = new Wt::WHBoxLayout(); … … 58 52 59 53 60 // fill containers 61 Wt::WImage* imgWarning = new WImage ("/htdocs/warning.png"); 62 Wt::WImage* imgError = new WImage ("/htdocs/error.png"); 63 64 // resize images 65 imgWarning->resize(20,20); 66 imgError->resize(20,20); 67 68 warningsLabel_ = new Wt::WLabel(""); 69 errorsLabel_ = new Wt::WLabel(""); 70 71 hLayoutContainerWarnings->addWidget(imgWarning); 54 warningsLabel_ = new Wt::WText("",XHTMLText); 55 errorsLabel_ = new Wt::WText("",XHTMLText); 72 56 hLayoutContainerWarnings->addWidget(warningsLabel_); 73 hLayoutContainerErrors->addWidget(imgError);74 57 hLayoutContainerErrors->addWidget(errorsLabel_); 75 58 … … 82 65 errorsContainer_->setLayout(hLayoutContainerErrors); 83 66 84 warningsAndErrorsContainer->setLayout(vLayoutContainer); 67 vWarningsAndErrorsLayoutContainer->addWidget(errorsContainer_); 68 vWarningsAndErrorsLayoutContainer->addWidget(warningsContainer_); 69 vWarningsAndErrorsLayoutContainer->addStretch (100); 85 70 71 warningsAndErrorsContainer->setLayout(vWarningsAndErrorsLayoutContainer); 72 73 // add label and Combo containers 74 mainContainerLayout->addWidget(labelAndComboContainer,0,0); 86 75 // add warnings and errors containers 87 // mainContainerLayout->addWidget(warningsAndErrorsContainer);76 mainContainerLayout->addWidget(warningsAndErrorsContainer,1,0); 88 77 89 this->setLayout(mainContainerLayout); 90 78 // manage margins 79 vWarningsAndErrorsLayoutContainer->setContentsMargins(20,0,0,0); 80 hLayoutContainerWarnings->setContentsMargins(0,0,0,0); 81 hLayoutContainerErrors->setContentsMargins(0,0,0,0); 82 83 setLayout(mainContainerLayout); 84 warningsContainer_->setStyleClass("warningsContainer"); 85 errorsContainer_->setStyleClass("errorsContainer"); 86 91 87 92 88 firstElement->activated().connect(softwarePanel,&GWt_softwarePanel::updateSections);
Note: See TracChangeset
for help on using the changeset viewer.