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


Ignore:
Timestamp:
Nov 28, 2012, 4:24:13 PM (12 years ago)
Author:
touze
Message:

classe compteur pour creer les etiquettes

Location:
Interface_Web/trunk/pspaWT/include
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/include/GWt_LigneFaisceau.h

    r50 r113  
    33
    44#include "dataManager.h"
     5#include "abstractElement.h"
     6#include "nomdElements.h"
    57#include "GWt_pspaApplication.h"
    6 #include "abstractElement.h"
    78
    89#include <Wt/WApplication>
    9 
    1010#include <Wt/WPushButton>
    1111#include <Wt/WHBoxLayout>
     
    1313#include <Wt/WImage>
    1414
     15using namespace Wt;
    1516
    16 
    17 
    18 
    19 
    20 using namespace Wt;
     17class Compteur {
     18  int n_;
     19 
     20public :
     21 Compteur() {n_= 0;}
     22 int incr() {return ++n_;}
     23};
    2124
    2225class GWt_LigneFaisceau : public WContainerWidget
    2326{
     27  WHBoxLayout* beamLayout_;
     28  PspaApplication* pspa_;
     29  Compteur *nObjets_[nElements];
    2430
    25   //  WVBoxLayout* tempVBox_;
    26   WHBoxLayout* beamLayout_;
    27   //  dataManager* dtmanage_;
    28   PspaApplication* pspa_;
    29 
    30 public:
     31 public :
    3132  GWt_LigneFaisceau(PspaApplication*);
    3233  void restoreElementCollection();
    33 private:
     34
     35 private :
    3436  void dropEvent(WDropEvent evt);
    35 
    36 
    3737};
    3838
  • Interface_Web/trunk/pspaWT/include/GWt_abstractElement.h

    r107 r113  
    2828
    2929  GWt_abstractElement() {;}
    30   void setLabel(abstractElement* elem,int n);
    3130
    3231 public :
     
    3635  void clicked();
    3736  void doubleClicked();
     37  void setLabel(int n);
    3838  WPushButton* getButton();
    3939  WContainerWidget* getWidget();
  • Interface_Web/trunk/pspaWT/include/GWt_bend.h

    r107 r113  
    1515class GWt_bend : public GWt_abstractElement
    1616{
    17   static int nObjets_;
    1817  WLineEdit* angleEdit_; // deg.
    1918  WLineEdit* radiusEdit_; // m
  • Interface_Web/trunk/pspaWT/include/GWt_cell.h

    r107 r113  
    1515class GWt_cell : public GWt_abstractElement
    1616{
    17   static int nObjets_;
    1817  WLineEdit* lenghtElemEdit_; // cm
    1918  WLineEdit* apertureEdit_; // cm
  • Interface_Web/trunk/pspaWT/include/GWt_drift.h

    r107 r113  
    1515class GWt_drift : public GWt_abstractElement
    1616{
    17   static int nObjets_;
    1817  WLineEdit* xlengthEdit_;
    1918  WLineEdit* apertureEdit_;
  • Interface_Web/trunk/pspaWT/include/GWt_initialBeam.h

    r107 r113  
    1616class GWt_initialBeam : public GWt_abstractElement
    1717{
    18   static int nObjets_;
    1918  WLineEdit* nmacropEdit_;
    2019  WLineEdit* sigma_tEdit_; // picoseconds
  • Interface_Web/trunk/pspaWT/include/GWt_pspaApplication.h

    r107 r113  
    22#define  PSPA_SEEN
    33
    4 //#include <string>
    54#include <list>
    65
     
    1615
    1716using namespace Wt;
    18 //using namespace std;
    1917
    2018/*
  • Interface_Web/trunk/pspaWT/include/GWt_soleno.h

    r107 r113  
    1515class GWt_soleno : public  GWt_abstractElement
    1616{
    17   static int nObjets_;
    1817  WLineEdit* xlengthEdit_;
    1918  WLineEdit* apertureEdit_;
  • Interface_Web/trunk/pspaWT/include/nomdElements.h

    r107 r113  
    88} nomdElement;
    99
     10#define nElements 5
     11
    1012#endif
Note: See TracChangeset for help on using the changeset viewer.