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

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

Ameliorations pour la sauvegarde des fichiers et autres

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