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

Last change on this file since 3075 was 2762, checked in by ansari, 20 years ago

Suite corrections ZSync + correction (probable) du probleme de plantage a la fin lie a imagnav - reste a corriger menu::del_cur_widget - Reza 24/05/2005

  • Property svn:executable set to *
File size: 2.0 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 inline int GetCurDirId() { return (dirlist->GetValue()-30000); }
41
42 virtual void UpdateList(int did);
43 virtual void AddObjList(int did, const char * objn, int oid);
44 virtual void DelObjList(int did, int oid);
45
46private:
47 PIStdImgApp* dap;
48 PIOptMenu* dirlist;
49 int mNitem;
50 PIList* objlist;
51 PIButton * mBut[6];
52};
53
54/* --------------------------------------------------------------------------- */
55class PPInMgrWind : public PIWindow {
56public:
57 PPInMgrWind(PIStdImgApp *par);
58 ~PPInMgrWind();
59 virtual void Show();
60 virtual void Process(PIMessage msg, PIMsgHandler* sender, void* data=NULL);
61 void SetFile(string flnm);
62private:
63 PIStdImgApp* dap;
64 PIList* objlist;
65 PILabel * mLab[2];
66 PIButton* mBut[3];
67 PInPersist* mPin;
68 int tolx, toly, polx, poly; // Taille et position de objlist
69 int ttx, tty; // Taille globale par defaut
70
71};
72
73#endif
Note: See TracBrowser for help on using the repository browser.