Ignore:
Timestamp:
Mar 5, 2013, 4:54:27 PM (11 years ago)
Author:
garnier
Message:

Amelioration dans le design du GUI des elementsFaisceau

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_abstractElement.h

    r343 r365  
    3333class GWt_abstractElement : public WContainerWidget
    3434{
    35  protected :
     35    protected :
    3636   
    37   abstractElement* abstractElement_;
     37    abstractElement* abstractElement_;
    3838   
    39   WDialog* dialog_;
    40   GWt_draggableImage* dropped_;
    41   WContainerWidget* wc_;
    42   WText* wc_item_;
    43   WLineEdit* labelEdit_;
    44  
    45   GWt_abstractElement() {;}
    46   string* beginDialog();
     39    WDialog* dialog_;
     40    GWt_draggableImage* dropped_;
     41    WContainerWidget* wc_;
     42    WText* wc_item_;
     43    WLineEdit* labelEdit_;
     44   
     45    GWt_abstractElement() {;}
     46    string* beginDialog();
     47   
     48    public :
     49   
     50    GWt_abstractElement(abstractElement*);
     51   
     52    void initialize();
     53    void showParameters();
     54    void deleteElement();
    4755
    48  public :
    49  
    50   GWt_abstractElement(abstractElement*);
    51        
    52   void initialize();
    53   void clicked();
    54   void doubleClicked();
    55   void updateLabelAndToolTipWidget();
    56   void FileInput(ifstream& ifs);
    57  
    58   //  GWt_draggableImage* getImage();
    59   WContainerWidget* getWidget();
    60   abstractElement* getAbstractElement();
    61  
    62   virtual void dialogDone(WDialog::DialogCode code) = 0;
    63 
    64   inline WString print() {
    65     return abstractElement_->print();
    66   }
    67  
    68   virtual string getMimeType() = 0;
    69   virtual string getSmallImageURL() = 0;
    70   virtual string getBigImageURL() = 0;
    71   virtual string getName() = 0;
    72   virtual void initilializeDialog() = 0;
    73  
    74   void createDragImage(WContainerWidget*);
    75   WImage* getImage();
     56    void updateLabelAndToolTipWidget();
     57    void FileInput(ifstream& ifs);
    7658   
    77  protected:
    78  
    79   WImage* image_;
    80   GWt_elementLigneFaisceau* elementLigneFaiseauContainer_;
     59    //  GWt_draggableImage* getImage();
     60    WContainerWidget* getWidget();
     61    abstractElement* getAbstractElement();
    8162   
    82   // Nom, type de parametre
    83   std::map<std::string, variant<int, string, bool, float, NullType> > parameterMapValue;
    84   std::map<std::string, std::string > parameterMapDescription;
    85  
    86   inline void registerParam(string name, variant<int, string, bool, float, NullType> value, string desc) {
    87     parameterMapValue[name] = value;
    88     parameterMapDescription[name] = desc;
    89   }
    90  
    91   variant<int, string, bool, float, NullType> getParamValue(string elem);
    92   string getParamDescription(string elem); 
     63    virtual void dialogDone(WDialog::DialogCode code) = 0;
     64   
     65    inline WString print() {
     66        return abstractElement_->print();
     67    }
     68   
     69    virtual string getMimeType() = 0;
     70    virtual string getSmallImageURL() = 0;
     71    virtual string getBigImageURL() = 0;
     72    virtual string getName() = 0;
     73    virtual void initilializeDialog() = 0;
     74   
     75    void createDragImage(WContainerWidget*);
     76    WImage* getImage();
     77   
     78protected:
     79   
     80    WImage* image_;
     81    GWt_elementLigneFaisceau* elementLigneFaiseauContainer_;
     82   
     83    // Nom, type de parametre
     84    std::map<std::string, variant<int, string, bool, float, NullType> > parameterMapValue;
     85    std::map<std::string, std::string > parameterMapDescription;
     86   
     87    inline void registerParam(string name, variant<int, string, bool, float, NullType> value, string desc) {
     88        parameterMapValue[name] = value;
     89        parameterMapDescription[name] = desc;
     90    }
     91   
     92    variant<int, string, bool, float, NullType> getParamValue(string elem);
     93    string getParamDescription(string elem);
    9394};
    9495#endif
Note: See TracChangeset for help on using the changeset viewer.