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

Last change on this file since 411 was 333, checked in by ercodmgr, 26 years ago

Trace de NTuple en 2D avec Marker de taille proportionnelle a Weight
Introduction des repertoires dans la gestion d'objets NameObjMgr
Reorganisation NamedObjMgr et Services2NObjMgr, ajout de commandes , ...
Reza 12/7/99

  • Property svn:executable set to *
File size: 1.7 KB
RevLine 
[333]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
[165]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);
[333]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 ClearHelpList()
37 { mNitem=0; objlist->DeleteAllItems(); }
38 inline void AddObj(const char * objn)
39 { mNitem++; objlist->AppendItem(objn, 100+mNitem); }
[165]40private:
41 PIStdImgApp* dap;
[333]42 PIOptMenu* dirlist;
43 int mNitem;
[165]44 PIList* objlist;
[333]45 PIButton * mBut[6];
[165]46};
47
48/* --------------------------------------------------------------------------- */
49class PPInMgrWind : public PIWindow {
50public:
51 PPInMgrWind(PIStdImgApp *par);
52 ~PPInMgrWind();
53 virtual void Show();
54 virtual void Process(PIMessage msg, PIMsgHandler* sender, void* data=NULL);
55 void SetFile(string flnm);
56private:
57 PIStdImgApp* dap;
58 PIList* objlist;
59 PILabel * mLab[2];
60 PIButton* mBut[3];
61 PInPersist* mPin;
62 int tolx, toly, polx, poly; // Taille et position de objlist
63 int ttx, tty; // Taille globale par defaut
64
65};
66
67#endif
Note: See TracBrowser for help on using the repository browser.