22 #include <X11/Intrinsic.h>
23 #include <mix/IntAr.H>
32 typedef void (*RadioHandleProc)(
int idPrevState,
int idNewState);
52 #define AnyType RadioControlElement
53 #define AnyAr ArrayOfRCE
54 #define AnyCmp(x,y) (!((x.w == y.w) && (x.z == y.z) && (x.q == y.q)))
55 #define AnyFormatSpec "\n%d @ state=%d: w=%p; z=%p; q=%p"
56 #define AnyPrintList i, item.state, item.w, item.z, item.q
57 #include <mix/AnyAr.H>
74 RadioHandleProc event_handler;
77 void ChangeState (
unsigned i);
80 void RemoveAnyControl (
void* ptr);
83 static void SetCurrentInOptionMenu (Widget w, Widget w_optm);
91 UniversalCB (Widget w,
RadioGroup*
self, XtPointer pCallData);
93 ToggleButtonCB (Widget w,
RadioGroup*
self, XtPointer pCallData);
95 DrawnButtonCB (Widget w,
RadioGroup*
self, XtPointer pCallData);
97 PushButtonCB (Widget w,
RadioGroup*
self, XtPointer pCallData);
99 OptionMenuButtonCB (Widget w,
RadioGroup*
self, XtPointer pCallData);
106 void SetHandler (RadioHandleProc handler);
107 void ResetHandler ();
109 void AddState (
int idState);
110 void AddControl (
int idState, Widget w, Widget w_optm = NULL);
111 void AddControl (
int idState,
ZtObject* zobj);
112 void AddControl (
int idState,
QfBrick* qobj);
114 void SetState (
int idState);
115 int GetState ()
const
118 void RemoveState (
int idState);
119 void RemoveControl (Widget w);
120 void RemoveControl (
ZtObject* zobj);
121 void RemoveControl (
QfBrick* qobj);
123 virtual void NewStateHook (
int idPrevState,
int idNewState);
Definition: RadioGroup.H:38
Definition: ZtObject.H:57
Definition: RadioGroup.H:60