source: PSPA/Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_softwarePanel.h @ 455

Last change on this file since 455 was 455, checked in by garnier, 10 years ago

grosse modification pour intégrer les sections

File size: 1.2 KB
Line 
1//
2//  GWt_softwarePanel.h
3//  PSPA
4//
5//  Created by Garnier Laurent on 30/01/13.
6//  Copyright (c) 2013 Garnier Laurent. All rights reserved.
7//
8
9#ifndef GWt_softwarePanel_SEEN
10#define GWt_softwarePanel_SEEN
11
12#include <iostream>
13#include <Wt/WContainerWidget>
14#include <Wt/WPushButton>
15#include "GWt_sectionToExecute.h"
16#include "dataManager.h"
17
18using namespace Wt;
19using namespace std;
20
21class PspaApplication;
22class GWt_sector;
23
24class GWt_softwarePanel  : public WContainerWidget
25{
26 public :
27 
28  GWt_softwarePanel(dataManager*, GWt_sector*);
29  virtual ~GWt_softwarePanel();
30
31  void addSectionToExecuteW();
32  void updateSections();
33   
34 private :
35 
36  bool updateSectionSelection();
37  void deleteSectionToExecuteW(int section);
38  string getSelection();
39  void executer();
40  bool areDataCoherent();
41  void fillComboWithElements(Wt::WComboBox* cBox);
42  void fillComboWithSoftwares(Wt::WComboBox* cBox);
43  Wt::WContainerWidget* createAddDeletePushButtons(int sectionIndex);
44
45  dataManager* dtmanage_;
46  WPushButton *exec_go_;
47  WContainerWidget* contenuSections_;
48  GWt_sector* UIsector_;
49
50  std::vector <GWt_sectionToExecute*> sections_;
51};
52#endif /* defined(__PSPA__GWt_softwarePanel__) */
Note: See TracBrowser for help on using the repository browser.