source: PSPA/Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_sector.h @ 480

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

BugFix d un memory leak quand on changeait les debut de section. Amelioration lors des changement de debut de sections

File size: 1.1 KB
RevLine 
[446]1#ifndef GWT_Sector_SEEN
2#define GWT_Sector_SEEN
3
4#include <iostream>
5
6#include <Wt/WContainerWidget>
7#include "sector.h"
8#include "GWt_accelerator.h"
[455]9#include "GWt_ligneFaisceau.h"
[446]10
11using namespace Wt;
12
13using namespace std;
14
15class GWt_sector : public WObject
16{
17 
18public:
[455]19  GWt_sector(GWt_accelerator*,sector*);
[446]20  virtual ~GWt_sector();
[455]21  void createWidgetBeamLine(WContainerWidget* parent);
22  /* Return the controler sector element for this UI sector*/
23  inline sector* getSectorControler() {return sectorControler_;};
24  inline GWt_softwarePanel* getExecuteWidget() {
25    return executeWidget_;
26  }
27  /**
28   Get the accelerator for this sector
29   */
30  inline GWt_accelerator* getAccelerator() {
31    return UI_Accelerator_;
32  }
33 
[469]34  /**
35   Get the beam line widget
36   */
37  inline GWt_ligneFaisceau* getBeamLineWidget() {
38    return UI_beamLine_;
39  };
40 
[480]41  /**
42   Display the content of this sector. Create a widget for the beamline and the softwares
43   */
44  void displayWidgetBeamLine();
45
[446]46  private :
[455]47  GWt_ligneFaisceau* UI_beamLine_;
[446]48  void setIcon(WLayout*);
[455]49  GWt_accelerator* UI_Accelerator_;
50  sector* sectorControler_;
51  GWt_softwarePanel* executeWidget_;
52
[446]53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.