source: PSPA/Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_pspaApplication.h @ 488

Last change on this file since 488 was 488, checked in by lemeur, 10 years ago

lecture fichier sauvegarde AML

File size: 2.5 KB
Line 
1#ifndef GWt_PSPA_Application_SEEN
2#define GWt_PSPA_Application_SEEN
3
4#include <cstdlib>
5#include <string.h>
6#include <vector>
7
8#include <Wt/WApplication>
9#include <Wt/WEnvironment>
10#include <Wt/WContainerWidget>
11#include <Wt/WText>
12#include <Wt/WLineEdit>
13#include <Wt/WPanel>
14#include <Wt/WComboBox>
15#include <Wt/WPushButton>
16#include <Wt/WButtonGroup>
17
18#include "GWt_dialog.h"
19#include "GWt_console.h"
20#include "GWt_softwarePanel.h"
21#include "GWt_globalParameters.h"
22#include "GWt_sectorParameters.h"
23
24#include "dataManager.h"
25
26class GWt_abstractElementFactory;
27class GWt_ligneFaisceau;
28
29using namespace Wt;
30
31class PspaApplication : public WApplication
32{
33       
34 private :
35 
36  dataManager* dtmanage_;
37  string workingDir_;
38  WDialog* dialogSave_;
39  WDialog* dialogOpen_;
40  WLineEdit* saveNameEdit_;
41  WLineEdit* openNameEdit_;
42   
43  GWt_globalParameters* globalParam_;
44  GWt_sectorParameters* sectorParam_;
45  string nameOfCase_;
46
47  WText* probleme_;
48
49  WString applicationDefaultTitle_;
50   
51  WFileUpload* uploadFileSelectorWidget_;
52  GWt_console* console_;
53  GWt_abstractElementFactory* abstractElementFactory_;
54  WContainerWidget* acceleratorContainerWidget_;
55 
56  WText* createTitle(const WString&);
57  WWidget* createPalette(WContainerWidget* parent);
58  WWidget* createBeamLine_deprecated();
59  WWidget* createExecuteWidget();
60
61  WWidget* createDashBoard(WContainerWidget*);
62 
63  void messageBox1();
64  void messageBox2();
65 
66  // extensions (.001, .002,...) pour les fichiers "snapshot"
67  int extensionFile_;
68 
69  void createDragImage(const char *url,const char *smallurl,const char *mimeType,WContainerWidget *p,WString());
70  void sauver();
71  void dialogSaveDone(WDialog::DialogCode code);
72  void restaurer();
73  void chargerConfig();
74  void openFileSelector();
75  void fileTooLarge();
76 
77  bool removePathFromConfigName(string& config);
78  bool removeExtensionFromConfigName(string& config, string extension);
79  void createAccelerator();
80 
81 public :
82 
83  PspaApplication(const WEnvironment& env);
84 
85  string getSelection();
86  void faireDessin();
87
88  inline dataManager* getDataManager() const  {
89    return dtmanage_;
90  }
91 
92  inline GWt_globalParameters* getGlobalParam() const {
93    return globalParam_; 
94  }
95
96  inline GWt_abstractElementFactory* getAbstractElementFactory() {
97    return abstractElementFactory_;
98  }
99
100  inline string getWorkingDir() const {
101    return workingDir_;
102  }
103
104  inline void setExtensionFile(int n) {
105    extensionFile_ = n;
106  }
107
108  inline int getExtensionFile() const {
109    return extensionFile_;
110  }
111
112};
113#endif
Note: See TracBrowser for help on using the repository browser.