// // GWt_softwarePanel.h // PSPA // // Created by Garnier Laurent on 30/01/13. // Copyright (c) 2013 Garnier Laurent. All rights reserved. // #ifndef GWt_softwarePanel_SEEN #define GWt_softwarePanel_SEEN #include #include #include #include "GWt_sectionToExecute.h" #include "dataManager.h" using namespace Wt; using namespace std; class PspaApplication; class GWt_softwarePanel : public WContainerWidget { public : GWt_softwarePanel(dataManager*, PspaApplication*,WContainerWidget*); virtual ~GWt_softwarePanel(); void addSectionToExecuteW(); void updateSections(); private : bool updateSectionSelection(); void deleteSectionToExecuteW(int section); string getSelection(); void executer(); bool areDataCoherent(); void fillComboWithElements(Wt::WComboBox* cBox); void fillComboWithSoftwares(Wt::WComboBox* cBox); Wt::WContainerWidget* createAddDeletePushButtons(int sectionIndex); dataManager* dtmanage_; WPushButton *exec_go_; WContainerWidget* contenuSections_; PspaApplication* pspa_; std::vector sections_; }; #endif /* defined(__PSPA__GWt_softwarePanel__) */