source: PSPA/Interface_Web/branches/insertionsElements/include/GWt_LigneFaisceau.h @ 239

Last change on this file since 239 was 239, checked in by garnier, 12 years ago

modifications de la partie Web, a ameliorer

File size: 829 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#include "GWt_abstractElement.h"
9
10#include <Wt/WApplication>
11#include <Wt/WPushButton>
12#include <Wt/WHBoxLayout>
13#include <Wt/WContainerWidget>
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* hbox_;
28  PspaApplication* pspa_;
29  Compteur *nObjets_;
30
31 public :
32 
33  GWt_LigneFaisceau() {;}
34  GWt_LigneFaisceau(PspaApplication*);
35
36  ~GWt_LigneFaisceau() {
37    if(nObjets_ != NULL) delete[] nObjets_;
38  }
39 
40  void restoreElementCollection();
41  void clickEvent(WContainerWidget*);
42  void deleteElement(WContainerWidget*);
43
44
45};
46
47#endif
Note: See TracBrowser for help on using the repository browser.