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

Last change on this file since 102 was 102, checked in by lemeur, 12 years ago

creation d'un diagnostic de coherence

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  WText* probleme_;
47
48  list<GWt_sectionToExecute*> selectedSections_;
49
50  WText*   createTitle(const WString&);
51  WWidget* createPalette();
52  WWidget* createBeamLine();
53  WWidget* createGlobalParamWidget();
54  WWidget* createExecuteWidget();
55
56  void createDragImage(const char *url, const char *smallurl,
57                  const char *mimeType,
58                       WContainerWidget *p,
59                       WString name);
60
61
62  void executer();
63  void sauver();
64  void restaurer();
65
66  void addSectionToExecuteW();
67  void deleteSectionToExecuteW();
68
69  void checkSectionSelection();
70
71  void disableSectionExecute();
72
73  void faireDessin();
74
75  void faireDessinTransport();
76
77
78public:
79  PspaApplication(const WEnvironment& env);
80  inline dataManager* getDataManager() const 
81  {
82    return dtmanage_;
83  }
84
85
86  inline void addConsoleMessage(WString msg) {
87    console_->setText   (console_->text()+msg+"\n"); 
88  }
89
90  //  void addElemToGlobals();
91  void updateSelections();
92
93};
94
95#endif
Note: See TracBrowser for help on using the repository browser.