source: Sophya/branches/EA_Juin98/SophyaPI/PI/pilistx.h@ 1036

Last change on this file since 1036 was 54, checked in by ansari, 28 years ago

Petites corrections/ ameliorations Reza 13/08/97

File size: 1.4 KB
Line 
1#ifndef PILISTX_H_SEEN
2#define PILISTX_H_SEEN
3
4#include "pilistgen.h"
5
6class PIListX : public PIListGen {
7public:
8 PIListX(PIContainerGen* par, char* nom,
9 int sx=100, int sy=100, int px=0, int py=0);
10 ~PIListX();
11
12 virtual void AppendItem(const char * item, PIMessage msg);
13 virtual void DeleteItem(const char *item);
14 virtual void DeleteItem(PIMessage msg);
15
16 virtual void SetMultipleSelect(bool ms=false);
17
18 virtual int GetNbSelection();
19 virtual PIMessage GetSelection(int num=0);
20 virtual string GetSelectionStr(int num=0);
21
22 virtual void SelectItem(const char * item);
23 virtual void SelectItem(PIMessage msg);
24 virtual void ClearSelItem(const char * item);
25 virtual void ClearSelItem(PIMessage msg);
26
27// Mis en public pour Callback Xt
28 virtual void ToggleSel(int n, bool smg=false);
29
30protected:
31 PIMessage ItemMsg(int n);
32 char * ItemStr(int n);
33 int GetNumItem(const char * nom);
34 int GetNumItemMsg(PIMessage msg);
35 void DelItem(int n);
36 bool SelItem(int n, bool smg=false, bool cxw=false);
37 bool ClrSItem(int n, bool smg=false, bool cxw=false);
38
39int mNItem, mNItemMax;
40PIMessage * mMess;
41bool * mSel;
42int mNbSel, mNSelMax;
43int * mSelNum;
44bool mMultSel;
45char mSItem[320];
46
47SysDWdg mlist;
48};
49
50typedef PIListX PIList;
51
52#endif
Note: See TracBrowser for help on using the repository browser.