source: PSPA/Interface_Web/trunk/pspaWT/include/GWt_LigneFaisceau.h @ 160

Last change on this file since 160 was 133, checked in by touze, 12 years ago

bug fixed for build in Jenkins

File size: 835 bytes
Line 
1#ifndef LIGNEFAISCEAU_SEEN
2#define LIGNEFAISCEAU_SEEN
3
4#include "dataManager.h"
5#include "abstractElement.h"
6#include "nomdElements.h"
7#include "GWt_pspaApplication.h"
8
9#include <Wt/WApplication>
10#include <Wt/WPushButton>
11#include <Wt/WHBoxLayout>
12#include <Wt/WContainerWidget>
13#include <Wt/WImage>
14
15using namespace Wt;
16
17class Compteur {
18  int n_;
19 
20public :
21 Compteur() {n_= 0;}
22 int incr() {return ++n_;}
23};
24
25class GWt_LigneFaisceau : public WContainerWidget
26{
27  WHBoxLayout* beamLayout_;
28  PspaApplication* pspa_;
29  Compteur *nObjets_;
30
31  string createLabel(nomdElements el,int n);
32
33 public :
34 
35  GWt_LigneFaisceau() {;}
36  GWt_LigneFaisceau(PspaApplication*);
37
38  ~GWt_LigneFaisceau() {
39    if(nObjets_ != NULL) delete[] nObjets_;
40  }
41 
42  void restoreElementCollection();
43
44 private :
45
46  void dropEvent(WDropEvent evt);
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.