| 1 | // This may look like C code, but it is really -*- C++ -*-
|
|---|
| 2 | // Classe CxxExecWind : Control Window for CxxExecutor
|
|---|
| 3 | // Classe CxxOptionWind : Option Window for CxxExecutor
|
|---|
| 4 | // (c) DAPNIA (CEA) LAL (IN2P3/CNRS)
|
|---|
| 5 | // R. Ansari C.Magneville 10/2000
|
|---|
| 6 |
|
|---|
| 7 | #ifndef CXXEXECWIN_H_SEEN
|
|---|
| 8 | #define CXXEXECWIN_H_SEEN
|
|---|
| 9 |
|
|---|
| 10 | #include "machdefs.h"
|
|---|
| 11 |
|
|---|
| 12 | #include "pisysdep.h"
|
|---|
| 13 | #include "pistdimgapp.h"
|
|---|
| 14 |
|
|---|
| 15 | #include PISTDWDG_H
|
|---|
| 16 | #include PIWIN_H
|
|---|
| 17 |
|
|---|
| 18 | class CxxExecutor;
|
|---|
| 19 |
|
|---|
| 20 | //-----------------------------------------------------------------------
|
|---|
| 21 | //-----------------------------------------------------------------------
|
|---|
| 22 | //-----------------------------------------------------------------------
|
|---|
| 23 | class CxxExecWind : public PIWindow {
|
|---|
| 24 | public :
|
|---|
| 25 | CxxExecWind(PIStdImgApp* par, CxxExecutor * cxxexec);
|
|---|
| 26 | ~CxxExecWind();
|
|---|
| 27 | virtual void Show();
|
|---|
| 28 | virtual void Process(PIMessage msg, PIMsgHandler* sender, void* data=NULL);
|
|---|
| 29 |
|
|---|
| 30 | private:
|
|---|
| 31 | virtual void filefrstring(string filename,string& code);
|
|---|
| 32 | virtual string stringfrfile(string filename);
|
|---|
| 33 | PIStdImgApp* dap;
|
|---|
| 34 | CxxExecutor* cxxex;
|
|---|
| 35 | PILabel * mLab[5];
|
|---|
| 36 | PIButton * mBut[10];
|
|---|
| 37 | PIText * mText[4];
|
|---|
| 38 | PIFileChooser * pfc; // Pour les fichiers user C++
|
|---|
| 39 | string mFName[2];
|
|---|
| 40 | };
|
|---|
| 41 |
|
|---|
| 42 | //-----------------------------------------------------------------------
|
|---|
| 43 | //-----------------------------------------------------------------------
|
|---|
| 44 | //-----------------------------------------------------------------------
|
|---|
| 45 | class CxxOptionWind : public PIWindow {
|
|---|
| 46 | public :
|
|---|
| 47 | CxxOptionWind(PIStdImgApp* par, CxxExecutor * cxxexec);
|
|---|
| 48 | ~CxxOptionWind();
|
|---|
| 49 | virtual void Show();
|
|---|
| 50 | virtual void Process(PIMessage msg, PIMsgHandler* sender, void* data=NULL);
|
|---|
| 51 |
|
|---|
| 52 | private:
|
|---|
| 53 | PIStdImgApp * dap;
|
|---|
| 54 | CxxExecutor * cxxex;
|
|---|
| 55 | PILabel * mTit;
|
|---|
| 56 | PILabel * mLab[5];
|
|---|
| 57 | PIButton * mBut[3];
|
|---|
| 58 | PIText * mText[5];
|
|---|
| 59 | };
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 | #endif
|
|---|