source: Sophya/trunk/SophyaPI/PIext/pisiadw.h@ 2307

Last change on this file since 2307 was 685, checked in by ercodmgr, 26 years ago

FileChooser multiples ds PIStdImgApp, Correction Ndisp ds PINTuple, Fenetre NObjMgrWind non bloquant desormais ds piapp - Reza 12/12/99

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1// This may look like C code, but it is really -*- C++ -*-
2// Classe de fenetre pour gestion d'objet et PPF-In
3// Reza Aout 97 , Juillet,Aout 98, Ete 99
4// CEA-DAPNIA LAL-IN2P3/CNRS
5
6#ifndef PISIADW_H_SEEN
7#define PISIADW_H_SEEN
8
9#include <string.h>
10
11#include "pisysdep.h"
12
13#include PIAPP_H
14#include PIWIN_H
15#include PIMENU_H
16#include PIOPTMENU_H
17#include PISTDWDG_H
18#include PILIST_H
19
20
21class PIStdImgApp;
22
23
24
25/* --------------------------------------------------------------------------- */
26class ObjMgrWind : public PIWindow {
27public :
28 ObjMgrWind(PIStdImgApp *par);
29 ~ObjMgrWind();
30 virtual void Show();
31 virtual void Process(PIMessage msg, PIMsgHandler* sender, void* data=NULL);
32 inline void AddDirectory(const char * dir, int did)
33 { dirlist->AppendItem(dir, 30000+did); }
34 inline void DelDirectory(int did)
35 { dirlist->Menu()->DeleteItemMsg(30000+did); }
36 inline void ClearObjList()
37 { mNitem=0; objlist->DeleteAllItems(); }
38 inline void AddObj(const char * objn, int oid)
39 { mNitem++; objlist->AppendItem(objn, oid); }
40
41 virtual void UpdateList(int did);
42 virtual void AddObjList(int did, const char * objn, int oid);
43 virtual void DelObjList(int did, int oid);
44
45private:
46 PIStdImgApp* dap;
47 PIOptMenu* dirlist;
48 int mNitem;
49 PIList* objlist;
50 PIButton * mBut[6];
51};
52
53/* --------------------------------------------------------------------------- */
54class PPInMgrWind : public PIWindow {
55public:
56 PPInMgrWind(PIStdImgApp *par);
57 ~PPInMgrWind();
58 virtual void Show();
59 virtual void Process(PIMessage msg, PIMsgHandler* sender, void* data=NULL);
60 void SetFile(string flnm);
61private:
62 PIStdImgApp* dap;
63 PIList* objlist;
64 PILabel * mLab[2];
65 PIButton* mBut[3];
66 PInPersist* mPin;
67 int tolx, toly, polx, poly; // Taille et position de objlist
68 int ttx, tty; // Taille globale par defaut
69
70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.