Changeset 248 in PSPA for Interface_Web/trunk/pspaWT/include
- Timestamp:
- Jan 21, 2013, 4:49:49 PM (11 years ago)
- Location:
- Interface_Web/trunk/pspaWT/include
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/include/GWt_LigneFaisceau.h
r198 r248 25 25 class GWt_LigneFaisceau : public WContainerWidget 26 26 { 27 WHBoxLayout* hbox_;27 WHBoxLayout* ligneFaisceauLayout_; 28 28 PspaApplication* pspa_; 29 29 Compteur *nObjets_; … … 33 33 GWt_LigneFaisceau() {;} 34 34 GWt_LigneFaisceau(PspaApplication*); 35 void addElement(typedElement eType); 35 36 36 37 ~GWt_LigneFaisceau() { -
Interface_Web/trunk/pspaWT/include/GWt_elementLigneFaiseau.h
r243 r248 1 #ifndef GWT_ DROPZONELIGNEFAISEAU_SEEN2 #define GWT_ DROPZONELIGNEFAISEAU_SEEN1 #ifndef GWT_ELEMENTLIGNEFAISEAU_SEEN 2 #define GWT_ELEMENTLIGNEFAISEAU_SEEN 3 3 4 4 #include "GWt_dialog.h" … … 6 6 #include "abstractElement.h" 7 7 #include "GWt_abstractElement.h" 8 #include "GWt_dropZoneLigneFaisceau.h" 8 9 9 10 #include <Wt/WContainerWidget> … … 12 13 13 14 14 class GWt_ dropZoneLigneFaiseau : public WContainerWidget15 class GWt_elementLigneFaiseau : public WContainerWidget 15 16 { 16 17 public : 17 18 /** 18 19 dropZone element 19 @param pspa : application name 20 @param linkImage : true/false if the drop zone have to display the link image 21 @param showInsertMessage : true/false if it has to display the insertMessage at first step 20 a drop zone is the basic element for a widget in the ligne faisceau drop zone area 21 it should be like this : 22 23 +----------+--------+---------+ 24 | (--->) | ELEM | (-----) | 25 +----------+--------+---------+ 26 | NAME | 27 +----------+--------+---------+ 28 ELEM : Element representation, draggable object 29 (----) and (---->) : Droppable zone, contain arrows or line if this element is connected to another 30 NAME : editable element name 31 32 At first time, the ELEM element is replace by a message. 33 34 @param pspa : application name 35 @param linkImage : true/false if the drop zone have to display the link image 36 @param showInsertMessage : true/false if it has to display the insertMessage at first step 22 37 */ 23 38 24 GWt_dropZoneLigneFaiseau(PspaApplication* pspa,bool linkImage = true,bool showInsertMessage = false); 25 ~GWt_dropZoneLigneFaiseau(); 26 void addElement(WContainerWidget* elem); 39 GWt_elementLigneFaiseau(); 40 GWt_elementLigneFaiseau(abstractElement*); 41 42 ~GWt_elementLigneFaiseau(); 43 void addElement(GWt_abstractElement* elem); 44 45 inline WText* getElementName() { 46 return elementName_; 47 } 48 49 inline WText* getElementIcon() { 50 return elementName_; 51 } 27 52 28 53 private: 29 void mouseOver(const WMouseEvent &e );30 void mouseOut(const WMouseEvent &e );31 void mouseUp(const WMouseEvent &e );32 void mouseDown(const WMouseEvent &e );33 void mouseIsDragged(const WMouseEvent &e );34 void dropEvent(WDropEvent evt);35 54 36 55 void onClick(GWt_abstractElement*); 37 56 void removeDone(GWt_abstractElement*); 38 57 std::string getElementNumberInBeamLine(nomdElements el); 39 void removeOtherDropZone(GWt_ dropZoneLigneFaiseau*);40 58 void removeOtherDropZone(GWt_elementLigneFaiseau*); 59 void initialize_ligneFaisceau(abstractElement*); 41 60 PspaApplication* pspa_; 42 61 GWt_dialog* messageDropZone_; 43 WText* insertMessage_; 44 WWidget* linkImage_; 62 WText* firstTimeInsertMessage_; 45 63 46 WContainerWidget* abstractElement_; 64 GWt_dropZoneLigneFaisceau* arrowImage_; 65 WContainerWidget* dragElementZone_; 66 GWt_dropZoneLigneFaisceau* lineImage_; 67 WText* elementName_; 68 69 GWt_abstractElement* abstractElement_; 47 70 }; 48 71 #endif -
Interface_Web/trunk/pspaWT/include/pspa.css
r246 r248 1 1 body { 2 2 padding-top: 30px 3 } 3 } 4 4 5 body { 5 6 background: url("../icons/fond.jpg") repeat fixed left top / 100% auto #FFFFFF; 6 }7 8 toolbar {9 background: url("../icons/fond_toolbar.png") repeat fixed left top / 100% 100% #FFFFFF;10 7 } 11 8 … … 13 10 background-repeat: no; 14 11 } 12 13 .elementLigneFaiseau_line { 14 background-image : url("../icons/line.gif"); 15 background-repeat : repeat-x; 16 } 17 18 .elementLigneFaiseau_arrow { 19 background-image : url("../icons/arrow.gif"); 20 background-repeat : no-repeat; 21 float: right; 22 } 23 24 .saveButton { 25 background-image : url("../icons/save.png"); 26 background-repeat : no-repeat; 27 background-size : 100% 100%; 28 } 29 30 .restoreButton { 31 background-image : url("../icons/restore.png"); 32 background-repeat : no-repeat; 33 background-size : 100% 100%; 34 } 35 36 .loadNewButton { 37 background-image : url("../icons/open.png"); 38 background-repeat : no-repeat; 39 background-size : 100% 100%; 40 } 41 42 .histoButton { 43 background-image : url("../icons/histo.png"); 44 background-repeat : no-repeat; 45 background-size : 100% 100%; 46 }
Note: See TracChangeset
for help on using the changeset viewer.