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

Last change on this file since 469 was 469, checked in by garnier, 11 years ago

Désormais il est de nouveau possible d'ajouter des sections et dy affecter des softwares (ne marche pour le moment quavec la 1ere sectionToExecute. Autres améliorations et renommages

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    void addElement(GWt_abstractElement* elem);
37   
38    inline WText* getElementName() {
39        return elementLabel_;
40    }
41   
42    inline WText* getElementIcon() {
43        return elementLabel_;
44    }
45   
46    void setElementLabel(std::string label);
47
48 
49    inline GWt_dropZoneLigneFaisceau* getDropZoneLeft() {
50        return dropZoneLeft_;
51    }
52
53    inline GWt_dropZoneLigneFaisceau* getDropZoneRight() {
54        return dropZoneRight_;
55    }
56
57    inline GWt_abstractElement* getGWt_AbstractElement() {
58        return GWt_abstractElement_deprecated_;
59    }
60    inline void setSoftwareName(std::string name) {
61        softwareName_ =new WText(name);
62    }
63 
64  /**
65   Set the background color for this element
66   */
67  void setBGColor(const WColor);
68
69
70private:
71   
72    void removeDone(GWt_abstractElement*);
73    std::string getElementNumberInBeamLine(nomdElements el);
74    void initialize_ligneFaisceau(GWt_ligneFaisceau* ligne, abstractElement* abstractElem, std::string);
75    void mouseWentOut();
76    void mouseWentOver();
77
78    GWt_dialog* messageDropZone_;
79    WText* firstTimeInsertMessage_;
80   
81    GWt_dropZoneLigneFaisceau* dropZoneLeft_;
82    GWt_dropZoneLigneFaisceau* dropZoneRight_;
83    WText* elementLabel_;
84    dataManager* dataManager_;
85    GWt_abstractElement* GWt_abstractElement_deprecated_;
86    WContainerWidget* elementContainer_;
87    WText* actionParameters_;
88    WText* actionTrash_;
89    WText* softwareName_;
90};
91#endif
Note: See TracBrowser for help on using the repository browser.