00001
00002
00003
00004
00005 #ifndef _GRADIO_GROUP_H_
00006 #define _GRADIO_GROUP_H_
00007
00012 class LgiClass GRadioGroup :
00013 public GView,
00014 public ResObject
00015 {
00016 class GRadioGroupPrivate *d;
00017 void OnCreate();
00018
00019 public:
00020 GRadioGroup(int id, int x, int y, int cx, int cy, const char *name, int Init = 0);
00021 ~GRadioGroup();
00022
00023 const char *GetClass() { return "GRadioGroup"; }
00024
00026 int64 Value();
00028 void Value(int64 i);
00030 GRadioButton *Append(int x, int y, char *name);
00031
00032
00033 int OnNotify(GViewI *Ctrl, int Flags);
00034 void OnPaint(GSurface *pDC);
00035 void OnAttach();
00036 int OnEvent(GMessage *m);
00037
00038 char *Name() { return GView::Name(); }
00039 char16 *NameW() { return GView::NameW(); }
00040 bool Name(const char *n);
00041 bool NameW(const char16 *n);
00042 void SetFont(GFont *Fnt, bool OwnIt = false);
00043 };
00044
00047 class LgiClass GRadioButton :
00048 public GView,
00049 public ResObject
00050 {
00051 friend class GRadioGroup;
00052 class GRadioButtonPrivate *d;
00053
00054 public:
00055 GRadioButton(int id, int x, int y, int cx, int cy, const char *name);
00056 ~GRadioButton();
00057
00058 const char *GetClass() { return "GRadioButton"; }
00059
00060
00061 char *Name() { return GView::Name(); }
00062 char16 *NameW() { return GView::NameW(); }
00063 bool Name(const char *n);
00064 bool NameW(const char16 *n);
00065 int64 Value();
00066 void Value(int64 i);
00067 void SetFont(GFont *Fnt, bool OwnIt = false);
00068
00069
00070 void OnMouseClick(GMouse &m);
00071 void OnMouseEnter(GMouse &m);
00072 void OnMouseExit(GMouse &m);
00073 bool OnKey(GKey &k);
00074 void OnFocus(bool f);
00075 void OnPaint(GSurface *pDC);
00076 void OnAttach();
00077 int OnEvent(GMessage *m);
00078 };
00079
00080 #endif