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

classe compteur pour creer les etiquettes

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.