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
RevLine 
[265]1#ifndef GWt_elementLigneFaisceau_SEEN
2#define GWt_elementLigneFaisceau_SEEN
[178]3
[198]4#include "GWt_abstractElement.h"
[248]5#include "GWt_dropZoneLigneFaisceau.h"
[455]6#include "dataManager.h"
[178]7
[198]8#include <Wt/WContainerWidget>
9
[178]10using namespace Wt;
11
12
[265]13class GWt_elementLigneFaisceau : public WContainerWidget
[178]14{
[272]15    public :
16    /**
[239]17     dropZone element
[248]18     a drop zone is the basic element for a widget in the ligne faisceau drop zone area
19     it should be like this :
[272]20     
[248]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
[272]29     
30     At first time, the ELEM element is replace by a message.
31     */
32   
[469]33  GWt_elementLigneFaisceau(dataManager*,GWt_ligneFaisceau*, abstractElement* abstractElem, std::string);
[272]34   
35    ~GWt_elementLigneFaisceau();
36   
37    inline WText* getElementName() {
[305]38        return elementLabel_;
[272]39    }
40   
41    inline WText* getElementIcon() {
[305]42        return elementLabel_;
[272]43    }
44   
[305]45    void setElementLabel(std::string label);
[455]46
47 
[273]48    inline GWt_dropZoneLigneFaisceau* getDropZoneLeft() {
49        return dropZoneLeft_;
50    }
51
52    inline GWt_dropZoneLigneFaisceau* getDropZoneRight() {
53        return dropZoneRight_;
54    }
55
[305]56    inline GWt_abstractElement* getGWt_AbstractElement() {
[455]57        return GWt_abstractElement_deprecated_;
[299]58    }
[375]59    inline void setSoftwareName(std::string name) {
60        softwareName_ =new WText(name);
61    }
[469]62 
63  /**
64   Set the background color for this element
65   */
66  void setBGColor(const WColor);
[359]67
[469]68
[265]69private:
[272]70   
71    void removeDone(GWt_abstractElement*);
72    std::string getElementNumberInBeamLine(nomdElements el);
[469]73    void initialize_ligneFaisceau(GWt_ligneFaisceau* ligne, abstractElement* abstractElem, std::string);
[365]74    void mouseWentOut();
75    void mouseWentOver();
[469]76
[272]77    GWt_dialog* messageDropZone_;
78    WText* firstTimeInsertMessage_;
79   
[273]80    GWt_dropZoneLigneFaisceau* dropZoneLeft_;
81    GWt_dropZoneLigneFaisceau* dropZoneRight_;
[305]82    WText* elementLabel_;
[455]83    dataManager* dataManager_;
84    GWt_abstractElement* GWt_abstractElement_deprecated_;
[359]85    WContainerWidget* elementContainer_;
[365]86    WText* actionParameters_;
87    WText* actionTrash_;
[375]88    WText* softwareName_;
[178]89};
90#endif
Note: See TracBrowser for help on using the repository browser.