source: PSPA/Interface_Web/trunk/pspaWT/include/GWt_abstractElement.h @ 225

Last change on this file since 225 was 225, checked in by lemeur, 12 years ago

element 'fit' + label en parametre

File size: 888 bytes
Line 
1#ifndef GWTABSTRACELEMENT_SEEN
2#define GWTABSTRACELEMENT_SEEN
3
4#include "GWt_pspaApplication.h"
5#include "abstractElement.h"
6
7#include <Wt/WDialog>
8#include <Wt/WPushButton>
9#include <Wt/WContainerWidget>
10
11using namespace Wt;
12using namespace std;
13
14class GWt_abstractElement : public WContainerWidget
15{
16 protected : 
17
18  PspaApplication* pspa_;
19  abstractElement* element_;
20
21  WDialog* dialog_;
22  WPushButton* dropped_;
23  WContainerWidget* wc_;
24
25  WLineEdit* labelEdit_;
26
27  GWt_abstractElement() {;}
28
29  string* beginDialog();
30 public :
31
32  GWt_abstractElement(PspaApplication* ps,abstractElement* elem);
33
34  // methode Factory
35  static GWt_abstractElement *ajoute(PspaApplication* ps,abstractElement* ptr);
36
37  void clicked();
38  void updateLabelWidget();
39  WPushButton* getButton();
40  WContainerWidget* getWidget();
41  abstractElement* getElement();
42
43  virtual void dialogDone() = 0;
44};
45#endif
Note: See TracBrowser for help on using the repository browser.