source: PSPA/Interface_Web/trunk/pspaWT/sources/controler/include/GWt_abstractElement.h @ 257

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

refactoring

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