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

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

update de la visu

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