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

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

Renommage de toutes les classes d’élément dans le GWt_ par GWt_elementXXX

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;
22
23class GWt_softwarePanel  : public WContainerWidget
24{
25 public :
26 
27  GWt_softwarePanel(dataManager*, PspaApplication*);
28  virtual ~GWt_softwarePanel();
29
30  void addSectionToExecuteW();
31  void updateSections();
32   
33 private :
34 
35  bool updateSectionSelection();
36  void deleteSectionToExecuteW(int section);
37  string getSelection();
38  void executer();
39  bool areDataCoherent();
40  void fillComboWithElements(Wt::WComboBox* cBox);
41  void fillComboWithSoftwares(Wt::WComboBox* cBox);
42  Wt::WContainerWidget* createAddDeletePushButtons(int sectionIndex);
43
44  dataManager* dtmanage_;
45  WPushButton *exec_go_;
46  WContainerWidget* contenuSections_;
47  PspaApplication* pspa_;
48
49  std::vector <GWt_sectionToExecute*> sections_;
50};
51#endif /* defined(__PSPA__GWt_softwarePanel__) */
Note: See TracBrowser for help on using the repository browser.