note description: "[ Toggle button for use with EV_TOOL_BAR. `is_selected' is mutualy exclusive with respect to other tool bar radio buttons between separators in a tool bar. ]" legal: "See notice at end of class." status: "See notice at end of class." keywords: "toggle, button, tool, bar" date: "$Date$" revision: "$Revision$" class EV_TOOL_BAR_RADIO_BUTTON inherit EV_TOOL_BAR_BUTTON redefine implementation, create_implementation, is_in_default_state end EV_RADIO_PEER undefine initialize redefine implementation, is_in_default_state end EV_SELECTABLE undefine initialize redefine implementation, is_in_default_state end create default_create, make_with_text feature {NONE} -- Contract support is_in_default_state: BOOLEAN -- Is `Current' in its default state? -- Radio buttons are selected by default. do Result := Precursor {EV_RADIO_PEER} and then Precursor {EV_TOOL_BAR_BUTTON} end feature {EV_ANY, EV_ANY_I}-- Implementation implementation: EV_TOOL_BAR_RADIO_BUTTON_I -- Responsible for interaction with native graphics toolkit. feature {NONE} -- Implementation create_implementation -- See `{EV_ANY}.create_implementation'. do create {EV_TOOL_BAR_RADIO_BUTTON_IMP} implementation.make end note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class EV_TOOL_BAR_RADIO_BUTTON