[222] | 1 | #ifndef PISTDWDGGEN_H_SEEN
|
---|
| 2 | #define PISTDWDGGEN_H_SEEN
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | #include "pisysdep.h"
|
---|
| 6 | #include PIWDG_H
|
---|
| 7 |
|
---|
| 8 | class PILabelGen : public PIWdg {
|
---|
| 9 | public:
|
---|
| 10 | enum {ClassId = 1001};
|
---|
| 11 |
|
---|
| 12 | PILabelGen(PIContainerGen* par, char* nom,
|
---|
| 13 | int sx=10, int sy=10, int px=0, int py=0);
|
---|
| 14 | virtual ~PILabelGen();
|
---|
| 15 |
|
---|
| 16 | virtual long kind() {return ClassId; }
|
---|
| 17 | };
|
---|
| 18 |
|
---|
| 19 | // Les differents types de boutons avec un signe dessus ...
|
---|
| 20 | enum PIBtnSign { PIBtn_Label=0, PIBtn_ArrowUp=1, PIBtn_ArrowDown=2,
|
---|
| 21 | PIBtn_ArrowLeft=3, PIBtn_ArrowRight=4 };
|
---|
| 22 |
|
---|
| 23 | class PIButtonGen : public PIWdg
|
---|
| 24 | {
|
---|
| 25 | public:
|
---|
| 26 | enum {ClassId = 1010};
|
---|
| 27 |
|
---|
| 28 | PIButtonGen(PIContainerGen* par, char* nom,
|
---|
| 29 | PIMessage msg = PIMsg_Click,
|
---|
| 30 | int sx=10, int sy=10, int px=0, int py=0,
|
---|
| 31 | PIBtnSign bsgn = PIBtn_Label);
|
---|
| 32 | virtual ~PIButtonGen();
|
---|
| 33 |
|
---|
| 34 | virtual long kind() {return ClassId; }
|
---|
| 35 | virtual void ActivatePress(bool acp=false)=0;
|
---|
| 36 |
|
---|
| 37 | protected:
|
---|
| 38 | PIBtnSign mSgn;
|
---|
| 39 | };
|
---|
| 40 |
|
---|
| 41 |
|
---|
| 42 | class PITextGen : public PIWdg
|
---|
| 43 | {
|
---|
| 44 | public:
|
---|
| 45 |
|
---|
| 46 | enum {ClassId = 1020};
|
---|
| 47 |
|
---|
| 48 | PITextGen(PIContainerGen* par, char* nom,
|
---|
| 49 | int sx=10, int sy=10, int px=0, int py=0);
|
---|
| 50 | virtual ~PITextGen();
|
---|
| 51 | virtual void SetText(string const&) = 0;
|
---|
| 52 | virtual string GetText() const = 0;
|
---|
| 53 |
|
---|
| 54 | virtual void SetMutiLineMode(bool mlm=false) = 0;
|
---|
| 55 | virtual void SetTextEditable(bool te=true) = 0;
|
---|
| 56 |
|
---|
| 57 | virtual long kind() {return ClassId; }
|
---|
| 58 | };
|
---|
| 59 |
|
---|
| 60 |
|
---|
| 61 |
|
---|
| 62 | class PICheckBoxGen : public PIWdg
|
---|
| 63 | {
|
---|
| 64 | public:
|
---|
| 65 |
|
---|
| 66 | enum {ClassId = 1030};
|
---|
| 67 |
|
---|
| 68 | PICheckBoxGen(PIContainerGen* par, char* nom,
|
---|
| 69 | PIMessage msg = PIMsg_Click,
|
---|
| 70 | int sx=10, int sy=10, int px=0, int py=0);
|
---|
| 71 | virtual ~PICheckBoxGen()=0;
|
---|
| 72 | virtual void SetState(bool st=false)=0;
|
---|
| 73 | virtual bool GetState()=0;
|
---|
| 74 |
|
---|
| 75 | virtual long kind() {return ClassId; }
|
---|
| 76 |
|
---|
| 77 | protected:
|
---|
| 78 |
|
---|
| 79 | };
|
---|
| 80 |
|
---|
| 81 | // Definition choix de la direction et sens pour Scale et Scroll-bar
|
---|
| 82 | enum {
|
---|
| 83 | kSDirLtoR = 1,
|
---|
| 84 | kSDirRtoL = 2,
|
---|
| 85 | kSDirDownUp = 4,
|
---|
| 86 | kSDirUpDown = 8
|
---|
| 87 | };
|
---|
| 88 |
|
---|
| 89 | class PIScaleGen : public PIWdg
|
---|
| 90 | {
|
---|
| 91 | public:
|
---|
| 92 | enum {ClassId = 1040};
|
---|
| 93 |
|
---|
| 94 | PIScaleGen(PIContainerGen* par, char* nom,
|
---|
| 95 | PIMessage msg = PIMsg_DataChanged, int dir=kSDirLtoR,
|
---|
| 96 | int sx=100, int sy=10, int px=0, int py=0);
|
---|
| 97 | virtual ~PIScaleGen();
|
---|
| 98 |
|
---|
| 99 | virtual void SetMinMax(int min, int max) = 0;
|
---|
| 100 | virtual void GetMinMax(int& min, int& max) = 0;
|
---|
| 101 | virtual void SetValue(int val) = 0;
|
---|
| 102 | virtual int GetValue() = 0;
|
---|
| 103 |
|
---|
| 104 | virtual long kind() {return ClassId; }
|
---|
| 105 |
|
---|
| 106 | protected:
|
---|
| 107 |
|
---|
| 108 | };
|
---|
| 109 |
|
---|
| 110 | class PIScrollBarGen : public PIWdg
|
---|
| 111 | {
|
---|
| 112 | public:
|
---|
| 113 | enum {ClassId = 1050};
|
---|
| 114 |
|
---|
| 115 | PIScrollBarGen(PIContainerGen* par, char* nom,
|
---|
| 116 | PIMessage msg=PIMsg_DataChanged, int dir=kSDirUpDown,
|
---|
| 117 | int sx=10, int sy=100, int px=0, int py=0);
|
---|
| 118 | virtual ~PIScrollBarGen();
|
---|
| 119 |
|
---|
| 120 | virtual void ActivateDrag(bool acd=false) = 0;
|
---|
| 121 | virtual void SetMinMax(int min, int max) = 0;
|
---|
| 122 | virtual void GetMinMax(int& min, int& max) = 0;
|
---|
| 123 | virtual void SetValue(int val) = 0;
|
---|
| 124 | virtual int GetValue() = 0;
|
---|
| 125 | virtual void SetSlSize(int sz) = 0;
|
---|
| 126 | virtual int GetSlSize() = 0;
|
---|
| 127 |
|
---|
| 128 | virtual long kind() {return ClassId; }
|
---|
| 129 |
|
---|
| 130 | protected:
|
---|
| 131 |
|
---|
| 132 | };
|
---|
| 133 |
|
---|
| 134 | #endif
|
---|