source: PSPA/Interface_Web/trunk/pspaWT/include/GWt_pspaApplication.h @ 90

Last change on this file since 90 was 90, checked in by garnier, 12 years ago

test ne compile pas

File size: 1.6 KB
Line 
1#ifndef PSPA_SEEN
2#define  PSPA_SEEN
3
4
5#include <list>
6
7#include <Wt/WApplication>
8#include <Wt/WEnvironment>
9#include <Wt/WContainerWidget>
10#include <Wt/WTextArea>
11#include <Wt/WPanel>
12#include <Wt/WComboBox>
13#include <Wt/WPushButton>
14
15#include "dataManager.h"
16
17using namespace Wt;
18
19/*
20 * ESSAI PSPA
21 */
22class PspaApplication : public WApplication
23{
24
25typedef struct 
26{
27  WLineEdit* debut;
28  WLineEdit*  fin;
29  WComboBox* selection;
30  WContainerWidget* ligneDeWidget;
31} GWt_sectionToExecute;
32
33
34
35 private :
36  WTextArea* console_;
37  dataManager* dtmanage_;
38  WWidget* globalParam_;
39  WWidget* beamLine_;
40  WContainerWidget* leDessin_;
41
42  WContainerWidget* contenuSections_;
43
44  WPushButton *exec_go_;
45
46
47  list<GWt_sectionToExecute*> selectedSections_;
48
49  WWidget* createPalette();
50  WWidget* createBeamLine();
51  WWidget* createGlobalParamWidget();
52  WWidget* createExecuteWidget();
53
54  void createDragImage(const char *url, const char *smallurl,
55                  const char *mimeType,
56                       WContainerWidget *p,
57                       WString named);
58
59
60  void executer();
61  void sauver();
62  void restaurer();
63
64  void addSectionToExecuteW();
65  void deleteSectionToExecuteW();
66
67  void checkSectionSelection();
68
69  void disableSectionExecute();
70
71  void faireDessin();
72
73  void faireDessinTransport();
74
75
76public:
77  PspaApplication(const WEnvironment& env);
78  inline dataManager* getDataManager() const 
79  {
80    return dtmanage_;
81  }
82
83
84  inline void addConsoleMessage(WString msg) {
85    console_->setText   (console_->text()+msg+"\n"); 
86  }
87
88  //  void addElemToGlobals();
89  void updateSelections();
90
91};
92
93#endif
Note: See TracBrowser for help on using the repository browser.