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

Last change on this file since 1036 was 64, checked in by aubourg, 28 years ago

Portage Mac, 22/12/97

File size: 1.2 KB
Line 
1#pragma once
2
3#include <string>
4#include <LTableView.h>
5#include "pimsghandler.h"
6
7class LArray;
8
9struct PIPPListCell {
10 string str;
11 PIMessage msg;
12};
13
14class PIPPList : public LTableView {
15public:
16
17 PIPPList(PIMsgHandler* hndl);
18 PIPPList(
19 const SPaneInfo& inPaneInfo,
20 const SViewInfo& inViewInfo,
21 PIMsgHandler* hndl);
22 virtual ~PIPPList();
23
24 void AppendItem(string const& str, PIMessage msg);
25 void DeleteItem(string const& str);
26 void DeleteItem(PIMessage msg);
27
28 void SetMultipleSelect(bool ms);
29
30 int GetNbSel();
31 PIMessage GetSelMsg(int i);
32 string GetSelStr(int i);
33
34 void SelectItem(string const& str);
35 void SelectItem(PIMessage msg);
36 void ClearSelItem(string const& str);
37 void ClearSelItem(PIMessage msg);
38
39protected:
40 LTableSelector* tss;
41 LTableSelector* tms;
42 LArray* mArray;
43 PIMsgHandler* mHndl;
44
45 virtual void ClickCell(
46 const STableCell &inCell,
47 const SMouseDownEvent &inMouseDown);
48
49 void InitPPList();
50 STableCell FindMsg(PIMessage msg);
51 STableCell FindStr(string const& str);
52};
Note: See TracBrowser for help on using the repository browser.