source: PSPA/Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_elementLigneFaisceau.h @ 483

Last change on this file since 483 was 483, checked in by garnier, 10 years ago

Correction d'un bug. La suppression d'un

élément est désormais effective

File size: 2.4 KB
Line 
1#ifndef GWt_elementLigneFaisceau_SEEN
2#define GWt_elementLigneFaisceau_SEEN
3
4#include "GWt_abstractElement.h"
5#include "GWt_dropZoneLigneFaisceau.h"
6#include "dataManager.h"
7
8#include <Wt/WContainerWidget>
9
10using namespace Wt;
11
12
13class GWt_elementLigneFaisceau : public WContainerWidget
14{
15    public :
16    /**
17     dropZone element
18     a drop zone is the basic element for a widget in the ligne faisceau drop zone area
19     it should be like this :
20     
21     +----------+--------+---------+
22     |   (--->) |  ELEM  | (-----) |
23     +----------+--------+---------+
24     |             NAME            |
25     +----------+--------+---------+
26     ELEM : Element representation, draggable object
27     (----) and (---->) : Droppable zone, contain arrows or line if this element is connected to another
28     NAME : editable element name
29     
30     At first time, the ELEM element is replace by a message.
31     */
32   
33  GWt_elementLigneFaisceau(dataManager*,GWt_ligneFaisceau*, abstractElement* abstractElem, std::string);
34   
35    ~GWt_elementLigneFaisceau();
36   
37    inline WText* getElementName() {
38        return elementLabel_;
39    }
40   
41    inline WText* getElementIcon() {
42        return elementLabel_;
43    }
44   
45    void setElementLabel(std::string label);
46
47 
48    inline GWt_dropZoneLigneFaisceau* getDropZoneLeft() {
49        return dropZoneLeft_;
50    }
51
52    inline GWt_dropZoneLigneFaisceau* getDropZoneRight() {
53        return dropZoneRight_;
54    }
55
56    inline GWt_abstractElement* getGWt_AbstractElement() {
57        return GWt_abstractElement_deprecated_;
58    }
59    inline void setSoftwareName(std::string name) {
60        softwareName_ =new WText(name);
61    }
62 
63  /**
64   Set the background color for this element
65   */
66  void setBGColor(const WColor);
67
68
69private:
70   
71    void removeDone(GWt_abstractElement*);
72    std::string getElementNumberInBeamLine(nomdElements el);
73    void initialize_ligneFaisceau(GWt_ligneFaisceau* ligne, abstractElement* abstractElem, std::string);
74    void mouseWentOut();
75    void mouseWentOver();
76
77    GWt_dialog* messageDropZone_;
78    WText* firstTimeInsertMessage_;
79   
80    GWt_dropZoneLigneFaisceau* dropZoneLeft_;
81    GWt_dropZoneLigneFaisceau* dropZoneRight_;
82    WText* elementLabel_;
83    dataManager* dataManager_;
84    GWt_abstractElement* GWt_abstractElement_deprecated_;
85    WContainerWidget* elementContainer_;
86    WText* actionParameters_;
87    WText* actionTrash_;
88    WText* softwareName_;
89};
90#endif
Note: See TracBrowser for help on using the repository browser.