Changeset 248 in PSPA for Interface_Web/trunk/pspaWT/include


Ignore:
Timestamp:
Jan 21, 2013, 4:49:49 PM (11 years ago)
Author:
garnier
Message:

Grosse modifications pour une meilleur gestion des drag & drop (a terminer)

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  
    2525class GWt_LigneFaisceau : public WContainerWidget
    2626{
    27   WHBoxLayout* hbox_;
     27  WHBoxLayout* ligneFaisceauLayout_;
    2828  PspaApplication* pspa_;
    2929  Compteur *nObjets_;
     
    3333  GWt_LigneFaisceau() {;}
    3434  GWt_LigneFaisceau(PspaApplication*);
     35  void addElement(typedElement eType);
    3536
    3637  ~GWt_LigneFaisceau() {
  • Interface_Web/trunk/pspaWT/include/GWt_elementLigneFaiseau.h

    r243 r248  
    1 #ifndef GWT_DROPZONELIGNEFAISEAU_SEEN
    2 #define GWT_DROPZONELIGNEFAISEAU_SEEN
     1#ifndef GWT_ELEMENTLIGNEFAISEAU_SEEN
     2#define GWT_ELEMENTLIGNEFAISEAU_SEEN
    33
    44#include "GWt_dialog.h"
     
    66#include "abstractElement.h"
    77#include "GWt_abstractElement.h"
     8#include "GWt_dropZoneLigneFaisceau.h"
    89
    910#include <Wt/WContainerWidget>
     
    1213
    1314
    14 class GWt_dropZoneLigneFaiseau : public WContainerWidget
     15class GWt_elementLigneFaiseau : public WContainerWidget
    1516{
    1617 public :
    1718  /**
    1819     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
    2237   */
    2338
    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  }
    2752
    2853 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);
    3554
    3655  void onClick(GWt_abstractElement*);
    3756  void removeDone(GWt_abstractElement*);
    3857  std::string getElementNumberInBeamLine(nomdElements el);
    39   void removeOtherDropZone(GWt_dropZoneLigneFaiseau*);
    40 
     58  void removeOtherDropZone(GWt_elementLigneFaiseau*);
     59  void initialize_ligneFaisceau(abstractElement*);
    4160  PspaApplication* pspa_;
    4261  GWt_dialog* messageDropZone_;
    43   WText* insertMessage_;
    44   WWidget* linkImage_;
     62  WText* firstTimeInsertMessage_;
    4563
    46   WContainerWidget* abstractElement_;
     64  GWt_dropZoneLigneFaisceau* arrowImage_;
     65  WContainerWidget* dragElementZone_;
     66  GWt_dropZoneLigneFaisceau* lineImage_;
     67  WText* elementName_;
     68
     69  GWt_abstractElement* abstractElement_;
    4770};
    4871#endif
  • Interface_Web/trunk/pspaWT/include/pspa.css

    r246 r248  
    11body {
    22    padding-top: 30px
    3     }
     3}
     4
    45body {
    56    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;
    107}
    118
     
    1310   background-repeat: no;
    1411}
     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.