vdk 2.4.0
Public Member Functions | Public Attributes | List of all members
VDKRadioButtonGroup Class Reference

Providesa radio button group. More...

#include <radiobtngroup.h>

Inheritance diagram for VDKRadioButtonGroup:
VDKObjectContainer VDKObject VDKNotCopyAble

Public Member Functions

 VDKRadioButtonGroup (VDKForm *owner, int mode=v_box)
 ~VDKRadioButtonGroup ()
void SetDefault (int buttonNumber)
void Add (VDKObject *obj, int j=l_justify, int e=false, int f=false, int p=false)
void RemoveButton (VDKRadioButton *button)
VDKEventBoxGBox ()
- Public Member Functions inherited from VDKObjectContainer
int BorderWidth (int w=-1)
void RemoveObject (VDKObject *obj)
virtual void RemoveObjectFromContainer (VDKObject *obj)
void RemoveObjects ()
VDKObjectFindTag (int tag)
void ForEachDo (void(*action)(VDKObject *))
- Public Member Functions inherited from VDKObject
VDKRgb GetBackground (GtkStateType state=GTK_STATE_NORMAL)
VDKRgb GetForeground (GtkStateType state=GTK_STATE_NORMAL)
 VDKObject (VDKForm *owner=NULL)
 VDKObject (VDKForm *owner, GtkWidget *widget)
virtual ~VDKObject ()
bool Destroy ()
virtual int isA ()
VDKFormOwner ()
virtual GtkWidget * Widget ()
GtkWidget * ConnectingWidget ()
GtkWidget * WrappedWidget ()
virtual void SetFont (VDKFont *f)
VDKFontGetFont ()
void SetVisible (bool visible)
bool GetVisible ()
void SetCursor (VDKCursorType)
VDKCursorType GetCursor ()
virtual void SetForeground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL)
virtual void SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL)
void SetSize (int w, int h)
void SetUsize (VDKPoint s)
virtual void SetTip (char *)
ItemListItems ()
void Draw (GdkRectangle *area=NULL)
virtual void Setup ()
void SignalEmit (int signal)
void SignalEmit (char *sig)
void SignalEmitParent (int signal)
void SignalEmitParent (char *sig)
void GrabFocus ()
VDKObjectParent (VDKObject *p=NULL)
int SignalConnect (VDKObject *obj, char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false)
int SignalConnect (char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false)
bool SignalDisconnect (int connection)
int EventConnect (VDKObject *obj, char *event, bool(VDKObject::*method)(VDKObject *, GdkEvent *), bool after=false)
int EventConnect (char *, bool(VDKObject::*)(VDKObject *, GdkEvent *), bool after=false)
bool EventDisconnect (int connection)

Public Attributes

VDKReadWriteValueProp
< VDKRadioButtonGroup, int > 
Selected
RadioButtonList Buttons
VDKReadOnlyValueProp
< VDKRadioButtonGroup,
RadioButtonList * > 
ButtonList

Additional Inherited Members

- Protected Attributes inherited from VDKObject
VDKObjectSignal s_clicked
GtkWidget * widget
GtkWidget * sigwid
VDKObjectparent

Detailed Description

Providesa radio button group.

SIGNALS
  • toggled_signal received whenever one of the buttons into group is toggled.
EXAMPLES
Into ./testvdk/rbutton.cc

Constructor & Destructor Documentation

VDKRadioButtonGroup::VDKRadioButtonGroup ( VDKForm owner,
int  mode = v_box 
)

Constructor

Parameters
owner
modeeither v_box or h_box
VDKRadioButtonGroup::~VDKRadioButtonGroup ( )
inline

Destructor

Member Function Documentation

void VDKRadioButtonGroup::Add ( VDKObject obj,
int  justify = l_justify,
int  fill = false,
int  expand = false,
int  padding = false 
)
virtual

Add an object.

Reimplemented from VDKObjectContainer.

VDKEventBox* VDKRadioButtonGroup::GBox ( )
inline

Return group box

void VDKRadioButtonGroup::RemoveButton ( VDKRadioButton button)

Remove a button from radio button group

Parameters
buttonwhich button has to be removed
void VDKRadioButtonGroup::SetDefault ( int  buttonNumber)

Sets the button that will be selected by default

Parameters
buttonNumberordinal number of selected button (0 <= buttonNumber < Buttons.size())

Member Data Documentation

VDKReadOnlyValueProp<VDKRadioButtonGroup, RadioButtonList*> VDKRadioButtonGroup::ButtonList

same as Buttons

RadioButtonList VDKRadioButtonGroup::Buttons

Returns a list of radio buttons contained into group. You can acces them:

// disables last radio button
int last = radio_group->Buttons.size()-1;
radio_group->Buttons[last]->Enabled = false;

<read only>="">

VDKReadWriteValueProp<VDKRadioButtonGroup,int> VDKRadioButtonGroup::Selected

Use this property to know wich button was toggled after a toggle_signal. Or to force a selection. Selected propery contais the ordinal number of toggled button ( 0 <= x < n) Defaults to 0


The documentation for this class was generated from the following files: