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 | |
---|
15 | using namespace Wt; |
---|
16 | |
---|
17 | class Compteur { |
---|
18 | int n_; |
---|
19 | |
---|
20 | public : |
---|
21 | Compteur() {n_= 0;} |
---|
22 | int incr() {return ++n_;} |
---|
23 | }; |
---|
24 | |
---|
25 | class GWt_LigneFaisceau : public WContainerWidget |
---|
26 | { |
---|
27 | WHBoxLayout* ligneFaisceauLayout_; |
---|
28 | PspaApplication* pspa_; |
---|
29 | Compteur *nObjets_; |
---|
30 | |
---|
31 | public : |
---|
32 | |
---|
33 | GWt_LigneFaisceau() {;} |
---|
34 | GWt_LigneFaisceau(PspaApplication*); |
---|
35 | void addElement(typedElement eType); |
---|
36 | |
---|
37 | ~GWt_LigneFaisceau() { |
---|
38 | if(nObjets_ != NULL) delete[] nObjets_; |
---|
39 | } |
---|
40 | |
---|
41 | void restoreElementCollection(); |
---|
42 | void clickEvent(WContainerWidget*); |
---|
43 | void deleteElement(WContainerWidget*); |
---|
44 | |
---|
45 | |
---|
46 | }; |
---|
47 | |
---|
48 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.